﻿__group__	ticket	summary	owner	component	severity	type	_status	_created	modified	_description	_reporter	version	workflow
Enhancements Awaiting Review	66549	Tests: Add unit tests for the uncovered code of the Abilities API classes and the users and content abilities		Abilities API	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66367	Abilities API: explore allowing an ability to belong to multiple categories		Abilities API	normal	enhancement	new	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	6.9	has-patch
Defects Awaiting Review, reported against trunk	66314	HMTL entities in wp-admin/js/inline-edit-post.js:219		Administration	normal	defect (bug)	new	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	trunk	has-patch
Defects Awaiting Review, reported against no version	32017	Fix class name typo from 'hndle' to 'handle'		Administration	normal	defect (bug)	new	2015-04-19T15:43:53Z	2026-01-17T09:42:04Z	The typo was introduced in [8682] changeset.	michalzuber		has-patch
Defects Awaiting Review, reported against no version	42468	Iron out the usage of 'homepage', 'home page', 'front page'		Administration	normal	defect (bug)	new	2017-11-08T14:41:43Z	2025-07-11T05:28:41Z	"As discussed in #41828, I think we need clarification of the usage of 'Homepage' vs. 'Home Page' or 'Front Page'.

In german we used to differ the homepage from a 'start page', see screenshot.

Can I assume it' all the same, like the french do?

Quoting @fxbenard:
 We made the choice to always translate it the same way in FR, no more consistency issues"	Presskopp		has-patch
Defects Awaiting Review, reported against no version	35204	Refresh HiDPI support		Administration	normal	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		needs-patch
Defects Awaiting Review, reported against no version	42879	Invent a “Recommended Tools” section		Administration	normal	defect (bug)	new	2017-12-12T14:45:58Z	2017-12-13T08:22:52Z	"We have recommended plugins and themes, and while most tools are just plugins in disguise, the importers have had the limelight for a bit too long.

There are a bunch of handy WordPress tools that deserve some attention, and a dedicated box/page/something under the Tools menu in WP Admin would help bring attention to them."	johnjamesjacoby		dev-feedback
Defects Awaiting Review, reported against no version	41077	Revisions for code edits		Administration	normal	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		
Defects Awaiting Review, reported against no version	37148	Links in notification emails appearing as https		Administration	normal	defect (bug)	new	2016-06-22T08:38:31Z	2017-03-01T14:03:39Z	"I have received several notification emails as an Administrator instructing me that Wordpress has been updated to the latest version.

However, all of the links contained within all of the emails output the URL as https://, and not whatever is stated within the Wordpress Site URL setting in General.

This leads to any link that is visited displaying a 'Connection not secure' message, as there is no SSL certificate for that domain name."	leec87		
Defects Awaiting Review, reported against latest stable branch	66292	Enlarge update.php content		Administration	normal	defect (bug)	new	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	7.1.3	dev-feedback
Defects Awaiting Review	66657	"Command Palette: Top-level menus registered without a callback lead to ""Cannot load {slug}"""		Administration	normal	defect (bug)	new	2026-11-11T08:08:35Z	2026-11-11T08:16:54Z	"`wp_enqueue_command_palette_assets()` builds each top-level ""Go to"" command URL with `menu_page_url( $menu_slug )`. When a plugin registers a top-level menu with a `null` callback (e.g. WooCommerce's `woocommerce` and `woocommerce-marketing`), no page hook exists, so `admin.php?page={slug}` ends in `wp_die( 'Cannot load {slug}.' )` (HTTP 500).

The admin menu avoids this because `_wp_menu_output()` links such items to their first submenu ([4481]). The palette doesn't.

Originally reported in gutenberg repository at https://github.com/WordPress/gutenberg/issues/86646

== Steps to reproduce ==

1. Add as a mu-plugin (or activate WooCommerce):
{{{
add_action( 'admin_menu', function () {
        add_menu_page( 'Parent', 'Parent', 'manage_options', 'null-parent', null );
        add_submenu_page( 'null-parent', 'Child', 'Child', 'manage_options', 'null-child', function () { echo 'ok'; } );
        // Remove the auto-added parent submenu, as WooCommerce does.
        remove_submenu_page( 'null-parent', 'null-parent' );
} );
}}}
2. Open the Command Palette and choose ""Parent"".

Expected: the ""Child"" screen, as the admin menu link opens.
Actual: ""Cannot load null-parent.""

== Proposed fix ==

If a top-level slug has submenus but no page hook (`get_plugin_page_hook( $slug, 'admin.php' )`), use the first accessible submenu's URL, and skip the command if there is none. Menus with their own page are unchanged."	yashjawale		has-patch
Defects Awaiting Review	66655	JSDoc: src/js/_enqueues/wp/svg-painter.js		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	50284	A fix to the CPT-no-create-when-submenu-child problem.		Administration	normal	defect (bug)	new	2020-05-29T23:04:21Z	2026-11-10T10:42:42Z	"Here's a bug and a work around solution.  (It is something that coders try to implement, but back away from when they see it's broken.)  Code is traced ready to be altered.  Please see [StackExchange](https://wordpress.stackexchange.com/questions/367822/how-to-allow-add-new-capability-of-cpt-when-links-to-its-ui-are-placed-as-a-su) for the bloodsucking work.

Short is that users with the `edit_{post-type}` custom capability for a custom post type cannot create that particular post type if the UI is accessible by way of a submenu.  The fix is to **NOT POPULATE THE POST MENU WITH post-new.php** if the user does not possess the `edit_posts` capability.  [This line](https://core.trac.wordpress.org/browser/tags/5.4/src/wp-admin/menu.php#L170) is the problem child:  it needs to go sit in the corner with a pointy hat on.

I'm new to the whole playing with other WordPressers in the sandbox kind of thing.  If I knew how to make changes to the core for upgrades, I would have submitted a file change with that line 170 in wp-admin/menu.php looking like this:  `if( current_user_can($ptype_obj->cap->create_posts) ) { $submenu[ $ptype_file ][10] = array( $ptype_obj->labels->add_new, $ptype_obj->cap->create_posts, $post_new_file ); }` ... well, formatted nicely into three lines, obviously."	mort1305	5.5	has-patch
Defects Awaiting Review	66628	Admin interface does not respect browser default font size preferences		Administration	normal	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		
Defects Awaiting Review	65018	WordPress Post Edit Screen Content Overflow Issue in version 7.0 RC2		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	64565	The 'manage_posts_extra_tablenav' action does not fire for bottom tablenav when no posts exist		Administration	normal	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	6.9	
Defects Awaiting Review	56254	PHP Warning:  Undefined array key 1 wp-admin\menu-header.php on line 202		Administration	normal	defect (bug)	new	2022-07-20T10:30:24Z	2026-10-22T19:24:38Z	i get the above warning when i use php version 8.1.6 in iis server,for php7.427 the code works , am using wordpress 6.0.1 released on jul 12 2022, am unable to fix it , kindly support , i get this error after succesfull login as admimistrator in plugin.php page , and other admin pages.	pras.88in		has-patch
Defects Awaiting Review	66247	Admin: Button styles are not consistent in active-while-focused states		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	66271	Make sure aria-disabled buttons use a consistent focus style		Administration	normal	defect (bug)	new	2026-10-08T14:37:53Z	2026-10-10T15:37:00Z	"Splitting this out from #66038.
See comment at https://github.com/WordPress/wordpress-develop/pull/13390/#issuecomment-6061122370

Now that Core is going to use more and more the pattern already used on Gutenberg where disabled controls use `aria-disabled=""true""` instead of a `disabled` attribute, the styles that come from buttons.css, colors.css, and potentially other stylesheets should be adapted to ensure the aria-disabled buttons get a consistent focus style.

Reminder: using `aria-disabled=""true""`:
- Helps making controle discoverable, for better general usability.
- Helps preventing focus losses when controls are disabled, as they are still focusable."	afercia		has-patch
Defects Awaiting Review	65539	Quick Draft: Improve the 'highlight' styling of newly added drafts		Administration	normal	defect (bug)	new	2026-06-25T07:23:33Z	2026-10-09T14:14:35Z	"Splitting this out from #64952

When creating a new draft via the Quick Draft dashboard widget, the newly created draft is added to the list of 'Your Recent Drafts' after the Quick Draft form.

It gets 'highlighted' for 1 second with a yellow background `#fffbe5`. See attached screenshot.

The yellow background is barely visible. 

Also, the use of yellow dates to several years ago. Today this yellow color isn't inline with the colors used in the admin. More importantly, given this is a 'success' confirmation, it should use either a green (success0 or blue (info) color.

For example, in the Recent Comments widget, when marking a comment as 'spam' and then clicking 'Undo', the color used is green.

Colors should be used consistently. Instead, on the same page, there are two 'success' actions that use different colors. 


Worth also noting the new Quick Draft widget in the Gutenberg Dashboard experiment uses green.

#64952 will add an accessible admin notice for the success feedback. This ticket is only about the 'visual' highlight feedback.

I'd like to suggest to:
- ditch the yellow.
- use green
- maybe improve the padding of the highlighted container


"	afercia		has-patch
Defects Awaiting Review	49820	Input and select elements are misaligned in the admin area		Administration	trivial	defect (bug)	new	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	5.4	has-patch
Defects Awaiting Review	47640	"WP_Posts_List_Table::get_views() doesn't allow the ""Mine"" counts to be filtered"		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	59272	wp-admin search/column order not working when running not on port 80		Administration	normal	defect (bug)	new	2023-09-02T12:49:40Z	2026-08-21T14:14:21Z	"Hey,

we are currently running WP 6.3.1 internally on a different port ( localhost:8182 ).
WordPress itself works without problems.
Only when you on the wp-admin page search for a keyword in a CPT or change the order, the port gets deleted from the URL.

I found following part of the core source where the problem happens:
https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-list-table.php#L1381

Would be nice to respect the site url from the settings or not delte the port when used."	canic	6.3.1	has-patch
Defects Awaiting Review	64942	Inconsistent paddings/margins for dashboard widgets		Administration	normal	defect (bug)	new	2026-03-24T16:38:29Z	2026-08-18T08:45:40Z	"This seems related to #64787 and #64549, but there are a few weird visual inconsistencies in trunk related to dragging & dropping meta-boxes in the dashboard pages:

* Unique & low-contrast drop-zone background color, which also shows off the bottom padding in an unflattering way
* Two different border dash styles (not new but doesn't seem that useful anymore IMO)
* Drop-zones have different spacing when they are vacant or populated
* Dragging a meta-box out of bounds causes it to be clipped (overflow hidden?)"	johnjamesjacoby		has-patch
Defects Awaiting Review	57268	Add Escaping properly in Class Custom background Page		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	34088	Add delay to admin menu arrow's disappearance		Administration	normal	defect (bug)	new	2015-09-29T23:11:19Z	2026-08-18T08:44:53Z	"Currently if you hover over an item in the admin's left sidebar, the submenu will show after a few hundred milliseconds. The arrow/triangle next to the submenu will appear at the exact same time. However, on leaving the hover state, the arrow disappears right away while the submenu will stay around for a few hundred milliseconds and then disappear.

I would assume this is because the arrow is bound to the menu item, and not the submenu. Not really sure what the solution would be to this, but I see it as a bug in code that's improves UX.

[[Image(https://cldup.com/oDl-qIUYxW.gif)]]"	pathartl	4.3.1	has-patch
Defects Awaiting Review	40701	Admin menu icon distorted in Chrome when #adminmenu folded		Administration	normal	defect (bug)	new	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	4.7.4	has-patch
Defects Awaiting Review	56302	Admin menu links have relative URLs		Administration	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	63209	The search engine for admin posts does not support quotes		Administration	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	45130	Defer jQuery WordPress Admin & Customizer doesn't work properly		Administration	normal	defect (bug)	new	2018-10-19T13:35:56Z	2026-08-18T08:41:22Z	"If I defer jQuery or put jQuery in the footer. I get Uncaught ReferenceError: jQuery is not defined errors in the WordPress Customizer and the Customizer doesn't work, like for example changing theme logo, adding widgets or other things directly possible in the page.

When I remove defer, everything works as expected.

Maybe this is because document ready is not used? I have been checking this issue myself.
The following files are effected:
- wp-includes/js/mediaelement/mediaelement-migrate.min.js
- wp-includes/js/wp-a11y.min.js
- wp-includes/js/customize-base.min.js
- wp-includes/js/customize-preview.min.js
- wp-includes/js/mediaelement/wp-mediaelement.min.js
- wp-includes/js/wp-util.min.js
- wp-includes/js/mediaelement/wp-playlist.min.js
- wp-includes/js/customize-selective-refresh.min.js
- wp-includes/js/customize-preview-widgets.min.js
- wp-includes/js/customize-preview-nav-menus.min.js"	remzicavdar		has-patch
Defects Awaiting Review	55368	Handle ajax failure when doing actions on themes/plugins		Administration	normal	defect (bug)	reopened	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	5.9.2	has-patch
Defects Awaiting Review	44710	Upload plugin and theme functionalities are not removing uploaded files after failure conditions.		Administration	normal	defect (bug)	new	2018-08-03T00:11:59Z	2026-08-18T08:39:39Z	"Within wp-admin, an administrator user may upload files by using the Upload Plugin functionality (Plugins -> Add New -> Upload plugin) and the Upload Theme functionality (Appearance -> Themes -> Add New -> Upload Theme)

These processes uploads the user submitted file to /wp-content/uploads/{month} first, then attempts to extract it to the plugins or theme directory (The form expects a .zip file, yet allows any mime-type or extension for uploaded files, such as images, or .php files). If the process fails for any reason the uploaded file remains in /wp-content/uploads/ and/or /wp-content/upgrade/ 

It would be best if the plugin and theme upload functionalities properly clean up the uploaded files if a plugin or theme fail to properly get extracted and/or installed.

Note: On successful installations of a plugin or theme, the uploaded file is being properly removed from /wp-content/uploads/ and/or /wp-content/upgrade/ "	rawrly	4.9.7	has-patch
Defects Awaiting Review	43611	Duplicate _ajax_nonce input cause conflict between find_post_div and post_custom_div		Administration	normal	defect (bug)	new	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	4.9.4	has-patch
Defects Awaiting Review	63771	Access denied issue with wp-includes/css/dist folder in WordPress 6.8.1-7.0		Administration	normal	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	6.8.3	
Defects Awaiting Review	65510	wp_dropdown_pages() lacks support for selecting show_option_no_change when used alongside show_option_none		Administration	normal	defect (bug)	new	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	2.7	has-patch
Defects Awaiting Review	65812	"Unreachable ""All selected plugins are up to date."" admin notice in plugins.php"	aminurislam01*	Administration	normal	defect (bug)	accepted	2026-08-05T12:16:21Z	2026-08-11T05:49:04Z	"The admin notice ""All selected plugins are up to date."" on the Plugins screen is unreachable - it can never be displayed.

In `wp-admin/plugins.php` the message lives in the results-notice chain:

{{{#!php
} elseif ( 'update-selected' === $action ) {
    wp_admin_notice( __( 'All selected plugins are up to date.' ), $updated_notice_args );
}
}}}

However, `$action` is assigned once (from `WP_Plugins_List_Table::current_action()`) and is never reassigned. Whenever `$action === 'update-selected'`, the earlier `switch ( $action )` block enters `case 'update-selected':`, which renders the bulk-update iframe and ends in an **unconditional `exit;`**. Execution therefore never reaches the notice chain with `$action === 'update-selected'`, so the `elseif` is always false. (PHPStan reports the comparison as ""will always evaluate to false."")

'''How to confirm'''
No user action can produce the notice. Selecting the bulk ""Update"" action always renders the iframe update screen (`update.php?action=update-selected`) and exits; there is no path back to the plugins list that shows this message. The string ""All selected plugins are up to date."" exists nowhere else in wp-admin.

'''History (why it is dead)'''
The branch was introduced together with bulk plugin updates in #11542(2010-01-26) and was reachable then: the handler filtered the selection to out-of-date plugins and did `break` (not `exit`) when all were current, falling through to the notice (originally worded ""No out of date plugins were selected."").

The iframe rewrite in #11232 (2010-03-06) removed that filtering and the `break`, making `case 'update-selected'` end in an unconditional `exit;`, but left the notice branch behind. It has been unreachable ever since (~15 years), surviving a re-word (2015), the `==` → `===` sweep (2020), and the `wp_admin_notice()` conversion.

'''Proposed fix'''
Remove the dead `elseif ( 'update-selected' === $action )` branch, since the iframe update screen already reports the ""up to date"" outcome."	aminurislam01		has-patch
Defects Awaiting Review	65798	Remove any CSS class added based on wp_is_mobile() and use pure media queries instead		Administration	normal	defect (bug)	new	2026-08-03T16:16:58Z	2026-08-04T09:27:18Z	"Splitting this out from https://core.trac.wordpress.org/ticket/65445#comment:21

In WordPress, detection of mobile devices was Introduced 15 years ago in [19368] where it used the global `$is_iphone` and then changed 14 years ago in [20417] to use `wp_is_mobile()`.

It detects the `user-agent` header that identifies your browser / device.

It is used across the admin for two purposes:

- Conditionally add some JS scripts.
- In a few cases, conditionally add a `mobile` CSS class to the body.

I'd like to propose to remove the cases where it adds the `mobile` CSS class and use styling entirely based on media queries instead.

I'm guessing the historical reason why the `mobile` CSS class is added this way is because 15 years ago CSS media queries weren't a thing.

Today the styling of some UIs in WordPress is an inextricable mix of styles based on the `mobile` class ''and'' media queries, all mixed together. The admin bar styling is an example, which makes developing and debugging unnecessarily complex.


I'm not even sure the `user-agent` headers evaluated by `wp_is_mobile()` are up to date and reliable.

Regardless, at least for the CSS part, WordPress should use pure media queris and nothing else. In the case of the admin bar, this would allow a great simplification of the related CSS.

It is also a developers convenience issue. As noted in https://core.trac.wordpress.org/ticket/65445#comment:21 the CSS class is added when your browser's devtools are open and emulating a responsive view regardless whether the styles based on the media queries kicked in. This may mislead developers who aren't aware that the class is added on the PHP side and it is not toggled 'on the fly' while changing viewport size.

I realize this would require a substantial refactoring of some large parts of the admin CSS. Suggest to keep some time for discussions and feedback before proceeding with a patch."	afercia		
Defects Awaiting Review	65703	wp_admin_notice(): pass `type` instead of `error/updated` via additional_classes	joedolson*	Administration	normal	defect (bug)	accepted	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		has-patch
Defects Awaiting Review	58161	WordPress post editor pagination uses inconsistent URL variable to rest of site		Administration	normal	defect (bug)	new	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	6.2	has-patch
Defects Awaiting Review	56520	Searching words that include apostrophes don't always work in admin search		Administration	normal	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		
Defects Awaiting Review	65444	Align admin CSS border-radius values with design system tokens		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65439	"wp_dashboard_quota() throws an uncaught DivisionByZeroError (fatal ""critical error"") when a multisite subsite's upload quota is 0 MB"		Administration	normal	defect (bug)	new	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	3.0	has-patch
Defects Awaiting Review	58335	WordPress Dashboard Collapse Menu Transition issue.		Administration	normal	defect (bug)	new	2023-05-17T04:37:06Z	2026-06-02T07:05:40Z	"Hi
When I collapse the menu it's showing awkward.
See the video: https://d.pr/v/34K9H4 
I think this issue should be fixed as soon as possible.
Regards"	shuvo52	5.2	has-patch
Defects Awaiting Review	25939	add_options_page(..., 'options.php') and 1000 vars limit	SergeyBiryukov	Administration	normal	defect (bug)	reviewing	2013-11-13T15:00:43Z	2026-05-28T06:42:49Z	"(Related to the discussion in #14134)

There is a ""common knowledge"" in the wilderness, suggesting having this for seeing all options at once, and I guess many admins have that enabled:

{{{
add_options_page('All Settings', 'All Settings', 'administrator', 'options.php');
}}}

At some point, the list grows to more than 1,000 variables, and:

{{{
PHP Warning: Unknown: Input variables exceeded 1000.
To increase the limit change max_input_vars in php.ini.
in Unknown on line 0
}}}


The '''option table is corrupted''' then. In the best scenario, the tail of the table is occupied with transients. The worst - real settings.

''(having a separate table for transients sounds like a good idea to me, BTW)
''

'''Now, to the point: the ""All Settings"" panel should NOT have the [Save] button. It must be read-only. 
'''

Alternatively - AJAX save, similar to phpMyAdmin - for each option separately.

"	tivnet		dev-feedback
Defects Awaiting Review	16858	Usage of HTTP_HOST in the administration		Administration	normal	defect (bug)	reviewing	2011-03-15T13:33:47Z	2026-05-27T07:42:59Z	"In some files like wp-admin/includes/class-wp-list-table.php (there are more files I think), some links are created by using the HTTP_HOST variable.

It's better to use the defined wordpress URL to create those links.

In our case, we have a wordpress running behind a Squid cache. When you check for HTTP_HOST you get the *real* HOST and not the one with the Squid server.

To bypass the problem, I added in the main config.php a line like this :

{{{
$_SERVER['HTTP_HOST'] = 'www.my-visible-http-host.com';
}}}

Without this setting and in our case, some links in the admin (next, previous page, re-ordering...) where pointing to the wrong server.
"	amirhabibi	3.1	has-patch
Defects Awaiting Review	65341	wp_ajax_widgets_order looks for is_array( $_POST['sidebars'] ) but dosn't check for isset( $_POST['sidebars'] )		Administration	normal	defect (bug)	new	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	2.8	has-patch
Defects Awaiting Review	65154	Dashboard widgets empty container alignment issue		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65266	Admin sidebar menu item shows a 0.19px height difference causing slight spacing and alignment inconsistency.		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65128	Warning on the post page.		Administration	normal	defect (bug)	new	2026-04-25T13:42:06Z	2026-04-29T08:23:18Z	"getting below warning on the `/wp-admin/post.php` page.


{{{
Warning: Attempt to read property ""post_type"" on null in `public\wp-includes\admin-bar.php` on line 816
}}}

"	gautammkgarg		dev-feedback
Defects Awaiting Review	63033	The padding on the right and left of the WordPress admin bar (#wpadminbar) is not the same.		Administration	normal	defect (bug)	new	2025-02-28T06:38:18Z	2026-04-24T11:36:18Z	I have found that the WordPress admin bar (#wpadminbar) has equal padding on the right and left from the user's perspective.	deeppatel8950		dev-feedback
Defects Awaiting Review	65048	wp_ajax_fetch_list(): Sanitize $_GET input before nonce construction	rajeshcp	Administration	normal	defect (bug)	assigned	2026-04-09T10:09:59Z	2026-04-23T04:22:59Z	In wp_ajax_fetch_list() (wp-admin/includes/ajax-actions.php), raw $_GET data is read without an existence check or sanitization before being used to construct the nonce action string and passed to _get_list_table().	rajeshcp	3.1	has-patch
Defects Awaiting Review	61503	Hook parent_file		Administration	minor	defect (bug)	new	2024-06-25T20:12:24Z	2026-04-09T05:08:07Z	"Hello,
I have a problem with one of the hooks on the admin side menu and I think it's a bug.
I'm trying to add a link to add a custom post type under an ACF option page. I've managed to set it up, but the menu doesn't display level 1 in current correctly. So I used this hook available in **/wp-admin/menu-header.php line 38**: {{{#!php
<?php
$parent_file = apply_filters( 'parent_file', $parent_file );
}}}

This filter does modify the parent_file, but on line 50, the call to the get_admin_page_parent function overloads the data I've hooked into it. Is this intended? If I pull up the function call, the problem is solved.
Thanks in advance!
Mathieu"	drashka	6.5.5	has-patch
Defects Awaiting Review	63835	"Admin pages listing displays post time instead of modified time for posts with status not equal ""published"""		Administration	normal	defect (bug)	new	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	6.8.2	has-patch
Defects Awaiting Review	56420	"In block editor when block is at top of window the block tools / settings dialog is hidden by ""Editor top bar"""		Administration	normal	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		
Defects Awaiting Review	56421	"Fix scrolling in Block Editor ""Editor Content"" inside ""Group Block"""		Administration	normal	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		
Defects Awaiting Review	52035	The `add_submenu_page()` position is ignored.		Administration	normal	defect (bug)	new	2020-12-11T16:03:26Z	2026-01-18T08:41:44Z	"Hello,

I'm not sure that the `add_submenu_page()` position argument is being applied properly. See the below example:

{{{#!php
<?php
add_action( 'admin_menu', function() {
	
	add_submenu_page(
		'edit.php',
		'Foo',
		'Foo',
		'list_users',
		'foo',
		function() {
			echo 'Hello Foo';
		},
		200,
	);
	
	add_submenu_page(
		'edit.php',
		'Bar',
		'Bar',
		'list_users',
		'bar',
		function() {
			echo 'Hello Bar';
		},
		100,
	);
	
} );
}}}

I would expect ""Bar"" to appear before ""Foo"" since it has a lower position number. What ends up happening is whichever `add_submenu_page()` was called first, gets position priority.
"	Howdy_McGee		has-patch
Defects Awaiting Review	64466	Admin layout broken: #wpcontent height constraint prevents container from extending to full content height		Administration	normal	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	6.9	
Defects Awaiting Review	62998	Deactivate button and search filter on plugin list page		Administration	normal	defect (bug)	new	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	6.7.2	has-patch
Defects Awaiting Review	44631	Limit the displayed search phrase for the posts list table		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63437	[v6.8.1] Unsupported operand types: bool & string in wp_privacy_anonymize_ip on line 8234		Administration	major	defect (bug)	new	2025-05-12T22:03:42Z	2025-08-08T18:59:05Z	"At present, it's somehow possible for a malformed IPv6 address to get passed into this expression:

{{{#!php
$ip_addr = inet_ntop( inet_pton( $ip_addr ) & inet_pton( $netmask ) );
}}}

The first call to inet_pton() is ''sometimes'' returning false for one of my admins, causing their access to the wp-admin/ dashboard to hit a critical error (as it's used by the Community Events widget).  I've also managed to have it happen while roaming with my phone, again spuriously, implying there's some IPv6 format this isn't being sanitized beforehand.  Presently, I think it'd be best to refactor out that call into a variable, and check for false before anding it with the netmask.

A la:
{{{#!php
$ip_addr_num = inet_pton( $ip_addr ); // Fallible call to inet_pton() pulled out to var

if( false === $ip_addr_num ) { // Check var for (un)expected type
  return '::';
}

// Rest of function continues as normal
$ip_addr = inet_ntop( $ip_addr_num & inet_pton( $netmask ) );

if( false === $ip_addr ){
  return '::';
}
}}}

Here's the corresponding error log that lead me to find this bug:
{{{
PHP Fatal error:  Uncaught TypeError: Unsupported operand types: bool & string in /home/public_html/wp-includes/functions.php:8234
Stack trace:
#0 /home/public_html/wp-admin/includes/class-wp-community-events.php(273): wp_privacy_anonymize_ip()
#1 /home/public_html/wp-includes/script-loader.php(2031): WP_Community_Events::get_unsafe_client_ip()
#2 /home/public_html/wp-includes/class-wp-hook.php(324): wp_localize_community_events()
#3 /home/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /home/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /home/public_html/wp-admin/admin-header.php(144): do_action()
#6 /home/public_html/wp-admin/index.php(137): require_once('/home/...')
#7 {main}
  thrown in /home/public_html/wp-includes/functions.php on line 8234
}}}

The hosting server is running PHP8.1, but I suspect any PHP8+ host will trigger the same error.  I never was able to capture the offending IPv6 addresses (not even when it happened to me), the host's logs don't support logging IPv6 addresses in their access logs."	codesdnc	6.8	
Defects Awaiting Review	50423	The expand icon at the bottom of the collapsed admin menu is not easily discoverable.		Administration	normal	defect (bug)	new	2020-06-18T17:03:28Z	2025-06-20T14:12:21Z	"I had a long-standing client who has been using WordPress for years recently complain to me that the admin menu was collapsed on one of their sites.  They told me that they would like it to be expanded like it is on their other site.  

They seemed to think that it was something that I would need to change as a developer or in some advanced setting somewhere.  When I went to tell them how to do it, I realized that the process is less than ideal for these reasons:

1. The expand icon is hidden at the bottom of the menu, so it is really hard/unlikely to discover, especially if you've accidentally collapsed the menu and then scrolled or navigated away.  
2. The expand icon is literally a play button.  It's a right pointing triangle inside a circle.  I might expect this icon to manage a video or audio plugin given the context.  
3. The expand icon blends in with all of the icons representing menu items.  It looks like just another menu item.  It is the exact same size and color.  There is not even a separator between the expand icon and the last item's icon, so the icon is lumped in with whichever menu item's icon is last (see attached screenshot).  

The expand icon does not look like a control for the menu, it looks like another icon in the menu.  And due to its appearance and location, it is not easily discoverable, especially for someone who may have accidentally collapsed the menu months ago during their first tutorial using WordPress.  "	dmatamales		has-patch
Defects Awaiting Review	57772	wpfooter credit hide the plugin activation button		Administration	normal	defect (bug)	assigned	2023-02-20T20:00:19Z	2025-05-28T15:45:11Z	"**Way to reproduce**:
1. Make sure you have 4/5 admin notice
2. Try uploading a plugin manually which is already installed
3. You should notice the Replace and Activate button is not showing because the footer credit 'Thanks for building with WordPress' is above the button. 


**Screenshot**: https://prnt.sc/VnoheFeHj6J7

**Environment**:

WP: Latest v6.1.1
Theme: 2020
OS: Mac OS 13.0.1
Screen Width: 1680 pixels
Screen Height: 1050 pixels"	rafiq91	6.1.1	has-patch
Defects Awaiting Review	63429	URL transliteration functionality to Latin		Administration	normal	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		
Defects Awaiting Review	62856	Changing the author of a post in the author selector is impossible		Administration	normal	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		
Defects Awaiting Review	61783	All post table UI breaks upon adding multiple taxonomies		Administration	normal	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		
Defects Awaiting Review	42486	The Tools screen is blank for users who cannot manage categories or tags		Administration	normal	defect (bug)	assigned	2017-11-09T17:05:12Z	2024-11-29T22:55:30Z	"Since Press This was removed in #41689, the Tools screen is only composed of the Categories and Tags Converter.

For users who can't manage categories or tags (Authors and Contributors), the Tools screen is now completely empty. Subscribers currently don't see the Tools admin menu item.

The Tools admin menu item should be removed if there's nothing to display on it."	johnbillion	4.9	dev-feedback
Defects Awaiting Review	62420	After upgrade to wordpress 6.7 theme CSS is not loading in wordpress admin panel		Administration	major	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	6.7	needs-patch
Defects Awaiting Review	62181	WP Admin b,strong has fixed weight of 600		Administration	minor	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	3.8	
Defects Awaiting Review	62168	MutliSite install Network Admin links incorrect -- not using 'home' & 'siteurl' settings		Administration	normal	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	6.6.2	
Defects Awaiting Review	58488	Improve performance of wp-admin -> Comments		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	61938	Lack of consistency on update types.		Administration	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	61177	WordPress admin menu cannot cater for hundreds of menu items		Administration	normal	defect (bug)	new	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	6.5.3	dev-feedback
Defects Awaiting Review	47292	Heartbeat API cause Apache/PHP to exhaust memory		Administration	critical	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	5.2	needs-patch
Defects Awaiting Review	61479	Warnings when use remove_menu_page() with a non exist page.		Administration	normal	defect (bug)	new	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	6.5.4	has-patch
Defects Awaiting Review	61291	WP-Admin Categories and Post Edit Page Slow Rendering Due to lot of hidden Taxonomies and Authors		Administration	normal	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	6.5.3	
Defects Awaiting Review	42527	"Admin menus: PHP warning ""open_basedir restriction..."" when `_wp_menu_output` is called"		Administration	normal	defect (bug)	new	2017-11-13T10:13:25Z	2024-03-28T09:03:43Z	"When plugins create certain kinds of administration menus, PHP warnings can occur when those menus are rendered. Although it's the plugin that generates the menu, it's the WordPress core code that is responsible for the warnings.

There may be related situations under which PHP warnings may occur during administration menu rendering, but the ones I've observed are, in summary:

  * When the PHP setting `open_basedir` is used.
  * When PHP is running under a Windows operating system.
  * When a plugin generates an administration menu featuring an external URL.

Possible related issues are...

  * ticket:25048 -- file_exists check in menu-header.php causes issue with backend menu on an IIS server

  * ticket:0132 -- PHP Warning at menu-header.php line 118

=== Steps to Reproduce

  1. Preparation:
     (a) Make a website testing area running under a Windows operating system. I tested with Windows 7.
     (b) Have a web server installed. I tested with Apache 2.2.
     (c) Have MySQL installed and prepare necessary user accounts and databases. I used MySQL 5.6.
     (d) Have PHP installed and configured so that the `open_basedir` setting is ''not'' used (the test plugin will do that). I tested with PHP 7.1.5. Ensure PHP error logging is enabled.

  2. Install WordPress 4.8.3.
  3. Create a directory `wp-content/mu-plugins`.
  4. Put the file `test.admin.menu.php` (attached) into that directory.
  5. Log into WordPress as administrator.
  6. Go to the dashboard.
  7. Check that the ""NaNoWriMo"" menu appears.
  8. Click the ""Info"" sub-menu under ""NaNoWriMo"".

=== Expected Behaviour

The ""National Novel Writing Month"" information page should appear in the dashboard. Below the info, there should be only one error message displayed as ""test error, please ignore"".

=== Actual Behaviour

In addition, there is an ""open_basedir"" error message displayed. This message may also appear in the PHP error log.

The above happens when PHP runs under Windows. Under Linux, the behaviour is as expected, with no extra warning messages.

=== Impact

The administrative menus are created correctly and behave as expected, however, there are PHP warning messages generated when those menus are rendered by `wp_menu_output()` in `wp-admin/menu-header.php`.

The problem may seem relatively benign, but it could lead to bloated logs. It may also indicate more serious underlying issues.

=== Analysis

The issue occurs when an administration menu (or sub-menu) with an external URL is created. The WordPress core attempts to make a file system path out of this URL, then checks for its existence. For example:

	`{DOCUMENT_ROOT}/wp-content/plugins/https:/nanowrimo.org`

While this kind of operation may not be inherently dangerous, and does not seem to cause warnings unless the `open_basedir` PHP setting is used, concatenating URLs to file system paths is not an algorithmically correct thing to do."	darkskipper	4.8.3	has-patch
Defects Awaiting Review	60695	Links in the admin-menu are generated incorrectly for mu-plugins		Administration	normal	defect (bug)	new	2024-03-05T15:27:57Z	2024-03-05T16:05:37Z	"The function _wp_menu_output in wp-admin/menu-header.php checks if a file exists in the WordPress plugin directory. But it never checks if the file exists in the mu-plugins directory.

The result of this is that some plugins behave in an unexpected way when moved to mu-plugins. Especially their admin-menus stop working. One example of such a plugin is WPML.

E.g. lines 165-175:
{{{#!php
<?php
if (
  !empty($menu_hook)
  || (('index.php' !== $submenu_items[0][2])
    && file_exists(WP_PLUGIN_DIR . ""/$menu_file"")
    && !file_exists(ABSPATH . ""/wp-admin/$menu_file""))
) {
  $admin_is_parent = true;
  echo ""<a href='admin.php?page={$submenu_items[0][2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style aria-hidden='true'>$img</div><div class='wp-menu-name'>$title</div></a>"";
} else {
  echo ""\n\t<a href='{$submenu_items[0][2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style aria-hidden='true'>$img</div><div class='wp-menu-name'>$title</div></a>"";
}
}}}

Better would be:
{{{#!php
<?php
if (
  !empty($menu_hook)
  || (('index.php' !== $submenu_items[0][2])
    && (file_exists(WP_PLUGIN_DIR . ""/$menu_file"") || file_exists(WPMU_PLUGIN_DIR . ""/$menu_file""))
    && !file_exists(ABSPATH . ""/wp-admin/$menu_file""))
) {
  $admin_is_parent = true;
  echo ""<a href='admin.php?page={$submenu_items[0][2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style aria-hidden='true'>$img</div><div class='wp-menu-name'>$title</div></a>"";
} else {
  echo ""\n\t<a href='{$submenu_items[0][2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style aria-hidden='true'>$img</div><div class='wp-menu-name'>$title</div></a>"";
}
}}}

Not how the code in the 5th line only checks for WP_PLUGIN_DIR and not for WPMU_PLUGIN_DIR. This happens a few more times in this function.
"	partiellkorrekt		has-patch
Defects Awaiting Review	60684	When expanding menu, on certain menu pages, menu items disappear.		Administration	normal	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		
Defects Awaiting Review	39261	Possible wrong base color for admin SVG-icons		Administration	normal	defect (bug)	new	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	4.7	dev-feedback
Defects Awaiting Review	58909	width problem in the administration interface		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	27747	Inconsistent type default between `submit_button()` and `get_submit_button()`		Administration	normal	defect (bug)	new	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	3.5	dev-feedback
Defects Awaiting Review	50184	Proper margin for inputs in 'Discussion Settings' page mobile/tablet view		Administration	normal	defect (bug)	new	2020-05-16T08:02:57Z	2023-11-07T11:12:03Z	The inputs haven't proper margin, please check the screenshot.	man4toman		needs-patch
Defects Awaiting Review	55501	Multiple loader issue on admin general setting page.		Administration	normal	defect (bug)	new	2022-03-31T13:56:36Z	2023-10-26T20:18:00Z	"When you select a new language from the general settings page and click submit multiple times, multiple loader images are appended.

Step 1: Open settings -> general page
Step 2: Select a new language from the site language option.
Step 3: click the ""Save Changes"" button multiple times."	bhaveshkhadodara	5.9.2	has-patch
Defects Awaiting Review	52919	Dashboard tabs issue on focus		Administration	normal	defect (bug)	new	2021-03-26T09:27:49Z	2023-05-25T19:26:58Z	Dashboard tabs issue on focus, it needs to be the vertical center.	muhammadbux	5.7	has-patch
Defects Awaiting Review	58198	CSS on Login Security page missing		Administration	normal	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	6.2	
Defects Awaiting Review	56384	Error in CSS for form input		Administration	minor	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	6.0	
Defects Awaiting Review	55812	Custom admin columns don't sort string meta_key values when using MariaDB.		Administration	normal	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	6.0	
Defects Awaiting Review	38304	It is not possible to filter posts by category or date on mobile devices		Administration	normal	defect (bug)	new	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	3.8.9	has-patch
Defects Awaiting Review	55742	In Safari Browser, when we click on preview in new tab then it opens a page/post in same tab		Administration	normal	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	5.9.3	
Defects Awaiting Review	55011	appearance  Not showin Menu etc...		Administration	major	defect (bug)	new	2022-01-31T15:52:32Z	2022-01-31T21:46:44Z	"appearance  Not showing Tab Menu etc...
in New Verizon "	jawed3333	5.9	
Defects Awaiting Review	27473	Thickbox width and height parameters are ignored when using TB_iframe		Administration	normal	defect (bug)	new	2014-03-21T18:18:19Z	2021-12-17T21:11:56Z	"I tried to load a thickbox with custom width and height parameters, like the codex says:
?TB_iframe=true&width=450&height=120
anyway regardsless of what values I use, custom with and height values are ignored.
I debugged /wp-includes/js/thickbox/thickbox.js and parameters are read in correctly,
anyway it does not have any effect when setting them for iframe-tag on line 198:

jQuery(""#TB_window"").append(""<div id='TB_title'><div id='TB_ajaxWindowTitle'>""+caption+""</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='""+thickboxL10n.close+""'><div class='tb-close-icon'></div></a></div></div><iframe frameborder='0' hspace='0' src='""+urlNoQuery[0]+""' id='TB_iframeContent' name='TB_iframeContent""+Math.round(Math.random()*1000)+""' onload='tb_showIframe()' style='width:""+(ajaxContentW + 29)+""px;height:""+(ajaxContentH + 17)+""px;' >""+thickboxL10n.noiframes+""</iframe>"");
I tried to add the following code to check if resize is possible:

jQuery(""#TB_window"").css(""width"",""450"");
jQuery(""#TB_window"").css(""height"",""120"");
this failed generally (although it worked when executing the command in the browser console)
"	harmr	3.8	
Defects Awaiting Review	54216	missing base href in wp-admin		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	42833	WordPress forces non-ssl login in described circumstance even though FORCE_SSL_ADMIN is set in wp-config		Administration	normal	defect (bug)	new	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	4.9.1	has-patch
Defects Awaiting Review	42080	get_site_url() does not always return the appropriate protocol		Administration	normal	defect (bug)	new	2017-10-03T22:15:15Z	2021-09-21T05:42:11Z	"Consider this case: a Multisite where the main site is running on https with a Let's Encrypt certificate while a sub-site is set to use http because, for example, it is a sub-domain install and the LE certificate does not support the subdomain wildcard yet or the sub-site is using another domain (mapped without plugin) not included in the certificate.

The FORCE_ADMIN_SSL is ''not'' set because that would cause the browser to panic and throw an ""insecure"" warning when trying to access the sub-site admin.

Both sites work well on both front and admin.

However, there is a problem that is visible in three places:
1. on /wp-admin/my-sites.php ''on the main site'' (on https)
2. on /wp-admin/network/sites.php
3. in the ""My sites"" list in the Admin Bar ''on the main site'' (on https)

On these locations, while the (non-ssl) sub-site's '''Visit''' link URL scheme is showing the correct protocol, the admin '''Dashboard''' link URL scheme is forced to https. This will make a sub-site owner that follows this link, to get caught in the browser panic about insecure connection, which makes him/her then go running to the network admin in fear of his/her site being hacked or being unable to connect at all...

Not a very good promo for WordPress even if there is no real problem.

Now before people start saying things like ""every site should be on https"", there ''are'' reasons for site owners to stick with (or even prefer) http. Let's not go into that discussion.

The cause of this URL scheme mishap, is the is_ssl() in set_url_scheme() that returns true when on the main site (being on https) in spite of the fact that the URL in question might be from a site that is not on https.

To fix this, I see several ways to go. Not sure which is better though...

'''A.''' Adapt function get_site_url() by moving the set_url_scheme() up into the first if statement, effectively disabling scheme treatment when switch_to_blog() is used. This is a simple fix but seems too crude and does not address the admin bar links.

'''B.''' Adapt function set_url_scheme() either '''(1)''' so that it does not use is_ssl() anymore when $scheme is 'admin', and use parse_url( $url, PHP_URL_SCHEME ) when force_ssl_admin is false (so not forcing it to 'http' but just keep the scheme that is set in the site options) or '''(2)''' so that it can accept another $scheme value like 'network-admin' for example, dedicated for these cases, where is_ssl() is not used.

'''C.''' Adapt my-sites.php, network.sites.php and admin-bar.php to approach the retrieval of these URLs differently, not using get_admin_url() and get_home_url() at all.

Any better ideas?  "	RavanH	4.9	has-patch
Defects Awaiting Review	54073	Plugin removes menu items with no submenu page		Administration	minor	defect (bug)	new	2021-09-03T17:36:26Z	2021-09-03T17:36:26Z	"I have a plugin which adds a menu page with the update_plugins capability. There is another plugin I noticed which removes the plugin icon from the menu bar, but the plugin page can still be accessed directly via URL. Instead of the plugin icon, there is only a black void (see image).

Workarounds:
1) When I change the update_plugins capability in the add_menu_page method to activate_plugins, the problem is resolved.
2) If I were to have submenu pages for the plugin, the problem is resolved and the plugin icon is visible as it should be.

To reproduce:
1) add menu page:

{{{#!php
<?php
$settings_page = \add_menu_page(
    'Plugin Page Title',
    'Menu title',
    'update_plugins',
     'menu_slug',
     array( $this, 'callback_fn' ),
     'images/icon.png'
);
}}}


2) Remove update_plugins option from bulk operations select list (from a separate plugin):

{{{#!php
<?php
global $current_user;
$current_user->allcaps['update_plugins'] = 0;
}}}

I have using WP 5.8, PHP 8.0.8, non-multisite install (locally and on prod). I have noticed this happens for other matching capabilities too (`activate_plugins`) for example.
Screenshot: [[Image(https://imgur.com/LlXaxPl)]]

The two conflicting plugins I am using are “Pre Party Browser Hints” (adds submenu page) and “Disable All WordPress Updates (removes update_plugins operation). I suspect this could be an issue with WP core code, because it does not seem like an intentional feature."	samperrow	5.8	
Defects Awaiting Review	53325	Automated Update Failed Notice After Update is Done		Administration	minor	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	5.7.2	needs-patch
Defects Awaiting Review	53036	Require title or content before allowing save of Quick Draft		Administration	normal	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	5.7.1	
Defects Awaiting Review	53035	Copy suggested policy text to clipboard on click success message is not showing		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	52448	wp_scheduled_delete WP-Cron Job Cannot Be Unscheduled		Administration	normal	defect (bug)	new	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	4.9	dev-feedback
Defects Awaiting Review	52344	SVG images overflows UI		Administration	minor	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	5.6	needs-patch
Defects Awaiting Review	47830	Something prevents code edition of the theme through HTML on the theme editor for test automation purposes		Administration	major	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	5.2.2	
Defects Awaiting Review	51597	Add debugging of a single session		Administration	normal	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		
Defects Awaiting Review	51282	Select element does not honor admin color scheme on hover		Administration	minor	defect (bug)	new	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	5.5.1	has-patch
Defects Awaiting Review	49933	Some classes have no specificity on the back end admin area		Administration	normal	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	5.4	
Defects Awaiting Review	43630	HAVING without GROUP BY in /wp-admin/includes/template.php		Administration	normal	defect (bug)	new	2018-03-25T16:09:42Z	2020-04-15T22:39:03Z	"I found in file /wp-admin/includes/template.php, that used HAVING without GROUP BY. It's syntax correct for MySQL

{{{#!php
<?php
614   $sql = ""SELECT DISTINCT meta_key
615	                        FROM $wpdb->postmeta
616	                        WHERE meta_key NOT BETWEEN '_' AND '_z'
617	                        HAVING meta_key NOT LIKE %s
618	                        ORDER BY meta_key
619	                        LIMIT %d"";
}}}

Official MySQL doc say:
''""HAVING is merged with WHERE if you do not use GROUP BY or aggregate functions (COUNT(), MIN(), and so on).
''

But this incorrect for other databases. Such as SQLite say it's wrong, when using WP with it.

Maybe in this case, need replace 'HAVING' on 'AND'? After replace like:

{{{#!php
<?php
SELECT DISTINCT meta_key
FROM $wpdb->postmeta
WHERE meta_key NOT BETWEEN '_' AND '_z'
  AND meta_key NOT LIKE %s
ORDER BY meta_key
LIMIT %d
}}}


It's work!"	vsvlad	4.9.4	has-patch
Defects Awaiting Review	49575	Responsive glitch with expanded side admin menu when moving down to small screen		Administration	normal	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		
Defects Awaiting Review	49259	Improper Cache control		Administration	normal	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	5.1.1	
Defects Awaiting Review	45001	Relocate Admin Alerts to a new Alert Icon		Administration	normal	defect (bug)	new	2018-09-26T21:41:46Z	2020-01-06T17:47:39Z	"This is apart of a bigger project for my staff and I, you can find the context here https://www.theportlandcompany.com/2017/09/10/proposed-improvements-to-the-wordpress-ui/.

Our goal is to clean up the UI with two principles in mind:

- Context Visibility - Only show something when it's in context.
- Add With Purpose - If something, such as padding or margins, don't serve a purpose, don't add them.
- Simplify Number of Actions - If a step can be avoided in a process, avoid it.

This ticket is about Alerts. Like updating WordPress, appear in the main body of the admin pages.

We believe this is a disruptive experience and has many bugs associated with it:
- Some notifications, such as the WordPress Core Update notification, cannot be dismissed. Sometimes authors intend this, other times it's not intentional, but it's always a nuisance because it persists across all pages.
- This requires scrolling on *every* page load, if the alert is persistent across pages. On mobile this can make WP virtually unusable for rapid actions.
- The dismiss button often is broken. *Many* plugins out there don't use it properly or code their own dismiss button because of a few limitations with the current function. Resulting in alerts never disappearing.
- These alerts are disorienting to users who are not developers. Especially when they overrun the page.
- If there is a dismiss button, often times the styling of that is inconsistent. Sometimes it's text that says ""Dismiss"". Sometimes it's a circle icon with an x. Other times it's a literal x. Sometimes it's in the top right. Sometimes it's in the bottom right. Etc...

This behavior is uncommon throughout the web when you compare to GitHub, Amazon, Google anything, MacOS, etc...

We propose:
 - Introducing an alert icon in the upper right of the admin bar.
 - When an alert is registered it introduces a badge count. Could be AJAX / jQuery Hearbeat, etc...
 - When hovered or selected you see the alerts in a menu that shifts the page body from right to left (just like MacOS notification center).
 - From there each item has a dismiss icon. When clicked it is *permanently* dismissed (another topic, many Plugins don't respect this for various reasons).
 - The dismiss icon is always a circle x icon right aligned and vertically centered.
 - Clicking on the alert could take the user to a new page that is contextual to the Plugin that is displaying it where they can read more information or take action.


This would result in a cleaner UI, less scrolling - especially on mobile - less distraction that can and does cause confusion for some users, but maintains full functionality.

Optionally we could implement growl-like notifications that hang for a moment when a new alert is registered. No dismiss buttons on those, rather they fade out automatically so Plugin authors don't use them to cause the same problem somewhere new.

We'd be happy to do some design mockups and code a feature as Plugin if the leadership is interested in accepting this."	s3w47m88		dev-feedback
Defects Awaiting Review	47788	send_headers hook does not work in wp-login or wp-admin		Administration	normal	defect (bug)	new	2019-07-28T10:18:17Z	2019-10-20T11:56:12Z	"Assume that I want to start using CSP (Content Security Policy) on my website. I add this to my theme's functions.php:

{{{#!php
<?php
add_action('send_headers', 'set_CSP_header');

function set_CSP_header() {
 $CSP = ""Content-Security-Policy: default-src 'self';"";
 header($CSP);
}
}}}

You would assume that this would add the CSP everywhere on the website, but that is not so. This does NOT add the CSP header to wp-login or wp-admin. Instead website admins have to use the 'login_init' and 'admin_init' hooks in addition to 'send_headers', to get CSP everywhere on the website.

This is unintuitive and seems like a bug to me."	kysymysteke	5.2.2	dev-feedback
Defects Awaiting Review	48187	Missing admin color scheme causes incorrect body class		Administration	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	48048	Parent pages are not visible in the Page Attributes metabox		Administration	normal	defect (bug)	new	2019-09-16T08:46:42Z	2019-09-16T08:46:42Z	"This appears to have only started happening regularly after I had already set a few pages to have parents. Eventually, the behaviour was consistent.

In this metabox there should be a page called **MOVAX Manipulator**, but as you can see there is not. (metabox.gif attached)

But, the page **is** visible and can be selected when in quick edit mode (quick-edit.gif attached).

I was able to replicate this on a fresh instance of WordPress using Twenty Nineteen theme and no plugins activated.

As I am able to work around this issue by using the quick edit option, I'm labelling this issue as normal severity."	mikeyott	5.2.3	needs-patch
Defects Awaiting Review	47517	Left Navigation Disappeared		Administration	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	46364	update.php coding standards:trigger_error() function		Administration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	46250	smaller fonts for page navigation in admin in 5.1		Administration	normal	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		
Defects Awaiting Review	43098	Defining WP_UNINSTALL_PLUGIN also when the uninstall handler is registered via register_uninstall_hook()		Administration	normal	defect (bug)	new	2018-01-16T14:18:36Z	2019-01-17T01:26:20Z	"At the moment, there's no way to ""know"" that the context execution is uninstallation until the uninstall hook is executed:
{{{
do_action( ""uninstall_{$file}"" );
}}}

I'd like to move the definition of `WP_UNINSTALL_PLUGIN` to be set for both uninstall handlers (the `uninstall.php` and the `register_uninstall_hook()` hook).

The fix is super simple, just moving `define('WP_UNINSTALL_PLUGIN', $file);` in `/wp-admin/includes/plugin.php` outside the `if` statement.

It's needed when a plugin need to execute some code prior to the `register_uninstall_hook()` execution that is later used within the callback.

I couldn't think of any intentional reason why it shouldn't be defined for both uninstallation methods."	svovaf		
Defects Awaiting Review	43723	Sanitize user_contactmethods output		Administration	normal	defect (bug)	new	2018-04-09T14:12:16Z	2019-01-17T01:14:01Z	"Data supplied in an array to the user-edit.php page via the filter 'user_contactmethods' is not properly escaped when it is outputted. 

As you can see in [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/user-edit.php#L527 user-edit.php] the values of the $name and $desc variables are directly echoed using echo. 

I'd expect it to use the WordPress Core [https://developer.wordpress.org/reference/functions/esc_attr/ esc_attr()] as the data is used part of an html tag's attribute and therefor should be limited to what is allowed inside an html attribute. "	BjornW		dev-feedback
Defects Awaiting Review	45013	Wrong links when installing in subdirectory =		Administration	normal	defect (bug)	new	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	4.9.8	has-patch
Defects Awaiting Review	43844	PHP list language construct changed behaviour in PHP 7	SergeyBiryukov	Administration	major	defect (bug)	reviewing	2018-04-24T12:50:14Z	2018-08-12T23:04:13Z	"The inline docs for the method as of 24th April, 2018:

{{{#!php
	/**
	 * Get a list of sortable columns. The format is:
	 * 'internal-name' => 'orderby'
	 * or
	 * 'internal-name' => array( 'orderby', true )
	 *
	 * The second format will make the initial sorting order be descending
	 *
	 * @since 3.1.0
	 *
	 * @return array
	 */
	protected function get_sortable_columns() {
		return array();
	}
}}}

See https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-list-table.php

The problem is that if I define the sortable columns as the first one, with

{{{#!php
class My_List_Table extends WP_List_Table {
    
    protected function get_sortable_columns() {
        return array(
            'my-column' => 'my-column',
        );
    }
}
}}}

Then the `list` call when building the table list header / footer will not have the `orderby` variable defined. See https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-list-table.php#L1117

If however I use

{{{#!php
class My_List_Table extends WP_List_Table {
    
    protected function get_sortable_columns() {
        return array(
            'my-column' => array( 'my-column' ),
        );
    }
}
}}}

everything works as expected.

Diff incoming shortly."	javorszky		dev-feedback
Defects Awaiting Review	29030	Screen Options Poor Update/Rendering Causes Many things to Break		Administration	normal	defect (bug)	new	2014-07-26T01:21:46Z	2018-08-08T19:15:02Z	"Screen options dont work properly in many different situations. I noticed the first issue when trying to create a sticky header plugin for the wp_list_table. When scrolling down the page the headers stick to the top by cloning the header with javascript and hiding the other original at the same time. However, If screen options are updated the tables break completly even after the plugin is disabled. Wordpress checks the current table headers to determine which ones are hidden and should be added to the `manageedit-{$post_type}columnshidden` field in the `user_meta` table. So since the cloned table header the plugin created is hidden visually while scrolling up, wordpress thinks that all columns aredisabled and adds all the columns to `manageedit-{$post_type}columnshidden`. 


[[Image(http://i.stack.imgur.com/wrYin.png)]]

This is poor practice because it doesn't seperate presentation well enough from the logic used to render screen options. Any user who has access to `wp-admin/edit.php`can completly break their tables if any html/css visually hides the `<thead>` or a column-header perhaps by a plugin, or maybe the browser doesn't load a certain script, or perhaps they are just messing with the dev-tools. Beginers that don't know how to properly [remove columns][5], could run into this issue if they ever try to use css instead. `manageedit-{$post_type}column` should not rely on the visibility of <thead> and only the actual checked input fields. Also `cb` and `title` should not be allowed to be added to the `manageedit-{$post_type}column`. They should only be able to be removed with `unset`.


----------


**To recreate this issue:** 

 1. open up firebug/chrome dev tools/etc. on http://www.example.com/wp-admin/edit.php
 2. add  `thead {display: none;}` to the style editor
 3. On the page screen options uncheck at least one column ( this is to ensure `manageedit-{$post_type}columnshidden` is a database field for the current user and if not it creates it )
 4. Hit apply to refresh the page

*The tables will now be broken....*


----------


To chck the columns I used the `get_user_meta();` function to print the array of `hiddencolumns` on each post types `edit.php` admin screen notices:


{{{
    <?php
    function get_current_post_type() {
            global $post, $typenow, $current_screen;
            if ($post && $post->post_type)
                return $post->post_type;
             elseif ($typenow)
                return $typenow;
             elseif ($current_screen && $current_screen->post_type)
                return $current_screen->post_type;
             elseif (isset($_REQUEST['post_type']))
                return sanitize_key($_REQUEST['post_type']);
            return null;
    }
    
    function get_current_user_manageedit_pagecolumnshidden() {
    	$current_ptype = get_current_post_type();
    	$user_id = get_current_user_id();
    	$key = 'manageedit-'.$current_ptype.'columnshidden';
    	$single = true;
    	if(get_user_meta($user_id, $key, $single))
    		return get_user_meta($user_id, $key, $single);
    }

     function echo_current_user_manageedit_pagecolumnshidden() {
        	global $pagenow;
        	if ( $pagenow !== 'edit.php' )
        		return;
        	$columnshidden= get_current_user_manageedit_pagecolumnshidden();
        	echo '<pre>'; print_r( $columnshidden ); echo '</pre>';
        }
        add_action('all_admin_notices', 'echo_current_user_manageedit_pagecolumnshidden');

}}}

    
**Output for the broken tables :**


{{{
    Array
    (
        [0] => cb
        [1] => title
        [2] => 
        [3] => 
    )

}}}


----------


After determining that `cb` & `title` were in fact added to the `$meta_value`you need to fix the table. This will do the trick:

 
{{{
   function delete_current_user_manageedit_pagecolumnshidden() {
    	$user_id = get_current_user_id();
    	$meta_key = 'manageedit-pagecolumnshidden';
    	if( get_user_meta($user_id, $meta_key) )
    		delete_user_meta( $user_id, $meta_key );
    }
    add_action ('admin_init', 'delete_current_user_manageedit_pagecolumnshidden');

}}}




''Side-Notes:''
*`columnshidden` appears [`wp_ajax_hidden_columns()`][1] & [`get_hidden_columns()`][2]
*client-side functionality  appears to be here in [`common.js`][3] which checks for the [hidden table headers][4] 


----------


Similar issues with the screen options can be recreated for different situations that have nothing to do with the tables. 

**Recreate similar issue on nav-menus.php**

 1. Go to http://example.com/wp-admin/nav-menus.php
 2. Uncheck all the fields in the *""Show advanced menu properties""*     Screen-Options tab
 3. Add the screen options filter to hide them from display: `add_filter('screen_options_show_screen', 'remove_screen_options_tab');`
 4. Reload http://example.com/wp-admin/nav-menus.php


All of the hidden advanced menu properties will now be broken and are all visible even though they were unchecked. I'm not sure if this is the same issue, but it appears that overall screen options have a high change of not working properly


----------


----------


**Other-Notes**
These issues of broken tables might also have to do with the same functionality problem of how screen options update/render:


http://wordpress.stackexchange.com/questions/31154/wp-list-table-custom-quick-edit-box-post-meta-data-missing-and-columns-change

http://wordpress.stackexchange.com/questions/123182/custom-admin-column-disappearing-when-using-quick-edit?lq=1

http://wordpress.stackexchange.com/questions/144361/wordpress-admin-wp-table-list-show-incorrectly

#21016




  [1]: https://github.com/WordPress/WordPress/blob/448275cce483138f53ccfa586b2d28b7fe8b0785/wp-admin/includes/screen.php#L55
  [2]: https://github.com/WordPress/WordPress/blob/270a57075c290736387b6551670fde34fb3f1851/wp-admin/includes/ajax-actions.php#L1307
  [3]: https://github.com/WordPress/WordPress/blob/448275cce483138f53ccfa586b2d28b7fe8b0785/wp-admin/js/common.js#L29
  [4]: https://github.com/WordPress/WordPress/blob/448275cce483138f53ccfa586b2d28b7fe8b0785/wp-admin/includes/screen.php#L17
  [5]: http://codex.wordpress.org/Plugin_API/Filter_Reference/manage_$post_type_posts_columns"	codecandid	3.9.1	dev-feedback
Enhancements Awaiting Review	65237	Tests: Add unit tests for wp_ajax_fetch_list()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66606	Tests: Add unit tests for attachment_submit_meta_box() and post_custom_meta_box()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66605	Tests: Add unit tests for register_and_do_post_meta_boxes() and the featured image and metadata meta boxes		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66604	Tests: Add unit tests for the small meta boxes of the post editing screen		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65136	Unit Tests: Add tests for extract_from_markers() and stop empty values being returned		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65236	Tests: Add unit tests for wp_ajax_nopriv_heartbeat()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65185	Tests: Add unit tests for wp_color_scheme_settings()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65176	Tests: Add unit tests for wp_make_plugin_file_tree(		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65172	Tests: Add unit tests for iis7_add_rewrite_rule()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65843	Expand the Tools screen with Import, Export, and Code Editing cards & adding a message when there are no tools to display		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	51884	Events Widget: There isn't a UI for clearing the selected city		Administration	normal	enhancement	new	2020-11-27T15:48:17Z	2026-10-20T15:06:22Z	"If someone has manually selected a city in the Events Widget, there isn't an obvious way for them to clear that selection through the UI. They can manually change it to another city, but they can't go back to where the city would be automatically determined by IP geolocation.


----

''Side note: One workaround is to enter an invalid city, like `narnia`, and then refresh the page.''"	iandunn	6.2.2	
Enhancements Awaiting Review	40686	CSS: introduce naming and usage conventions for JS targeting		Administration	normal	enhancement	new	2017-05-07T13:34:50Z	2026-10-09T14:25:12Z	"As part of the broader goal of the [https://make.wordpress.org/core/2014/12/19/core-css-roadmap/ CSS roadmap], it would be great to start introducing CSS classes naming and usage conventions for JS targeting.

This need clearly emerged during the ongoing exploration to revamp the Settings API, and woud benefit all the codebase. Work on the Settings API is happening on GitHub and [https://github.com/wpaccessibility/settings-api-enhanced/issues/11 there's an open issue for this].

Quoting from the doc @helen prepared to share some thoughts (the doc is available on the GitHub issue):
> Reusing styling class names is fragile and obscures intent when doing long-term maintenance.

Personally, I can only add that I can't count the number of times when touching some CSS class or ID forced me to check all the codebase to make sure they weren't used also for JavaScript related purposes :)
"	afercia		
Enhancements Awaiting Review	55541	Update the styling for invalid form fields		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66026	User Profile: Add option for custom admin color scheme	aduth	Administration	normal	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		
Enhancements Awaiting Review	65776	Support structured color options for wp_admin_css_color	aduth	Administration	normal	enhancement	assigned	2026-07-31T17:25:23Z	2026-10-05T13:36:25Z	"Related Gutenberg issue: https://github.com/WordPress/gutenberg/issues/80766

**Request:** [https://developer.wordpress.org/reference/functions/wp_admin_css_color/ `wp_admin_css_color`] should accept options for structured color values that can be used by WordPress itself to apply a color scheme without need for stylesheet overrides, and these options should be exposed on the user REST API endpoint when the associated color scheme is selected.

**Background:**

In its current state, `wp_admin_css_color` is largely concerned with providing a stylesheet be loaded associated with a color scheme of a given name. The color scheme itself is applied through the stylesheet targeting specific elements on WordPress pages. While the function accepts an array of `$colors`, those are only used in presenting an option on the user profile page for selecting the color scheme itself, and have no other purpose. They are an unordered, non-semantic set of colors that should not be inferred to carry any meaning in how they should apply to different elements of the admin experience.

WordPress 7.1 will include an [https://make.wordpress.org/core/2026/07/31/design-system-theming-in-wordpress-7-1/ initial theming implementation], including a new ThemeProvider component that accepts `primary` and `background` theme colors. In WordPress, this is already used to [https://github.com/WordPress/gutenberg/pull/78397 apply the user's color scheme to the Site Editor]. But since these seed values can only be known ahead of time for the default WordPress color schemes, it does not support custom color schemes registered through `wp_admin_css_color`.

**Technical Notes:**

I included a [https://github.com/WordPress/gutenberg/issues/80766#issuecomment-5105493067 comment on the associated Gutenberg GitHub issue] which describes how I think this could be implemented:

In my mind, we could overload `wp_admin_css_color` so it could be called like this:


{{{#!php
wp_admin_css_color( 'ectoplasm', __( 'Ectoplasm' ), [
  'primary' => '#646c3e',
  'background' => '#4f386e',
] );
}}}

`$args` as an array third argument helps support optionality of arguments and future growth. Relatively straight-forward to overload with backwards-compatibility by checking the whether the third argument is a string or array.

Current `$colors` and `$icon` arguments could be inferred from primary/background, or optionally provided explicitly with `'colors'` and `'icon'` to override. Same with `$url` being an optional argument `'url'`.

Since we'd be applying theme colors dynamically to some parts of the admin, a plugin author may not care to provide their own stylesheet and `$url` is optional."	aduth		
Enhancements Awaiting Review	66231	Reconcile styles of data tables (WP_List_Table, DataViews)		Administration	normal	enhancement	assigned	2026-10-02T16:00:38Z	2026-10-02T16:02:45Z	"Currently, the WordPress admin has two different ways of displaying tables of data: PHP-based screens like the ""Posts"" like use [https://developer.wordpress.org/reference/classes/wp_list_table/ WP_List_Table], while React-based screens like the site editor (""Appearance"" > ""Editor"") use [https://developer.wordpress.org/block-editor/reference-guides/packages/packages-dataviews/ DataViews].

**Problem:** As can be seen in the attached screenshots that follow, there are a number of different stylistic differences between WP_List_Table and DataViews:

- Column heading casing (sentence case in WP_List_Table, all-caps in DataViews)
- Column sort button using different icons
- Row column background (alternating white/gray in WP_List_Table, non-alternating in DataViews)
- Border styling (no borders between rows in WP_List_Table, borders in DataViews)
- Table headings placement (both at top and bottom in WP_List_Table, only at top in DataViews)
- ...and more

As part of the effort to adopt a uniform [https://wordpress.github.io/gutenberg/?path=/docs/design-system-introduction--docs design system] across the WordPress admin, these differences are problematic:

- From a user's perspective, the difference is noticeable, and they don't feel like they're part of the same product. Learning to use one style of presentation doesn't extend to the other.
- From a contributor's perspective, maintaining two different styles of tables requires duplicated styles, and it's unclear what is the singular intended appearance of tables in the admin.

**Expected outcome:** Align on a unified style for tables, working through differences like those listed above to come to a common approach, and implement it."	aduth		
Enhancements Awaiting Review	65996	Show all non-core submenu entries after a divider		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65926	Admin Color Scheme colors too dark from previous WP version		Administration	normal	feature request	new	2026-08-20T23:30:36Z	2026-08-26T10:09:40Z	"Hello,

I just updated to WP 7.1 and notice that the Admin color scheme bars contain much darker values (i.e. Ocean palette) and it feels quite harsh on the eyes. Is there any way that a future WP update will address this and soften the palette to earlier versions?"	arianec	7.1	
Enhancements Awaiting Review	64602	Document WP_List_Table behavior change in WordPress 6.9 - bottom tablenav skipped when empty		Administration	normal	enhancement	new	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		needs-docs
Enhancements Awaiting Review	58255	wp_send_json_error should respect error state passed in WP_Error.		Administration	normal	enhancement	new	2023-05-04T11:00:43Z	2026-08-21T08:00:13Z	WP_Error objects support setting the error state. This is used heavily in the REST API. The function `wp_send_json_error` supports error status code and passing WP_Error as an argument. The `wp_send_json_error` function could respect the status code in WP_Error. 	spacedmonkey		has-patch
Enhancements Awaiting Review	39418	"Improve ""Empty Spam"" and ""Empty Trash"" user experience"		Administration	normal	enhancement	new	2016-12-28T18:04:55Z	2026-08-18T08:42:20Z	"Now that plugins are doing more with post types, and dealing with sometimes hundreds of thousands of entries in the posts table, emptying spam and/or trash is starting to feel a little outdated. 

When there is a need to empty many spam or trashed items, it's not uncommon for this page to timeout, or to reload in the browser in such a way that rendering is blocked while the server processes the mass deletion of content.

In my imagination, it would be a nice improvement to fallback to the current behavior for `noscript`, but to leverage the power of javascript being asynchronous to provide some kind of modal window to chug through the process, maybe with a progress bar and some basic error feedback if the empty action fails for any reason."	johnjamesjacoby	2.5	ui/ux
Enhancements Awaiting Review	49637	Create a report outline for CSS audit		Administration	normal	enhancement	new	2020-03-12T21:00:35Z	2026-08-06T19:30:26Z	"This ticket is under the umbrella CSS audit ticket #49582, and is for creating a report outline for the audit.

The work to create a report outline consists of:

* Decision making regarding what the report should contain, 
* Creating follow-up tickets for collecting data to populate the report,
* Creation of a ""Report Outline Document"" or similar, that can be updated with results or changes in requirements as the audit is performed.

The report outline document is essentially a list of what we want to know as a result of the audit. For example:

* Determine method of categorization of existing CSS (e.g. by files, area in admin)
* Category (from above) that contains highest specificity
* List of unique values for each of a list of properties, and number of occurrences
* Locations and total count of `!important`s
* State of CSS comments in each of the categories
* Location of outdated or brute-force layout practices (e.g. floats, positioning and pixel nudging)
* Longest selector
"	notlaura		
Enhancements Awaiting Review	49582	wp-admin CSS audit		Administration	normal	enhancement	new	2020-03-05T01:14:16Z	2026-08-06T19:29:35Z	"This is an umbrella ticket for an audit of the CSS in wp-admin, as discussed in the #core-css chat: [https://make.wordpress.org/core/2020/03/03/css-chat-summary-27th-february/].

The audit should cover the following aspects, for which separate tickets may be created if they don't exist already:

* Identifying where specificity can be reduced;
* Identifying dead code;
* Identifying code specific to browsers no longer supported (existing ticket: #46015);

There is a ticket for auditing the toolbar CSS: #46003.

There is also a ticket for auditing all occurrences of `!important`: #26350, and another one tackling just the `!important`s in `common.css`: #47569."	isabel_brison		
Enhancements Awaiting Review	65744	Switching Help tabs shifts the page content below the panel		Administration	minor	enhancement	new	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	7.1	has-patch
Enhancements Awaiting Review	65338	Inconsistent responsive spacing and padding on multiple WordPress admin screens		Administration	normal	enhancement	new	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	7.0	has-patch
Enhancements Awaiting Review	65369	Connectors API: add OAuth authentication method support		Administration	normal	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		
Enhancements Awaiting Review	24689	Improve error  wp-admin page	chriscct7	Administration	normal	enhancement	reviewing	2013-07-04T19:45:38Z	2026-05-26T13:51:40Z	"""You do not have sufficient permissions to access this page."" this is the only content on the error page, It would be nice to have a link to a Dashboard page if the user is logged.

Maybe we can integrate this error message into a wp-admin dashboard. "	alexvorn2		ui/ux
Enhancements Awaiting Review	65085	Expose admin design tokens (radius, spacing, grayscale, typography) as CSS custom properties via wp-base-styles		Administration	normal	enhancement	new	2026-04-17T08:10:30Z	2026-05-20T05:58:58Z	"== Background ==

WordPress 7.0's admin visual reskin (#64308) introduced a comprehensive design token system in `src/wp-admin/css/_tokens.scss`, covering:

 * '''Border radius:''' `$radius-xs` (1px), `$radius-s` (2px), `$radius-m` (4px), `$radius-l` (8px), `$radius-30` (12px), `$radius-full` (9999px)
 * '''Spacing:''' `$grid-unit-05` through `$grid-unit-60` (4px increments)
 * '''Grayscale:''' `$gray-100` through `$gray-900` (a unified neutral palette)
 * '''Typography:''' `$font-size-xs` through `$font-size-xl`, `$font-weight-regular`, `$font-weight-medium`
 * '''Elevation:''' `$elevation-xs` through `$elevation-l`

These tokens are used internally by core CSS during the Sass build, but the resulting values are not exposed as CSS custom properties at runtime. Plugin authors who want to align with Core's design system therefore have to hardcode the values (e.g. `border-radius: 8px` to match dashboard widgets).

The existing `wp-base-styles` stylesheet handle already exposes admin color scheme tokens this way (`--wp-admin-theme-color`, `--wp-admin-theme-color--rgb`, `--wp-admin-theme-color-darker-10`, `--wp-admin-theme-color-darker-20`, `--wp-admin-border-width-focus`). This proposal extends that pattern to the rest of the token system.

== Problem ==

Plugins and themes that want to follow WP 7.0's modernized visual language currently have three suboptimal choices:

 1. '''Hardcode the values''' — brittle, silently drifts when Core updates the token values
 2. '''Conditionally override with version-gated CSS''' — what WooCommerce currently does; adds maintenance burden
 3. '''Don't align''' — fragments the admin visual experience, which is exactly what #64308 was trying to fix

== Proposal ==

Extend `wp-base-styles` (or introduce a sibling handle) to emit CSS custom properties for the public subset of `_tokens.scss`:

{{{
:root {
    /* Border radius */
    --wp-admin-radius-xs: 1px;
    --wp-admin-radius-s: 2px;
    --wp-admin-radius-m: 4px;
    --wp-admin-radius-l: 8px;
    --wp-admin-radius-30: 12px;
    --wp-admin-radius-full: 9999px;

    /* Grid units */
    --wp-admin-grid-unit-05: 4px;
    --wp-admin-grid-unit-10: 8px;
    --wp-admin-grid-unit-15: 12px;
    --wp-admin-grid-unit-20: 16px;
    --wp-admin-grid-unit-30: 24px;
    --wp-admin-grid-unit-40: 32px;
    --wp-admin-grid-unit-50: 40px;
    --wp-admin-grid-unit-60: 48px;

    /* Grayscale */
    --wp-admin-gray-100: #f0f0f0;
    --wp-admin-gray-200: #e0e0e0;
    --wp-admin-gray-300: #dddddd;
    --wp-admin-gray-400: #cccccc;
    --wp-admin-gray-600: #949494;
    --wp-admin-gray-700: #757575;
    --wp-admin-gray-900: #1e1e1e;

    /* Typography */
    --wp-admin-font-size-xs: 11px;
    --wp-admin-font-size-s: 12px;
    --wp-admin-font-size-m: 13px;
    --wp-admin-font-size-l: 15px;
    --wp-admin-font-size-xl: 20px;
    --wp-admin-font-weight-regular: 400;
    --wp-admin-font-weight-medium: 500;
}
}}}

Naming follows the existing `--wp-admin-[thing]` convention already established for `--wp-admin-theme-color`, `--wp-admin-border-width-focus`, etc.

== Benefits ==

 * '''Plugins align automatically''' — When Core updates a token value (as happened with the reskin itself), anything depending on these custom properties updates with it. No plugin PR required.
 * '''Consistent admin visual experience''' — Fragmented admin styling is a merchant pain point. This unlocks plugin-side alignment without duplicating Core values.
 * '''Extends an existing pattern''' — No new architecture; just the next step of the work #64308 already started with color tokens.
 * '''Low risk''' — CSS-only change, additive, no functional impact. Existing styles unchanged.

== Implementation notes ==

The `wp-base-styles` handle is already loaded on admin pages (from #64308's sub-tickets). This change would extend that stylesheet's contents to include the additional custom properties listed above, likely sourced from the same `_tokens.scss` during the Sass build.

An optional follow-up could also migrate existing hardcoded token usage inside Core admin CSS to reference these custom properties, but that's not required for this ticket — exposing the values is sufficient to unlock plugin alignment.

== Prior art ==

 * #52623 — ""Proposal: Add CSS variable for admin-bar height to core"" — same pattern: expose an existing value as a CSS custom property for plugin/theme use.
 * [https://make.wordpress.org/core/2021/01/29/introducing-css-custom-properties/ Introducing CSS Custom Properties to the WordPress Admin (Make Core, 2021)] — the original project that gave us `--wp-admin-theme-color`.
 * #64308 — the WP 7.0 admin reskin that introduced the token system this proposal would expose.

== Alternatives considered ==

Core could instead publish admin tokens via an NPM package similar to @wordpress/base-styles. That approach works well for plugins with modern build pipelines, but doesn't help plugins without one, and can't respond to runtime preferences like the user's admin color scheme. A CSS custom property approach (like the existing `--wp-admin-theme-color`) complements the NPM package route rather than replacing it.

== Related ==

I've been doing plugin-side alignment work for WooCommerce (see [https://github.com/woocommerce/woocommerce/pull/64196 woocommerce/woocommerce#64196] for a recent example) and ran into this friction directly. To be clear, I'm not waiting on this to ship the plugin-side work — WooCommerce is already adopting the existing `--wp-admin-theme-color` pattern with hardcoded fallbacks where Core tokens aren't exposed. This ticket is about making the next round of that work more systemic."	jillq		
Enhancements Awaiting Review	65142	Round editor `.postbox` containers to match WP 7.0 dashboard widgets		Administration	normal	enhancement	new	2026-04-28T15:09:19Z	2026-05-20T05:56:18Z	"== Background ==

WordPress 7.0's admin visual reskin (#64308) introduced an 8px {{{border-radius}}} ({{{$radius-l}}}) on dashboard widgets via {{{#dashboard-widgets .postbox}}} (see #64549). This modernized the dashboard's appearance alongside the rest of the 7.0 reskin — the new Modern color scheme as default, taller form elements, 2px radii on buttons and inputs, and so on.

However, the same {{{.postbox}}} class is used extensively outside the dashboard: editor screens for Posts, Pages, Media, Users, custom post types, plus every plugin that adds meta boxes (WooCommerce, Yoast, Jetpack, ACF, etc.). These retained their square corners.

The result is a split-personality admin:

 * '''Dashboard:''' rounded, modern-feeling
 * '''Every editor screen, including Edit Media:''' square, dated-feeling

This is especially visible for plugin authors: a plugin-added meta box on an edit screen looks markedly different from a core dashboard widget, even though both use {{{.postbox}}}.

== Problem ==

Plugins and themes that want to align with WP 7.0's modernized visual language currently have three suboptimal choices when it comes to meta boxes:

 1. '''Hardcode the values in plugin CSS''' — brittle, silently drifts when Core updates the token values, and creates visible inconsistency with neighbouring Core screens.
 2. '''Scope the override to plugin-owned screens only''' — fixes the plugin's screens but ''widens'' the inconsistency (plugin-screen meta boxes look different from core-screen meta boxes using the same class).
 3. '''Don't align''' — fragments the admin visual experience.

== Proposal ==

Round editor {{{.postbox}}} containers to 8px, matching the dashboard widget pattern already shipped in 7.0. In {{{src/wp-admin/css/common.css}}}:

{{{
#!css
.postbox {
    border-radius: $radius-l; /* 8px — matches #dashboard-widgets .postbox */
    overflow: hidden; /* clip internal full-width elements (tab sidebars, action bars) */
}
}}}

Sites that already rely on the token system introduced in {{{_tokens.scss}}} can reference {{{$radius-l}}} directly. Plugins like WooCommerce can then remove their scoped bridge styles.

== Scope considerations ==

 * Some {{{.postbox}}} instances contain full-width children (tab sidebars in WP-admin like the product data panel, the {{{#major-publishing-actions}}} action bar at the bottom of the publish meta box) that extend to the container edge. Adding {{{overflow: hidden}}} to {{{.postbox}}} clips these cleanly to the rounded corners. This pattern was verified in production via [https://github.com/woocommerce/woocommerce/pull/64191 woocommerce/woocommerce#64191] (merged commit [https://github.com/woocommerce/woocommerce/commit/19868f14bfc659213cb6bedd7e1f37b139a84841 19868f1]).
 * Inner collapsible panels (e.g. WooCommerce's attributes/variations panels using {{{.wc-metabox.postbox}}}) should remain square. Plugins handle this on their side since it's plugin-specific markup.
 * The historical #17284 ({{{#major-publishing-actions}}} missing {{{border-radius}}}, from 2011) and #18657 ({{{.postbox .hndle}}} in backend needs {{{border-radius}}}, also from 2011) flagged related clipping issues back when admin postboxes had a 3px radius. The {{{overflow: hidden}}} approach proposed here resolves that whole class of problem in one place.

== Benefits ==

 * '''Consistency''' — one visual language across dashboard and editor screens.
 * '''Plugins align for free''' — no scoped overrides, no drift when Core updates the token.
 * '''Low risk''' — CSS-only, additive, extends a pattern already shipped in 7.0.
 * '''Reduces plugin-side maintenance''' — WooCommerce, Yoast, and any other plugin shipping scoped fixes can remove them.

== Prior art ==

 * #64308 — WP 7.0 admin reskin (introduced the radius on dashboard widgets).
 * #64549 — Card and container styles, which added the 8px radius to dashboard widgets specifically.
 * #65085 — proposal to expose admin design tokens as CSS custom properties. If both land, the bridge-style CSS in plugin codebases becomes unnecessary.
 * #17284, #18657 — older tickets that surfaced clipping behaviour at the postbox edge.

== Related ==

WooCommerce shipped [https://github.com/woocommerce/woocommerce/pull/64191 woocommerce/woocommerce#64191] (merged April 27, 2026 — commit [https://github.com/woocommerce/woocommerce/commit/19868f14bfc659213cb6bedd7e1f37b139a84841 19868f1]) as a scoped bridge — it rounds meta boxes on WooCommerce-owned editor screens only ({{{post-type-product}}}, {{{post-type-shop_order}}}, {{{post-type-shop_coupon}}}, {{{woocommerce_page_wc-orders}}}), with a {{{TODO}}} comment tying back to this ticket. If this lands, that bridge CSS can be removed in its entirety, and editor meta boxes will be visually consistent across core and every plugin.
"	jillq		has-patch
Enhancements Awaiting Review	65174	Add unit tests for update_recently_edited()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65243	Test: Add unit tests for wp_ajax_rest_nonce()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65225	tests: Add unit tests for wp_ajax_date_format()		Administration	normal	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		
Enhancements Awaiting Review	65181	Tests: Add unit tests for show_message()		Administration	normal	enhancement	new	2026-05-06T19:26:06Z	2026-05-12T14:03:16Z	This ticket adds unit tests for the show_message() function in wp-admin/includes/misc.php. This function is responsible for displaying administration messages and handling WP_Error objects.	pbearne		dev-feedback
Enhancements Awaiting Review	65201	Tests: Add unit tests for heartbeat_autosave()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65198	Tests: Add unit tests for wp_refresh_metabox_loader_nonces()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65197	Tests: Add unit tests for wp_refresh_post_nonces()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65196	Tests: Add unit tests for wp_refresh_post_lock()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65195	Tests: Add unit tests for wp_check_locked_posts()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65137	Unit Tests: Add tests for insert_with_markers()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65146	Unit Tests: Add tests for save_mod_rewrite_rules()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65170	Add unit tests for iis7_delete_rewrite_rule()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65173	Add unit tests for saveDomDocument()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65178	Tests: Add unit tests for wp_print_theme_file_tree()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65179	Tests: Add unit tests for wp_print_plugin_file_tree()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65194	Tests: Add unit tests for update_home_siteurl()		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65070	Move inline JS from admin_head hooks in options screens into options.js		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	62854	Filter custom post types,terms in the admin area		Administration	normal	feature request	new	2025-01-24T08:32:57Z	2026-03-11T12:52:46Z	"Would it be possible to filter post types and taxonomy terms from the back office? 

This would be a native use of the functionality added by this plugin: 
https://wordpress.org/plugins/admin-taxonomy-filter/
"	dhenriet		has-patch
Enhancements Awaiting Review	38238	Sorting a list table by some kind of count should default to DESC initially	helen	Administration	normal	enhancement	reviewing	2016-10-05T21:32:01Z	2026-03-03T16:37:11Z	"List tables that can be sorted by some kind of count (posts with that term, comments on that post, etc.) should likely use `DESC` for that sort initially, as more frequent user workflows involve wanting to see things with many X (popularity/usage), as opposed to items with no X (cleanup). For example, you may want to see which categories are most popular (related: #36964) or which posts have generated a lot of comments.

Should also consider how sortable custom columns indicate whether to use `ASC` or `DESC` initially."	helen		has-patch
Enhancements Awaiting Review	64641	Admin Reskin: Add framed layout to wp-admin with scrollable content area		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	57931	Add Border Radius to WP Dashboard Post Boxes		Administration	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	64601	Document WP_List_Table behavior change in WordPress 6.9 - bottom tablenav skipped when empty		Administration	normal	enhancement	closed	2026-02-05T13:12:29Z	2026-02-05T13:22:26Z	"= 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 table has no items (`has_items()` returns false). If you need to display content when the list is empty, hook for `$which === 'top'` instead, or use an alternative hook such as `in_admin_header` or `admin_notices`.""

= Workaround for Plugin Developers =

Change the condition from `$which === 'bottom'` to `$which === 'top'`:

{{{
if ( $post_type === 'my_cpt' && $which === 'top' ) {
    // This works in both WP 6.8 and 6.9
}
}}}"	nithi22	6.9	
Enhancements Awaiting Review	64577	Enable recovery mode for multisite		Administration	normal	enhancement	new	2026-01-31T06:54:28Z	2026-02-02T10:48:28Z	"In #48929, the mention of a recovery email was removed for multisite instances.

However, looking at the current state of the code, it seems like there is support for recovery on multisite instances https://github.com/WordPress/wordpress-develop/blob/dc62ecbc345ca1b8d1801eca794d71755b7568f1/src/wp-includes/class-wp-fatal-error-handler.php#L187-L200, but it's just never activated https://github.com/WordPress/wordpress-develop/blob/dc62ecbc345ca1b8d1801eca794d71755b7568f1/src/wp-settings.php#L546-L549

It seems like 

{{{#!php
if ( ! is_multisite() && wp_is_fatal_error_handler_enabled() ) {
	wp_recovery_mode()->initialize();
}}}



could be changed to
{{{#!php
if ( wp_is_fatal_error_handler_enabled() ) {
	wp_recovery_mode()->initialize();
}}}

in `wp-settings.php`"	shtrom		has-patch
Enhancements Awaiting Review	64571	Better Exposing Admin Color Scheme		Administration	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	27888	Feature request: `get_current_admin_url()` and `get_current_admin_hook()`	lucatume	Administration	normal	feature request	assigned	2014-04-18T12:22:45Z	2026-01-18T12:21:23Z	"It would be sweet if to be able to get the current page's url using some kind of API. And its hook, for that matter. For instance:

{{{
    public function get_current_admin_page_url()
    {
        if (!is_admin()) {
            return false;
        }

        global $pagenow;
        global $typenow;
        global $taxnow;
        global $plugin_page;

        $url = $pagenow;
        if (!empty($plugin_page)) {
            $url .= '?page='.$plugin_page;
        }
        elseif (!empty($typenow)) {
            $url .= '?post_type='.$typenow;
        }
        elseif (!empty($taxnow)) {
            $url .= '?taxonomy='.$taxnow;
        }

        return $url;
    }
}}}

And something similar for `get_current_admin_hook()`."	Denis-de-Bernardy	3.9	has-patch
Enhancements Awaiting Review	64443	Show last updated date for locally installed plugins and themes		Administration	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	64378	List Table - Possible UX improvement		Administration	normal	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		
Enhancements Awaiting Review	35315	New action `manage_posts_before_extra_area`		Administration	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	64264	In Post List Table Extended View - place post excerpt in 2nd row spanning all columns		Administration	normal	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		
Enhancements Awaiting Review	64187	Detailed image view in the media admin too large		Administration	normal	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	6.8.3	
Enhancements Awaiting Review	55583	"Hook before and after ""Add New"" button in edit screen"		Administration	normal	enhancement	assigned	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		has-patch
Enhancements Awaiting Review	55306	Before posts/pages listing if there multiple filter drop-downs, view of pagination buttons are not better looking.		Administration	normal	enhancement	new	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	5.9.1	has-patch
Enhancements Awaiting Review	39852	"Change the confusing ""Screen Options"" button text"		Administration	normal	enhancement	new	2017-02-12T08:52:23Z	2025-09-10T11:22:03Z	"From a new users perspective the label ""Screen Options"" doesn't make any sense. Seems technical, it doesn't express anything meaningful. From a general perspective by reading a buttons text it should be clear to users what it does. Besides that the text Screen Options is not that common either.

In my opinion, It would be easier and meaningful if it uses one of these :

'''1. see more'''
'''2. more information'''
'''3. display more'''


'''Google Books Ngram Viewer
'''how many times these terms has been used (from year 1800 to 2000)
[[Image(http://i.imgur.com/QgOeB0e.png)]]

'''Google Trends
'''[[Image(http://i.imgur.com/CA2SHv4.png)]]


Reference:
1. Design Words With Data [https://medium.com/dropbox-design/design-words-with-data-fe3c525994e7#.hv4ce0o2q] 
2. How To Design Words [https://medium.com/@jsaito/how-to-design-words-63d6965051e9#.tfmbqs2ux]"	cryptex_vinci		has-patch
Enhancements Awaiting Review	45864	On list page All(x) count does not consider Trash items. Hence Trash should appear differently		Administration	normal	enhancement	new	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	5.0.2	dev-feedback
Enhancements Awaiting Review	44435	Add Action / Filter in Post Details page for Screen Meta Links		Administration	normal	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		
Enhancements Awaiting Review	60622	Enhancement: add filter to function get_home_path() return value		Administration	normal	enhancement	new	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	6.4.3	dev-feedback
Enhancements Awaiting Review	63715	Ability to upload plugins directly from Plugins Menu		Administration	normal	enhancement	new	2025-07-17T15:59:06Z	2025-07-18T05:28:35Z	The idea is to put another menu entry under 'Plugins' named 'Upload plugin' to get direct access to the upload modal	Presskopp		
Enhancements Awaiting Review	63210	"Feature Request: ""Admin Notifications"" for Enhanced Admin Notification Management"		Administration	normal	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		
Enhancements Awaiting Review	63418	Form fields in mobile view of taxonomy screens use inconsistent width		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	63337	Enhance Widget Spacing for Mobile Dashboard		Administration	normal	enhancement	new	2025-04-23T03:04:06Z	2025-05-19T15:46:12Z	"In the WordPress admin dashboard, widgets are grouped into .postbox-container columns, each containing individual .postbox widgets. Each container has a default margin-bottom: 20px, and each widget also has margin-bottom: 20px, which creates a cumulative 40px gap between containers when they stack vertically.

This layout works well on wider screens, where containers are visually distinct columns. However, on mobile or narrower screens where containers stack, this spacing results in significant vertical gaps, which may not be necessary in that context.

=== Enchancement:

It may be helpful to align the vertical spacing more closely with the single-column layout by slightly reducing or normalizing the margin-bottom on .postbox-container elements in smaller viewports.


A reduction in container spacing on smaller screens could:
	•	Improve perceived consistency and flow between widgets
	•	Reduce unnecessary whitespace
	•	Create a more compact and mobile-friendly dashboard layout

=== Screenshot


[[Image(https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyOoEWPUSgRVfkrM3cxj5whHLEvyNZCb2PpWuod)]]
"	sainathpoojary	5.5	has-patch
Enhancements Awaiting Review	62660	Improve Customizer description in dashboard welcome panel		Administration	normal	enhancement	new	2024-12-06T17:33:00Z	2025-05-12T01:38:45Z	"Not all users know what the Customizer offers. Highlighting its capabilities—like editing logos, headers, colors, menus, and widgets—encourages them to explore and utilize these tools.

File: src/wp-admin/includes/dashboard.php

{{{#!php
<?php

<p><?php _e( 'Configure your site&#8217;s logo, header, color, menus, widgets, and more in the Customizer.' ); ?></p>

}}}
"	Subrata Deb Nath	5.9	has-patch
Enhancements Awaiting Review	62703	Do not allow to leave a comment that contains prohibited keywords		Administration	normal	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		
Enhancements Awaiting Review	63318	Dashboard Menu Item for Messages - The endless plugin messages in the dash is too much		Administration	major	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		
Enhancements Awaiting Review	62549	checked is a boolean attribute		Administration	trivial	enhancement	new	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		has-patch
Enhancements Awaiting Review	44391	Improving the notification badges in admin menu	hedgefield	Administration	normal	enhancement	assigned	2018-06-18T10:24:13Z	2025-01-22T21:49:49Z	"During the WCEU contributor day we received the request from the A11y team to look at the notification badges in the admin menu. Their red color and lack of context was seen as something that could be improved.

So together with Jayman Pandya, Rich Copping, Jasper Cheyney and Vasilis Baimas we looked at different ways to improve this. We first explored ways to add more context with text or expandable rollovers or tooltips, but agreed that this was not good. So we focused on improving the styling itself.

I've attached the design explorations we did below. By moving the badge onto the icon, adding a border and optionally omitting the number (this should be tested), we felt like this would be a nice improvement for the visually impaired, as well as a more calming design layout.

Adrian Roselli took a look and agreed that this would be a good improvement, with his preference also going to design 3 and 4 (with 1 being the current situation).

We will try to make a PR for this if this sounds like a good idea to you all too. Putting the badge on the icon is also a nice step towards the pattern of the notification center proposal: #43484"	hedgefield		needs-patch
Enhancements Awaiting Review	61511	Use empty_trash_days to show how many days deleted posts will be kept for in the trash		Administration	normal	enhancement	new	2024-06-26T13:51:17Z	2024-12-28T05:48:35Z	"By default, posts will be kept in the trash [for 30 days](https://codex.wordpress.org/Trash_status#:~:text=pull%2Ddown%20menu.-,Default%20Days%20before%20Permanently%20Deleted,are%20deleted%20and%20some%20remain) before they are discarded for good.

I have encountered many users who lost content because they did not know about this 30 day limit.

I propose we use the value set in [empty_trash_days](https://codex.wordpress.org/Trash_status) and display it alongside the ""1 post moved to the Trash"" message and/or on the trash section itself.


"	mrfoxtalbot	6.5.5	has-patch
Enhancements Awaiting Review	62700	Permalink settings for pagination		Administration	normal	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		
Enhancements Awaiting Review	62080	Add Ctrl+S / Cmd+S shortcut to save files in Theme and Plugin Editor		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	37445	Allow to adjust the `$in_admin` property of `WP_Screen`		Administration	normal	enhancement	new	2016-07-23T13:57:18Z	2024-10-29T13:46:37Z	"The `$in_admin` property of the `WP_Screen` class is impossible to be changed by a developer at the moment, which makes sense in how WordPress uses it.

However, I'm currently building a plugin that creates an additional administration panel (like network and user admin) and I would need to adjust the `$in_admin` property to reflect when this panel is active. Otherwise a function like `is_blog_admin()` returns true although we actually aren't in the regular admin panel (since the value of `$in_admin` defaults to 'site').

So I'm proposing to either make the property public so that a developer can override it (for example on the `current_screen` action) or to add a new filter for the property specifically in `WP_Screen::get()`. I would prefer the second approach since having the property being protected makes sense in general. The use-case I have is a very rare one, so I think a very specific filter for it should do."	flixos90	3.5	has-patch
Enhancements Awaiting Review	51663	Feature request: :Last Edit Date		Administration	normal	feature request	new	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	5.5.1	has-patch
Enhancements Awaiting Review	62074	Hooks to remove Add New links		Administration	normal	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		
Enhancements Awaiting Review	60974	Admin notice layout improvement		Administration	normal	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		
Enhancements Awaiting Review	42952	Add comments about JS removal of message query_arg		Administration	normal	enhancement	new	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	4.9.1	has-patch
Enhancements Awaiting Review	61819	A possible design flaw in administrative rights		Administration	major	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	6.6.1	
Enhancements Awaiting Review	61702	Post via email: Login Name field triggers Safari's login autocomplete		Administration	normal	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		
Enhancements Awaiting Review	61659	Add New links at the top of some pages become huge on smaller screens		Administration	normal	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		needs-patch
Enhancements Awaiting Review	57785	How about displaying links to rudimentary Learn WordPress tutorials and videos on the dashboard?		Administration	normal	feature request	new	2023-02-22T03:00:22Z	2024-07-07T01:34:01Z	"Recently, a lot of Learn WordPress content has also been gathered from Training Teams and other sources.

However, I feel that the information is not yet well known enough to reach the users who could make use of it (as I feel when I organize local WordPress Meetups).

As an idea, the nearest event information is currently posted on the admin page, but why not provide the same information and links to help new WordPress users understand how to use the site editor and block themes?

Also, if you can provide tutorial videos of Learn WordPress for beginners available in the same language as the language setting, or information about online Learn WordPress Meetup events, etc. by language, it would be more supportive for new users of WordPress. I thought it would be a good way to support users who are new to WordPress."	olein	6.1.1	has-patch
Enhancements Awaiting Review	55944	Few wp-admin files need to exit if directly loaded		Administration	normal	enhancement	new	2022-06-08T00:05:37Z	2024-07-03T12:16:12Z	"Some files in wp-admin don't have a check to see if they're being loaded directly, although some others make sure. 

The files are: 

/wp-admin/network/menu.php
/wp-admin/user/menu.php
/wp-admin/admin-header.php
/wp-admin/menu-header.php
/wp-admin/menu.php
/wp-admin/options-head.php"	superpoincare	6.0	has-patch
Enhancements Awaiting Review	44971	Enable WP_Community_Events to find cached events even if it's instantiated without a user location	pbearne*	Administration	normal	enhancement	accepted	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		has-patch
Enhancements Awaiting Review	61225	"Add a new hook to allow custom buttons next to ""Add new post"" button"	siddiquesaad	Administration	normal	enhancement	assigned	2024-05-15T22:17:16Z	2024-05-15T22:27:59Z	"There's no way to add a personalized button next to the ""Add New <Post Type>"" button on the edit screen in WP-Admin. Sometimes, customization is needed, like adding an ""Import"" button to be programmatically added to a custom post type. It'll immensely help to add a do_action here:

{{{
if ( current_user_can( $post_type_object->cap->create_posts ) ) {
	echo ' <a href=""' . esc_url( admin_url( $post_new_file ) ) . '"" class=""page-title-action"">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
}
}}}

Thanks"	siddiquesaad		has-patch
Enhancements Awaiting Review	61089	Introduce a System to Store, Access, and Permit Use of External API Keys		Administration	normal	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		
Enhancements Awaiting Review	61064	Add filters for list table pagination and column header links		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	27127	Improve plugin search on installed plugins page		Administration	normal	enhancement	new	2014-02-14T17:16:53Z	2024-03-22T14:43:38Z	"If you have lots of plugins installed trying to find one in the installed plugin page is not quick. The search box is quite slow ( requires a page refresh ).

Adding some JavaScript that transforms the current search box into a quickfind box would help solve this problem. 

As the user types a keyword the JavaScript searched across the displayed text for the plugin, only displaying the plugins that contain that keyword."	enej	3.8	
Enhancements Awaiting Review	60785	Bulk editing of posts (and pages) use a GET		Administration	normal	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	6.4.3	
Enhancements Awaiting Review	40223	Allow arrow key navigation in (all?) modals		Administration	normal	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	4.8	
Enhancements Awaiting Review	49483	'Upload file types' Setting field for multisite network settings should be textarea than text input		Administration	normal	enhancement	new	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	5.3.2	has-patch
Enhancements Awaiting Review	55521	Use dashicons-class in `wp_dashboard_quota` and `wp_dashboard_right_now`		Administration	normal	enhancement	new	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	3.8	has-patch
Enhancements Awaiting Review	59994	Add Plugins - ability to search and filter based on criteria like last updated date, average rating		Administration	normal	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		
Enhancements Awaiting Review	58264	Adding spinner to submit_button with wrap		Administration	normal	enhancement	new	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	6.2	dev-feedback
Enhancements Awaiting Review	59491	Create more flexible structure for handling of feeds in admin news widgets		Administration	normal	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		
Enhancements Awaiting Review	59135	Ability to list plugins by activation date/time		Administration	normal	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		
Enhancements Awaiting Review	58842	"Add a ""change date/time notation"" / ""timezone"" checkbox when changing site languages"		Administration	normal	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		
Enhancements Awaiting Review	43303	Providing hooks for html table markups in do_settings_{sections|fields}		Administration	normal	enhancement	new	2018-02-13T00:48:48Z	2023-07-03T12:55:58Z	"I Apologize if this is silly thing but having hooks may enable customization opportunity for opening/closing table markups of '''do_settings_sections''' and likewise with fields. while maintaining table markups by default for core & other Settings API pages.

'''do_settings_sections'''
{{{
echo '<table class=""form-table"">';
do_settings_fields( $page, $section['id'] );
echo '</table>';
}}}

Something like

{{{
do_action( 'do_settings_sections_opening_wrapper_{$page}, 'default_handler' );
}}}
 

"	aranwer104		
Enhancements Awaiting Review	58448	inconsistency in the $items parameter to the handle_bulk_actions-{$screen} action		Administration	normal	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		
Enhancements Awaiting Review	52762	About page widget to Dashboard		Administration	normal	feature request	new	2021-03-10T13:49:05Z	2023-05-31T20:53:57Z	"The obstacle in making people well informed is that most users are not paying attention to the About page, especially if an update was automatically made or someone else is making it for them. Or even if they saw this page, imagine: If I have just updated my site to the latest version, my first priority - to go and check if everything is working and all this useful information including the message about contribution will never catch my attention again, if everything is fine I will go to do what I was about to do before this urge to update. 

The desired solution - to make the Dashboard page each time a bit different and interesting, alternative and more simple solution — a widget to Dashboard with a very small piece about a new version with a call to action to read more."	oglekler		dev-feedback
Enhancements Awaiting Review	58293	Improve default positioning of dashboard widgets		Administration	normal	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		
Enhancements Awaiting Review	58019	Required new Action for post edit screen after Post Submitbox		Administration	normal	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	6.2	
Enhancements Awaiting Review	57925	Unclear message when URL for non-existing admin page is called		Administration	normal	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	4.6	
Enhancements Awaiting Review	57423	we need to check an argument is closure in PclZip		Administration	normal	enhancement	new	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	6.2	has-patch
Enhancements Awaiting Review	57200	WP_List_Table::pagination use singular and plural		Administration	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	56781	"Missing ""Deactivated"" filter at top of ""All Sites"" on multisite installation."		Administration	normal	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		
Enhancements Awaiting Review	48928	Align selects in .form-table's within admin settings with their neighbour inputs for a more uniform feel		Administration	normal	enhancement	new	2019-12-10T18:43:46Z	2022-09-09T08:11:09Z	"Hello,

Reviewing the admin settings on several screens I feel they can be given a more uniform appearance if the selects matched the width of their neighbour .regular-text inputs. See attached screens.

Having these select a uniform width with the inputs provides a more consistent alignment.

Thoughts?
Thanks"	garrett-eclipse		
Enhancements Awaiting Review	51343	Move Current Submenu to top of Admin Menu		Administration	minor	enhancement	new	2020-09-18T12:48:11Z	2022-09-09T07:29:48Z	"I propose moving the **current open submenu** to the **top of the adminmenu** so users can more easily navigate to submenu items without having to scroll. This would be especially helpful when using smaller viewports and/or sites with large/numerous submenus.

The following CSS accomplishes this:

{{{
#adminmenu {
    display: flex;
    flex-flow: column;
}
.wp-has-current-menu {
    order: 1;
}
.wp-not-current-submenu {
    order: 2;
}
#collapse-menu {
    order: 3;
}
}}}
"	markpraschan		
Enhancements Awaiting Review	50139	Add WordPress.tv latest videos dashboard widget	psykro	Administration	normal	enhancement	assigned	2020-05-10T13:27:50Z	2022-09-07T07:12:30Z	"WordPress.tv is a great resource for WordPress content, specifically for training and learning new ways to use and build with WordPress.

This patch adds a dashboard widget to the WordPress dashboard, integrating the WordPress.tv feed to the dashboard.

This is a small addition that could eventually pave the way for having curated content (by language or feature) added to the WordPress.tv widget. "	psykro		
Enhancements Awaiting Review	41558	create a (reusable) wp_default_admin_scripts		Administration	normal	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	2.6	
Enhancements Awaiting Review	54857	"New column ""template"" in pages/""screen options"" (enhancement)"		Administration	trivial	enhancement	new	2022-01-19T11:15:03Z	2022-05-18T13:55:48Z	"
With WP5.9 FSE themes, editable “templates” are introduced .
Therefore, in the list of “Pages” should now be a new column that displays the selected template name for each page.

I suggest to offer a new checkable column option “Templates” within Pages/“Screen Options” to get a better overview of the assigned templates.


"	iStag		
Enhancements Awaiting Review	55588	Enhancement request: Allow me to prevent admin_email changes		Administration	minor	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	5.9.3	
Enhancements Awaiting Review	50539	Explore a larger icon less WP Admin menu	youknowriad*	Administration	normal	enhancement	accepted	2020-07-02T19:11:48Z	2022-03-29T06:31:56Z	"The menu items in WP-Admin feels too narrow compared to the standards of 2020.
The icons also make it feel too distracting and the icons doesn't add much value when the label is visible.
This ticket explores A larger (just a bit) icon less WP Admin menu.


"	youknowriad		has-patch
Enhancements Awaiting Review	18769	Admin should not break if URL changes		Administration	normal	enhancement	new	2011-09-24T22:58:42Z	2022-02-06T14:07:17Z	"We manage a lot of users who have WordPress blogs, and probably the number one user support request we have to field comes out of this situation:

1. User decides they want to move their WordPress,
2. They move the folder to a new URL,
3. Their admin page stops working, because it still had the old URL hard-coded.

This is silly and should be fixed."	AmbushCommander		needs-patch
Enhancements Awaiting Review	54663	There are many missing comments in some files		Administration	normal	enhancement	new	2021-12-19T16:10:55Z	2021-12-19T16:30:42Z		yagniksangani		has-patch
Enhancements Awaiting Review	47890	Indentation within Post Publish (Classic Editor) and Comment Save Metaboxes:		Administration	normal	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		needs-patch
Enhancements Awaiting Review	54400	"Show ""Add New"" title buttons on single-site Plugins/Themes pages for capable users in multisite"		Administration	normal	enhancement	new	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	3.0	dev-feedback
Enhancements Awaiting Review	54096	Get URL by post ID in WP-Admin		Administration	normal	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	5.8	
Enhancements Awaiting Review	46614	Category/tag/taxonomy names on admin screens		Administration	normal	enhancement	assigned	2019-03-23T01:23:59Z	2021-09-07T14:15:04Z	"Hello, I'd like to suggest that when browsing categories, tags any taxonomies in general the admin screen display the taxonomy title/name somewhere preferably at the very top as I see that newbie users feel confused when browsing posts from a specific category/tag/taxonomy.

Examples:

[[Image(https://i.postimg.cc/xjHx4Nvt/01.png)]]
''When browsing the ""Succulents"" tag''

[[Image(https://i.postimg.cc/pXHGbVkx/02.png)]]
''When browsing the ""Plants from Mexico"" category''

I also searched for some way to add this myself for some clients and can't find how to do so.

Thanks (sorry if this is out of scope/wrong place)"	Dianakc		has-patch
Enhancements Awaiting Review	54026	One admin menu item from different plugins		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	53387	"Carry ""dates"" and times over to Plugins/Themes so you can see when it was installed/updated/removed."		Administration	normal	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		
Enhancements Awaiting Review	52528	Possible unnecessary buffering of output data in wp-includes/functions.php		Administration	normal	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	5.6.1	
Enhancements Awaiting Review	40001	Replace wp-list.js with REST API-powered JavaScript		Administration	normal	task (blessed)	new	2017-03-01T07:06:00Z	2021-04-06T15:33:21Z	"wp-list.js is used for ''some'' list tables in WordPress, but not all. We should switch everything it does over to the REST API, and simultaneously rethink list tables to ensure consistency.

(This is a stub ticket, longer post on make/core coming soon.)"	rmccue	4.7	has-patch
Enhancements Awaiting Review	52847	Admin Improvement: Filter posts, pages and media by date range or year		Administration	normal	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		
Enhancements Awaiting Review	52715	404 Page for WordPress Admin		Administration	normal	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		
Enhancements Awaiting Review	52286	"Add new admin widget ""Community message"""		Administration	normal	enhancement	new	2021-01-13T01:14:15Z	2021-01-20T12:33:04Z	"WordPress regularly gets translated into some 50-60 language versions. But it could be more. (Ref: https://make.wordpress.org/polyglots/teams/ )

We've got a long list of local WordPress forums in various languages. But not all of them are active, and there could be more languages here, too.
(Ref: https://make.wordpress.org/support/handbook/contributing-to-the-wordpress-forums/support-forums-in-your-language/ )

From time to time, there are other things happening, where it would be good to have a reasonably prominent place to make a message visible to people that use WordPress in a specific language.

Yes, we are able to ""reuse"" the two RSS feeds in the Admin widget ""WordPress events and News"", but ever since this widget also started housing notices about meetups and WordCamps, the news only show the title and barely gets noticed.

So I'd like to propose that we in the Admin panel add a new widget ""Community"" where contributors can put one formatted message that may change from time to time.

Perhaps some ""hack"" via translate.wordpress.org could work as handling mechanism. (But it would be good to NOT depend on core language packs, since those get generated only when core is 100% translated. If a GTE would like to publish a ""call for help"" they'd be forced to first reach 100% translation status before they'd be able to get this message distributed...)

This could prove a vital tool to strengthen the continuity in many locales, where currently there are only 1-2 General Translation Editors each that keep everything rolling. There may formally be more people listed, but due to the very nature of volunteer contributions, not all are actively contributing."	tobifjellner		
Enhancements Awaiting Review	49504	"""Your homepage displays"" setting missing without explanation"		Administration	minor	enhancement	new	2020-02-24T20:05:25Z	2021-01-19T13:50:45Z	"When there are no available pages, ie. no pages exist or there are only pages marked as private, the ""Your homepage displays"" setting isn't showing up at all in Settings >> Reading. There's no explanation why it's not available currently.

Possible fix: provide a short piece of info on why this option isn't currently available."	paulpela	5.3.2	
Enhancements Awaiting Review	52249	Events: Show user multiple location choices to disambiguate		Administration	normal	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		
Enhancements Awaiting Review	41804	Combine and Relocate Editor Menu Link		Administration	normal	enhancement	new	2017-09-05T16:21:07Z	2020-11-24T01:59:00Z	"While discussing #31779, I recommended the following:

1. Move the Editor into the Tools menu, or into Tools > Available Tools. It fits better there anyway: it's not a visual editor for the Appearance, as other things are in the Appearance menu), but the other problem with Plugins > Editor is it's right beside one of the most clicked buttons in the UI (Add New). It's too easy to discover. You could also move the warning messages suggested above into a box on Available Tools. Instead of a warning, it becomes the context for launching the Editor. Plus, what else is going on in that page anyway. :)

1. To do the above, combine the Theme and Plugin editors into one. Separate the edit dropdown with headings for Theme and Plugins.

@melchoyce recommended splitting this out into a separate ticket (ticket:31779#comment:54)."	cliffseal		
Enhancements Awaiting Review	50575	Reconsider some admin scheme colors.		Administration	normal	enhancement	new	2020-07-06T19:03:41Z	2020-08-21T14:10:58Z	"In #50537 we explicitly excluded the ocean and coffee admin schemes from the colored buttons because the default button color there don't meet the contrast guidelines.

Also, the buttons in the midnight admin scheme are red and too close to buttons meaning ""danger"" or ""error"".

Instead of trying to fix this by tweaking the styles specifically for these admin schemes, I think we should address the root issue and potentially alter the highlight color for these admin scheme colors issue.

Alternatively, we consider consider retiring some of these admin scheme colors."	youknowriad		
Enhancements Awaiting Review	50158	Hide columns in the list of posts for user levels		Administration	normal	feature request	assigned	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	5.4.1	dev-feedback
Enhancements Awaiting Review	50050	Community Events: Sort pinned events chronologically		Administration	normal	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		
Enhancements Awaiting Review	39635	Make insertion of generic dismissible notices in frontend code possible		Administration	normal	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	4.7.1	
Enhancements Awaiting Review	49378	Add warning banner about no-js in wp-admin		Administration	normal	enhancement	new	2020-02-06T17:44:40Z	2020-02-07T01:59:52Z	"WordPress is becoming more and more depending on Javascript.

Javascript may be unavailable for various reasons:
- JS blocked in browser, either in general or for the current domain
- If the site is accessed over https while site URL is set to http, then JS objects may be blocked due to mix content rules.

If/when JS is unavailable, weird errors may occur in the admin panel, and the error texts may not immediately hint about the real reason. See #43900 for instance.

Obviously, the block editor is totally depending on JS, and it's already got a warning banner on it own ( #45453 ).

But I think it by now would be good to add a similar warning banner at the top of the wp-admin page:
Please note that Javascript seems to be unavailable. You may have it blocked or you may be mixing access via https and http. This may lead to unexpected errors.
So I suggest that we 

"	tobifjellner		
Enhancements Awaiting Review	48887	New action hooks: admin_body_open, login_body_open & embed_body_open		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	48470	Remove the Custom Header and Custom Background admin pages		Administration	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	38453	New UI for the settings page of the dashboard		Administration	normal	enhancement	new	2016-10-23T12:00:08Z	2019-10-26T09:12:42Z	"The dashboard settings page is very basic looking - build using simple table markup and has almost zero stylings applied. I would like to suggest a change to this, where new visual elements and better organization is added to the page. Meaning - better separation between different components, description, larger click area/input fields, validation of the input fields and so on.

In short - bring the settings pages to more modern look. It won't add new features to it, so the users won't be required to make choices but instead it will make the general experience of the page better.

I am attaching sample mockup/idea screenshot I had on top of which I can work more based on the feedback and if this is needed in the first place. Any input regarding is welcome.


----


Here is the screenshot:
[[Image(http://i.imgur.com/KQHZiHk.png)]]

The validation is there to show how it can look, not that I focus on this. Honestly, I believe while it would be awesome it's not of very high priority to have it.

Another thing I want to comment about the design - the tabs on top are also only an idea, I can see how they can be a problem instead of a solution, so thoughts regarding this is also welcome. It's there just to show it visually"	xavortm		
Enhancements Awaiting Review	48385	Gutenberg blocks in the WP admin dashboard		Administration	normal	feature request	new	2019-10-21T13:44:16Z	2019-10-21T13:44:16Z	"It would be nice to have Gutenberg blocks available in the WordPress admin backend Dashboard.
Adding blocks to the dashboard we would be able to create a more informative dashboard for clients. For instance adding a video, a custom message and other blocks. 
Having a dashboard that we can customize.

I originally made the issue here:
https://github.com/WordPress/gutenberg/issues/16430

"	paaljoachim		
Enhancements Awaiting Review	48270	Add space before first parentheses of if condition for JS consistency		Administration	minor	enhancement	new	2019-10-10T09:02:29Z	2019-10-12T01:47:15Z		mehidi258	5.3	has-patch
Enhancements Awaiting Review	48167	"Increase discoverability of, and describe, ""Anyone can register"" and other settings"		Administration	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	47954	Create a sanity check for siteurl and home changes		Administration	normal	enhancement	new	2019-08-30T21:57:23Z	2019-09-29T21:11:38Z	"One of the most common problems is when people change the site URL fields on the settings general screen, without full understanding of what it means. It's a common enough problem that we've had documentation on ways to fix it for ages:

https://wordpress.org/support/article/changing-the-site-url/

The idea is to enhance this field so as to perform some kind of sanity check before actually changing the fields. Health check exists, we have checks for plugin and theme changes to some degree. This could be checked as well.

Concept: Change the field, make an internal request, see if it fails, if so change them back, then warn the user with a ""hey, this change seems like it's gonna break things real bad, are you really sure?"" Or equivalent.

Second thought: when these change, email the admin user about them, with a revert link that will work no matter what. 

I'm sure that other ideas exist as well."	Otto42		has-patch
Enhancements Awaiting Review	41114	"Installation: ""Search Engine Visibility"" not keeping checked on error"		Administration	normal	enhancement	new	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	4.8	has-patch
Enhancements Awaiting Review	47650	Add hooks to installed themes screen to allow control and customization		Administration	normal	enhancement	new	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	5.3	has-patch
Enhancements Awaiting Review	46764	Admin search functionality		Administration	normal	enhancement	new	2019-04-02T10:54:41Z	2019-04-04T05:54:53Z	"I would like an interface + API to for instance search for ""privacy"" and get a search result that points to `/wp-admin/privacy.php`. If we can make these results filterable, it could be very useful in interfaces like #46763."	joostdevalk		
Enhancements Awaiting Review	44837	Coding Indentation Issues		Administration	minor	enhancement	new	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	4.9.8	dev-feedback
Enhancements Awaiting Review	46659	Suggestion: add action hook before admin menu nav in the sidebar		Administration	normal	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		
Enhancements Awaiting Review	39050	New Core Admin Menu Functions -- `add_menu_link` and `add_submenu_link`		Administration	normal	enhancement	new	2016-12-04T16:10:58Z	2019-03-15T01:27:12Z	"Currently if a plugin would like to add admin menu links that go to a url, instead of a registered admin page, there are only two options:

Option 1: Register a dummy admin page, and add an action that sets up a `wp_redirect` on load.
Option 2: Mess with the menu globals directly.

Neither of these is a particularly good option, and encouraging messing with globals directly feels bad.

To that end, this will let folks add admin menu links -- whether to plugin support forums, to the customizer even (there is no good way to add deep links to the customizer currently), and the like.

Is this something we'd like to support?"	georgestephanis	4.7	has-patch
Enhancements Awaiting Review	44992	Filter for screen option 'Number of items per page' value		Administration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	45313	Multisite site deletion email contains misleading language about user account		Administration	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	43963	Add admin body class for multisite blog ID and network admin context		Administration	minor	enhancement	new	2018-05-04T16:58:17Z	2018-06-26T17:05:06Z	"In multisite, it'd be great to have an admin body class to safely scope CSS to specific blogs (i.e. `blog-2` or `network-admin`) available by default. I often filter `admin_body_class` to add these.

One situation where I often use this is conditional override of the text Site Title in the Admin Bar with a logo -- but only if the logo exists. PHP can certainly be used to check context before printing conditional CSS, but the body class adds a safe, client-side scope and clear approach for avoiding in-admin style collisions.

Example:

{{{
if ( ! empty( $logo ) ) {
	?>
	body.blog-<?php echo esc_attr( $site_id ); ?> li#wp-admin-bar-site-name > a.ab-item:first-of-type,
	body.blog-<?php echo esc_attr( $site_id ); ?> #wpadminbar .ab-top-menu > li#wp-admin-bar-site-name.menupop:hover > .ab-item:first-of-type,
	body.blog-<?php echo esc_attr( $site_id ); ?> #wpadminbar .ab-top-menu > li#wp-admin-bar-site-name.menupop.hover > .ab-item:first-of-type {
		font-size: 0; // safely hide default text
	        background-image: url(""<?php echo esc_url( $logo ); ?>"");
		background-size: <?php echo esc_html( $logo_width ); ?>;
		background-position: center;
		background-repeat: no-repeat;
		min-width: 120px;
	}
	<?php
}
}}}

"	dryanpress		dev-feedback
Enhancements Awaiting Review	41442	Show nearby events in dashboard events widget in a per country basis		Administration	normal	enhancement	new	2017-07-25T18:51:10Z	2018-04-25T12:52:15Z	"Hi!
I've noticed that the new events dashboard widget don't show all WordCamps in a country basis. It shows only that ones nearby in kilometres, 400 kms as seen in code (https://meta.trac.wordpress.org/browser/sites/trunk/api.wordpress.org/public_html/events/1.0/index.php?rev=5559&marks=707,708#L703). 
That way, i.e., for an Spanish WordPress user from Madrid (in the geographical center of the Country) it going to be impossible to know about WordCamps in Chiclana (Cádiz) or others far away from that 400 kms standard, and totally impossible for anybody to know about a WordCamp in Las Palmas (Canary Islands), and impossible for anyone that lives in Canary Islands to know about continent WordCamps.
It could be possible to extend/change the range to a country basis (best) or more kilometres?"	fernandot	4.8	
Enhancements Awaiting Review	19707	admin-ajax.php requests via http regardless of force_ssl_admin() state		Administration	normal	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		
Enhancements Awaiting Review	42218	General Settings: Description of Email address should be Email Address instead of just Address.		Administration	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	39613	Use Shift + Delete to bypass Trash/Prompt		Administration	normal	feature request	new	2017-01-17T08:24:39Z	2017-07-10T16:10:59Z	"There are times where deleting many single items is necessary, but the bulk edit interface isn't desirable. For these situations, it might be nice to have a Shift + Delete interface, that bypasses the warnings and sends items straight to being permanently deleted.

bbPress is my current example of this, where it's not uncommon to want to cherry-pick several topics/replies for different bulk actions in the same view, or mass-delete topic tags where dozens of spam tags exist and clicking ""Delete"" in every action-row brings up a dedicated prompt.

Yes, you can check the boxes and use Bulk Edit to delete them, but UX wise that approach requires a bit more planning than you usually want to do when you're in cleanup mode. It isn't comfortable to queue up a bunch of internal todo's just to moderate a queue of topics & replies, but it does feel comfortable to have identified something needing doing, and to be able to do that think as quickly as possible."	johnjamesjacoby		
Enhancements Awaiting Review	40885	Update admin color scheme using the REST API		Administration	normal	task (blessed)	new	2017-05-30T05:55:01Z	2017-05-31T13:05:44Z	"Reasonably simple admin-ajax call (notably, with no significant filters) that can be replaced with a call to `/wp/v2/users`. Patch attached.

One thing we can't do is provide an enum of valid color schemes, since historically these have only been registered on `admin_init` (including in core). This also applies to the sanitization callback on the meta key, which can only remove invalid characters, not validate the scheme is valid."	rmccue		has-patch
Enhancements Awaiting Review	39707	Create onboarding flowchart for users of WP.org installations		Administration	normal	enhancement	new	2017-01-26T17:42:47Z	2017-04-03T16:45:50Z	Chatting in the [design channel on Slack](https://wordpress.slack.com/archives/design), we believe documentation should exist for user onboarding. While this is somewhat related to the customizer project for setting up an install, a general user flowchart should be created. 	alwaysbrightblue	4.7.1	
Enhancements Awaiting Review	39617	Improve the Dashboard Screen and Welcome dashboard widget		Administration	normal	enhancement	new	2017-01-17T20:04:18Z	2017-03-23T19:03:03Z	"Currently the welcome dashboard widget only offers a few options, it does not cover making sure that a new has added a site name, site description, set permalinks or made sure that a user has created their first page and post on the site.

https://codex.wordpress.org/Dashboard_Screen#Welcome

Giving users a better flow from the dashboard screen would help them get started on their site."	lukecavanagh	4.7.1	
Reporter Feedback / Close	66023	Control+K does not show in the admin bar when logged in and viewing a page		Administration	normal	defect (bug)	new	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	7.1	close
Reporter Feedback / Close	65877	Limit page jumping on blog and post overview pages		Administration	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	65791	configurable debug log entry		Administration	normal	enhancement	new	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		close
Reporter Feedback / Close	46082	Why returning $menu_array[x] instead of $title		Administration	normal	enhancement	new	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		close
Reporter Feedback / Close	64721	menu-header.php uses relative file_exists() causing wrong submenu URL when PHP CWD is not wp-admin/		Administration	normal	defect (bug)	assigned	2026-02-24T23:54:46Z	2026-03-02T21:11:08Z	"== What Happens ==
When a plugin registers a submenu page under a Custom Post Type menu 
(e.g. edit.php?post_type=gd_place), clicking that submenu item generates 
a broken URL like:

  admin.php?page=gd_place-settings

...instead of the correct:

  edit.php?post_type=gd_place&page=gd_place-settings

== Why It Happens ==
In wp-admin/menu-header.php, around line 267, WordPress checks:

  file_exists( $menu_file )

...where $menu_file is a bare relative path like 'edit.php'.

The file_exists() call resolves against PHP's current working directory (CWD).
On standard Apache/Nginx servers, PHP's CWD is the wp-admin/ folder, so 
file_exists('edit.php') returns TRUE and the correct URL is built.

But in WordPress Studio (and any environment where PHP's CWD is the WordPress 
root instead of wp-admin/), file_exists('edit.php') returns FALSE, so 
WordPress falls back to building admin.php?page=... — dropping the post_type 
parameter entirely.

== The Fix ==
The check should use an absolute path:

  file_exists( ABSPATH . 'wp-admin/' . $menu_file )

This would work correctly regardless of what the PHP CWD happens to be.

== Steps to Reproduce ==
1. Install WordPress using WordPress Studio (local dev tool)
2. Install a plugin that registers a submenu under a CPT menu 
   (e.g. GeoDirectory)
3. Click the submenu item in wp-admin
4. Observe the URL: it says admin.php?page=... instead of 
   edit.php?post_type=...&page=...

== Expected vs Actual ==
- Expected: edit.php?post_type=gd_place&page=gd_place-settings
- Actual:   admin.php?page=gd_place-settings

== Environment ==
- WordPress version: 6.9.1
- PHP server: WordPress Studio (bundled server, CWD = WP root)
- Works fine on: Apache/Nginx hosting, Local by WP Engine
- Affected file: wp-admin/menu-header.php ~line 267"	paoltaia	6.9.1	close
Reporter Feedback / Close	60789	Administration Email Address: Allow method to deactivate		Administration	normal	feature request	new	2024-03-16T01:23:43Z	2026-02-24T16:52:02Z	"As a manager of many client sites, my email address is used on a lot of sites in the ""Administration Email Address"" in Settings > General.

Over time, clients move to other vendors, and sometimes this happens without the opportunity to change the Administration Email Address before it is moved. In many cases, this email address remains unchanged for years, and I continue to receive software update, user account, and other emails for accounts I have no contact with, and no way to access to change the setting.

This has been mentioned by other WordPress developers as well, and I believe it is a widespread problem, although one easy to dismiss on a day-to-day basis. I did a search through Trac tickets and didn't see anything like it, so I am posting this ticket in hopes that a solution can be reached.

Ideally, I'd like to see a solution that includes a time-sensitive link (similar to new account registrations) that would allow the owner of the admin to click through to the link, and agree to have the email address removed as the ""Administration Email Address""."	andrewhoyer		close
Reporter Feedback / Close	41535	Prevent or warn about offline status before submitting a form		Administration	normal	feature request	new	2017-08-02T15:09:27Z	2026-02-04T06:38:26Z	"For browsers that support it, the `navigator.online` property reliably indicates that the browser is offline (the inverse isn't true, but it doesn't matter).

Prior to submission of a form in the admin area (for example the post editing screen form), WordPress should check the value of `navigator.online` and present a prompt to the user stating that they appear to be offline. They can close the prompt or, optionally, ignore it and continue with the form submission.

This functionality would help prevent data loss when a user submits a form while they don't have an internet connection."	johnbillion		ui/ux
Reporter Feedback / Close	63653	map_meta_cap() fails in wp_refresh_post_lock() for custom post types not registered before init		Administration	normal	defect (bug)	new	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	6.8	dev-feedback
Reporter Feedback / Close	48881	Fix inline SVG error with wp_admin_css_color		Administration	normal	defect (bug)	new	2019-12-05T04:31:07Z	2026-01-22T09:51:06Z	"To get to the point, `url-friendly-colour` in `wp-admin/css/colors/_admin.scss` currently has:

`@return '%23' + str-slice( '#{ $color }', 2, -1 );`

but both Firefox and Safari (possibly others) are having an issue with CSS generated based on this (at least inline SVG assets).

Safari (and possibly others) doesn't like the fact that `'` is used to wrap the str-slice color value since inline SVG assets are using `'` to wrap the parameters/attributes so it then breaks the SVG's syntax by having that value use `'` within itself being wrapped in a `'`.

Then, Firefox (and possibly others) doesn't like the fact that `#` is used within an inline SVG since it's expecting `%23` as with the rest of the SVG being encoded.

I've found that switching this out for:

`@return '%23' + str-slice( %23{ $color }, 2, -1 );`

resolves these issues experienced by both of these web browsers (and possibly others.) I haven't tested thoroughly for any potential side-effects, but I don't foresee all that much given how little it seems like `url-friendly-colour` is used (with this then just resolving browser issues for its current usage.)

Btw, I came across this with the Admin Color Schemer plugin (with it patched for PHP 7.x per the approved code on its GitHub; not sure why it hasn't been pushed out to WP.org yet... the dev should maybe do that. Either way, this plugin is using WP's own `_admin.scss` and it's not creating compliant results, currently, and this should resolve that issue.)"	KZeni		reporter-feedback
Reporter Feedback / Close	64432	Editing Workflow: List front page first in Pages list as default		Administration	minor	enhancement	new	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		close
Reporter Feedback / Close	43476	Fix parentheses in post status links for RTL		Administration	normal	defect (bug)	new	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		close
Reporter Feedback / Close	21132	"List tables' ""select all"" should let you really select all, regardless of screen options"		Administration	normal	feature request	new	2012-07-02T04:38:38Z	2025-09-18T13:51:09Z	"The select all checkbox in list tables selects all the items in your current view.  Usually what I really want is to select all the items on all the pages.

As a hack, I'll often leave the screen options setting for items per page on something really high, like 1,000.  Unfortunately this means the tables are often really slow for no benefit (most of the time I don't need them all).  A better solution would be a way to intelligently select all items without needing to show them on the page.

The best example of this that I know of is Gmail, which adds a line above the list of emails when you click the select all box that looks something like this: ""All 50 conversations on this page are selected. Select all 653 conversations in Spam"".  The second sentence is a link that, as expected, selects all of your emails that fit the current view, regardless of paging.  Screenshot attached."	evansolomon		close
Reporter Feedback / Close	44516	Unable to edit theme's file on multisite from default editor		Administration	normal	defect (bug)	new	2018-07-04T21:38:12Z	2025-07-31T00:11:00Z	"I am using WP 4.9.6 and on multisite when I tried editing theme's files from the editor it shows that it generated some fatal error. The actual message is '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.'

Please see: https://prnt.sc/k2mshy"	prashantvatsh	4.9.6	reporter-feedback
Reporter Feedback / Close	58478	Text mis-aligned count bubbles on mobile		Administration	normal	defect (bug)	new	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	6.2.2	reporter-feedback
Reporter Feedback / Close	39762	Change in DOM Element Properties as seen in Javascript Event Handlers Between 4.6.2 and 4.7+		Administration	normal	defect (bug)	new	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	4.7	reporter-feedback
Reporter Feedback / Close	57156	Icons missing in iOS Lockdown Mode		Administration	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	51817	WP-Admin - Optimize main wpquery with 'fields' => 'ids' causes notice		Administration	normal	enhancement	new	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	5.5.3	reporter-feedback
Reporter Feedback / Close	57943	Massive SQL statement shown in Dashboard WordPress Events and News. WordPress database error Got a packet bigger than 'max_allowed_packet'		Administration	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	45000	"Eliminating ""Add New"" Button Beside Titles in Admin"		Administration	normal	enhancement	new	2018-09-26T21:20:53Z	2025-02-09T17:09:06Z	"This is apart of a bigger project for my staff and I, you can find the context here https://www.theportlandcompany.com/2017/09/10/proposed-improvements-to-the-wordpress-ui/.

Our goal is to clean up the UI, especially to reduce scrolling on mobile, with three principles in mind:

- Context Visibility - Only show something when it's in context.
- Add With Purpose - If something, such as padding or margins, don't serve a purpose, don't add them.
- Simplify Number of Actions - If a step can be avoided in a process, avoid it.

We propose eliminating the Add New button that appears beside Titles when on various admin pages because:
- There is already a button in the admin menu on the left.
- The position of the button changes depending on the length of the title, disorienting users.
- On mobile, especially, it makes the page look broken as a result of the above mentioned issue.
- Feedback from dozens of clients we've trained concur - for some reason - that they are confused by multiple ""Add New"" links/buttons. Maybe this is subjective - we're not confused by it and feel multiple access points is helpful, but only when it's in a sensible and easy to accessible place. We think maybe because ""Add New"" is appearing next to the page title they don't understand it's creating a new Post, but rather something related to whatever they titled that page."	s3w47m88	4.9.8	dev-feedback
Reporter Feedback / Close	61575	Node Modules in sub-directories not getting ignored while exporting the theme		Administration	normal	defect (bug)	new	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		close
Reporter Feedback / Close	39003	menu_page_url() not working on Ajax call		Administration	normal	defect (bug)	new	2016-12-01T13:50:38Z	2024-10-14T15:34:48Z	`menu_page_url( 'menu_slug', false )` is always returning empty string on AJAX response. The `global $_parent_pages;` is return NULL on AJAX call. But the same menu slug is working on normal page load.	vinoth06	4.6.1	reporter-feedback
Reporter Feedback / Close	35561	function wp_admin_canonical_url() not using configured site url when constructing canonical url link tag		Administration	normal	defect (bug)	new	2016-01-21T16:00:36Z	2024-08-01T06:17:05Z	"I was having an issue with the  wp_admin_canonical_url() function in wp-admin/includes/misc.php and I have a suggested fix

I am running word press behind a reverse nginx proxy on a different box so my main site is at http://www.rammount.com and the blog is at http://www.rammount.com/blog

The blog url is set in the WordPress configuration. But when you log into the admin section the wp_admin_canonical_url() function does not pick up the configured url instead it constructs the url without the /blog. This of course breaks links in the admin section, constantly redirecting things to http://www.rammount.com without the /blog
 
by changing the following line: 
`$current_url  = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );`
 
to:
`$current_url  = set_url_scheme(home_url(add_query_arg(array(),$wp->request)) . $_SERVER['REQUEST_URI']);`
 
the problem is solved. the proper url is created and as such the links in the admin section that use the canonical url link function correctly.

Hoping to have this change evaluated for inclusion, so that I don't have to remake this edit every time one of my designers updates the WordPress installation?"	ilude	4.4.1	dev-feedback
Reporter Feedback / Close	45874	Content Section is overlapping the menu background	valentinbora*	Administration	trivial	enhancement	accepted	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	5.0.2	reporter-feedback
Reporter Feedback / Close	59410	Getting waring related Warning: array_flip() expects parameter 1 to be array		Administration	normal	defect (bug)	new	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	6.3.1	close
Reporter Feedback / Close	57364	remove_meta_box for commentstatusdiv stores null value for comments configuration.		Administration	normal	defect (bug)	new	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	6.1.1	reporter-feedback
Reporter Feedback / Close	52871	"Space added after the ""option"" tag on the options-writing.php file"		Administration	normal	enhancement	new	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		close
Reporter Feedback / Close	43331	Color picker breaks admin panel in many templates		Administration	normal	defect (bug)	new	2018-02-15T13:05:04Z	2022-12-02T11:42:09Z	"The error prevents the document from beign saved.

'''Console error:'''

color-picker.min.js?ver=4.9.4:1 Uncaught TypeError: Cannot read property 'addClass' of undefined at a.(anonymous function).(anonymous function).close (https://www.szybkiangielski.pl/wp-admin/js/color-picker.min.js?ver=4.9.4:1:3088)....

'''Error is caused by line 316 in color-picker.js''' 
  this.inputWrapper.addClass( 'hidden' );
'''I corrected the code by replacing the code with:'''

  if(typeof this.inputWrapper !== ""undefined"") {
  this.inputWrapper.addClass( 'hidden' );
  }

'''This stops the error, page can now be saved and color picker works fine'''
"	grzecho		close
Reporter Feedback / Close	55855	In wp-admin folder the ajax-actions.php file has some unsanitize data issue.		Administration	normal	enhancement	new	2022-05-27T08:28:00Z	2022-05-27T13:17:15Z	"Path of file: wp-admin/includes/ajax-actions.php

In these files, there are some $_POST used without sanitizing by filter_input. I think this should be solved.

I am adding some code below for some reference.


{{{
$post_id = isset( $_POST['post_ID'] ) ? (int) $_POST['post_ID'] : 0;
}}}

"	smit08		close
Reporter Feedback / Close	43366	_default_wp_die_handler() Need filter code for update css style.		Administration	normal	feature request	new	2018-02-20T10:49:46Z	2020-12-20T01:14:28Z	"wp-includes\functions.php Line no 2768.

"	ravipatel	4.9.4	reporter-feedback
Reporter Feedback / Close	38923	Introduce `WP_Action_Handler` to clean up admin action mess		Administration	normal	enhancement	new	2016-11-24T01:08:35Z	2020-02-15T10:27:30Z	"We all know that several parts of the admin code are messy in a way. After we had to take several looks at these files during today's multisite chat, I thought we need to do something about it.

My proposal for now is to introduce a new base class `WP_Action_Handler`. This abstract class would lay a foundation to handle any kind of actions on any admin screen. Currently there's a (sometimes huge) switch clause at the beginning of almost every page. By removing these clauses entirely and handling the logic in a dedicated class for this instead, we get the following benefits:

* easier readable code
* less huge files
* possibility to add unit tests for each of the switch cases
* possibility to add unit tests the entire handling of an action
* easy addition of any custom actions in plugins, beyond just bulk actions (which have become easier to implement thanks to 4.7)

I have been experimenting with such a class over the past few hours and will upload a first patch below. Some notes:
* The class usage is almost similar to all the list table classes: There's a base class, and then there's (or rather there will be) one class (which extends the base class) for each screen that could benefit from that.
* Many of the actions have similarities: They mostly use `check_admin_referer()` at the beginning, followed by some capability and other permission checks to verify the user is allowed to perform the action. Therefore the base class should be able to handle nonces on its own. The capability checks should be separated from the actual action logic for better organization and easier testing.
* Many of the actions redirect back to the admin page, with a GET parameter denoting a notification message to show to the user. `WP_Action_Handler` should also be capable of managing such messages to make that easier as well. This will furthermore allow to remove a bunch of code from the admin screen files where they ""bootstrap"" their supported messages.

More notes will follow on the initial patch."	flixos90		dev-feedback
Reporter Feedback / Close	49055	Standardise Plugin Notices With a Fly-Out Right-Hand Menu		Administration	normal	enhancement	new	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		close
Reporter Feedback / Close	47465	current_action function - return types		Administration	minor	defect (bug)	new	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	5.3	reporter-feedback
Enhancements Awaiting Review	64749	Proposal: AI Pathfinding Assistant for WordPress Contributors		AI	normal	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		
Defects Awaiting Review	66000	Application Passwords warning persists after HTTP Basic Authentication is disabled		Application Passwords	normal	defect (bug)	new	2026-08-31T11:49:26Z	2026-11-09T10:26:06Z	"
I found an issue where WordPress continues to show the following message under **Users → Profile → Application Passwords**:

> “Your website appears to use Basic Authentication, which is not currently compatible with Application Passwords.”

This happens even after HTTP Basic Authentication has been disabled.

The issue appears to be **browser/session dependent**.

## Steps to reproduce

1. Enable HTTP Basic Authentication on a WordPress site.
2. Open the site in Browser A and access the WordPress profile page.
3. Go to **Users → Profile → Application Passwords**.
4. The Basic Authentication warning is displayed.
5. Disable HTTP Basic Authentication.
6. Clear any available caches and resave permalinks.
7. Return to the Application Passwords section in Browser A.

The warning continues to be displayed.

However, if I open the **same site with the same WordPress user in Browser B**, where the site was never accessed while HTTP Authentication was enabled, Application Passwords work normally.

The same happens in an incognito/private window.

### Example

* Browser A → accessed while HTTP Auth was enabled → HTTP Auth disabled → warning remains.
* Browser B → never accessed while HTTP Auth was enabled → Application Passwords work.
* Incognito → Application Passwords work.


## Additional checks

After disabling HTTP Authentication, I checked the server environment and neither of these variables was present:

```text
PHP_AUTH_USER
PHP_AUTH_PW
```

I also tried clearing caches, resaving permalinks.

The affected browser session still showed the warning.

## Expected behavior

Once HTTP Basic Authentication is disabled, WordPress should detect that it is no longer enabled and allow Application Passwords to be generated.

A browser session that previously encountered HTTP Basic Authentication should not continue preventing Application Passwords from being used.

## Actual behavior

The warning persists in the browser/session that previously encountered HTTP Basic Authentication, while a fresh browser session works correctly.

This makes the issue appear to be related to **cached browser authentication/session state and how WordPress detects Basic Authentication**.

## Environment

* WordPress 7.1
* Nginx
* PHP-FPM
* HTTP/3


## Workaround

Opening the site in a new/incognito browser allows Application Passwords to work.
"	ethicaladitya		has-patch
Defects Awaiting Review	62070	PHP Deprecated warnings with null values for success and reject URLs		Application Passwords	normal	defect (bug)	new	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	5.6	has-patch
Defects Awaiting Review	60203	Application Passwords no longer authenticating		Application Passwords	normal	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	6.4.2	
Defects Awaiting Review	55796	SHORTINIT requires rest-api.php via rest_cookie_collect_status() via wp_get_current_user()		Application Passwords	normal	defect (bug)	new	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	2.0	dev-feedback
Enhancements Awaiting Review	65110	Application Passwords: add a safer authorize flow for browser-based apps		Application Passwords	normal	enhancement	new	2026-04-22T08:30:48Z	2026-06-16T12:28:00Z	"The current wp-admin/authorize-application.php browser authorization flow redirects to success_url with the newly generated Application Password in the URL query string.

As documented in the integration guide, the success redirect currently includes:
 * site_url
 * user_login
 * password

Current core JS still implements that behavior by appending the generated password to the redirect URL.

This makes the flow awkward for browser-based web applications that want to avoid placing plaintext credentials in browser URLs. Depending on the environment, a URL can be captured by browser history, session restore, reverse proxy or CDN logs, observability tooling, analytics middleware, or browser extensions before the receiving application has any chance to scrub it.

I am not proposing that the existing success_url behavior be removed or changed by default, since that would likely break existing consumers. The request is for an additive, safer completion mode for browser-based applications.

Possible directions could include:
 * a form_post style response mode that returns the success payload in an auto-submitted HTML form POST instead of query parameters
 * another non-query transport with similar properties
 * a one-time code that the receiving application can redeem server-side for the generated Application Password

The key requirement is to support completing the authorization flow without the generated Application Password appearing in the browser URL.

In practice, the only core-only way I found to avoid this was to omit success_url entirely and require the user to copy the generated password manually from the WordPress page into the receiving application. That works, but it gives up the seamless browser handoff.

Related tickets for context:
 * #57809 and #51581 show the success_url / reject_url flow is still active and maintained, but they do not address the transport of the generated password itself
 * #61644 discusses revocation by app_id, which is related operationally but does not solve the callback transport problem
 * #53995 is relevant background on Application Password lifecycle, but does not solve this callback transport issue either

If there is already another ticket covering a safer callback transport for Application Password authorization, I would be happy to move discussion there."	alekmitch	5.6	has-patch
Enhancements Awaiting Review	61644	Invalidate application password		Application Passwords	normal	feature request	new	2024-07-12T11:51:32Z	2026-04-09T11:22:47Z	"Currently application passwords does not have any expiration. Due security issue as `password` is returned in query string and all GET requests are logged in webserver logs we need to invalidate those tokens programatically.

To revoke token we need to get uuid because it is not possible to delete token by appId. Currently there is endpoint GET /wp-json/wp/v2/users/me/application-passwords/introspect but because this is GET request method it is cached by litespeed cache plugin and returns cached results.

So my proposal would be to:
1. Add ability to revoke token based on appId as this is known value to application
2. Change request method to POST for wp-json/wp/v2/users/me/application-passwords/introspect as litespeed cache plugin is not caching POST requests"	senna765	5.6	has-patch
Reporter Feedback / Close	57707	"Issue with ""Add New Application Password"" in profile page leading to empty error message"		Application Passwords	normal	defect (bug)	new	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	6.1.1	reporter-feedback
Reporter Feedback / Close	55870	WP App Passwords Should be URL Decoded		Application Passwords	normal	defect (bug)	new	2022-05-29T04:05:15Z	2022-05-30T04:52:34Z	"Using OAuth 2 based. authentication IETF recommends for [https://datatracker.ietf.org/doc/html/rfc6749#section-2.3.1 client id/secrets] URL [https://datatracker.ietf.org/doc/html/rfc6749#appendix-B encoded] forms.

Which means, by using some node OpenID clients, we always get `Authorization: Basic urlSafeEncodedBase64String('user:pass')`. 

This fails to authenticate as [https://github.com/WordPress/wordpress-develop/blob/0a6c37ceb0a86bebf0b287ac12d200e67bbf948f/src/wp-includes/user.php#L474 WordPress doesn't decode] the `user` and `pass` which could also be clientId and clientSecret in OAuth2. 


This could be solved by using `urldecode( string $str )`.

BEFORE

{{{#!php
<?PHP
$authenticated = wp_authenticate_application_password( null, $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] );
}}}


AFTER

{{{#!php
<?php
$authenticated = wp_authenticate_application_password( null, urldecode($_SERVER['PHP_AUTH_USER']), urldecode($_SERVER['PHP_AUTH_PW']) );
}}}


Would you folks be up for a patch for this?"	mrahmadawais	5.6	reporter-feedback
Defects Awaiting Review	24552	Taking over a locked post does not always load the most recent revision		Autosave	major	defect (bug)	new	2013-06-10T10:33:44Z	2026-05-08T20:49:50Z	"Steps to reproduce:

 1. Open up a post for editing, and make some changes to it. Do not save the changes.
 2. Open up the same post for editing using a different user account (in a different browser![1]) and click the 'Take over' button when you get the post lock modal.
 3. Note that the post that loads is not the most recent autosave of the post, but equally importantly you are not shown the message stating this.
 4. Reload the editing screen and you'll be presented with the ""There is an autosave of this post that is more recent than the version below."" message.

Related: #23697

----

![1] The simplest way to do this is to use an Incognito browser window (and [http://wordpress.org/plugins/user-switching/ User Switching]) so you can be logged in as two accounts simultaneously. "	johnbillion	3.6	needs-patch
Defects Awaiting Review	63446	Preview Changes show wrong revisions		Autosave	normal	defect (bug)	new	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	6.8	dev-feedback
Defects Awaiting Review	60314	Revisions: PHP Warning:  Undefined array key 0 in .../wp-includes/meta.php on line 642		Autosave	normal	defect (bug)	new	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	6.4.2	has-patch
Defects Awaiting Review	59451	Saving draft and previewing page sometimes causes whole site to hang		Autosave	major	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	6.3.1	
Defects Awaiting Review	59094	postChanged() is not working correctly in Text mode editor		Autosave	major	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	6.3	
Defects Awaiting Review	42696	Autosave Notification not dismissible		Autosave	major	defect (bug)	new	2017-11-25T10:11:17Z	2023-05-15T10:09:44Z	"If I make changes to a Post/Page and then decide I don't want to keep those changes, I'll simpy click away from the edit page.

The next time I decide to edit the page, I'm prompted with a notification advising ""There is an autosave of this post that is more recent than the version below. View the autosave""

https://cl.ly/082A3B0u3J1u

The only option I'm given is to view the autosaved version. This notificaiton should be dismissible. I shouldn't have to view the autosaved version when I already know that I don't want it. I also shouldn't have to resave the page, just to get rid of the notification.

I would like to see a Dismiss icon/link so that we can dismiss the notification for good. When developing a theme or plugin, we're required to make all notifications dismissible. There's no reason why core notifcations shouldn't follow the same rules and also be dismissible."	ahortin	4.2	dev-feedback
Defects Awaiting Review	57956	The Phrase Site Updated appears when you edit a reusable block		Autosave	normal	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	6.1.1	
Defects Awaiting Review	53821	Validation Error for Block that Isn't in Use - Multisite Env		Autosave	normal	defect (bug)	new	2021-07-29T00:22:38Z	2022-01-25T15:10:53Z	"I work with a pretty big multisite environment (45 sites) hosted with WP Engine. I work on a local environment, then push to staging (WPE Engine), then push to production. Currently, local and staging use WordPress 5.8, but I haven't updated production yet. On staging and local, the browser console shows the error below. Production does not show the error. The error shows in the page editor -- always. When I am adding a new page and haven't entered a title or added a block; when I open a page that doesn't have the block mentioned in the error; and when I'm working on a page that does use the block. The pages work fine. The block seems to work fine. But I'm kind of anal when it comes to errors and warnings in the console.

The error says that is was generated by the ""Save"" function. I believe it must be the autosave function as the error appears as soon as a new or existing page is loaded into the editor. No active ""save"" action as to take place.

This is the error/message from the console:

*** BEGIN MESSAGE ***
Block validation: Block validation failed for `core/quote` ({name: ""core/quote"", icon: {…}, keywords: Array(2), attributes: {…}, providesContext: {…}, …}).

Content generated by `save` function:

<blockquote class=""viewport-display has-text-align-center wp-block-quote is-style-large""><p>""Contributing makes me feel like I'm being useful to the planet.""</p><cite>— Anna Wong, <em>Volunteer</em></cite></blockquote>

Content retrieved from post body:

<blockquote class=""wp-block-quote has-text-align-center is-style-large""><p>""Contributing makes me feel like I'm being useful to the planet.""</p><cite>— Anna Wong, <em>Volunteer</em></cite></blockquote>
*** END MESSAGE ***

As you can see from the error/message, there is reference to some placeholder version of the quote block. But when I look in the template and block libraries, I see no such placeholder text. Neither the core quote block nor the core pullquote block (as seen in the block library) contains a placeholder quote by Anna Wong.

I searched the database. The main site (site #1) contains a couple of records in the _sitemeta table with this meta key: _site_transient_wp_remote_block_patterns_...

Those records contain the placeholder quote that appears in the error message.

The function generating the message gets printed to the file's output source:

function() {
	window._wpLoadBlockEditor = new Promise( function( resolve ) {
		wp.domReady( function() {
			resolve( wp.editPost.initializeEditor(...

That function seems to be generated by wp-admin/edit-form-blocks.php

Since this error is only occurring on local and staging (which use v 5.8) and not on production (5.7.2) I'm reluctant to upgrade production right now.

Sorry for the long read...  Anyone else experiencing this or know what to do about it?

Thanks!"	tinamar	5.8	
Defects Awaiting Review	49859	Post autosave called multiple times		Autosave	major	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	5.4	
Defects Awaiting Review	47743	autosave locks db and is slow		Autosave	normal	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		
Defects Awaiting Review	40706	pasting text that has emojis into a new post breaks autosave and save draft		Autosave	normal	defect (bug)	new	2017-05-09T20:30:32Z	2017-05-09T20:35:10Z	"When copying text that includes emoji's into the editor, then clicking save draft, the page refreshes and doesn't save any of the text in the editor. 

Copying initially from Google Docs with and without emojis. I haven't specifically limited it down to only Google Docs copying; i'm not a writer and i hate emojis so. Good luck on the bug hunt, but it's definitely a thing. "	ryno267	4.7.4	
Enhancements Awaiting Review	62870	Autosave Stores Default Taxonomy (Category) but Not Custom Taxonomies		Autosave	normal	enhancement	new	2025-01-27T11:10:19Z	2025-01-29T07:22:49Z	"In the WordPress block editor, the autosave feature correctly stores terms from the default taxonomy {{{category}}}, but it fails to store terms from custom taxonomies. As a result, custom taxonomy terms assigned to a post are lost when relying on autosave, unless the post is manually saved.


== Steps to Reproduce:
----
1. Create a custom taxonomy using {{{register_taxonomy()}}} in WordPress and make sure {{{show_in_rest = true}}}.
2. Assign the custom taxonomy to a post type.
3. Open the block editor for the post type.
4. Assign terms to both the default taxonomy (category) and the custom taxonomy.
5. Wait for the autosave to trigger.
6. Reload the editor without manually saving the post.


== Expected Behavior:
----
Terms for both the default taxonomy (category) and the custom taxonomy should be stored and restored by autosave.


== Actual Behavior:
----
Terms for the default taxonomy (category) are stored and restored correctly.
Terms for the custom taxonomy are not stored, resulting in data loss."	praful2111		
Enhancements Awaiting Review	44910	function for discriminating during auto saving		Autosave	trivial	feature request	new	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		has-patch
Defects Awaiting Review	65908	WP_DEBUG_LOG=true should fail closed instead of creating a publicly accessible debug log		Bootstrap/Load	normal	defect (bug)	new	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		needs-unit-tests
Defects Awaiting Review	14913	Multisite Requires Client Information to Load Files	filosofo	Bootstrap/Load	normal	defect (bug)	new	2010-09-20T20:55:36Z	2025-05-07T20:21:15Z	"When installed as multi-site, WP in `ms-settings.php` tries to parse the Host header request to determine which domain is requested.  If none, it prints a redirecting Location header and exits.

This is problematic if you are loading WP but not using a client that sends headers to the server; for example, if you have another app on the same server that tries to include `wp-load.php` directly.

Example:

{{{
<?php

include '/path/to/wp/wp-load.php';

// let's do some stuff with WP programatically...
}}}

The above aborts in MS as it tries to redirect the nonexistent requesting client to the main blog's front page.

The problems I see with this:
 * `wp-load.php` is supposed to provide a means of circumventing the template printing, so it shouldn't assume a typical browser client is making the request
 * `wp-load.php` ''can'' be used this way on non-MS setups
 * In general, it's a bad jumble of MVC.

Currently I'm not sure what the best route is to fix this, but I will try to come back later with a solution."	filosofo	3.1	has-patch
Defects Awaiting Review	41180	ABSPATH definition - incorrect on chrooted vhost		Bootstrap/Load	normal	defect (bug)	new	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	4.8	has-patch
Defects Awaiting Review	48328	IIS 7+ with standard FCGI an URL_REWRITE mangles REQUEST_URI		Bootstrap/Load	major	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	5.2.3	needs-patch
Defects Awaiting Review	44766	Microsoft-IIS/6.0 problem with wp_fix_server_vars		Bootstrap/Load	major	defect (bug)	new	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	4.9.8	needs-unit-tests
Defects Awaiting Review	57134	Custom maintenance pages are HTTP 200, not 503		Bootstrap/Load	normal	defect (bug)	new	2022-11-17T14:12:24Z	2022-11-18T22:03:31Z	"If WordPress' maintenance mode is activated (with `wp maintenance-mode activate`, for instance) by default WordPress returns the content of that page with an HTTP 503 ""Service Temporarily Unavailable"" status code. This makes sense, because it's maintenance, and presumably temporary.

If you have created a `wp-content/maintenance.php` file, though, maintenance pages displaying that content are returned as HTTP 200 OK. This could be confusing to search engines, and generally misleading.

This is happening around line 272 of wp-includes/load.php, where if a custom maintenance page is defined we simply `die()` as opposed to a few lines later where we can `wp_die()` and use a different HTTP status.

Is it intentional to return a different status when a custom maintenance page is defined? (If not, I'll write up a patch, it should be straightforward.)"	desmith	6.1.1	
Defects Awaiting Review	34634	Empty PHP_SELF causes 404 pages to load front page with 200 status code		Bootstrap/Load	normal	defect (bug)	new	2015-11-09T14:34:39Z	2018-11-16T00:53:36Z	"I've been having this issue where visiting a non-existent page in wordpress on our live server would result in the homepage being loaded with a 200 OK response, however on local and staging going to an non-existent page would result in the correct 404 page and template being loaded.

I have a standard 4.3.1 WP install subdomain base multisite with pretty permalinks enabled running with Nginx/PHP-FPM.

I've looked to see what was different between local and live and it turns out on live `$_SERVER['PHP_SELF']` is being set blank and on staging it is being set to `/index.php`. So to test I set at the top of my index.php file the following line `$_SERVER['PHP_SELF'] = '';`. Then when running on staging I was now getting the homepage load on a non-existent page.

So I've fired up my debugger to see what is going on in core and here are my findings.

In wp-load.php we set PHP_SELF to something based off REQUEST_URI

{{{#!php
// Fix empty PHP_SELF
    $PHP_SELF = $_SERVER['PHP_SELF'];
    if ( empty( $PHP_SELF ) )
        $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace( '/(\?.*)?$/', '', $_SERVER[""REQUEST_URI""] );
}}}

So the request `http://www.example.com/non-existent` results in `PHP_SELF` equal to `/non-existent` instead of `/index.php`

Then in `class-wp.php WP->parese_request()` we have:

{{{#!php
            $self = $_SERVER['PHP_SELF'];
            $home_path = trim( parse_url( home_url(), PHP_URL_PATH ), '/' );
            $home_path_regex = sprintf( '|^%s|i', preg_quote( $home_path, '|' ) );

            // Trim path info from the end and the leading home path from the
            // front. For path info requests, this leaves us with the requesting
            // filename, if any. For 404 requests, this leaves us with the
            // requested permalink.
            $req_uri = str_replace($pathinfo, '', $req_uri);
            $req_uri = trim($req_uri, '/');
            $req_uri = preg_replace( $home_path_regex, '', $req_uri );
            $req_uri = trim($req_uri, '/');
            $pathinfo = trim($pathinfo, '/');
            $pathinfo = preg_replace( $home_path_regex, '', $pathinfo );
            $pathinfo = trim($pathinfo, '/');
            $self = trim($self, '/');
            $self = preg_replace( $home_path_regex, '', $self );
            $self = trim($self, '/');
}}}

This ends up with: `$req_uri = $self = non-existent`

Later in the same function we have:

{{{#!php
// If req_uri is empty or if it is a request for ourself, unset error.
            if ( empty($request) || $req_uri == $self || strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false ) {
                unset( $error, $_GET['error'] );

                if ( isset($perma_query_vars) && strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false )
                    unset( $perma_query_vars );

                $this->did_permalink = false;
            }
}}}

Here because `$req_uri == $self` this code unsets the 404 which subsequently results in the front page being loaded rather than the 404 page

I did some further investigation and this appears to only happen on multisite installs. If I take a normal wordpress install and set `$_SERVER['PHP_SELF'] = ''` the 404's work as normal.
"	l3rady	2.0	has-patch
Enhancements Awaiting Review	43159	Introduce helper function for XMLRPC checks		Bootstrap/Load	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65043	Consider adding wp_doing_cli() to wrap WP_CLI constant checks		Bootstrap/Load	normal	feature request	new	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		dev-feedback
Enhancements Awaiting Review	64665	Add mu-plugins loading filter		Bootstrap/Load	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	17246	Handling of HTTP 404 errors for non-existing files		Bootstrap/Load	normal	enhancement	reopened	2011-04-26T18:50:15Z	2025-05-03T06:58:31Z	"Generally if WordPress sees a request for a specific file it means the web server couldn't find that file. Currently we run all of WordPress in such cases and output the theme's 404 template.

If the missing file is an image that has been reused 10 times (perhaps a CSS background or sprite) we will run ten extra times on every page load.

What I'm proposing is to short-circuit all requests for specific files very early in the load cycle, the same way we do it for favicon.ico requests and output a generic 404 notice."	azaozz		has-patch
Enhancements Awaiting Review	41934	Update load.php with wp_is_bad_request function		Bootstrap/Load	normal	enhancement	new	2017-09-20T17:42:06Z	2025-04-23T15:14:04Z	"I propose adding a wp_is_bad_request function to load.php, as a way to allow plugin developers to short circuit code execution if the HTTP request that started the WordPress load process is considered a junk request. See: #17246

The existing wp_favicon_request (renamed to wp_favicon_request_x in test file) is re-written to use the proposed wp_is_bad_request function.


"	rpayne7264	4.9	
Enhancements Awaiting Review	45949	Allow plugins or themes to supply their own message when they caused a WSOD		Bootstrap/Load	normal	enhancement	new	2019-01-11T22:55:16Z	2025-03-26T15:51:44Z	"#44524 ""introduces a WP_Shutdown_Handler class that detects fatal errors and which extension (plugin or theme) causes them. Such an error is then recorded, and an error message is displayed."" which is super cool. That change adds a generic recommendations for getting support that I think are a great default.

I was talking about this with @antpb the other day and we discussed how if a plugin causes the crash, that plugin or theme should be able to communicate how to get help. If not, the WordPress user is going to go to WordPress.org/support or the host and eventually, hopefully make it to the plugin's actual support system, which for a commercial plugin is likely not WordPress.org. They might also go to the host who can help identify which plugin or theme is to blame and then send the user to the plugin/ theme support.

That's a really bad user experience, they have a problem they want to go right to how to fix it.

If plugins and themes could supply a message for how to get support right away when things broke, that would be so much better.

The main problem we saw was that if there is a filter for the messages, but how does the plugin that just got deactivated due to error hook into that filter?

https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-shutdown-handler.php?rev=44524#L171

So we figured it could be a markdown file in the plugins repo. WordPress could look in its file system for a file called error.md in the main directory of the plugin/ theme that just errored or it could look on WordPress.org for that file. Either way, it doesn't have to load the plugin's main PHP file and the content of that file would be covered by the WordPress.org plugin guidelines. 

"	Shelob9		has-patch
Enhancements Awaiting Review	54117	Changing memory limit descriptions		Bootstrap/Load	minor	enhancement	new	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	5.8.1	has-patch
Enhancements Awaiting Review	60419	Emails: Your Site is Experiencing a Technical Issue		Bootstrap/Load	normal	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	5.2	
Enhancements Awaiting Review	60208	Prevent redirect loops		Bootstrap/Load	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	41520	Disable deprecated functions	pbearne	Bootstrap/Load	normal	enhancement	assigned	2017-08-01T20:16:06Z	2024-08-16T16:19:25Z	In bootstrap process, deprecated.php, pluggable-deprecated.php and ms-deprecated.php are includes. These files include all the deprecated functions in core. This is done for compatibility reasons, however there are many setups that do not requires these functions as they are not using any of these functions. These files inline over 4500 lines of code ( 3881 + 208 + 518 ). There should be an option to disable them. 	spacedmonkey		dev-feedback
Enhancements Awaiting Review	60611	Bootstrap/Load: Refactor debug.log handling for enhanced protection and usability		Bootstrap/Load	normal	enhancement	new	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	6.5	has-patch
Enhancements Awaiting Review	29341	Raise default value for WP_MEMORY_LIMIT in wp-includes/default-constants.php		Bootstrap/Load	normal	enhancement	new	2014-08-23T19:45:21Z	2024-03-17T04:33:21Z	"wp-includes/default-constants.php currently has a default value for WP_MEMORY_LIMIT of 40Mb (or 64Mb for multisite).

The effect of this constant is that if the current value of ini_get( 'memory_limit' ) is less, then ini_set() is used to raise it to at least WP_MEMORY_LIMIT.

This default is fine, if your site has few plugins. When the constant was brought in (looks like 3.0, from the comment in the code), sites tended to have fewer plugins, and need less memory.

It is not clear exactly what the rationale behind the default choice for WP_MEMORY_LIMIT is, and what data it is based upon. Nevertheless, I get to read a lot of log files through support for one of my plugins, and it is not uncommon for me to see sites where PHP memory use has exceeded 40Mb. It is not uncommon for me to have to advise someone on how to raise their PHP memory limit, because they are trying to clone their site into something like MAMP, which apparently has a lower limit than this (can't verify: I have no Mac), and the WP default is too low to then load their site successfully.

Based on my (admittedly anecdotal) experiences, I would recommend 64Mb or 80Mb as a much more suitable default in 2014 (and a corresponding increase for multisite), if the aim is for users to not be surprised by a lack of memory. I don't think that hosting companies will have a problem with this. I have extensive data on default settings of the PHP memory limit, and 99.8% of web hosting companies in that data have 64Mb or more. 99.5% have 96Mb or more."	DavidAnderson	4.0	dev-feedback
Enhancements Awaiting Review	56390	Updating WP_MEMORY_LIMIT		Bootstrap/Load	normal	enhancement	new	2022-08-16T09:04:13Z	2024-01-24T09:26:49Z	"During the [https://europe.wordcamp.org/2022/contributor-day/ Contributor Day at the WordCamp Europe 2022], the Hosting Team found that {{{WP_MEMORY_LIMIT}}} is set as 40 MB (single site) and 64 MB (multisite). Furthermore, the {{{WP_MAX_MEMORY_LIMIT}}} is set as 256 MB.

{{{WP_MEMORY_LIMIT}}} is the value for the WordPress Memory Limit, usually referred to the frontend memory, and {{{WP_MAX_MEMORY_LIMIT}}} is the value for the PHP Memory Limit, usually referred to the backend memory.

== History ==

Around September 2013, the {{{WP_MEMORY_LIMIT}}} value changed from 32 MB to 40 MB (32+8). Some tests done by the Hosting Team suggest that the memory used on WordPress is around 16 MB.

The PHP {{{memory_limit}}} sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. Note that to have no memory limit, set this directive to {{{-1}}}. Check the [https://www.php.net/manual/en/ini.core.php#ini.memory-limit PHP page for more information].

== Actual code ==

Checking the [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/default-constants.php default-constants.php], the code for {{{WP_MEMORY_LIMIT}}} is:

{{{
#!php
$current_limit = ini_get( 'memory_limit' );
$current_limit_int = wp_convert_hr_to_bytes( $current_limit );

// Define memory limits.
if ( ! defined( 'WP_MEMORY_LIMIT' ) ) {
  if ( false === wp_is_ini_value_changeable( 'memory_limit' ) ) {
    define( 'WP_MEMORY_LIMIT', $current_limit );
  } elseif ( is_multisite() ) {
    define( 'WP_MEMORY_LIMIT', '64M' );
  } else {
    define( 'WP_MEMORY_LIMIT', '40M' );
  }
}

// Set memory limits.
$wp_limit_int = wp_convert_hr_to_bytes( WP_MEMORY_LIMIT );
if ( -1 !== $current_limit_int && ( -1 === $wp_limit_int || $wp_limit_int > $current_limit_int ) ) {
  ini_set( 'memory_limit', WP_MEMORY_LIMIT );
}
}}}
''NOTE: this code is an extrapolation of some parts to understand the values.''

For {{{WP_MAX_MEMORY_LIMIT}}}, is:

{{{
#!php
$current_limit = ini_get( 'memory_limit' );
$current_limit_int = wp_convert_hr_to_bytes( $current_limit );

if ( ! defined( 'WP_MAX_MEMORY_LIMIT' ) ) {
  if ( false === wp_is_ini_value_changeable( 'memory_limit' ) ) {
    define( 'WP_MAX_MEMORY_LIMIT', $current_limit );
  } elseif ( -1 === $current_limit_int || $current_limit_int > 268435456 /* = 256M */ ) {
    define( 'WP_MAX_MEMORY_LIMIT', $current_limit );
  } else {
    define( 'WP_MAX_MEMORY_LIMIT', '256M' );
  }
}
}}}
''NOTE: this code is an extrapolation of some parts to understand the values.''

== PHP values ==

The first part gets the value from PHP, and if not exists, sets a default value. Thereafter, if the value is incorrect (in bytes) sets the memory limit from the constant.

This PHP value has evolved:
- PHP <5.1.0 (2005-11-24): valued at 8 MB (view [https://web.archive.org/web/20051127013935/https://www.php.net/manual/en/ini.core.php archive.org page])
- PHP =5.2.0: valued at 16 MB
- PHP >5.2.0 (2008-12-12): valued at 128 MB (view [https://web.archive.org/web/20081217050654/https://www.php.net/manual/en/ini.core.php#ini.memory-limit archive.org page])

== Some questions ==

**Why change the WP_MEMORY_LIMIT value?**

To level it to the PHP standard.

If the hoster has some kind of limitation, misconfiguration, an incorrect value or does not allow changing it, the value used is the lesser, of 40 MB, which usually produces memory errors, when it should use the PHP default value, which is generally acceptable in new installations. At this time, 20 latest versions of WordPress (since WordPress 4.1 / 2014-12-17) can use PHP 5.6.40+ so it would meet the minimums set by PHP.

**Can, actually, the value be greater than the PHP value?**

Yes. That's why there is an intent to include something like:

{{{WP_MEMORY_LIMIT <= WP_MAX_MEMORY_LIMIT <= memory_limit}}}

== Premises ==

We should keep in mind some basic assumptions when incorporating PHP memory limits based on what users can do.

The memory limit set by computer systems are set for a reason. And that reason should be enforced; therefore, PHP's memory limit should not be exceeded, and in case it needs to be exceeded, it should be changed by the system administration.

Users can set the values they want from the wp-config.php configuration file. Often, extremely high values are set to hide a memory consumption problem due to bad programming. With a few visits it usually works, but it is a short-term fix.

We must be realistic about the memory limits of the WordPress Core and the normal use of a WordPress, whether it is a simple WordPress or a WordPress Multisite. Most WordPress sites install plugins and themes that make memory spikes higher.

PHP has its baseline memory limits that should serve as a reference for its use and application.

== Proposal ==

Considering that since 2008, and PHP >5.2.0 the {{{memory_limit}}} value is equal to 128 MB, should we consider an update of this value in the WordPress base configuration, or at least an update of the values?

The proposal from the WordPress Hosting team is for {{{WP_MEMORY_LIMIT}}}:

- WordPress Single: {{{define('WP_MEMORY_LIMIT', '128M');}}}
- WordPress Multisite: {{{define('WP_MEMORY_LIMIT', '192M');}}}

Another patch should be:

{{{WP_MEMORY_LIMIT <= WP_MAX_MEMORY_LIMIT <= memory_limit}}}

Users can modify the {{{WP_MEMORY_LIMIT}}} and {{{WP_MAX_MEMORY_LIMIT}}} at {{{wp-config.php}}} and should have some limitations in values, as far as WordPress cannot overflow PHP.

== Getting the values ==

When doing some calls to PHP functions and values, got this:

- php.ini: {{{memory_limit}}} -> value: {{{256M}}}
- function: {{{memory_get_usage}}} -> value: {{{2097152}}}
- updating the {{{ini_set memory_limit}}} to {{{512M}}} -> value: {{{memory_limit = 256M}}}
- function: {{{ini_get_all[memory_limit]}}}
{{{
Array (
  [global_value] => 256M
  [local_value] => 512M
  [access] => 7
)
}}}

So, the real values are, always in the {{{ini_get_all[memory_limit]}}}.

After doing some tests, maybe hard-coding the values is a bad idea, but having some ""limits"" is cool (like now) but reading the real values.

== New code ==

This is just a proposal of code (need revision and checking by the WordPress Core Team).

{{{
#!php
$default_max_memory = 128 * MB_IN_BYTES; // this is a security limit. Should be align with the default PHP memory_limit. Now (PHP 5.3+) is 128M

$memory_default = ini_get( 'memory_limit' );

$ini_get_all = ini_get_all();

// set by global ini
if( isset( $ini_get_all['memory_limit']['global_value'] ) ) {
  $max_memory_default = $ini_get_all['memory_limit']['global_value'];
} elseif( $memory_default ) {
  $max_memory_default = $memory_default;
} else {
  $max_memory_default = $default_max_memory;
}

// set by site / virtualhost / pool ini
if( isset( $ini_get_all['memory_limit']['local_value'] ) ) {
  $max_memory_real = $ini_get_all['memory_limit']['local_value'];
} else {
  $max_memory_real = $max_memory_default;
}
unset( $memory_default, $ini_get_all );

// default memory in bytes
$max_memory_default_int = wp_convert_hr_to_bytes( $max_memory_default );
if( $max_memory_default_int <= 0 ) $max_memory_default_int = $default_max_memory;

// site memory in bytes
$max_memory_real_int = wp_convert_hr_to_bytes( $max_memory_real );

if( $max_memory_real_int <= 0 ) $max_memory_real_int = $default_max_memory;

if( $max_memory_real_int < $max_memory_default_int ) $max_memory_real_int = $max_memory_default_int; // set the limit to the max memory set wherever

// user did not set the WP_MEMORY_LIMIT in wp-config.php
if ( ! defined( 'WP_MEMORY_LIMIT' ) ) {
  define( 'WP_MEMORY_LIMIT', size_format( $max_memory_real_int ) );
// if the WP_MEMORY_LIMIT set by the user is greater than the real available
} elseif( $max_memory_real_int < wp_convert_hr_to_bytes( WP_MEMORY_LIMIT ) ) {
  define( 'WP_MEMORY_LIMIT', size_format( $max_memory_real_int ) );
}

// user did not set the WP_MAX_MEMORY_LIMIT in wp-config.php
if ( ! defined( 'WP_MAX_MEMORY_LIMIT' ) ) {
  define( 'WP_MAX_MEMORY_LIMIT', size_format( $max_memory_real_int ) );
// if the WP_MAX_MEMORY_LIMIT set by the user is greater than the real available
} elseif( $max_memory_real_int < wp_convert_hr_to_bytes( WP_MAX_MEMORY_LIMIT ) ) {
  define( 'WP_MAX_MEMORY_LIMIT', size_format( $max_memory_real_int ) );
}
if ( wp_convert_hr_to_bytes( WP_MEMORY_LIMIT ) > wp_convert_hr_to_bytes( WP_MAX_MEMORY_LIMIT ) ) {
  WP_MEMORY_LIMIT = WP_MAX_MEMORY_LIMIT;
}
unset( $default_max_memory, $max_memory_default, $max_memory_real, $max_memory_default_int, $max_memory_real_int );
}}}

Initial Props: @javiercasares, @crixu, @bernardzijlstra, @mikeschroder.

Original document from the Hosting team at
[https://docs.google.com/document/d/1CFMboqFnHMBifcuozqWKvUQUdxSCqCh-YcCwMOMeAl0/]"	JavierCasares		
Enhancements Awaiting Review	57553	Problem in load WordPress.		Bootstrap/Load	normal	enhancement	new	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	6.1.1	has-patch
Reporter Feedback / Close	45958	Errors displayed on shutdown handler		Bootstrap/Load	normal	defect (bug)	new	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		close
Reporter Feedback / Close	18525	"zlib.output_compression ""on"" in server conflicts with autoupdate"		Bootstrap/Load	normal	defect (bug)	reopened	2011-08-26T20:11:45Z	2025-05-22T00:53:58Z	"If zlib.output_compression is ""on"" in server (my vps server), then auto-update works, but without verbose output or any indication that install has succeeded.

This error is consistent for all auto-updates WordPress Application and all plugins.

It is NOT a plugin conflict. Occurs on different servers.

Testing has confirmed that when zlib.output_compression is returned to ""off"", then updates work as expected.

In my opinion this is a minor bug and probably a note in the readme file will suffice.

Thank You,

Neil Miller
zx@avidre.net"	avidre	3.2.1	close
Reporter Feedback / Close	45948	WSOD protection message formatted incorrectly on windows		Bootstrap/Load	normal	defect (bug)	new	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		reporter-feedback
Defects Awaiting Review, reported against no version	36898	Have `grunt precommit` fail if the test DB is unreachable.		Build/Test Tools	normal	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		needs-patch
Defects Awaiting Review, reported against no version	42714	Unit tests: Move remaining classes out of includes/utils.php into their own file		Build/Test Tools	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65770	PHPUnit tests: Build once and reuse.		Build/Test Tools	normal	defect (bug)	new	2026-07-31T01:16:37Z	2026-10-31T19:51:16Z	"The PHPUnit tests currently run `npm run build:dev` in each of the tests included in the matrix, currently this is over 80 times.

As the same version of NPM is used in each of the test runs, this is a lot of repetition for the same result.

I propose the WordPress-Develop build be created in the recently created `prepare-gutenberg` and saved as an artifact. The results of the build can then be applied in the reusable PHP workflow.

This will save about 30 seconds for each test, or 40-odd minutes of runtime.

"	peterwilsoncc		has-patch
Defects Awaiting Review	64579	Build: env:install fails intermittently with database connection refused		Build/Test Tools	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	60231	Replace constant ABSPATH . WPINC with BLOCKS_PATH in the require-dynamic-blocks.php		Build/Test Tools	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	48300	metadata registered using register_meta() do not persist through several tests		Build/Test Tools	normal	defect (bug)	new	2019-10-14T15:09:21Z	2026-10-31T16:50:44Z	"When you register a metadata using `register_meta()` function, or one of its variants, such as `register_post_meta()`, the metadata is present in the response of `get_registered_meta_keys()` only in the first test of a file...

I found this issue writing tests for a plugin, in a structure created based on the `wp scaffold plugin-tests` cli command.

= How to reproduce = 

Write a plugin with jus this simple code:

{{{#!php
<?php


add_action('init', 'test_register_post_meta');
function test_register_post_meta() {
	register_post_meta('post', 'test_meta', [
		'show_in_rest' => true,
		'single' => true,
		'type' => 'number',
		'description' => 'test metadata'
	]);
}
}}}

And then run these simple tests:

{{{#!php
<?php

class TestRegisterPostMeta extends \WP_UnitTestCase {

	function test_register_post_meta() {
		
		$registered_meta = get_registered_meta_keys('post', 'post');
		$this->assertArrayHasKey('test_meta', $registered_meta); // it passes!
		
	}
	
	function test_register_post_meta_again() {
		
		$registered_meta = get_registered_meta_keys('post', 'post');
		$this->assertArrayHasKey('test_meta', $registered_meta); // it fails! 
		
	}
	
	
}
}}}

This is very odd, but the second test, which is identical to the first, fails.
"	leogermani	5.1.1	has-patch
Defects Awaiting Review	66223	Add tests for wp_admin_bar_shortlink_menu		Build/Test Tools	normal	defect (bug)	new	2026-10-01T06:18:49Z	2026-10-30T22:04:02Z	Checks when the shortlink exists and when it doesn't.	r1k0		has-patch
Defects Awaiting Review	66227	Make the Core E2E tests preserve the development environment state		Build/Test Tools	normal	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		
Defects Awaiting Review	52830	Tests: Uploads remain after running test suite.		Build/Test Tools	normal	defect (bug)	new	2021-03-17T05:17:30Z	2026-10-05T18:27:26Z	"Running the test suite (`phpunit` on the command line) in full leaves several files remaining in the uploads directory once the tests complete:

{{{
/uploads/2021/03/waffles.jpg
/uploads/2021/03/waffles-300x200.jpg
/uploads/2021/03/waffles-150x150.jpg
}}}

Running only the media tests( `phpunit --filter Tests_Media` on the cli) leaves a different set of files remaining after they have completed:

{{{
/uploads/2021/03/test-image-large-scaled-150x150.jpg
/uploads/2021/03/test-image-large-scaled-300x225.jpg
/uploads/2021/03/test-image-large-scaled-768x576.jpg
/uploads/2021/03/test-image-large-scaled-1024x768.jpg
}}}

I did try to tidy them up by deleting attachments manually in `_delete_all_data()` (similar to how posts are deleted between classes in `_delete_all_posts()`) but without success.

Related #38264"	peterwilsoncc		has-patch
Defects Awaiting Review	66206	Extend the Axe-core accessibility automated testing to the Network admin pages		Build/Test Tools	normal	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		
Defects Awaiting Review	56086	readme.html should be changed to a markdown file		Build/Test Tools	normal	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		
Defects Awaiting Review	58816	MariaDB 11.x: deprecated alias for MySQL		Build/Test Tools	normal	defect (bug)	reopened	2023-07-17T05:10:50Z	2026-09-16T18:49:19Z	"Since MariaDB 11.0, there is a “deprecated warning message”:

{{{
PHPUnitFrameworkException: mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead

mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
}}}

One random test where you can find it:
https://make.wordpress.org/hosting/test-results/r56244/wpsaedgebot-r56244/"	JavierCasares		
Defects Awaiting Review	65950	Make sure all scripts and tasks provided to developers are always functional	afercia	Build/Test Tools	normal	defect (bug)	assigned	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		has-patch
Defects Awaiting Review	42064	wp_crop_image() does not work when fopen() is disabled		Build/Test Tools	normal	defect (bug)	new	2017-10-02T19:10:07Z	2026-08-18T08:39:22Z	"While running the WordPress PHP Unit testing framework, a single test for wp_crop_image() failed consistently. After @danielbachhuber debugged the test, he found that wp_crop_image() was failing because it depended on _load_image_to_edit_path, which he said is dependent on fopen(). WordPress is supposed to function when fopen() is disabled. wp_crop_image's dependency on fopen is incorrect.

To reproduce the issue:
Disable allow_url_fopen in PHP
Setup the PHPUnit Test Runner (https://github.com/WordPress/phpunit-test-runner)
Run the PHPUnit Test Runner.

The test runner should report the following failed test:
Tests_Image_Functions::test_wp_crop_image_url Failed asserting that WP_Error Object (...) is not an instance of class ""WP_Error"". /../../../phpunit-test-runner/wp-test-runner/tests/phpunit/tests/image/functions.php:317

The WP_Error object reports the following:
Fobject(WP_Error)#9993 (2) {
  [""errors""]=>
  array(1) {
    [""invalid_image""]=>
    array(1) {
      [0]=>
      string(21) ""File is not an image.""
    }
  }
  [""error_data""]=>
  array(1) {
    [""invalid_image""]=>
    string(60) ""https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg""
  }
}

The image is a valid image otherwise, such as when viewed through the browser. The test fails on PHP 5.6, PHP 7.0, and PHP 7.1 when fopen is disabled."	jadonn	4.9	has-patch
Defects Awaiting Review	64228	Update `sinon` npm dependency		Build/Test Tools	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	53685	Update the `caniuse` database when running `grunt precommit:css`		Build/Test Tools	normal	defect (bug)	new	2021-07-18T23:58:00Z	2026-03-24T13:38:05Z	"The `autoprefixer` dependency is responsible for applying browser specific prefixing and other changes to Core CSS generated from Sass files. It relies on the `browserslist` package, which in turn relies on the `caniuse-lite` database for determining which browser versions are supported for the project based on the `browserslist` field in the `package.json` file.

The `caniuse-lite` data is updated pretty frequently (several times a month), but unless it is manually updated, the data used is most likely outdated. This can result in unsupported browsers being considered supported due to outdated data.

When `grunt precommit:css` is run, the script should check whether `browserslist` is at the latest version to ensure the generated CSS supports the correct browsers.

The recommended way to do this is running `npx browserslist@latest --update-db`."	desrosj		
Defects Awaiting Review	64654	Docker images in wordpress-develop do not support on Apple Silicon		Build/Test Tools	normal	defect (bug)	new	2026-02-17T05:01:03Z	2026-02-20T10:01:52Z	"On Apple Silicon (M1), running the WordPress core development environment fails because the Docker images `wordpressdevelop/php:latest` and `wordpressdevelop/cli:latest` do not provide linux/arm64 support.

== Environment ==

* MacBook Pro (13-inch, M1, 2020)
* Apple M1
* macOS 26.3 (25D125)
* Node.js 20.x
* npm 10.x

== Steps to Reproduce ==

{{{
npm install
npm run build:dev
npm run env:start
}}}

== Actual Result ==

Docker fails with:

{{{
no matching manifest for linux/arm64/v8 in the manifest list entries
}}}

Affected images:

* wordpressdevelop/php:latest
* wordpressdevelop/cli:latest

== Expected Result ==

The development environment should start successfully on Apple Silicon without requiring manual platform overrides.

== Workaround ==

The environment starts only if `docker-compose.override.yml` includes platform overrides for `php` and `cli` (similar to `mysql`):

{{{
services:
  php:
    platform: linux/amd64
  cli:
    platform: linux/amd64
  mysql:
    platform: linux/amd64
}}}

Without overriding `php` and `cli`, the environment does not start."	huzaifaalmesbah		
Defects Awaiting Review	64103	Run WP-CLI test suite in core repo		Build/Test Tools	normal	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		
Defects Awaiting Review	63601	Memory exhaustion during performance tests when base version is set to 6.8		Build/Test Tools	normal	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	6.8	
Defects Awaiting Review	63024	Address the errors that cause annotations in the e2e test workflows		Build/Test Tools	normal	defect (bug)	new	2025-02-26T17:32:53Z	2025-06-15T17:16:44Z	"The end to end tests workflow on GitHub Actions produces errors that are output as annotations on the workflow runs but don't cause them to fail. These should be investigated and fixed as necessary.

Here's an example run: https://github.com/WordPress/wordpress-develop/actions/runs/13549269287

{{{
[chromium] › install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials: tests/e2e/specs/install.test.js#L40
  1) [chromium] › install.test.js:34:6 › WordPress installation process › should install WordPress with pre-existing database credentials 
    Error: should redirect to the installation page

    Timed out 5000ms waiting for expect(locator).toHaveURL(expected)

    Locator: locator(':root')
    Expected pattern: /wp-admin\/install\.php$/
    Received string:  ""http://localhost:8889/""
    Call log:
      - should redirect to the installation page with timeout 5000ms
      - waiting for locator(':root')
        9 × locator resolved to <html lang=""en-US"">…</html>
          - unexpected value ""http://localhost:8889/""


      38 | 			page,
      39 | 			'should redirect to the installation page'
    > 40 | 		).toHaveURL( /wp-admin\/install\.php$/ );
         | 		  ^
      41 |
      42 | 		await expect(
      43 | 			page.getByText( /WordPress database error/ ),
        at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/install.test.js:40:5
}}}"	johnbillion		has-patch
Defects Awaiting Review	56842	WordPress performance drop due to introduce Gutenberg		Build/Test Tools	major	defect (bug)	new	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	6.0	has-patch
Defects Awaiting Review	62463	The `precommit:emoji` script no longer works in branches 6.4 and earlier		Build/Test Tools	normal	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		
Defects Awaiting Review	61245	Two QUnit Widget tests are skipped and one is broken		Build/Test Tools	normal	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		
Defects Awaiting Review	56029	.git-blame-ignore-revs causes other revisions to be ignored		Build/Test Tools	normal	defect (bug)	new	2022-06-21T21:20:38Z	2024-08-16T19:52:43Z	"Previously: #55422

It appears that the `.git-blame-ignore-revs` file is causing revisions other than those listed to be ignored when using the ""View blame prior to this change"" button on GitHub. This might be a bug in GitHub or it might be a side effect of how Git ignores revisions and produces an inability to keep track of changes to a line across major changes.

**Steps to reproduce:**

* [https://github.com/wordpress/wordpress-develop/blame/trunk/src/wp-includes/pluggable.php#L946 Visit the blame view for wp-includes/pluggable.php on GitHub]
* One line 946 you'll see:
{{{#!php
list( $username, $expiration, $token, $hmac ) = $cookie_elements;
}}}
* Observe the previous revision for this line is listed as [https://github.com/WordPress/wordpress-develop/commit/78a2c0f78152ab52047937daeba44a55ed71f64a 78a2c0f] which is [8696] from the year 2008

The actual previous revision was [https://github.com/wordpress/wordpress-develop/commit/8f95800d52c1736d651ae6e259f90ad4a0db2c3f the Code is Poetry commit] ([42343]) which is listed in `.git-blame-ignore-revs`. Prior to this commit, there was [https://github.com/wordpress/wordpress-develop/commit/97fcbef707e9e853e0ef655fb3aaab192058fee1 97fcbef] ([29221]) which is an actual functional change which is being ignored. 

Removing the code formatting and pinking commits from the blame views is useful, but preventing history from being accurately traced back is a problem.

**Options:**

* Ask GitHub to investigate or advise
* Remove the `.git-blame-ignore-revs` file for now

cc @helen "	johnbillion	6.0	needs-patch
Defects Awaiting Review	60016	Fixed wp_suspend_cache_invalidation to always return bool/empty		Build/Test Tools	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	53861	Promote a database error during test bootstrap to a failure		Build/Test Tools	normal	defect (bug)	new	2021-08-02T19:35:54Z	2023-09-09T02:05:20Z	"Follow-up to #53830

When a database error occurs during the test suite bootstrap it should cause the test run to fail by exiting with an exit code of `1`.

This problem [https://github.com/WordPress/wordpress-develop/runs/3195736309?check_suite_focus=true#step:19:24 is actually detected during the test run] but it doesn't cause the run to fail.

If this had been in place before [50129] then the problem would have been identified."	johnbillion		has-patch
Defects Awaiting Review	56250	ReferenceErrors encountered when running QUnit tests		Build/Test Tools	normal	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		
Defects Awaiting Review	54397	e2e timeout errors: waiting for selection `.components-snackbar`		Build/Test Tools	normal	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		
Defects Awaiting Review	54724	PHPunit tests should not load remote patterns		Build/Test Tools	normal	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	5.8	
Defects Awaiting Review	53781	Tests_Embed_Template tests fail when run in isolation		Build/Test Tools	minor	defect (bug)	new	2021-07-26T10:25:19Z	2021-09-28T03:32:26Z	"When running the `Tests_Embed_Template` test in isolation, two of the tests fail.
{{{
phpunit --filter Tests_Embed_Template
}}}


{{{
#) Tests_Embed_Template::test_oembed_output_post_with_thumbnail
DOMDocument::loadHTML(): AttValue: "" expected in Entity, line: 10

path/to/wp/tests/phpunit/tests/oembed/template.php:66

#) Tests_Embed_Template::test_oembed_output_attachment
DOMDocument::loadHTML(): AttValue: "" expected in Entity, line: 10

path/to/wp/tests/phpunit/tests/oembed/template.php:110
}}}


Accidentally discovered when I added the `import` group to the `<groups>` `<excludes>` and ran the complete test suite and those two tests - which are unrelated to the `import` tests - started erroring out.

A tentative conclusion from that can be that:
1. The `Tests_Embed_Template` tests have an undeclared dependency on the tests in the `import` group.
2. The `Tests_Embed_Template` tests only pass by accident due to the **''order''** in which the tests are run, which is not guaranteed and can be influenced in more recent PHPUnit versions, so cannot be relied upon.
Also see: https://phpunit.readthedocs.io/en/stable/configuration.html#the-executionorder-attribute


This needs further investigation.

Solution direction: The test should be made independent of the `import` tests.


Originally reported in https://core.trac.wordpress.org/ticket/53363#comment:39"	jrf		needs-patch
Defects Awaiting Review	54064	Add phpcs run command to Docker		Build/Test Tools	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	53842	Review the type of select return values		Build/Test Tools	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	52331	Consider using more precise browser versions for `browserslist`		Build/Test Tools	normal	defect (bug)	new	2021-01-20T18:52:13Z	2021-07-27T15:10:48Z	"The `browserslist` array within the `package.json` file is used to inform the `autoprefixer` package which CSS vendor prefixes should be present in Core CSS files. This process happens when `npm run grunt precommit:css` is run.

**Within `trunk`**

Currently, browser support is defined relatively as such:
- Browsers with > 1% global usage.
- IE >= 11.
- The last 1 version of Android and ChromeAndroid.
- The last 2 versions of Chrome, Firefox, Safari, iOS (which generally is the same version as Safari since the versions coincide), Edge, and Opera.

Since Chrome version 25, the Android and desktop versions of Chrome are aligned with stable releases available at the sime time between the two. **Because of this, the ChromeAndroid item can probably be removed, or should be updated to `last 2 ChromeAndroid` to be accurate.**

**Older Branches**

These relative values work within `trunk`, but they could potentially cause issues in older branches over time. Values are relative to the day the command is run and not to when each major version was released. Running `npm run grunt precommit` while working within older branches will eventually result unwanted CSS changes as more new browser versions are released.

I'm proposing that when a major version is branched, the `browserslist` array gets updated with precise versioning to ensure that the browsers supported on release day will continue to be supported into the future, and prevents unnecessary/undesired CSS changes within minor releases. The `> 1%` should also be removed after branching because usage changes over time, and this could also result in some vendor prefixes being unintentionally removed.

For the 5.6 branch, the below values would be used.

||= Browser =|| Version ||
|| `ie` ||  `>= 11`  ||
|| `Android` ||  `>= 11`  ||
|| `ChromeAndroid` ||  `>= 87`  ||
|| `Chrome` ||  `>= 87`  ||
|| `Firefox` ||  `>= 81`  ||
|| `Safari` ||  `>= 13`  ||
|| `iOS` ||  `>= 13`  ||
|| `Edge` ||  `>= 41`  ||
|| `Opera` ||  `>= 66`  ||

WordPress 4.9 was the first major version to use relative versioning (see [41062]).

I've gone and done some research, and below is the list of browser versions on each major version's release day that would have met the relative requirements.

|| WP Version || IE || Android || ChromeAndroid || Chrome || Firefox || Safari || iOS || Edge || Opera ||
|| 5.6 (12/8/2020) || 11 || 11 || 87 || 87 || 81 || 13 || 13 || 41 || 66 ||
|| 5.5 (8/11/2020) || 11 || 10 || 83 || 83 || 79 || 12 || 12 || 41 || 66 ||
|| 5.4 (3/31/2020) || 11 || 10 || 79 || 79 || 73 || 12 || 12 || 41 || 65 ||
|| 5.3 (11/12/2019)|| 11 || 10 || 77 || 77 || 69 || 12 || 12 || 40 || 63 ||
|| 5.2 (5/7/2019)  || 11 || 9 || 73 || 73 || 65 || 11 || 11 || 40 || 58 ||
|| 5.1 (2/21/2019) || 11 || 9 || 71 || 71 || 63 || 11 || 11 || 40 || 57 ||
|| 5.0 (12/6/2018) || 11 || 9 || 70 || 70 || 62 || 11 || 11 || 40 || 56 ||
|| 4.9 (11/16/2017) || 11 || 8 || 61 || 61 || 56 || 10 || 10 || 40 || 48 ||"	desrosj	4.9	dev-feedback
Defects Awaiting Review	51960	`grunt copy:dynamic` doesn't copy all changed files		Build/Test Tools	normal	defect (bug)	new	2020-12-07T23:43:00Z	2020-12-09T14:48:13Z	"I run into this problem a lot:

1. `npm run watch`
1. Change several PHP files near-simultaneously. Examples:
 a. `git checkout {branch}`
 a. Change several files in PhpStorm, then hit `command+s` to save them all at once.
1. Only some of the files are copied from `src/` to `build/`:

{{{
Running ""_watch"" task
Completed in 0.737s at Mon Dec 07 2020 14:11:46 GMT-0800 (Pacific Standard Time) - Waiting...
>> File ""src/wp-includes/class-wp-simplepie-file.php"" changed.
>> File ""src/wp-includes/SimplePie/File.php"" changed.

Running ""clean:dynamic"" (clean) task
>> 0 paths cleaned.

Running ""copy:dynamic"" (copy) task
Copied 1 file
}}}

It doesn't happen all of the time, but it happens often, and makes testing changes very frustrating.


==== Workaround

In the mean time, I've written [https://github.com/iandunn/dotfiles/blob/38b796b/bin/wp-develop-phpstorm-watcher.php a simple PhpStorm file watcher task]."	iandunn		
Defects Awaiting Review	51446	CORS issues with QUnit while running tests		Build/Test Tools	normal	defect (bug)	new	2020-10-05T04:01:48Z	2020-11-10T02:05:09Z	"Hello,

For a while I've been having an error when running `grunt test` with the qunit tests;
{{{
Running ""qunit:files"" (qunit) task
Testing tests/qunit/compiled.html ......................................................................................................................................................................................................................................................................................................OK
Testing tests/qunit/index.html 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, chrome, https.
Failed to load resource: net::ERR_FAILED
......................................................................................................................................................................................................................................................................................................OK
>> 588 tests completed with 0 failed, 0 skipped, and 0 todo.
>> 1738 assertions (in 8024ms), passed: 1738, failed: 0
}}}

Looking into this a little I was able to resolve these by updating the `tests/qunit/index.html` to use localhost for the ajax urls. 

Uploading patch but am unsure if it's the correct action, seems to work nicely for me at least and suppresses the error."	garrett-eclipse	5.5	dev-feedback
Defects Awaiting Review	46804	wp-phpunit calls _delete_all_posts() too early during bootstrap		Build/Test Tools	normal	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		
Defects Awaiting Review	29066	Grunt clean:dynamic task does not delete file/s from /build during grunt watch task		Build/Test Tools	minor	defect (bug)	new	2014-07-30T04:10:15Z	2019-02-25T01:44:52Z	"When running the Grunt task `grunt watch` a file that is modified and saved should be cleaned from the /build folder and the modified file copied from the /src folder to the /build folder as part of the `watch:all` task:

{{{
tasks: [ 'clean:dynamic', 'copy:dynamic' ],
}}}

Currently the `clean:dynamic` task does not actually 'clean' (delete) the file from the /build folder, the `copy:dynamic` task overwrites the existing file.

Workaround: Do nothing and continue to have the file overwritten without cleaning first.

Options:

1. Fix the `clean:dynamic` task to actually 'clean' (delete) the file from /build

2. Remove the `clean:dynamic` task from the `clean` and `watch:all` tasks list

To reproduce:
* Temporarilly remove `copy:dynamic` from the `watch:all` task tasks list
* Run `grunt watch`
* Edit a file from /src and save

Expected Results: 
* Edited file should be 'cleaned' (deleted) in /build folder
Actual results: 
* File remains in /build folder
"	netweb	3.7	needs-patch
Defects Awaiting Review	43663	Unit Test test_theme_file_uri_returns_valid_uri fails on directories with spaces		Build/Test Tools	normal	defect (bug)	new	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	4.9.5	dev-feedback
Enhancements Awaiting Review	54029	Rename WordPress native expectDeprecated() and @ExpectedDeprecated to avoid confusion with PHPUnit native expectDeprecation and for future-proofing		Build/Test Tools	normal	task (blessed)	new	2021-08-27T19:50:02Z	2026-11-10T19:47:34Z	"WordPress' test suite has a native expectation and annotation for expecting a deprecation notice: `expectDeprecated()` and `@ExpectedDeprecated`.

[https://phpunit.readthedocs.io/en/8.5/writing-tests-for-phpunit.html#testing-php-errors-warnings-and-notices PHPUnit 8 introduced a new set of deprecation expectations]: `expectDeprecation()`, `expectDeprecationMessage()`, and `expectDeprecationMessageMatches()`.

Notice naming conventions between WordPress and PHPUnit. They are very similar.

||=  WordPress  =||=  PHPUnit  =||
|| `expectDeprecated()` || `expectDeprecation()` ||
|| `@ExpectedDeprecated` ||  -  ||



== What is the problem?

The names are too similar. As such, confusion over which to use can happen. There's a potential of using the wrong one.

Future-proof against future PHPUnit changes: 
Luckily PHPUnit used ""deprecation"" instead of ""deprecated"". However, there's the potential of future changes which may conflict with the native WP ones.

== Proposal

Rename the expectation to include `WP` and deprecate the currently ones.

Why deprecate? To avoid a backwards-compatibility break for any extenders using WordPress' native one.

1. Confusion and potential to use the wrong one: the names are too similar.
2. Future-proof: 

https://youtu.be/SAtiKaUwLU4?t=12019"	hellofromTonya		has-patch
Enhancements Awaiting Review	64543	Implement `ignore-scripts` to harden npm usage		Build/Test Tools	normal	task (blessed)	new	2026-01-22T22:51:42Z	2026-11-07T14:52:14Z	"Lifecycle scripts in npm packages -- in particular `postInstall` scripts -- are a significant security concern because by default they execute automatically for all dependencies.

Running `npm install` or `npm ci` not only installs packages but also runs the `postInstall` script in every direct and transitive dependency in the entire dependency tree. [https://socket.dev/blog/ongoing-supply-chain-attack-targets-crowdstrike-npm-packages The recent ""Shai-Hulud"" supply chain attack on the npm ecosystem] has been successful in part due to `postInstall` scripts that have allowed it to rapidly self-propagate.

We should strongly consider implementing `ignore-scripts = true` in the `.npmrc` file in order to disable the automatic execution of lifecycle scripts. This will primarily help protect contributors against malicious postInstall scripts that may be introduced by attacks on packages in the dependency tree.

Ironically WordPress core just introduced its own `postInstall` script in #64393. This is far from ideal.

Making this change will cause some short-term pain while we determine the best way to ensure that all dependencies continue to work and/or provide clear instructions for contributors if manual subsequent steps become necessary. As the ecosystem reels from ""Shai-Hulud"" supply chain attack I fully expect to see more packages remove their postInstall scripts in favour of documenting subsequent steps necessary to, for example, install dependent binaries.

There's some tooling available to assist with determining which dependencies include lifecycle scripts, but not a lot:

- `npm query ':attr(scripts, [postinstall])'`
- `npm query ':attr(scripts, [preinstall])'`
- `npm query ':attr(scripts, [install])'`
- https://www.npmjs.com/package/can-i-ignore-scripts
- https://www.npmjs.com/package/@lavamoat/allow-scripts

Related links:

- [https://cheatsheetseries.owasp.org/cheatsheets/NPM_Security_Cheat_Sheet.html#3-minimize-attack-surfaces-by-ignoring-run-scripts OWASP recommends using ignore-scripts]
- [https://socket.dev/blog/pnpm-10-0-0-blocks-lifecycle-scripts-by-default pnpm since version 10 no longer runs any lifecycle scripts by default]
- [https://www.nodejs-security.com/blog/npm-ignore-scripts-best-practices-as-security-mitigation-for-malicious-packages NPM ignore scripts best practices]
"	johnbillion		has-patch
Enhancements Awaiting Review	66500	Add unit tests for remove_all_shortcodes(), get_shortcode_tags_in_content(), apply_shortcodes() and unescape_invalid_shortcodes()		Build/Test Tools	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	59851	test for send_frame_options_header		Build/Test Tools	normal	task (blessed)	new	2023-11-08T21:52:52Z	2026-10-31T21:19:26Z		pbearne		has-patch
Enhancements Awaiting Review	56794	Add linting for `gutenberg_*` functions		Build/Test Tools	normal	enhancement	new	2022-10-11T15:32:06Z	2026-10-31T19:56:08Z	"When Gutenberg functionality is deemed ready and merged into Core, all `gutenberg` prefixes should be replaced with` wp_*` or other more context appropriate ones.

There should be some type of automated process that attempts to detect occurrences that accidentally make their way in."	desrosj		dev-feedback
Enhancements Awaiting Review	64520	Gutenberg assets: show hash in the version footer		Build/Test Tools	normal	enhancement	new	2026-01-16T10:18:19Z	2026-10-31T19:56:04Z	It would be cool to show a (short) hash of the Gutenberg checkout in the footer, perhaps with a link to the commit, so you can quickly see what version you're on. I'd only find it useful if it was linked to the version that is build. So if the hash has change but the build hasn't updated yet, it should show the old hash imo.	ellatrix		has-patch
Enhancements Awaiting Review	54892	E2E tests for Creating Menu, Removing existing menu and Remove items from Menu		Build/Test Tools	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	63628	Build/Test Tools: Remove unnecessary `docker` branding		Build/Test Tools	normal	enhancement	new	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	5.3	has-patch
Enhancements Awaiting Review	54151	Dashboard widgets e2e tests	justinahinon	Build/Test Tools	normal	enhancement	assigned	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		has-patch
Enhancements Awaiting Review	54152	Core posts e2e tests		Build/Test Tools	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	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	normal	enhancement	new	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	trunk	has-patch
Enhancements Awaiting Review	50209	Remove all uploads between test methods		Build/Test Tools	normal	enhancement	new	2020-05-19T11:09:00Z	2026-09-10T16:00:54Z	"Commit r29120 added a curious feature to the WordPress testing framework: selective uploads deletion between test runs.

What it means is that the first time that `WP_UnitTestCase::setUp()` is called for a test case, it will create a list of all files contained in the uploads directory. This list, stored in the static `$ignore_files` property, allows to selectively delete files uploaded during tests.

This code was added so that tests can be run against a development installation of WordPress. In opposition to running tests against a throwaway installation, as should be the case.

There are three issues with this behavior:
1. Scanning the uploads directory is slow. If you have too many files in that directory, the test runner will ""hang"" before running the first test. Ultimately it will result in a memory exhaustion error.
2. Attachments are not properly deleted. `_delete_all_data()` runs a SQL query that deletes the database entries of attachments, but not the associated files. Since the function is called before `wpTearDownAfterClass` runs, there's no way to do manual cleanups in tests. The next test case that gets booted up will add the remaining files to the list of files to ignore, making it impossible to do selective uploads deletion. See #41978.
3. There is no automatic clean up of uploads between test methods or test cases, leaving files lingering around. Even after all tests have been run.

In short this approach is slow, half-baked, and unneeded. We should therefore remove it, and have uploads be cleared the same as any other fixture.

Since this behaviour has been around for years now, we can't unfortunately just remove it, so I propose that we use a feature flag for disabling it."	anonymized_8769252	4.0	needs-patch
Enhancements Awaiting Review	66049	Build PHPStan extensions for query-string $args passed to wp_parse_args()-based template tags		Build/Test Tools	normal	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		
Enhancements Awaiting Review	49638	Determine methodology recommendations for CSS audit		Build/Test Tools	normal	enhancement	new	2020-03-12T21:09:17Z	2026-08-06T19:30:59Z	"This ticket is under the umbrella CSS audit ticket #49582. Ticket #49637 is intended to collect a wish list of *what we want to know* as a result of the audit. This ticket is for determining some recommended approaches and tools for finding that information.

For example:
* Using PostCSS to find and compare selectors
* Creating a specific set of Stylelint rules to flag areas with high specificity
* A recommended approach for any manual inspection of files"	notlaura		
Enhancements Awaiting Review	65226	Build/Test Tools: Move AJAX unit tests to mirror source structure		Build/Test Tools	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	61173	Run upgrade tests on PRs and pushes to trunk		Build/Test Tools	normal	task (blessed)	new	2024-05-08T19:20:06Z	2026-03-27T17:09:11Z	"We've got [https://github.com/WordPress/wordpress-develop/actions/workflows/upgrade-testing.yml an ""Upgrade Tests"" GitHub Actions workflow which runs upgrade tests], but this workflow only runs when manually triggered, it doesn't run on PRs or pushes to trunk (unless the workflow file itself is changed).

There should be a workflow which tests the process of upgrading from a prior version to a Zip built from the current branch.

The existing ""Upgrade Tests"" workflow tests upgrades from a given version to the latest stable. It needs to be adjusted (or we need a new workflow) which allows upgrading to a specified Zip file.

To keep the number of tests (and the workflow time) manageable, we shouldn't test the entire matrix, but just a few choice upgrades."	johnbillion		needs-patch
Enhancements Awaiting Review	55429	Coding Standard: Use spaces for JSON instead of tabs		Build/Test Tools	normal	feature request	new	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		
Enhancements Awaiting Review	59659	Run Gutenberg e2e tests in core		Build/Test Tools	normal	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		
Enhancements Awaiting Review	63421	Adding SSL Support for ENV		Build/Test Tools	normal	enhancement	reopened	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		has-patch
Enhancements Awaiting Review	64222	Improve the upgrade process for the Twemoji library		Build/Test Tools	normal	feature request	new	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		dev-feedback
Enhancements Awaiting Review	53480	Existing config files lost when installing local-env		Build/Test Tools	normal	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		
Enhancements Awaiting Review	48050	Development Build: Provide structure to auto-install plugins		Build/Test Tools	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	63336	Adding Support to Apache2		Build/Test Tools	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	57556	Configure feature branches on GitHub to trigger workflows to support development on forks		Build/Test Tools	normal	enhancement	new	2023-01-25T21:30:37Z	2025-01-21T22:45:50Z	"When contributing to WordPress core through GitHub, the workflow is to create new branch in a fork, and open a pull request from there to WordPress core.

This works reasonably well for smaller pieces of work, but when it comes to larger features it is not a great development experience having to work in a single pull request for the entire effort. A simplified workflow can be to work in individual issues and pull requests within the fork, until a fully functional version of the feature or larger enhancement is ready for an actual WordPress core pull request.

This workflow is already possible today, however one caveat is that as long as the development happens on the fork, the GitHub workflows are not triggered unless the work happens against the `trunk` branch. That however is not a good idea in itself as the `trunk` branch is the main development branch and not intended for work on specific features. It would make it impossible to work on multiple features in the same fork if they had to be developed against `trunk`.

This ticket therefore proposes to add a certain branch pattern to the CI configuration of WordPress core's GitHub workflows, e.g. to ensure that they run for any branches satisfying the `feature/*` pattern.

Of course in theory any fork could implement that individually, but that would eventually not be a great workflow as then every PR against the main `WordPress/wordpress-develop` repository would include that change, which it should not.

Since no actual development happens within the `WordPress/wordpress-develop` repository directly, I'd argue there is no harm in adding this extra branch rule. What it would help though is to support the above workflow to develop greater features iteratively in a fork."	flixos90		needs-docs
Enhancements Awaiting Review	56740	set_up_before_class() / wpSetUpBeforeClass() are inconsistent and confusing		Build/Test Tools	normal	enhancement	new	2022-10-05T17:06:53Z	2025-01-18T15:38:35Z	"There was some discussion in #55918 about standardizing on either `set_up_before_class()`/`set_up_after_class()` or `wpSetUpBeforeClass()`/`wpSetUpAfterClass()`. That would bring consistency, and help reduce the confusion that exists around those functions. That applies to the tear down functions as well.

See comment:7:ticket:55918 (and replies to it)
See https://wordpress.slack.com/archives/C03B0H5J0/p1660782746785649
See https://wordpress.slack.com/archives/C03B0H5J0/p1661876947032299

The `wp...` variants were introduced in r35186.

If a change is made here (and probably even if one isn't), it'd be good to update [https://make.wordpress.org/core/handbook/testing/automated-testing/writing-phpunit-tests/ the handbook page] to explain which functions folks should use, and any caveats.
"	iandunn	4.4	
Enhancements Awaiting Review	61643	Local Environment: Consider switching to wp-env instead of a custom environment.		Build/Test Tools	normal	enhancement	new	2024-07-12T11:46:10Z	2024-11-27T12:58:34Z	"WordPress Develop is using a docker based environment but it's implemented in a very adhoc way. 
What's preventing us from just using `wp-env` instead? 
I understand that a migration might not be straightforward, but I'm curious to understand if there are any blockers."	youknowriad		
Enhancements Awaiting Review	56785	Automatically catch potential security issues before release		Build/Test Tools	normal	enhancement	new	2022-10-11T01:27:46Z	2024-11-19T14:27:22Z	"It's much less effort to fix a security bug before it makes it into a release, and that also prevents users from being impacted. Automated tools are notoriously noisy, but have gotten better over the years, so it may be worth considering.

I recently tested out [https://sonarcloud.io/ SonarCloud] and it seems like it could be a good fit. It primarily focuses on new PRs/commits, which is much more manageable than tools that report a backlog of false positives.

It can comment on PRs with a report, and we could setup permissions so that any  committer could dismiss false positives while reviewing. It could also scan (the GitHub mirror of) `trunk`, for commits that don't use the PR workflow. The ruleset can be customized, so we can only focus on security issues.

I'm not partial to any particular tool, though; are there others that folks like? I just noticed [https://resources.github.com/security/tools/ghas-trial/ GitHub is trialing a static analyzer], but haven't tried it. If there are several good contenders, we could experiment with a few and then weigh the tradeoffs.
"	iandunn		dev-feedback
Enhancements Awaiting Review	62188	Update `imagemin` tasks to run on modern image formats	pbearne	Build/Test Tools	normal	enhancement	assigned	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		has-patch
Enhancements Awaiting Review	60874	Better Block Management System required		Build/Test Tools	normal	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		
Enhancements Awaiting Review	41781	do not forcefully phpunit delete fixtures data		Build/Test Tools	normal	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	4.8.1	
Enhancements Awaiting Review	55973	Add .gitattributes file to annotate generated files		Build/Test Tools	normal	enhancement	new	2022-06-14T09:19:11Z	2023-11-16T13:47:45Z	"To make development on GitHub easier, we could consider adding a `.gitattributes` file for annotating generated files.

The `linguist-generated` attribute can be used to mark or unmark paths that should be ignored for the repository's language statistics and hidden by default in diffs.

See https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github for more details

This came to mind when reviewing https://github.com/WordPress/wordpress-develop/pull/2647"	swissspidy		
Enhancements Awaiting Review	59728	Build/Test Tools: Expose error message upon Gutenberg plugin activation failure.	Bernhard Reiter	Build/Test Tools	normal	enhancement	assigned	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		has-patch
Enhancements Awaiting Review	53119	Tests: introduce naming conventions for data providers and use named test cases		Build/Test Tools	normal	task (blessed)	new	2021-04-30T15:58:51Z	2023-10-24T01:46:08Z	"A number of tests use dataproviders - functions which return a multi-level array of test cases, where each sub-array is a set of parameters to pass to the actual test function -.

Also see: https://phpunit.readthedocs.io/en/9.5/writing-tests-for-phpunit.html?#data-providers

Currently there are:
* No naming conventions for data providers - the functions are called whatever the author wanted to call them.
* No placement conventions for data providers - sometimes the functions are at the top of a file, sometimes at the bottom, sometimes just before or after the test function using them.

I'd like to recommend streamlining this a little more to:
1. Make it more obvious which functions are data providers.
2. Make the data providers easier to find.

With that in mind, I'm proposing:
1. That the function name of all data provider functions starts with `data_`, similar to how all test functions are prefixed with `test_`.
2. That data providers when used by only one test are placed directly after that test.
3. That data providers when used by multiple tests which directly follow each other, are placed directly after the last test using the data provider.
4. ~~That data providers used by multiple tests throughout a test file are placed at the bottom of the class.~~ **Updated**: That when a data provider is used by multiple tests throughout a test file, that the tests using the data provider are grouped together and that the data provider is then placed directly after the last of the tests using it, as per 3.


Additionally, there is an awesome, but little known feature in PHPUnit which allows to ""name"" each test case in a data provider by adding an index key for each test data set.
This will make test failure information more descriptive and will make the test case which is causing the failure easier to find than having the default numeric indexes for test cases.

And when coupled with the `--testdox` feature, especially when selectively running a filtered set of tests will make it much more obvious what is being tested.

So I'd also like to recommend implementing the use of named test cases when using data providers.

To illustrate the difference:
Screenshot of a test run with a dataprovider and `--testdox` without using named test cases:
https://speakerdeck.com/jrf/my-top-10-phpunit-tips-and-tricks-e6ea54ce-2515-4ea9-aacf-9bf7ab3b3141?slide=26
Screenshot of a test run with a dataprovider and `--testdox` WITH named test cases:
https://speakerdeck.com/jrf/my-top-10-phpunit-tips-and-tricks-e6ea54ce-2515-4ea9-aacf-9bf7ab3b3141?slide=28

Code sample of how to implement this:
https://speakerdeck.com/jrf/my-top-10-phpunit-tips-and-tricks-e6ea54ce-2515-4ea9-aacf-9bf7ab3b3141?slide=27


Once this ticket has been actioned, I'd like to recommend that the conventions applied will be added to the Core contributors handbook.

/cc @hellofromTonya"	jrf		
Enhancements Awaiting Review	58000	Run core unit tests against object cache enabled with Redis		Build/Test Tools	normal	enhancement	new	2023-03-28T13:32:14Z	2023-04-05T09:17:24Z	"Redis is a popular technology used for object caching. Redis is used by many large WordPress hosts like pantheon, kinsta and pagely. It may even be more popular than memcache. 

WordPress core unit tests, should run against redis as well as memcache, to ensure the core team can spot issues early. "	spacedmonkey		
Enhancements Awaiting Review	56602	Add a comment to auto-generated editor files pulled from Gutenberg repository		Build/Test Tools	normal	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		
Enhancements Awaiting Review	56087	Configure Codecov status checks		Build/Test Tools	normal	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		
Enhancements Awaiting Review	53011	Tests: review all setUp() and tearDown()		Build/Test Tools	normal	task (blessed)	new	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		has-patch
Enhancements Awaiting Review	35318	Automate anti-virus scanning of WordPress zips		Build/Test Tools	normal	enhancement	new	2016-01-05T16:36:15Z	2022-01-29T10:48:46Z	"In WordPress 4.4, some files were marked as malware by antivirus vendors.   This sucks for users.  I think we should automate scanning of WordPress packages so that we can alert antivirus vendors as soon as possible that they are miss flagging WordPress files. 

one api that could work is https://www.virustotal.com/en/documentation/public-api/ , but we should investigate that and other possible options. "	jorbin		
Enhancements Awaiting Review	40281	Improve Documentation for HTTP Unit Testing		Build/Test Tools	normal	enhancement	reopened	2017-03-27T22:42:10Z	2021-11-16T18:39:48Z	Improve Commenting for HTTP Unit Testing.	bhubbard	4.8	
Enhancements Awaiting Review	44351	"Fix ""Foreign key constraint is incorrectly formed"" when running unit tests"		Build/Test Tools	normal	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	4.9.6	
Enhancements Awaiting Review	54153	Core taxonomies e2e tests		Build/Test Tools	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	54155	Core users e2e tests		Build/Test Tools	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	54095	Echo local wp-env URL when running env:start		Build/Test Tools	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	53118	Tests: review of correctly setting output expectations		Build/Test Tools	minor	task (blessed)	new	2021-04-30T15:32:35Z	2021-04-30T15:32:35Z	"While looking at the tests in the context of another ticket, @hellofromTonya and me came across various tests doing things like:

{{{#!php
<?php
ob_start();
// Do something which generates output...
$contents = ob_get_clean();

$this->assertRegExp( $regex, $contents );
}}}


PHPUnit has dedicated functionality build-in to set output expectations which will then automatically test that the output conforms to those expectations.

When using those, the above code would become:

{{{#!php
<?php
$this->expectOutputRegex( $regex );

// Do something which generates output...
}}}


I suspect that in most cases were `ob_*()` functions are being used to ""catch"" output before testing it, this can (and should) be replaced with using the PHPUnit native `expectOutputString()` and `expectOutputRegex()` functions.

Note: each test can only have **ONE** output expectation when using the PHPUnit native functionality.

Also see: https://phpunit.readthedocs.io/en/9.5/writing-tests-for-phpunit.html#testing-output

I'd recommending a complete review of the test suite to verify whether output expectations are tested correctly.

To find all instances of this code pattern a search should be done for the use of `ob_*()` functions in the `tests/phpunit` directory."	jrf		
Enhancements Awaiting Review	52610	Consider removing many of the default test group exclusions		Build/Test Tools	normal	task (blessed)	new	2021-02-22T19:57:39Z	2021-04-29T15:46:12Z	"When the tests are run with `composer test`, the following groups are excluded:

* `ajax`
* `ms-files`
* `ms-required`
* `external-http`

When the tests are run with Multisite enabled with `composer test -- -c tests/phpunit/multisite.xml`, the following groups are excluded:

* `ajax`
* `ms-files`
* `ms-excluded`
* `external-http`
* `oembed-headers`

The `ms-required` and `ms-excluded` group exclusions are needed so that the Multisite-specific tests and single-site-specific tests don't run when they don't need to.

It's less clear why the other groups in these lists are excluded by default.

The `ajax` and `ms-files` groups are not slow, so excluding them for performance reasons doesn't make sense. I think the `ajax` exclusion should be removed from both the single site and Multisite configuration. The `ms-files` exclusion should be removed too because the tests in the `ms-files` group don't get registered on a non-Multisite test run so the exclusion is redundant.

The `external-http` tests are excluded because they are somewhat slow, taking around 10-15 seconds on GitHub Actions and around 40 seconds on my local, highly dependent on network connection speed. Let's keep these excluded by default.

The `oembed-headers` group is excluded by default because it requires Xdebug, however this is already covered by the `@requires function xdebug_get_headers` tag on the only test in this group, along with being in the `debug` group which runs separately on GitHub Actions. The `oembed-headers` group exclusion can be removed as it's redundant.

Here's my proposed new config for `phpunit.xml.dist`:

{{{
<exclude>
    <group>ms-required</group>
    <group>external-http</group>
</exclude>
}}}

and for `multisite.xml`:

{{{
<exclude>
    <group>ms-excluded</group>
    <group>external-http</group>
</exclude>
}}}"	johnbillion		dev-feedback
Enhancements Awaiting Review	50337	Build tools: Ensure built files have been updated or ignored in `src` directory.		Build/Test Tools	normal	enhancement	new	2020-06-07T01:50:59Z	2021-03-18T23:02:36Z	The `npm run build:dev` command generates some files that need to be committed to the WordPress-Develop repository. It sure would be dandy if the build reported a failure if these files have not been updated.	peterwilsoncc	5.4	has-patch
Enhancements Awaiting Review	51966	npm/grunt watch/build task names are inconsistent and unintuitive		Build/Test Tools	normal	enhancement	new	2020-12-08T17:07:24Z	2021-03-10T05:25:35Z	"#43055 / #44492 made a lot of changes to the typical dev workflow, and I often have trouble getting the right watch or build command going, because they don't seem intuitive or consistent to me.

The `dev` flag feels vague, and doesn't describe what it actually does (builds into `src/` instead of `build/`), the `npm` commands aren't always internally consistent, or consistent w/ the corresponding `grunt` commands. They're also syntax differences between `npm` and `grunt` which need to be memorized.

Some examples:

* There's `npm run build` and `npm run build:dev`, but the corresponding commands are `npm run watch` and `npm run dev`, instead of `npm run watch:dev`.
* `npm run build` wraps `grunt build`, but `npm run dev` wraps `grunt watch --dev`; there is no corresponding `grunt dev` task.
* running `npm run watch --dev` will run `grunt watch` (into `build/`) instead of `grunt watch --dev` (into `src/`). That's because `npm` uses `-- --` to pass a flag to the proxied command, but grunt uses `--`.


The commands aren't clearly documented in the Handbook or readme file, so I have to read the `package.json` or `Gruntfile.js`, and try to memorize the inconsistencies.

==== Ideas

I think it'd help to:

* Add clear documentation about the purpose of the `src/` and `build/` folders, the pros/cons of running from each, and the commands needed for each scenario.
* Rename the commands/flags to be self-documenting and consistent.

I'll open a PR with a rough implementation of those as a starting point."	iandunn	5.1	dev-feedback
Enhancements Awaiting Review	50627	CSS Build process: Consider removing autoprefixer from the source folder.		Build/Test Tools	normal	enhancement	new	2020-07-10T19:07:15Z	2021-03-09T07:35:32Z	"Right now, the CSS build process is a bit unclear to me. It seems like there's a precommit hook to apply postcss autoprefixer to the CSS fils in src folder. This results in  ""source code"" and ""built code"" to be mixed together. 

The issue becomes more apparent as we explore using new techologies list CSS custom properties. If we continue with the current setup it means we'd have to include in the source code both the CSS variables used, and the necessary fallback for IE11 (as CSS variables are not supported there). So whenever we want to change the value of the CSS variable, we'd have to update all the fallback values, diminishing the value of the CSS variable in the first place.

Autoprefixer and CSS Custom properties are the examples I have in mind right now, but this can be problematic for any similar CSS feature we'd be interested in.

I think we should consider only applying the PostCSS tweaks (autoprefixer) to the build folder only. The downside is that the source ""css"" files won't have the necessary fallbacks for legacy browsers but they will still continue to work in most recent browsers.

In an ideal world, source and dist are completely different but it's too soon for that as a lot of core developers still use the ""src"" folder."	youknowriad		
Enhancements Awaiting Review	49274	Grunt copy:files should ignore node_modules		Build/Test Tools	normal	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		
Enhancements Awaiting Review	39159	Add APC to automated test matrix		Build/Test Tools	normal	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		needs-patch
Enhancements Awaiting Review	49077	Add https://github.com/WordPress/wordpress-develop to Packagist		Build/Test Tools	normal	enhancement	reopened	2019-12-24T11:03:11Z	2020-09-25T19:25:02Z	Currently, the WordPress Develop repo is not on Packagist, even though it now has a composer.json file (thanks to #43558). In order to use as a dependency, for example to use as a foundation to building an automated testing suite for a theme or plugin, you need to manually add the Github URL as an additional repository definition in your project's composer.json file. Normally this wouldn't be much of an issue, but due to the large number of branches and tags, Composer has to search the entire repo to generate a list of tags and branches available on every install/update, which takes several minutes! Adding WordPress Develop to Packagist (to be alongside https://packagist.org/packages/wordpress/phpdoc-parser), would parse and cache branches and tags as they are released via the Packagist Github hook.	clarinetlord		
Enhancements Awaiting Review	50412	Add support for common PHPUnit arguments when watching		Build/Test Tools	normal	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		
Enhancements Awaiting Review	41425	Killing phpunit may result in a broken database		Build/Test Tools	normal	enhancement	new	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	4.9	has-patch
Reporter Feedback / Close	64618	Playground Node.js engine requirement broke Core WP builds	youknowriad	Build/Test Tools	normal	defect (bug)	assigned	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		close
Reporter Feedback / Close	63883	Podman Local Environment Setup Scripts		Build/Test Tools	normal	enhancement	new	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	6.9	dev-feedback
Reporter Feedback / Close	50266	Had to specify mysql socket to run php automated test		Build/Test Tools	minor	enhancement	new	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		close
Reporter Feedback / Close	60202	unable to start wp-env		Build/Test Tools	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	48229	Console error when running QUnit Test Suite		Build/Test Tools	minor	defect (bug)	new	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		close
Reporter Feedback / Close	57426	Coding Standards: mark warnings that trigger CI failures as errors.		Build/Test Tools	normal	enhancement	new	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		close
Reporter Feedback / Close	56545	Add a gutenberg plugin enabled run to PHPUnit Tests workflow	desrosj	Build/Test Tools	normal	defect (bug)	assigned	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		close
Reporter Feedback / Close	54986	Css file duplication generated with repeter names		Build/Test Tools	normal	defect (bug)	new	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	6.0	reporter-feedback
Reporter Feedback / Close	37190	Split out function declarations and code executions.		Build/Test Tools	normal	enhancement	new	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		reporter-feedback
Defects Awaiting Review	48802	Twenty Twenty: Fixed Background Image on Cover template bugs on iPad		Bundled Theme	normal	defect (bug)	new	2019-11-26T21:26:10Z	2026-10-22T15:04:17Z	"Originally reported on GitHub by @collet

https://github.com/WordPress/twentytwenty/issues/956

In the Customizer, if the user selects the ""Fixed Background Image"" option for the Cover template (which is activated by default), the cover image on an iPad (iOS 13) is blown-up."	ianbelanger	5.3	has-patch
Defects Awaiting Review	59957	Twenty Twenty and Twenty Twenty-One: Details block padding issue when setting its alignment to full-width		Bundled Theme	normal	defect (bug)	new	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	6.3	has-patch
Defects Awaiting Review	63513	Twenty Twenty-Five: Copy for query loop results is confusing on the home page		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	58030	Twenty Twenty: button block does not act on appearance change.		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63034	Twenty Eleven: Table cells font appearance does not change with block settings		Bundled Theme	minor	defect (bug)	reopened	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		has-patch
Defects Awaiting Review	63750	Twenty Twenty: Quote block does not adjust width for inner block in the editor when it has both text alignment and Full or Wide width		Bundled Theme	normal	defect (bug)	new	2025-07-25T12:07:40Z	2026-10-18T10:35:26Z	"Steps to reproduce the issue:-
1. Activate Twenty Twenty theme.
2. Choose quote block.
3. Add some text with citation.
4. Make it to full width.
5. Now change alignment to center or right from the parent(Quote) block settings.

**Expected Behavior**
Both the quote text and citation should align based on the selected alignment (center or right), matching the frontend behavior.

**Actual Behavior**
On the editor side, only the citation aligns correctly. The main quote text remains left-aligned even when center or right alignment is selected."	nidhidhandhukiya	6.7	has-patch
Defects Awaiting Review	66334	Twenty Fourteen: Lato font lacks letters for Turkish and other Latin-script languages (requires update)		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	64882	"Twenty Fourteen's ""featured"" tag is being removed from posts"		Bundled Theme	normal	defect (bug)	new	2026-03-18T13:23:28Z	2026-10-01T09:05:24Z	"Original issue: https://github.com/WordPress/gutenberg/issues/8544

Reported in 2018:


When used with the Twenty Fourteen theme, Gutenberg removes the featured tag that makes posts show up in the home page's Featured Content section. Attempts to re-add the featured tag result in new tags called featured, but with slugs such as featured-2 and featured-3, so that the posts still do not appear in Featured Content.

A workaround would appear to be to change the featured content tag name (in Customizer/Featured Content/Tag Name) to anything else and then to change it back to featured.

To Reproduce
Steps to reproduce the behavior:
Install WordPress 4.9.8 on development server.
Install and activate Twenty Fourteen theme (v2.2).
Create three posts, each with several tags, among which is featured.
The posts will now be visible in Featured Content on the Home Page.
Install the Gutenberg plugin.
In the Gutenberg editor, the featured tag will now be invisible. If each post is saved, it will lose its featured tag and status, disappearing from Featured Content.
If one attempts to re-add the featured tag inside the Gutenberg editor, a new tag named featured will be created with the slug featured-2, so that the post will not appear in Featured Content. Further attempts will result in featured-3, featured-4, etc.
Expected behavior
From the point of view of the Gutenberg editor, featured should just be a tag like any other. As far as I know, it's Twenty Fourteen that treats it as being special, and even that can be adjusted.
Additional context
Gutenberg v3.4.0

----

Today, Gutenberg does not have to be active for this problem to appear.


== Testing instructions:
Install and activate Twenty Fourteen theme.
Create a post and add a tag called featured. See how when you save, this tag is not visible in the field in the block editor.
Save the post and view the homepage. Confirm that the post does **not** show at the top of the page, just below the header, with a black background (or featured image). Instead, it shows among the other posts in the blog.



== Suggested solution:
In twentyfourteen\inc\featured-content.php, inside {{{public static function hide_the_featured_term}}}
locate:

{{{
// This filter is only appropriate on the front end.
if ( is_admin() ) {
return $terms;
}
}}}

And change it to

{{{
// This filter is only appropriate on the front end.
if ( is_admin() || wp_is_serving_rest_request() ) {
return $terms;
}
}}}
Test again and confirm that the post is now featured.



"	poena		has-patch
Defects Awaiting Review	66192	Twenty Fourteen: Featured tag is not hidden in post tag lists on the front end		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63386	Twenty Seventeen: Latest Posts block having issue with alignment options		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63309	Twenty Fifteen: Table block border not appear properly.		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63888	"Twenty Twenty-One: Search block ""Button inside"" input border appears on front end but not in block editor"		Bundled Theme	normal	defect (bug)	assigned	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	6.1	has-patch
Defects Awaiting Review	59203	Twenty Nineteen: fix Separator block's full-width size and placement		Bundled Theme	normal	defect (bug)	new	2023-08-25T10:51:40Z	2026-09-15T00:47:02Z	"Steps to Reproduce the issue :-
1. Activate Twenty Nineteen Theme.
2. Take Separator Block.
3. Choose Default from the styles.
4. Choose Full-width.

You can able to see two issues.
1> In editor side the separator is not visible.
2> Both side editor and front end even after applying full-width it is not showing in full width.

I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/4ybJ9CQsCPR33NW1DPLm"	nidhidhandhukiya	6.3	has-patch
Defects Awaiting Review	62166	"Bundled themes: PHPCS ""exactly one blank line after the file comment"""		Bundled Theme	minor	defect (bug)	new	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		has-patch
Defects Awaiting Review	59746	Twenty Twenty-One: Adding User Biographical Info without space breaks the container and adds horizontal scroll		Bundled Theme	normal	defect (bug)	new	2023-10-26T10:43:35Z	2026-08-27T11:58:50Z	"I found one issue in User Biographical Info module. 
Whenever I am adding bio without spacing, it breaks the container and adds horizontal scroll ! 

- Environment: fresh WordPress with no additional plugins
- Theme: Twenty Twenty-One ( 1.9 )
- Screen recording: https://screenrec.com/share/H6zALe1fXd"	mihirdev21	6.3.2	has-patch
Defects Awaiting Review	65306	"Twenty Thirteen: "".sidebar .entry-meta"" selector is too broad, compresses block-rendered entry-meta"		Bundled Theme	normal	defect (bug)	new	2026-05-21T16:53:37Z	2026-07-20T23:36:39Z	"In `wp-content/themes/twentythirteen/style.css` (and `rtl.css`), the rule:

{{{
.sidebar .entry-header,
.sidebar .entry-content,
.sidebar .entry-summary,
.sidebar .entry-meta {
    max-width: 1040px;
    padding: 0 376px 0 60px;
}
}}}

applies a 376px right padding to **any** descendant `.entry-meta` (or `.entry-content` / `.entry-summary` / `.entry-header`) when the Secondary Widget Area is active. When a block outputs `.entry-meta` markup (for example a third-party block plugin that emits the same class), it inherits the padding and is squeezed into ~168px of usable width, even though it has no relation to the theme's classic-template `.entry-meta`.

== Steps to reproduce ==

 1. Activate Twenty Thirteen on a self-hosted install.
 2. Add a widget to the Secondary Widget Area (this activates the `.sidebar` class).
 3. Create a page or post containing a block that renders `<div class=""entry-meta"">…</div>`. A Custom HTML block with the following content reproduces it without any extra plugin:
{{{
<div class=""entry-meta"">By <a href=""#"">Author</a> • <time>May 21, 2026</time></div>
}}}
 4. View the page. The author/date line is squeezed into ~168px on the left side of the content column.

Reproduced on a vanilla self-hosted WordPress install with Twenty Thirteen 4.6.

== Expected behavior ==

The `.sidebar .entry-meta` rule should only style the theme's own classic-template `.entry-meta` (the one that is a direct child of `.hentry`). Block-rendered `.entry-meta` nested elsewhere in the document should not inherit the 376px / 60px padding.

== Proposed fix ==

Scope each selector to a direct child of `.hentry`:

{{{
.sidebar .hentry > .entry-header,
.sidebar .hentry > .entry-content,
.sidebar .hentry > .entry-summary,
.sidebar .hentry > .entry-meta {
    max-width: 1040px;
    padding: 0 376px 0 60px;
}
}}}

Same change mirrored in `rtl.css`. The theme's own classic templates emit `.entry-meta` as a direct child of `.hentry`, so the existing layout is preserved. Block-emitted `.entry-meta` nested inside other wrappers no longer matches.

A GitHub PR with the patch is open against `WordPress/wordpress-develop`: https://github.com/WordPress/wordpress-develop/pull/11929 — I will add a comment with the patch link once this ticket is filed."	gustavohappyeng	3.6	has-patch
Defects Awaiting Review	56904	"Twenty Twenty-Two: Block Navigation ""no decoration"" does not work"		Bundled Theme	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	62781	Twenty Twenty: Inconsistent caption styles between editor and front-end in Calendar block		Bundled Theme	minor	defect (bug)	new	2025-01-06T09:48:32Z	2026-03-28T23:27:04Z	"In the Twenty Twenty theme, the calendar block styling differs between the editor and frontend views:

- The calendar header lacks padding in the editor but shows padding on the frontend.
- Font-weight is missing in the editor but appears on the frontend.

[[Image(https://utfs.io/f/TTyF6MLuAyHD4JcR2BhdPVQck2M6EBvj9mgD37Fr0WetKZuf)]]
"	sukhendu2002		has-patch
Defects Awaiting Review	55581	Twenty Twenty: Aligned images cannot be resized or are properly displayed		Bundled Theme	normal	defect (bug)	new	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	5.9.3	dev-feedback
Defects Awaiting Review	61433	Twenty Twenty: The Media & Text block paragraph text not align properly when change media size.		Bundled Theme	normal	defect (bug)	new	2024-06-13T14:02:02Z	2026-02-06T22:52:44Z	"Hello Team,

I have reviewed the **""Media & Text""** block and found that when we change media with from block setting **""MEDIA WIDTH""** to full width, The block paragraph text not align properly on front-end.

I have checked this scenario in other themes and its looks good on it.

So, I think that it should be same on both**(Back-end & Front-end)** sides.

**Here, I have provided issue video: [https://www.awesomescreenshot.com/video/28611147?key=3f7fc3967a017dcdd4ddddd5ddd8fc57]**

**Environment info:**

----

- WordPress version: WordPress 6.5.4 running,
- Themes:
  - Twenty Twenty: Version: 2.6
- Browser: Google Chrome, Version 126.0.6478.56 (Official Build) (arm64)
- Device: MacBook Air M1
- OS: macOS 14.5 (23F79)
- Gutenberg plugin: Version Version 18.5.0

Thanks,"	viralsampat	6.5.4	dev-feedback
Defects Awaiting Review	56341	Twenty Twenty-Two: Long text strings cause horizontal overflow		Bundled Theme	normal	defect (bug)	new	2022-08-05T12:07:40Z	2026-01-23T12:42:12Z	"When viewed on narrow viewports, long strings will overflow outside the main content area.

Older bundled themes would default to `word-break: break-all` to avoid this and I believe that Twenty Twenty-Two should also work this way by ""pushing"" long strings into multiple lines.

The code below can be used as a temporary workaround.

{{{
.wp-site-blocks * {
   word-break: break-all;
}
}}}

"	mrfoxtalbot	6.0	has-patch
Defects Awaiting Review	64525	Twenty Sixteen: “summary” elements use “block” value instead of “list-item” for the “display” property		Bundled Theme	normal	defect (bug)	new	2026-01-17T17:56:22Z	2026-01-23T04:20:55Z	"Hi! 🙋🏻‍♂️

I noticed that when I added `details` / `summary` elements to my WordPress page, the little triangle thingy was not there. It's an indicator to show if the `details` element is opened or closed. After some testing, I fixed the problem by adding the following style to the “Additional CSS” area…

{{{
summary {
display: list-item;
}
}}}

Here's an example… [https://photics.com/data/farmside-guide/] …which I think looks nice! 🙂

Yet, this didn't seem like solving the problem, only covering it. So, I looked to see why the summary elements were having their default display value changed. I looked at the styling and it seems to trace back to here…

[https://core.trac.wordpress.org/browser/6.9/src/wp-content/themes/twentysixteen/style.css?#L85 style.css, line 85]

…which changes the `display` value of `<summary>` elements to `block`.

That seemed incorrect, so I searched this site to see if anyone reported the problem. It looks like the following links are related…

#58915
[https://core.trac.wordpress.org/attachment/ticket/58915/58915.patch 58915.patch]

I was wondering, if this issue was addressed, why did I still see a problem? That's when I looked at the file being modified. It's the `blocks.css` file.

I use the “Classic Editor” plugin on my website, which disables Gutenberg. Additionally, the details and summary tags were being added to an article page. Essentially, I was building an FAQ page.

So, perhaps that means the `style.css` file should be updated too. **It looks like “summary” should not be part of that CSS declaration.** And since ticket #58915 mentioned the Twenty Thirteen theme, perhaps that `style.css` file needs to be fixed too…

[https://core.trac.wordpress.org/browser/6.9/src/wp-content/themes/twentythirteen/style.css#L78 style.css, line 78]
"	Photics	4.4	has-patch
Defects Awaiting Review	62255	Twenty Twenty: Latest Posts blocks have no link hover effects in entry content		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63860	Twenty Twenty: Pullquote block quotation mark does not align with text alignment options		Bundled Theme	normal	defect (bug)	new	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	5.9	has-patch
Defects Awaiting Review	63847	Twenty Twenty One :- Quote block does not adjust width for inner block in the editor when it has Full or Wide width.		Bundled Theme	normal	defect (bug)	new	2025-08-20T09:57:45Z	2025-08-20T10:47:53Z	"Steps to reproduce the issue:-
1. Activate Twenty Twenty One theme.
2. Choose Quote block.
3. Add some text with citation.
4. Now choose Full width or Wide width.

**Expected Behavior :- **
Both the quote text and citation should align consistently in the block editor and on the frontend.

**Actual Behavior :- **
only the citation follows the wide/full alignment. The quote text still has default padding/margins, so it looks indented and doesn’t visually match frontend output."	nidhidhandhukiya	6.8.2	
Defects Awaiting Review	63749	Twenty Twenty: Pullquote block border color does not support theme palette		Bundled Theme	normal	defect (bug)	new	2025-07-25T11:16:57Z	2025-08-04T09:51:13Z	"Steps to reproduce the issue :-
1. Activate Twenty Twenty theme.
2. Choose Pullquote block.
3. Add some text.
4. Apply border with color from inspector control.

You can able to see that in editor your applied changes working fine but when you check in front end side border color not changed it is black only."	nidhidhandhukiya	5.9	has-patch
Defects Awaiting Review	63469	Twenty Nineteen: Table block Stripes style does not show borders in the editor		Bundled Theme	normal	defect (bug)	new	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	6.4	has-patch
Defects Awaiting Review	56360	Twenty Twenty: Font size issue in H1 Heading block		Bundled Theme	normal	defect (bug)	new	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	6.0	has-patch
Defects Awaiting Review	63623	Twenty Nineteen: Pullquote block does not show border-color presets on front end		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62798	Twenty Seventeen: sanitize output of twentyseventeen_custom_colors_css()		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	59706	Twenty Twenty: Latest Posts block colors and padding		Bundled Theme	normal	defect (bug)	new	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	6.3.2	dev-feedback
Defects Awaiting Review	55934	"Twenty Twenty: ""Add citation"" text font-weight issue in Quote block"		Bundled Theme	normal	defect (bug)	reopened	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	5.3	has-patch
Defects Awaiting Review	63455	Twenty Sixteen: Quote block negative margin		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	58297	Twenty Seventeen: Table block does not have same design in editor and front.		Bundled Theme	normal	defect (bug)	new	2023-05-11T11:15:35Z	2025-06-13T16:36:39Z	"Steps to reproduce the issue :-
1. Activate Twenty Seventeen Theme.
2. Choose Table block.
3. Add some text.
4. Check that table in editor side and user side both.
In editor side we have the border and when you check front side that border is missing.

I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/JCmf3Y5bv6TZ1FXzMc5m"	nidhidhandhukiya	5.3	has-patch
Defects Awaiting Review	61904	Twenty Nineteen: Social Icons block's text is underlined in the post content		Bundled Theme	normal	defect (bug)	new	2024-08-21T13:14:52Z	2025-06-08T15:08:01Z	In Theme Twenty Nineteen, Social Icons Block's text does not have text-decoration at the editor but have text decoration underline in frontend. So In both side it looks different	pitamdey		has-patch
Defects Awaiting Review	61800	Twenty Twelve: preformatted elements have hyphens on front-end		Bundled Theme	normal	defect (bug)	new	2024-08-01T07:17:54Z	2025-06-03T15:24:36Z	"Hello Team,

I have reviewed the **""Preformatted block""** and found that the **""hyphens""** character is adding in text on front-end  when we changed its **""Letter spacing""** from **""Typography""** setting.

So, I think that the editor side text & front-side text should be same.

Here, I have attached its screenshots and video for references.

Thanks,"	viralsampat		has-patch
Defects Awaiting Review	63347	Twenty Fourteen: Table and Calendar blocks do not apply font size from user settings		Bundled Theme	normal	defect (bug)	new	2025-04-25T10:54:26Z	2025-06-03T06:16:49Z	"Steps to reproduce the issue :-
1. Activate Twenty Fourteen theme.
2. Choose Table block.
3. Add some text.
4. Change the font size.

You can able to see there is no difference after changing the font size for both editor and front side.
"	nidhidhandhukiya		has-patch
Defects Awaiting Review	58500	Twenty Twenty: Separator block's Default style is wider than Wide Line style in editor		Bundled Theme	minor	defect (bug)	assigned	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	6.2.2	has-patch
Defects Awaiting Review	62792	Twenty Ten: Editor styles conflicts with the block editor styles		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62678	Twenty Twenty: Letter spacing applied to Media & Text Block does not affect inner paragraph on editor side		Bundled Theme	normal	defect (bug)	new	2024-12-11T06:13:16Z	2025-05-12T01:38:45Z	"In Theme Twenty Twenty,
The Letter spacing setting is not working on the editor side when we select the Media & Text Block and try to change the letter spacing value"	pitamdey		has-patch
Defects Awaiting Review	62657	Twenty Sixteen: Latest Posts block with a background color has padding in the editor but not on front		Bundled Theme	normal	defect (bug)	new	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	6.3	has-patch
Defects Awaiting Review	62610	Twenty Seventeen - Image block having unnecessary border if duotone and link is applied.		Bundled Theme	normal	defect (bug)	new	2024-11-29T10:40:04Z	2025-05-12T01:38:44Z	"Steps to reproduce the issue :-
1. Activate the twenty seventeen theme.
2. Choose Image block.
3. Apply duotone to that image.
4. Add some link to that image.

You can able to see a border on image in editor and front both."	nidhidhandhukiya	6.7.1	has-patch
Defects Awaiting Review	61478	"Twenty Twenty-One : Excerpt Block ""Read More"" text color is not showing on frontend"		Bundled Theme	minor	defect (bug)	new	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		has-patch
Defects Awaiting Review	61077	Twenty Twenty-One: Code block text color is not change in front-end when we changed its color using block setting.		Bundled Theme	normal	defect (bug)	new	2024-04-25T07:35:21Z	2025-05-12T01:38:20Z	"Hello,

I have reviewed the ""Code block"" and found that its text color is not same in editor & front-end sides. When we trying to change text color using block setting, It applies only on editor site, Not in front-end.

I think that it should be same on both editor & front-end sides.

I have checked this issue with Gutenberg plugin and without Gutenberg plugin.

Here, I have provided issue link for reference.
**Issue: [https://share.cleanshot.com/4pH5vdbrkRLJVdxV5ttm]**

Also, I have attached its screenshots at below.

Environment info:

----

- WordPress version: WordPress 6.5.2 running,
- Twenty Twenty-One Version: 2.2
- Browser: Google Chrome, Version 124.0.6367.62 (Official Build) (arm64)
- Device: MacBook Air M1
- OS: macOS 14.4.1 (23E224)
- Gutenberg plugin: Version 18.1.2

Thanks,"	viralsampat	6.5	dev-feedback
Defects Awaiting Review	58499	Twenty Twenty: Table block having issue with color		Bundled Theme	minor	defect (bug)	new	2023-06-09T07:33:23Z	2025-05-12T01:38:11Z	"Steps to reproduce the issue.
1. Activate Twenty Twenty theme.
2. Take table block.
3. Add some text.
4. Apply background color black or pink.
5. Now apply any color to the text.

You can able to see it will not take the value of that chosen color if black or pink is set as a background color for editor side.
Front side it is working fine it is having issue only in editor side.

I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/plqBT1cn6hMbRR5g6Grz
"	nidhidhandhukiya	6.2.2	has-patch
Defects Awaiting Review	63425	Twenty Sixteen: Quote block citation font size does not change with the block settings		Bundled Theme	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	63350	Twenty Fourteen :- The Search block design appears misaligned when the button inside is enabled.		Bundled Theme	normal	defect (bug)	new	2025-04-25T11:12:15Z	2025-05-01T18:45:05Z	"Steps to reproduce the issue :-
1. Activate Twenty Fourteen theme.
2. Choose Search block.
3. Now use Button inside.

Now check in editor and front end, the design appears correct in the editor but is visually inconsistent on the front end when the button is enabled."	nidhidhandhukiya	6.8	has-patch
Defects Awaiting Review	63344	Twenty Seventeen: Inconsistent Search Block Input Padding		Bundled Theme	normal	defect (bug)	new	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	5.8	has-patch
Defects Awaiting Review	58077	Twenty Twelve: Table block - Top border inconsistent with rest of the table		Bundled Theme	normal	defect (bug)	new	2023-04-04T07:25:47Z	2025-03-06T14:34:09Z	"**Steps to Reproduce:**

- Go to any post/page
- Select `Table Block`
- Observe that the Top Border for the table block is missing


**Test Environment**
WordPress: 6.2
Theme: Twenty Twelve


"	pooja1210		has-patch
Defects Awaiting Review	62965	Twenty Ten: Details block having font-size issue in editor side		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62918	Twenty Twelve :- Calendar block having issue with font-size in editor and frontend.		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62787	Twenty Nineteen: sanitize output of twentynineteen_custom_colors_css()		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	40796	Twenty Seventeen: Overriding WordPress globals is prohibited		Bundled Theme	normal	defect (bug)	new	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	4.7.5	needs-unit-tests
Defects Awaiting Review	39893	Twenty Seventeen Header Media: YouTube Embed Does Not Fill Screen		Bundled Theme	normal	defect (bug)	new	2017-02-16T18:47:31Z	2024-12-03T17:46:35Z	"Hi.
I was really excited to see 2017 in action and thought a great deal of the video header feature, but my expectations were dashed when I realised that the promise of anamorphic images and videos automatically stretching to full screen in the header just did not materialise, despite using all the precautions, guidelines and recommendations suggested in the theme: 2000x1200 as per image, .mp4, etc. It seems that no matter what video link from YT I tried the image will stretch, but the video will not.
Is there a solution to this or is it just me?
You can see a brand new installation with no extra plugins, scripts or other potentially interfering code in the way, here: http://2ud.biz/dev/

Thanks in advance
"	cingrosso	4.7.2	dev-feedback
Defects Awaiting Review	62235	Twenty Twenty : Date Block Font family is different in both side		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	40940	Twenty Twelve uses invalid linear-gradient() syntax		Bundled Theme	normal	defect (bug)	assigned	2017-06-07T14:57:13Z	2024-08-31T10:43:32Z	"Twenty Twelve theme uses such construction for gradients:
{{{
	background-image: -moz-linear-gradient(top, #f4f4f4, #e6e6e6);
	background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6);
	background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6);
	background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6);
	background-image: linear-gradient(top, #f4f4f4, #e6e6e6);
}}}
Notice this obsolete syntax:
{{{
linear-gradient(top, #f4f4f4, #e6e6e6)
}}}
And compare it to the specification:
https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient

It has to use ""to"" before the direction. So, it has to be:
{{{
linear-gradient(to bottom, #f4f4f4, #e6e6e6)
}}}
or like this:
{{{
linear-gradient(180deg, #f4f4f4, #e6e6e6)
}}}
It works now just because browsers parse this property from prefixed linear gradient, and prefixed linear gradient allows to omit ""to"", and it is actually parsed as ""from"". It will stop work when support of obsolete prefixed properties will be removed. And we have to replace all ""top"" to ""to bottom"" or to ""180deg""."	vrubleg	4.7.5	has-patch
Defects Awaiting Review	61377	Twenty Twenty: Login/out block font family is different in the editor when added to a post		Bundled Theme	normal	defect (bug)	new	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	6.5.3	dev-feedback
Defects Awaiting Review	58495	Twenty Twenty: Pullquote block issues with font weight and italics		Bundled Theme	normal	defect (bug)	new	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	6.2.2	has-patch
Defects Awaiting Review	49929	Twenty Twenty: CSS issue for modal-menu.php		Bundled Theme	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	55183	Twenty Thirteen: Table color not reflect on the frontpage		Bundled Theme	normal	defect (bug)	new	2022-02-17T08:31:44Z	2024-04-12T20:28:32Z	"Steps:
1. Switch theme to Twenty Thirteen
2. Create Table and change color after update
3. Check the frontpage

Add the video Link below:
[https://www.loom.com/share/6ce4c74eb3314d7bb593b0e7173e637b]"	umesh84	5.4	dev-feedback
Defects Awaiting Review	49025	Twenty Twenty: Modal menu link with hash should scroll to that section on the page.		Bundled Theme	normal	defect (bug)	new	2019-12-18T08:13:10Z	2024-04-07T10:09:57Z	"Based on this support ticket: https://wordpress.org/support/topic/possible-bug-anchor-links-dont-work-in-js-flow-out-menu/

A possible fix would be to add this code in `index.js`, after [https://github.com/WordPress/WordPress/blob/c67763478840fabf689ecbd175dc682da1623069/wp-content/themes/twentytwenty/assets/js/index.js#L156 line 156]:


{{{
goToAnchor: function() {
	document.addEventListener( 'click', function( event ) {
		var target = event.target;

		if ( target.closest( '.modal-menu' ) && 'a' === target.tagName.toLowerCase() ) {
			var url, targetHref;
			
			url = location.href.split( '#' )[ 0 ];
			targetHref = target.href;
			
			this.untoggleModal( target.closest( '.cover-modal.active' ) );

			if( '' !== target.hash && -1 !== targetHref.indexOf( url ) ) {
				setTimeout( function() {
					var fakeEl = document.createElement( 'a' );

					fakeEl.href = targetHref;
					fakeEl.click();
				}, 550 );
			}
		}
	}.bind( this ) );
},
}}}

And after [https://github.com/WordPress/WordPress/blob/c67763478840fabf689ecbd175dc682da1623069/wp-content/themes/twentytwenty/assets/js/index.js#L105 line 105], a call to the method: `this.goToAnchor();`
"	acosmin	5.3.1	dev-feedback
Defects Awaiting Review	50446	Twenty Fifteen: Regression in updated sticky sidebar code		Bundled Theme	normal	defect (bug)	new	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	5.4.2	dev-feedback
Defects Awaiting Review	57415	Twenty Twenty One: Text color not reflected backend and Front side in media & text block		Bundled Theme	normal	defect (bug)	new	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	6.1.1	has-patch
Enhancements Awaiting Review	61766	Multiple bundled themes: Add site logo theme support		Bundled Theme	normal	enhancement	new	2024-07-26T04:51:44Z	2026-11-08T17:16:21Z	"The following themes are missing theme support for site logo. I suggest adding it.
Even if users are able to use the site logo block, they can not easily add the site logo outside the post content or widget areas.

Twenty Ten, Twenty Eleven, Twenty Twelve, Twenty Thirteen, Twenty Fourteen."	poena		has-patch
Enhancements Awaiting Review	63958	Twenty Twenty Five: Add an author template		Bundled Theme	normal	enhancement	new	2025-09-11T12:54:51Z	2026-11-07T00:50:29Z	"It appears that right now, the “All Archive” default template is not sufficient to handle specific needs. For instance, when viewing an author archive, the “Term Description” block won’t display the author description.

Therefore, we suggest to add an author template to Twenty Twenty Five, that use the Author Bio block instead of Term Description.

Note: This is a collaborative effort carried out during the Whodunit Contribution Day, with the participation of @larrach, @leprincenoir, @simonjanin, @bmartinent, and @jaz_on 🙌
"	audrasjb		has-patch
Enhancements Awaiting Review	63349	Twenty Fifteen: center Calendar block text		Bundled Theme	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	62868	Twenty Twenty-Five: make font-weight more consistent cross-browser for strong elements in body text		Bundled Theme	normal	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	6.7	
Enhancements Awaiting Review	63530	Twenty Twenty-Four: Increase padding for List block (when it has a border or background)		Bundled Theme	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	62744	Twenty Seventeen: Quote block Appearance settings do not affect citation		Bundled Theme	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65111	Twenty Sixteen: Center text in image captions		Bundled Theme	normal	enhancement	new	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	4.4	has-patch
Enhancements Awaiting Review	64482	Twenty Twenty-One: Efficiency refactor of excerpt-generation with Block Processor.		Bundled Theme	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	63852	Twenty Twenty-Five: Code block does not use fallback to default monospace font		Bundled Theme	normal	enhancement	new	2025-08-20T19:04:23Z	2025-08-21T23:02:57Z	"In Appearance – Editor – Styles – Typography – Manage fonts I deactivated all fonts. I want my blog to be simple and don’t want to increase its size by using custom fonts. Now the site uses the default browser’s font and I’m happy with that.

Except that Code blocks are not using the browser’s default monospace font but instead are in the same font as the other text on the website. Code blocks should always fall back to use the Monospace font family.

"	climatesaver	6.7	has-patch
Enhancements Awaiting Review	47154	"Prevent ""Call to undefined function: get_header()"" error in theme files"		Bundled Theme	minor	enhancement	new	2019-05-06T16:43:44Z	2024-04-08T14:59:16Z	"Referencing a ticket from 14 years ago(!) (#1530), I would like to propose that the default WordPress themes - and the theme developer guidelines - be updated to include protection from accessing theme files directly.

Accessing these files give PHP warnings, usually as follows:

{{{
Fatal error: Call to undefined function: get_header()
}}}


Whilst @markjaquith was correct in stating that theme files are not supposed to be accessed directly, bots are finding their ways into theme folders (and triggering index.php) specifically, resulting in the errors being logged.

I believe it'd be good practice to extend the recommendation from the ""Writing a Plugin"" documentation ([https://codex.wordpress.org/Writing_a_Plugin#Plugin_Files]) to the ""Theme Handbook"" ([https://developer.wordpress.org/themes/template-files-section/page-template-files/])

Following that recommendation, updating twentynineteen et al to include this (or at least code similar in intention) as the first lines of PHP coding.

{{{
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
}}}"	devonto	5.1.1	dev-feedback
Defects Awaiting Review, reported against no version	28664	"wp_load_alloptions() fails to set object cache when persistent alloptions cache is ""0"""		Cache API	normal	defect (bug)	new	2014-06-28T17:44:57Z	2025-02-03T13:35:17Z	"When alloptions persistent object cache is set to `0`, `wp_load_alloptions()` fails to reset it with appropriate values. This results in every use of `get_option()` to produce the load alloptions query `SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'` because the object cache never gets appropriately populated. Specifically, `wp_cache_add()`won't set the alloptions value when it's already seen to be set.

The end result is a massive impact on site performance when the object cache backend failboats. I'd expect WordPress to handle this scenario a bit more gracefully, possibly falling back to its internal object cache if it detects failures with the persistent object cache. However, it's debatable as to whether the solution lies within a drop-in, or whether it's the responsibility of core.

`wp_cache_add()` is used over `wp_cache_set()` for performance reasons with *external* object caches — it doesn't matter one way or another for the internal object cache (genesis #4138). One option is to distinguish between them, and offer different behaviors. However, the most technically appropriate solution is likely to check that the data coming from `wp_cache_get()` is as expected.

To answer your question before you ask it, I'm not sure how the Memcached persistent object cache value gets set to zero. It seems to come and go, sometimes occurring regularly when I restart Memcached, and I've seen the issue reproduce with both Ryan Boren's and Zack Tollman's drop-ins (meaning real bug is most likely outside of WordPress)."	danielbachhuber		has-patch
Defects Awaiting Review, reported against no version	38285	Object lookups by ID (or primary key) are not managed properly, lots of memory leaks		Cache API	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	40052	Issue with WP_Cache not invalidating stale cache after an update request		Cache API	major	defect (bug)	new	2017-03-06T22:40:50Z	2026-10-22T23:30:16Z	"Hi,

There appears to be an issue with WP_Cache if/when an object-cache has a stale value, and you attempt to update that value to the value that already exists in the database ( race condition as an example ). The object-cache in this case will never be invalidated until the TTL is hit, or if/when the cache is flushed.

This affects high volume sites that has repetitive actions.

An example of this happens on our site in production on user_meta, where quick endpoints fire that requires a set value on user_meta, however occasionally redis-cache will not get updated with the new value, even though the wp database does have the proper value.

In this case there's an infinite loop where wp_cache will return the old stale value, and the code will correctly attempt to update it to the new value, but WP thinks the value is already correct, and thus the object-cache will not be updated.

Potentially related bugs are #26779 & #31245

An easy solution is to add a wp_cache_delete onto lines 195/196 here: https://github.com/WordPress/WordPress/blob/master/wp-includes/meta.php#L190-L253"	cookiesowns	4.7.3	has-patch
Defects Awaiting Review	30430	WP_Object_Cache does not properly cache objects nested in arrays		Cache API	normal	defect (bug)	new	2014-11-21T00:17:31Z	2026-01-16T23:35:51Z	"I noticed on a plugin that cached data wasn't coming out the way it was inserted.  What was happening is that it was an array of objects.  The code would then go and change the original data and the data in the cache is changed.  I would expect data retrieved from the cache to be exactly the same as what was inserted.

To make sure there was minimal performance impact I did some tests and the test script is attached.  Initially I thought unserialize(serialize($data)) would be a good route, but it was twice as slow as rolling your own solution.  I tried numerous methods and the function I initially build was always the fastest.

The transient/option table doesn't have this problem because it calls maybe_serialize.

Another way to fix this would be to call maybe_serialize on the set, and maybe_unserialize on a get but that would spread the cost to both functions and I think it is better to have the set be slightly more expensive than having every set and get take slightly longer.
"	jamesgol	2.0	dev-feedback
Defects Awaiting Review	63618	"`is_object_in_term` object cache uses ""set"" instead of ""add"""		Cache API	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	32452	Cache optimizations	pbearne	Cache API	normal	defect (bug)	assigned	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	4.1	has-patch
Defects Awaiting Review	44445	wp_cache_init() and WP_Object_Cache constructor has a memory leak	pbearne	Cache API	normal	defect (bug)	assigned	2018-06-24T05:00:47Z	2024-06-14T20:56:33Z	"When calling `wp_cache_init()` repeated in unit testing the WP_Object_Cache::__contruct() repeatedly registers '__destruct' as a shutdown function, and each time it does it leaks memory.

There is a @todo comment above the `register_shutdown_hook()` that says the following so I would assume that this is no longer needed and we could just delete the line with the register_shutdown_hook()?

 ''This should be moved to the PHP4 style constructor, PHP5 already calls __destruct()''

I will upload a patch to delete the list, and a different patch to only call `register_shutdown_hook()` once, depending on what is appropriate."	MikeSchinkel	2.2	dev-feedback
Defects Awaiting Review	58662	Transients cannot contain non-ascii characters		Cache API	normal	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	6.2.2	
Defects Awaiting Review	58411	When Object Cache Pro plugin is enabled		Cache API	normal	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	6.2.2	
Defects Awaiting Review	57366	WP 6.1 - Performance Regression		Cache API	normal	defect (bug)	new	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	6.1.1	dev-feedback
Defects Awaiting Review	51372	Race condition causes an autoload option to leak outside of alloptions		Cache API	normal	defect (bug)	new	2020-09-22T07:55:45Z	2022-06-09T00:26:17Z	"There is a problem with `add_option()` which causes an autoloaded item to leak outside of the `alloptions` cache key and into its own item under the `options` group.

This becomes pretty broken with persistent object caching, because it leads to a state, where the option is stuck under its own cache key in the `options` group, and is unable to be deleted or updated, while the underlying database value is completely gone.

I've been able to reproduce this in multiple ways, with persistent object caching turned on or off. The backend I used in my testing is [https://github.com/Automattic/wp-memcached wp-memcached], but it should be reproducable with any other backend.

The first and easiest way is to just add an `error_log()` to wp-includes/options.php in `get_option()` right before `wp_cache_add()` that writes to the `options` group:

{{{
function get_option() {
...
    if ( is_object( $row ) ) {
        ...
        if ( $option == 'foo' ) { error_log( 'leaked' ); }
        wp_cache_add( $option, $value, 'options' );
    
}}}

Now in a simple plugin we can start writing the `foo` option, like this:

{{{
add_action( 'init', function() {
    delete_option( 'foo' );
    add_option( 'foo', 'bar' );
    die();
} );
}}}

The `autoload` flag defaults to `true`, so in this scenario the `foo` item should always end up in the `alloptions` cache key. However, if you run this in multiple parallel threads (with `ab` for example), you'll see the `leaked` message in your error log, which means `foo` has been written to the `foo` key under the `options` group.

{{{
ab -c 100 -n 1000 http://localhost/
}}}

Another way to reproduce this is to turn on a persistent object caching plugin, visit the site once to trigger a single `add_option()`, then check some of site options and cache keys:

{{{
wp option get foo # says bar
wp cache get foo options # error, because foo is autoloaded and stored in alloptions
wp cache get alloptions options # big array with foo => bar at the end
}}}

You can also confirm the database value is there:

In MySQL:

{{{
SELECT * FROM wp_options WHERE option_name = 'foo';
+-----------+-------------+--------------+----------+
| option_id | option_name | option_value | autoload |
+-----------+-------------+--------------+----------+
|      2403 | foo         | bar          | yes      |
+-----------+-------------+--------------+----------+
}}}


Looks good so far.

Now run the same `ab` test with concurrent requests, and check again.

{{{
wp option get foo # says bar
wp cache get foo options # says bar, because the value leaked from alloptions into its own item
wp cache get alloptions options # big array, but NO foo => bar
}}}

And finally, in MySQL shell:

{{{
SELECT * FROM wp_options WHERE option_name = 'foo';
Empty set (0.00 sec)
}}}

At this point the value is gone, and only remains as a stale item in Memcached under the wrong key. Deleting, adding, or updating the item will not work:

{{{
$ wp option delete foo
Warning: Could not delete 'foo' option. Does it exist?
$ wp option add foo bar
Error: Could not add option 'foo'. Does it already exist?
$ wp option update foo baz
Error: Could not update option 'foo'.
}}}

Flushing Memcached (or having the key evicted) will ""fix"" the stalemate, but will cause the data to be lost forever.

Here's a brief overview of what could happen inside `add_option()` in two concurrent threads:

{{{
Thread 1: add_option( 'foo', 'bar' );
Thread 2: add_option( 'foo', 'bar' );

1: .. get_option( 'foo' ) // false
1: .. INSERT INTO // true

2: .. get_option( 'foo' )
2: .. .. isset( $alloptions[ 'foo' ] ) // false
2: .. .. ->get_row()
2: .. .. wp_cache_add( 'foo', 'bar', 'options' ); // LEAKED

1: $alloptions[] = ...
1: wp_cache_set( 'alloptions', $alloptions, 'options' );
}}}

This is then followed by the next `delete_option()` call, which successfully deletes the data from the database and the `alloptions` key, so then future calls to `add_option()` will fail, because `get_option()` will always return the data from cache.

I'm not sure about the best way to fix it. Here are a few thoughts:

* Maybe `add_option()` should not rely so heavily on `get_option()`, and do its own checks with cache functions, depending on the `autoload` function argument
* `delete_option()` could clear both the `alloptions` array item as well as the `$option` key in the `options` group
* In `get_option()` if we were unable to retrieve the data from `$alloptions` and option cache, maybe query the `autoload` column together with `option_value`, before just assuming it's a no:

{{{
$row = $wpdb->get_row( $wpdb->prepare( ""SELECT option_value, autoload ...
}}}

Then handle the cache addition differently, based on that autoload flag. This sounds the most reasonable to me, because this is exactly the place where the item is being put into the wrong key, which causes the other problems.

I haven't actually tested this with 2.2, but it seems like that's where the `alloptions` vs `options` cache keys appeared inside `get_option()` right around r4855."	kovshenin	2.2	dev-feedback
Defects Awaiting Review	55847	Cache does not use expire		Cache API	major	defect (bug)	new	2022-05-26T13:43:40Z	2022-05-28T13:24:04Z	"By default class-wp-object-cache.php does not use the expire in ""function set"".

If the request is long (e.g. cron) and the expiration is short (e.g. 30 seconds), this means that expired cache data is used.

WP needs to keep track of expiration times in internal cache too (can be done by storing the time() + $expire time. If time() > that value, the element is expired."	malthert		
Defects Awaiting Review	54771	possible disagreement in the return types/values wp_cache_flush() and WP_Object_Cache:flush().		Cache API	normal	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		
Enhancements Awaiting Review	65485	Performance: Avoid redundant cache invalidation in wp_insert_* functions when processing meta_input		Cache API	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65487	Performance: Implement a dedicated last_changed key for metadata cache groups to isolate query cache invalidation		Cache API	normal	enhancement	new	2026-06-18T21:17:02Z	2026-09-08T16:02:23Z	"== The Problem ==
WordPress query classes (`WP_Query`, `WP_User_Query`, etc.) utilize a `last_changed` value stored within their respective main object cache groups (e.g., `posts`, `users`) to salt generated cache keys. This ensures that when an object is modified, any cached queries referencing that object type are invalidated.

Currently, Core hooks all metadata alterations directly into these primary object cache invalidations:
{{{#!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' );
}}}

This architectural coupling causes significant performance degradation. Frequent metadata updates (e.g., updating a post view counter, modifying an editorial lock timestamp, or updating transaction data) force a bump to the global `posts` `last_changed` value. As a result, **all** standard cached queries for that object type are completely invalidated. 

A metadata modification should only invalidate a cached query if that query specifically queries against or joins the metadata tables (e.g., via a `meta_query`). Standard queries that filter exclusively by core columns (like `post_type`, `post_status`, or ID arrays) are unaffected by metadata changes, yet their caches are routinely destroyed by them.

== The Proposed Solution ==
Introduce a dedicated `last_changed` key specifically for the metadata cache group (e.g., `post_meta`, `user_meta`, `comment_meta`, `term_meta`) to decouple it from the primary object cache invalidation logic."	spacedmonkey		has-patch
Enhancements Awaiting Review	66005	Core Needs a Validating Cache Get Function		Cache API	normal	enhancement	new	2026-08-31T17:56:09Z	2026-08-31T21:18:30Z	"After https://github.com/WordPress/wordpress-develop/pull/13270 I've been thinking about the situation with return values from a cache get.

`wp_cache_get()` returns whatever the cache backend holds. In most cases a return type is assumed ( or does minimal insufficient checking ), and when a backend returns something else we run into a fatal error situation.  We've already seen this happen.

I think WordPress core could do a better job of making this easier for developers with a new function that validates the return value type.  After considering different approaches, here is where I am at:

{{{#!php
<?php
function wp_cache_get_valid( $key, $group, $type, $callback = '', bool $force = false, bool $delete_invalid = false, ?bool &$valid = null ) {}
}}}

My aim is to keep simple cases simple, while having enough flexibility to address more complex cases.  For example, this could tighten up `wp_count_posts()` in https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/post.php#L3464-L3541 -

{{{#!php
	$counts = wp_cache_get( $cache_key, 'counts' );
	if ( false !== $counts ) {
		// We may have cached this before every status was registered.
		foreach ( get_post_stati() as $status ) {
			if ( ! isset( $counts->{$status} ) ) {
				$counts->{$status} = 0;
			}
		}
}}}

which expects an object, but currently doesn't validate that.  With the proposed function it would be a one line change:

{{{#!php
	$counts = wp_cache_get_valid( $cache_key, 'counts', 'object' );
	if ( false !== $counts ) {
}}}

I've got a PR coming that will expand on the details."	josephscott		dev-feedback
Enhancements Awaiting Review	60053	Improve cache flush handling for large multisite database upgrades		Cache API	normal	enhancement	new	2023-12-12T15:24:52Z	2026-03-03T16:24:58Z	"We run a large WP multisite (200 sub-sites) and with recent WP major version upgrades, the upgrade process has caused a significant performance drop while the database upgrade was in progress, causing downtime and 503 server errors. This seems to be mainly due to multiple back-to-back flushing of the object cache, network-wide, while the sites are under traffic. 

In `wp_upgrade()` I see two calls to `wp_cache_flush()` which would happen for each of the subsite DB upgrades and I was wondering if things can be improved there.
- Could we make the cache flush to be more selective and drop specific groups rather than dropping the whole network cache? 
- Could we do only one cache flush at the end of the DB upgrade for all sites instead of dropping the cache for each of the subsites' DB upgrades?
- For object caching implementations that support subsite cache flushing (e.g. OCP) could we maybe utilize that feature?

I have attached some logs and reports from our APM. This was for upgrading from WP 6.3.x to 6.4.x, using Redis with Object Cache Pro, and 4GB of cached items."	xParham		
Enhancements Awaiting Review	62236	Why do wp_cache_incr / wp_cache_decr not allow negative values?		Cache API	normal	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	6.6.2	
Enhancements Awaiting Review	24686	Introduce generic filter on transient return value	johnbillion	Cache API	normal	enhancement	reviewing	2013-07-04T16:53:45Z	2024-09-06T14:36:21Z	"The `get_transient()` and `get_site_transient()` functions have a filter on their return value, but the filter name contains the transient key: `transient_{$transient}`.

This means it's not possible to hook into the return value for ''every'' transient in order to do something like logging transient hits and misses."	johnbillion	2.8	dev-feedback
Enhancements Awaiting Review	54303	[Object Cache] Allow global caching groups to be filterable / changed		Cache API	minor	enhancement	new	2021-10-21T13:02:06Z	2024-06-26T15:57:03Z	"The Object Caching system differentiates between ""local cache groups"" and ""global cache groups"". This is essential for Multisite setups.

Global cache groups store cached objects - as the name implies - globally. There is one cached object for all sites in the network. Whereas the local cache groups are stored individually per site.

The cache groups are setup using the {{{wp_cache_...}}} API. Like https://developer.wordpress.org/reference/functions/wp_cache_add/

Which groups are actually global is setup in the Object Cache bootstrapping code here:

https://github.com/WordPress/WordPress/blob/e791d7f5db8252ba66c7777c456ed80343a450aa/wp-includes/load.php#L732-L735
{{{
wp_cache_add_global_groups( array( 'users', 'userlogins', 'usermeta', 'user_meta', 'useremail', 'userslugs', 'site-transient', 'site-options', 'blog-lookup', 'blog-details', 'site-details', 'rss', 'global-posts', 'blog-id-cache', 'networks', 'sites', 'blog_meta' ) );
}}}
This is hardcoded and not filterable in any (reasonable) way. Currently you have to rely on the actual Object Caching implementation to allow one to change the global cache groups.

The current globals setup is fine for the assumption of a default WordPress installation. But as it is with customizable software like WordPress, this is not true in any case.

For example: If one would split the user information and move it from the (global) network level to the individual sites, one would have to remove all the user related groups from the global cache groups.

This is currently not possible at all.

There are some possible solutions:

1. Make the array of global cache groups filtereable
- This might be a timing issue because the object cache system is loaded very early. But it might work.

2. Add a function to the Object Cache API to actually remove cache groups from the globals list.
- This is the {{{add}}} function: https://developer.wordpress.org/reference/classes/wp_object_cache/add_global_groups/
- This could be extended with a counterpart:

{{{
public function remove_global_groups( $groups ) {
    $groups = (array) $groups;
 
    $this->global_groups = array_diff_key( $this->global_groups, $groups );
}
}}}
This could then be leveraged from plugins at any point of time. Yet it still might kick in too late due to the early nature of the object cache system.

3. If timing issues are an issue, instead of the filters, one could make the filtering available using a constant ( WP_OBJECT_CACHE_NON_GLOBAL_GROUPS => array( 'users', 'usermeta' ) ). Yet this depends on PHP7+

4. Configure the global cachegroups late when filters are available and allow default WP filtering

Is this an Edge case? Yes! But it still is quite a burden on the flexibility of the Object cache that could be solved :-)"	janthiel	5.8.1	dev-feedback
Enhancements Awaiting Review	23330	Allow autoloading all options, not just autoload = yes options		Cache API	normal	enhancement	new	2013-01-30T21:12:57Z	2024-05-29T09:37:41Z	"For 5 years on wordpress.com we have ignored the autoload field for options. In wp_load_alloptions(), autoload = yes is not part of the query. Why? Because wordpress.com has a persistent cache. Thus, the transients that constitute the bulk of autoload = no options are stored in cache, never in the options table. Querying autoload=yes makes the query slower for no reason.

Having autoload = no options also complicates notoptions caching. Core has a notoptions cache that would be unnecessary if you can assume that wp_load_alloptions() loads every option. If an option is not in alloptions, then it does not exist.

Other large sites that use a persistent cache might also like to ignore the autoload flag. Core could automatically switch to ignoring autoload when an external object cache is being used, but administrators might want to control this so they can clean out old transients from options tables and do whatever other housekeeping is desired. So, let's add a filter that allows toggling this. When autoload is being ignored the wp_load_alloptions() query does not include autoload=yes and notoptions is not used."	ryan	3.5.1	has-patch
Enhancements Awaiting Review	58650	Reset cache in development mode		Cache API	normal	enhancement	new	2023-06-28T00:47:17Z	2023-06-28T17:47:41Z	"https://core.trac.wordpress.org/ticket/57487 added support for development mode in order that the WordPress code is aware of different methods and levels of caching.

Tests in the Gutenberg plugin utilize methods such as `wp_theme_has_theme_json`. 

In Core, this method checks the current development mode and deal with the cache accordingly.

Because Gutenberg had not set the required constants, PHP unit tests were failing, probably because the cache was not being cleared between tests (`$can_use_cached` was always true).

In order to get the tests running on the Gutenberg CI, the constant `WP_RUN_CORE_TESTS` needed to be declared in [Gutenberg's PHPUnit bootstrap file]https://github.com/WordPress/gutenberg/pull/51950/files#diff-a51f75ea7a86ddd18edea3fe94a0482427795fcd7b247e6959149cbac60964dfR27.

PR: https://github.com/WordPress/gutenberg/pull/51950

An alternative way suggested by @noisysocks was for Core to update Core's implementation of `wp_theme_has_theme_json` to cache the return value in a way that is reset by `wp_clean_theme_json_cache`.

cc @flixos90

Related discussion:

https://github.com/WordPress/wordpress-develop/commit/4a16702090984caef24af5a07d598cc5afff2fdc#r119747488

"	ramonopoly		
Enhancements Awaiting Review	58356	Gravatar local image cache		Cache API	normal	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		
Enhancements Awaiting Review	43341	Proposal: new cache helper functions		Cache API	normal	enhancement	new	2018-02-17T01:48:59Z	2018-02-17T01:48:59Z	"[https://github.com/stevegrunwell/wp-cache-remember I just tagged version 1.0.0 of WP Cache Remember], which is a small WordPress library that adds six new functions:

* `wp_cache_remember()`
* `wp_cache_forget()`
* `remember_transient()`
* `forget_transient()`
* `remember_site_transient()`
* `forget_site_transient()`

These functions all follow the same pattern, with two each for the WP object cache, transients, and site transients, respectively. The goal is to reduce this common pattern:

{{{#!php
function get_some_value() {
  $cache_key = 'some-cache-key';
  $cached     = wp_cache_get( $cache_key );

  if ( $cached ) {
    return $cached;
  }

  $value = new WP_Query( /* ... */ );

  wp_cache_set( $cache_key, $value );

  return $value;
}
}}}

...to something easier to manage:

{{{#!php
function get_some_value() {
  return wp_cache_remember( 'some-cache-key', function () {
    return new WP_Query( /* ... */ );
  } );
}
}}}

Of course, if the function is being used in WordPress core or anywhere else that needs to support PHP 5.2, any callable — not just closures — could be passed.

The function is based on [https://laravel.com/docs/5.6/cache#cache-usage Laravel's Cache::remember() method] and is extremely useful for themes or plugins that are regularly making use of the object cache, transients, and/or site transients. The underlying code uses existing cache API functions, and thus won't require any modification in existing object cache adapters.

The complementary function, `wp_cache_forget()` will retrieve and empty the cache value, saving developers a step if they only want a cached value to be returned once (for instance, a ""flash"" message).

[https://github.com/stevegrunwell/wp-cache-remember#readme The GitHub README file has a full description of each function and its arguments], along with 100% test coverage. If there's any interest in including some or all of these helpers in core, I'd be more than happy to put together a PR."	stevegrunwell		
Reporter Feedback / Close	63022	Update cache.php - Improve function wp_cache_decr		Cache API	normal	enhancement	new	2025-02-26T09:30:16Z	2025-06-03T12:54:54Z	"Make the lines 519-549 in class-wp-object-cache.php obsolete by adjusting the function call to the function wp_cache_decr, line 252 in cache.php.

Change 	

`return $wp_object_cache->decr( $key, $offset, $group ); `
to
`return $wp_object_cache->incr( $key, ((int) $offset) * -1), $group );`

because DECR by offset == INCR by (offset * -1)"	docjojo		close
Defects Awaiting Review, reported against no version	41712	canonical infinite redirect bug		Canonical	normal	defect (bug)	new	2017-08-23T15:27:56Z	2026-10-06T21:49:12Z	"I had an infinite redirection problem caused by ""redirect_canonical"" (wp-includes\canonical.php)

I have a query string parameter ex: ""http://mysite.com/mypage/?q=test%2C+test"" and it was redirected infinitly to itself because of:

{{{#!php
<?php
// yes, again -- in case the filter aborted the request
	if ( ! $redirect_url || strip_fragment_from_url( $redirect_url ) == strip_fragment_from_url( $requested_url ) ) {
		return;
	}
}}}

my $requested_url was in lowercase ""http://mysite.com/mypage/?q=test%2c+test"" because of:
{{{#!php
<?php
$requested_url = preg_replace_callback('|%[a-fA-F0-9][a-fA-F0-9]|', 'lowercase_octets', $requested_url);
}}}

but my $redirect_url was ""http://mysite.com/mypage/?q=test%2C+test""

so the both url was different because of the ""%2c"" vs ""%2C""

I solved it by adding:
{{{#!php
<?php
add_filter( 'redirect_canonical', 'my_redirect_canonical', 10, 1 );
function my_redirect_canonical($redirect_url){
    $redirect_url = preg_replace_callback('|%[a-fA-F0-9][a-fA-F0-9]|', 'lowercase_octets', $redirect_url);

    return $redirect_url;
}
}}}


"	yprince		has-patch
Defects Awaiting Review	44899	redirect_canonical redirects to another URL when it should not		Canonical	critical	defect (bug)	new	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	4.9.8	has-patch
Defects Awaiting Review	64029	Canonical redirect on `/page/1/` forces HTTP instead of HTTPS behind proxy/CDN		Canonical	normal	defect (bug)	new	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	6.8.2	has-patch
Defects Awaiting Review	51733	redirect_canonical unneeded redirect		Canonical	minor	defect (bug)	new	2020-11-09T18:27:18Z	2026-08-18T08:43:37Z	"Recently caught an unneeded redirect in `redirect_canonical`. Started caching responses, and ended in a redirect loop.

tl;dr
Per [https://tools.ietf.org/html/rfc3986#section-2.2 RFC3986], `+` is a reserved character, and we should use `%20` to encode a space in URLs (percent encoding). 
Per [https://tools.ietf.org/html/rfc1866#section-8.2.2 RFC1866], encode query args as `application/x-www-form-urlencoded` in which case a space is encoded as a `+`.

Posting here to discuss whether we want to fix this in core, or simply leave it as is.

To reproduce:
- Use any `twenty{year}` theme
- Customize homepage
- Select `A static page`
- Visit homepage with query args, e.g. https://vubuesinessplantest.help/?test=a+b+c
- A redirect occurs to https://vubuesinessplantest.help/?test=a%20b%20c

Considering we're using `parse_str()` to parse query variables, and it correctly parses both RFCs I'd argue we shouldn't redirect in the case when query args are the same.

Here's a filter I've written to skip redirects in this case:
{{{#!php
<?php
// Don't redirect if we're only re-encoding query params
add_filter(
	'redirect_canonical',
	function ( $redirect_url, $requested_url ) {
		$parsed_redirect = parse_url( $redirect_url );
		$parsed_requested = parse_url( $requested_url );
		// Scheme changed, do redirect
		if ( $parsed_requested['scheme'] !== $parsed_redirect['scheme'] ) {
			return $redirect_url;
		}
		// Host changed, do redirect
		if ( $parsed_requested['host'] !== $parsed_redirect['host'] ) {
			return $redirect_url;
		}
		// Path changed, do redirect
		if ( $parsed_requested['path'] !== $parsed_redirect['path'] ) {
			return $redirect_url;
		}
		// Parse query args
		parse_str( $parsed_redirect['query'], $query_redirect );
		parse_str( $parsed_requested['query'], $query_request );
		// Sort by keys, if the order changed
		ksort( $query_redirect );
		ksort( $query_request );
		// If parsed query args are the same, skip redirect
		if ( $query_redirect === $query_request ) {
			return false;
		}
		// Otherwise, do redirect
		return $redirect_url;
	},
	10,
	2
);
}}}
"	aidvu	3.3	has-patch
Defects Awaiting Review	42512	Domain with special character redirect loop on homepage		Canonical	normal	defect (bug)	new	2017-11-11T11:31:53Z	2026-08-18T08:42:13Z	"Hi,

i am experiencing a problem with wordpress starting with 4.5 i think.

Since this commit [1] i always get redirect loops on the home page. this issue seemed to be fixed, and i can confirm this on various wordpress instances.

But one instance has a '''domain with a special character''' (""ö"" - german Umlaut), and the problem persists there.

Also i am not the only user who can confirm this issue [2].

Currently i have to reset the line [3] to the old value after every update since it gets overwritten. This is not a solution, only a very bad workaround.

Of course i already have tried to disable all plugins, themes etc. which could cause the issue. I can say, that the problem is not caused by the hoster since i have many wordpress instances running on the same hoster and no other does have this problem (and no other have a special character in the domain)

Regards

[1] https://github.com/WordPress/WordPress/commit/84a3b4407f9e03311aa591004f3bec0639f3ba3f?diff=unified
[2] https://wordpress.org/support/topic/45-causes-infinite-redirect-on-static-front-page/page/2/#post-8156893
[3] https://github.com/WordPress/WordPress/commit/84a3b4407f9e03311aa591004f3bec0639f3ba3f?diff=unified#diff-dc3247fd3fa65f15e6fc5ce8c6fa2d42L175"	stefan-niedermann	4.5	has-patch
Defects Awaiting Review	65163	Force URLs/URIs of Posts and Feeds to Redirect (301) to All Lowercase		Canonical	normal	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		
Defects Awaiting Review	49369	redirect_canonical() should strip trailing protocols		Canonical	major	defect (bug)	new	2020-02-05T11:23:02Z	2026-02-04T06:08:53Z	"I was crawling some of my sites as I was setting up SEO strategies and found really odd 301 redirects on all tested sites.

1. https://domain.com/http:// redirects to https://domain.com/http:/ (one forward slash less). So it's basically a nonexistent page redirecting to another nonexistent page

2. To figure what could be causing this I needed to check if this was happening to just this site or others. I discovered that all sites suffered the same issue regardless of host or webserver stack.

3. Wondering if Cloudflare a common plugin was causing it, I unproxied and entered all the sites in dev mode and had all plugins disabled and the problem still persists

Spiders/crawlers pick this up - appending http:// to end of root URLs manually is not required.

This issue persists - likely a bug in WordPress redirect API. Anybody care to replicate and confirm? Is this a bug?

"	onlyonemj	5.3.2	needs-unit-tests
Defects Awaiting Review	55993	Wrong canonical redirect for paged posts page		Canonical	normal	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		
Defects Awaiting Review	63252	$tax_url with no path not accounted for in /wp-includes/canonical.php		Canonical	normal	defect (bug)	new	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	6.7.2	has-patch
Defects Awaiting Review	62299	Pages with random numbers similar to the main page of the site		Canonical	normal	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		
Defects Awaiting Review	62007	PHP warning in wp-includes/canonical.php when accessing custom feed with specific permalink structure		Canonical	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	57724	redirect_canonical() may not work if site_url contains port number		Canonical	normal	defect (bug)	new	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	6.1.1	has-patch
Defects Awaiting Review	60721	redirect_canonical suddenly causes issues with paramter values and CDN		Canonical	minor	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	6.4.3	
Defects Awaiting Review	51725	Canonical redirect and user_trailingslashit()		Canonical	trivial	defect (bug)	new	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	5.5.2	needs-unit-tests
Defects Awaiting Review	58803	Infinite loop in canonical.php		Canonical	minor	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	6.2	
Defects Awaiting Review	55880	Custom post type isn't redirected to its canonical URL		Canonical	normal	defect (bug)	new	2022-05-31T11:54:44Z	2023-08-04T06:50:43Z	"At the opposite of a custom taxonomy term which is redirected to its pretty URL when we use its plain permalink, a custom post type is not.

1. Set a custom permalink structure in WordPress permalinks settings like /%postname%/ 
2. Register a custom taxonomy and custom post type by using the code below for example

{{{#!php
<?php
/**
 * Plugin Name: custom taxonomy and custom post type for testing.
 */

function test_custom_taxonomy_and_post_type() {

	$custom_tax_labels = array(
		'name'          => 'Custom taxonomies',
		'singular_name' => 'Custom taxonomy',
		'menu_name'     => 'Custom taxonomies',
	);

	register_taxonomy(
		'custom_tax',
		'custom_post',
		array(
			'labels'       => $custom_tax_labels,
			'public'       => true,
			'rewrite'      => true,
			'hierarchical' => true,
		)
	);

	$custom_post_labels = array(
		'name'          => 'Custom posts',
		'singular_name' => 'Custom post',
		'menu_name'     => 'Custom posts',
	);

	register_post_type(
		'custom_post',
		array(
			'labels'      => $custom_post_labels,
			'public'      => true,
			'rewrite'     => true,
			'has_archive' => true,
			'taxonomies'  => 'custom_tax',
		)
	);
}

add_action('init', 'test_custom_taxonomy_and_post_type');


}}}

3. Create a custom taxonomy term: Custom term example (slug: custom-term-example)
4. Create a custom post: Custom post example (slug: custom-post-example) and link it to Custom term example
5. Try to get the plain permalink of the custom taxonomy http://example.org/?custom_tax=custom-term-example. We are redirected to the pretty URL http://example.org/custom_tax/custom-term-example/ 👌
6. Do the same with the custom post example plain permalink URL http://example.org/?custom_post=custom-post-example. We aren't redirected to its canonical URL which should be http://example.org/custom_post/custom-post-example
7. Notice that the {{{<link rel=""canonical"" href="""" />}}} is correctly set in the HTML source code by the {{{wp_get_canonical_url()}}} function https://github.com/WordPress/WordPress/blob/6.0/wp-includes/link-template.php#L3913
8. Note that the custom post type archive page isn't redirected either. http://example.org/?post_type=custom_post should be redirected to http://example.org/custom_post

"	manooweb		
Defects Awaiting Review	57260	Static home page redirect error using post name premalinks behind reverse proxy		Canonical	normal	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	6.1.1	
Defects Awaiting Review	49220	rel_canonical generates the wrong canonical structure for paginated pages.		Canonical	normal	defect (bug)	new	2020-01-17T17:31:20Z	2022-11-04T14:57:35Z	"`rel_canonical` is responsible for generating canonical permalink structures for pages. For example, when visiting the WordPress.org homepage, the canonical permalink is set to `https://wordpress.org/`. 

`rel_canonical` has some built in handling of paginated page structures, but this does not seem to be doing the correct thing. 

A paginated page has the url structure of `https://example.com/page/2`. However, on this page the canonical tag would be output as:

`<link rel=""canonical"" href=""https://example.com/2/"" />`

As well as simply being wrong, this can conflict with WordPress's `wp_guess_url` functionality. For example, https://central.wordcamp.org/page/5/ canonicalises to https://central.wordcamp.org/5/, which when visited redirects to the ""5-reasons-you-should-attend-wordcamp-nyc"" post (due to the presence of ""5"" in the slug). I would imagine this could seriously confuse some search engines.

This situation is made worse by the fact that only a small proportion of pages created through WordPress have legitimate pagination. In these cases the page should canonicalise to the first page, but I believe handling of non-paginated pages would be better considered in a separate ticket.

This has come to light as a result of the following meta tickets which are contributing to the current SEO issues on wordpress.org:
https://meta.trac.wordpress.org/ticket/4198
https://meta.trac.wordpress.org/ticket/4564

This bug is only affecting sites with pretty permalinks enabled."	bradleyt	4.6	
Defects Awaiting Review	46061	Canonical prevents accessing paginated results of feed-named tags		Canonical	normal	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	2.7.1	needs-patch
Defects Awaiting Review	54758	Front page not embeddable when using a static page_on_front		Canonical	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	53574	404 redirect guessing should not apply on URLs with trailing slashes		Canonical	normal	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		
Defects Awaiting Review	41577	Fix Notice fixing		Canonical	normal	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	4.8.1	
Defects Awaiting Review	51348	Trailing slash redirect removes pipes from query strings		Canonical	normal	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	5.5.1	
Defects Awaiting Review	52376	Redirect loop occurs in taxonomy archive with URL-encoded slug.		Canonical	normal	defect (bug)	new	2021-01-26T13:14:28Z	2021-01-29T18:12:20Z	"The following steps will occur.

1. Create taxonomy with `rewrite => false`.

{{{#!php
<?php
	$args = array(
		'label'            => 'Genre',
		'public'           => true,
		'rewrite'           => false,
	);

	register_taxonomy( 'genre', array( 'post' ), $args );
}}}


2. Create a term with URL-encoded slugs. ( example: 🏠, ワードプレス )
3. Set Permalink structure  to to something other than Plain.
4. Go to the archive of the created term. 
5. Redirect loop.

`remove_action( 'template_redirect', 'redirect_canonical' )`,  it will not occur.

"	Toro_Unit		has-patch
Defects Awaiting Review	51916	Incorrect URL encoding and redirect in redirect_canonical		Canonical	normal	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	5.5.3	
Defects Awaiting Review	51700	Infinite redirect loop error when blog site is rewritten and real domain on another server		Canonical	normal	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	5.5.2	
Defects Awaiting Review	50149	url issue on category slugs		Canonical	normal	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	5.4.1	
Defects Awaiting Review	50084	redirect_canonical() need additional hook		Canonical	normal	defect (bug)	new	2020-05-04T18:52:25Z	2020-05-05T11:18:25Z	"There is no hook in [redirect_canonical()](https://wp-kama.ru/filecode/wp-includes/canonical.php#L12-625) function that allow as to extend it's logic.

For example, I have the following permastructure `/%post_id%/%post_name%`. And I can visit the post by such URL `/123`. But I need the redirect to right URL `/123/postname`.

And if I try to use the `redirect_canonical` hook to fix this BUG, the hook won't work, because it's too late and the hook is never triggers.

At the bottom of the function [we have such code](https://wp-kama.ru/filecode/wp-includes/canonical.php#L572-605):

{{{#!php
<?php
	if ( ! $redirect_url || $redirect_url == $requested_url ) {
		return;
	}

...
	$redirect_url = apply_filters( 'redirect_canonical', $redirect_url, $requested_url );

}}}

Why there is no hook before `return`? Hook that allows us set our own `$redirect_url`...
"	Tkama		
Defects Awaiting Review	50065	Load balancers forwarding host header with port and redirect loop		Canonical	normal	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		
Defects Awaiting Review	42423	Warning in redirect_guess_404_permalink if $query->post_type is an array instead of a string		Canonical	normal	defect (bug)	new	2017-11-02T20:02:01Z	2019-02-01T12:30:46Z	"I am not familiar enough with WordPress to know if this is an issue or intended.

redirect_guess_404_permalink  has a block that looks like:

wp-includes/canonical.php:594
{{{#!php
// if any of post_type, year, monthnum, or day are set, use them to refine the query
if ( get_query_var('post_type') )
  $where .= $wpdb->prepare("" AND post_type = %s"", get_query_var('post_type'));
else
  $where .= "" AND post_type IN ('"" . implode( ""', '"", get_post_types( array( 'public' => true ) ) ) . ""')"";
}}}

This works in the case that post_type is a single value, but if it has been changed to an array of values then this looks to trigger the warning:

wp-includes/wp-db.php:1353
{{{#!php
_doing_it_wrong( 'wpdb::prepare', __( 'The query only expected one placeholder, but an array of multiple placeholders was sent.' ), '4.9.0' );
}}}"	augustuswm	4.8.3	
Defects Awaiting Review	45687	URL params get lost because of canonical redirect on static front page		Canonical	minor	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	5.0.1	needs-patch
Defects Awaiting Review	45459	Infinite Loop By redirect_canonical (canonical.php) due to mishandling of Port Information in URL creation/rebuilt		Canonical	major	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	4.9.8	
Defects Awaiting Review	44559	Alias redirected when page is set as a homepage		Canonical	normal	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	4.9.7	
Defects Awaiting Review	43249	Redirection issue with Japanese characters in query string on static front page		Canonical	normal	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	4.9.4	
Enhancements Awaiting Review	52865	Strip 'enclosed' trailing spaces in URLs		Canonical	normal	enhancement	new	2021-03-19T10:32:40Z	2025-06-10T15:44:05Z	"#20383 made improvements that strip trailing punctuation from URLs. E.g., https://ma.tt/2012/03/productivity-per-square-inch%20 redirects correctly to the canonical URL.

However, URLs like https://ma.tt/2012/03/productivity-per-square-inch%20/ (which 'enclose' the trailing space with a trailing slash) are ''not'' redirected. It, and others like it, typically return a 404 error.

This kind of 'broken link' pattern is ''extremely'' common on the web; particular as a trailing slash is often appended to a malformed URL ''before'' WP runs (e.g., via a server/htaccess/nginx configuration).

We should refine the canonical redirect logic (in `redirect_canonical`) to also consider and redirect these types of requests.

**Considerations**
- The ""''Remove trailing spaces and end punctuation from the path''"" section of `redirect_canonical` doesn't consider the presence of trailing slashes in the URL. This could/should be adapted to catch those.

- There might be cases where a user 'legitimately' has a permalink structure (or slug) that ends in `%20` or `%20/`. That might(?) make a fix more complicated than just sniffing for whether the permalink structure ends with `/`.

- It looks like it's inconsistent in WP where `%20` (and/or `%20/` ) can be added to slugs or structures. It's stripped in some places, but not in others.

- ''Should'' a permalink or slug be 'allowed' to contain, or end in, a space character? If this is being stripped in some parts of WP, maybe that's a good argument to prevent it elsewhere/everywhere. In which case, fixing this becomes a lot simpler.
"	jonoaldersonwp		
Enhancements Awaiting Review	63082	Strip query strings in wp_redirect_admin_locations		Canonical	trivial	enhancement	new	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		has-patch
Enhancements Awaiting Review	36420	A more forgiving redirect guesser		Canonical	normal	enhancement	new	2016-04-05T14:13:37Z	2024-06-25T14:44:11Z	"
I would like the redirect guesser to be more forgiving using SOUNDS LIKE  . Here's a small suggestion:




{{{#!php
function redirect_guess_404_permalink() {
        global $wpdb;

        if ( get_query_var('name') ) {
                $where = $wpdb->prepare(""(post_name SOUNDS LIKE %s"", $wpdb->esc_like( get_query_var('name') ) );
                $where .= $wpdb->prepare("" OR post_name LIKE %s)"", $wpdb->esc_like( get_query_var('name') ) . '%');

....
}}}

It would be even better if it could be implemented using levenstein distance if that is not too heavy on resources.

https://github.com/fza/mysql-doctrine-levenshtein-function "	gorillum		dev-feedback
Enhancements Awaiting Review	51508	Fix for canonical.php		Canonical	trivial	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	2.3	
Enhancements Awaiting Review	50506	PHP warning appearing in 404 page and 'post_type' query var is Array		Canonical	normal	enhancement	new	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	5.4.2	needs-unit-tests
Enhancements Awaiting Review	35248	"WordPress should remove domain trailing dot (as/like it removes ""www."")"		Canonical	normal	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	4.4	
Enhancements Awaiting Review	40082	Pretty links for users when searching		Canonical	normal	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	4.7.3	
Reporter Feedback / Close	36737	Single site reachable on multiple subdomains always redirected to site_url		Canonical	normal	defect (bug)	new	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	4.5	close
Defects Awaiting Review, reported against latest stable branch	66093	Combining characters aren't normalized to Unicode Form C on output		Charset	minor	defect (bug)	new	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	7.1	has-patch
Defects Awaiting Review	63063	IDN domains are erroneously URL-encoded in the wp_sanitize_redirect() function		Charset	minor	defect (bug)	new	2025-03-05T19:11:52Z	2026-07-04T17:47:35Z	"== Overview ==

There is an issue with how Internationalised Domain Names (IDNs) are handled in the WordPress redirect system, specifically when an IDN is used in the ""WordPress Address"" or ""Site Address"" settings. The problem occurs when WordPress tries to redirect the user back to the post after submitting a comment. The domain part of the URL, which should remain in its IDN format, is incorrectly processed and URL-encoded by WordPress.

== WordPress and IDNs ==

WordPress fully supports IDN domains in the General site settings (under ""WordPress Address (URL)"" and ""Site Address (URL)""). These fields allow users to set an IDN domain (such as simon.schönbeck.dk) for their website without any issues.

The IDN domain should not undergo any transformation when used in URLs within WordPress, as the domain is already properly handled and encoded when set in the site's settings.

== Redirection Process ==

When a comment is posted, WordPress triggers a redirect to the comment's location on the post. This is done using the $location variable, which contains the full URL (including the post's IDN domain).

== The Problem ==

During this process, the function wp_sanitize_redirect() is called. This function is responsible for sanitising and cleaning up the redirect URL.

=== Unexpected Behaviour ===

The wp_sanitize_redirect() function calls _wp_sanitize_utf8_in_redirect(). This function URL-encodes any UTF-8 characters in the URL, which includes characters in the domain name (e.g., the ö in simon.schönbeck.dk is encoded as %C3%B6).

This transformation should not occur for IDN domains, as the domain part is already in a valid format (IDN is treated differently from regular UTF-8 encoding).

== Effect ==

The problem arises because the sanitisation process applies URL encoding to the domain part of the IDN URL, such as converting characters like ö to %C3%B6. This encoding breaks the validation of the domain name in wp_validate_redirect(), which expects the domain to be in a valid, non-encoded format.

Since the domain with URL-encoded characters does not pass the validation checks, the fallback URL is triggered. By default, this fallback URL is set to the WordPress admin page (admin.php), resulting in the user being incorrectly redirected to the admin dashboard rather than back to the post they came from.

This issue mainly affects guest commentators who do not need to log in before commenting. After the comment is successfully submitted, but due to the failed URL validation, WordPress redirects them to the admin panel as a fallback URL. Since they are not logged in, they are then redirected to the login page, even though no login is required to post a comment.

== Solution ==

The IDN domain part of the URL should not be sanitised or URL-encoded for UTF-8 characters, as it is already in a valid format. The sanitisation process should respect the IDN format, preventing unnecessary transformations that break the validation.

== Workaround ==

Until a fix is implemented, a workaround is to manually encode your site/blog URL as Punycode in the ""WordPress Address (URL)"" and ""Site Address (URL)"" settings. This ensures that the domain part is in the correct format and avoids the encoding issues caused by the sanitisation process.
"	calpeconsulting	6.7.2	has-patch
Defects Awaiting Review	38186	Database Collations Bypassed by determine_charset() in wp-db.php		Charset	major	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	4.6.1	
Enhancements Awaiting Review	34631	Extra compat for mbstring: mb_strpos()		Charset	normal	enhancement	new	2015-11-09T12:00:50Z	2025-08-25T23:19:42Z	"Hello,

I noticed a missing compat function within compat.php, regarding mb_strpos.

The use of this function within a plugin will result in a fatal error if the server doesn't support mbstring.

So I made a function that will take over the function if it does not exist.

I also implemented debugging errors based on PHP 5.5 source: https://github.com/php/php-src/blob/PHP-5.5/ext/standard/string.c#L1824

{{{#!php

if ( ! function_exists( 'mb_strpos' ) ) {
	function mb_strpos( $haystack, $needle, $offset = 0, $encoding = null ) {
		return _mb_strpos( $haystack, $needle, $offset, $encoding );
	}
}

/*
* Only understands UTF-8 and 8bit.  All other character sets will be treated as 8bit.
* For $encoding === UTF-8, the $str input is expected to be a valid UTF-8 byte sequence.
* The behavior of this function for invalid inputs is PHP compliant.
*/
if ( ! function_exists( '_mb_strpos' ) ) {
	function _mb_strpos( $haystack, $needle, $offset = 0, $encoding = null ) {

		if ( null === $encoding ) {
			$encoding = get_option( 'blog_charset' );
		}

		// The solution below works only for UTF-8,
		// so in case of a different charset just use built-in strpos()
		if ( ! in_array( $encoding, array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) ) {
			return $offset === 0 ? strpos( $haystack, $needle ) : strpos( $haystack, $needle, $offset );
		}

		$haystack_len = mb_strlen( $haystack );

		if ( $offset < (int) 0 || $offset > $haystack_len ) {
			trigger_error( 'mb_strpos(): Offset not contained in string', E_USER_WARNING );
			return false;
		}

		if ( !is_string( $needle ) ) {
			$needle = (string) $needle;

			if ( !is_string( $needle ) ) {
				trigger_error( 'mb_strpos(): Array to string conversion', E_USER_WARNING );
				return false;
			}
		}

		if ( empty( $needle ) ) {
			trigger_error( 'mb_strpos(): Empty needle', E_USER_WARNING );
			return false;
		}

		// Slice off the offset
		$haystack_sub = mb_substr( $haystack, $offset );

		if ( _wp_can_use_pcre_u() ) {
			// Use the regex unicode support to separate the UTF-8 characters into an array
			preg_match_all( ""/./us"", $haystack, $match_h );
			preg_match_all( ""/$needle/us"", $haystack_sub, $match_n );

			$pos = key( array_intersect( $match_h[0], $match_n[0] ) );

			if ( empty( $pos ) ) {
				return false;
			}

			return (int) $pos;
		}

		$regex = '/(
			  [\x00-\x7F]                  # single-byte sequences   0xxxxxxx
			| [\xC2-\xDF][\x80-\xBF]       # double-byte sequences   110xxxxx 10xxxxxx
			| \xE0[\xA0-\xBF][\x80-\xBF]   # triple-byte sequences   1110xxxx 10xxxxxx * 2
			| [\xE1-\xEC][\x80-\xBF]{2}
			| \xED[\x80-\x9F][\x80-\xBF]
			| [\xEE-\xEF][\x80-\xBF]{2}
			| \xF0[\x90-\xBF][\x80-\xBF]{2} # four-byte sequences   11110xxx 10xxxxxx * 3
			| [\xF1-\xF3][\x80-\xBF]{3}
			| \xF4[\x80-\x8F][\x80-\xBF]{2}
		)/x';

		/**
		 * Place haystack into array
		 */
		$match_h = array( '' ); // Start with 1 element instead of 0 since the first thing we do is pop
		do {
			// We had some string left over from the last round, but we counted it in that last round.
			array_pop( $match_h );

			// Split by UTF-8 character, limit to 1000 characters (last array element will contain the rest of the string)
			$pieces = preg_split( $regex, $haystack, 1000, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );

			$match_h = array_merge( $match_h, $pieces );
		} while ( count( $pieces ) > 1 && $haystack = array_pop( $pieces ) ); // If there's anything left over, repeat the loop.

		/**
		 * Place haystack offset into array
		 */
		$match_hs = array( '' ); // Start with 1 element instead of 0 since the first thing we do is pop
		do {
			// We had some string left over from the last round, but we counted it in that last round.
			array_pop( $match_hs );

			// Split by UTF-8 character, limit to 1000 characters (last array element will contain the rest of the string)
			$pieces = preg_split( $regex, $haystack_sub, 1000, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );

			$match_hs = array_merge( $match_hs, $pieces );
		} while ( count( $pieces ) > 1 && $haystack_sub = array_pop( $pieces ) ); // If there's anything left over, repeat the loop.

		/**
		 * Put needle into array
		 */
		$match_n = array( '' ); // Start with 1 element instead of 0 since the first thing we do is pop
		do {
			// We had some string left over from the last round, but we counted it in that last round.
			array_pop( $match_n );

			// Split by UTF-8 character, limit to 1000 characters (last array element will contain the rest of the string)
			$pieces = preg_split( $regex, $needle, 1000, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );

			$match_n = array_merge( $match_n, $pieces );
		} while ( count( $pieces ) > 1 && $needle = array_pop( $pieces ) ); // If there's anything left over, repeat the loop.

		/**
		 * Compute match of haystack offset with needle
		 * If passed, find the array key number within the full haystack.
		 */
		$pos = in_array( $match_n[0], $match_hs ) ? key( array_intersect( $match_h, $match_n ) ) : '';

		if ( empty( $pos ) ) {
			return false;
		}

		return (int) $pos;
	}
}
}}}


`if ( ! function_exists( '_mb_strpos' ) ) {` could probably be removed since it could be a core function.

To test this, I've used the following lines of code:

{{{#!php
var_dump( _mb_strpos( '象形指事', '指', 0 ) ); // 2
var_dump( _mb_strpos( '象形指事', '指', 1 ) ); // 2
var_dump( _mb_strpos( '象形指事', '指', 2 ) ); // 2
var_dump( _mb_strpos( '象形指事', '指', 3 ) ); // false
var_dump( _mb_strpos( '象形指事', '指', -1 ) ); // false WARNING
var_dump( _mb_strpos( '象形指事', '指', 4 ) ); // false
var_dump( _mb_strpos( '象形指事', '指', 5 ) ); // false WARNING

echo PHP_EOL.PHP_EOL;

var_dump( mb_strpos( '象形指事', '指', 0 ) ); // 2
var_dump( mb_strpos( '象形指事', '指', 1 ) ); // 2
var_dump( mb_strpos( '象形指事', '指', 2 ) ); // 2
var_dump( mb_strpos( '象形指事', '指', 3 ) ); // false
var_dump( mb_strpos( '象形指事', '指', -1 ) ); // false WARNING
var_dump( mb_strpos( '象形指事', '指', 4 ) ); // false
var_dump( mb_strpos( '象形指事', '指', 5 ) ); // false WARNING
}}}

Feel free to contribute your thoughts :) Thanks!"	Cybr	4.4	needs-unit-tests
Reporter Feedback / Close	35144	Sorting Greek characters		Charset	normal	defect (bug)	new	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	4.4	reporter-feedback
Defects Awaiting Review, reported against trunk	66635	Harden reaction and note permissions		Comments	normal	defect (bug)	new	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	trunk	has-patch
Defects Awaiting Review, reported against no version	41037	Comment author can't edit their comment(s) if they aren't the post author		Comments	normal	defect (bug)	new	2017-06-14T00:26:14Z	2019-11-22T11:42:32Z	"In {{{map_meta_cap()}}}, the {{{edit_comment}}} meta capability is eventually mapped to {{{edit_others_posts}}} which results in comment authors not being able to edit their own comment(s) if their comment(s) are on a different user's post.

Note 1: The issue is specific to the author role. The editor role doesn't see the issue because this role has the {{{edit_others_posts}}} cap.

Note 2: The problem doesn't exist if the comment author is also the post author. This is because, in such cases, {{{edit_comment}}} is mapped to either {{{edit_published_posts}}} or {{{edit_posts}}}"	henry.wright		needs-patch
Defects Awaiting Review, reported against no version	39958	Comment reply/cancel links work badly when comment form is above the comment list		Comments	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	58450	WP_Comment_Query status argument documentation misses any		Comments	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63332	wp_editor_settings filter hook not working as expected in WordPress Admin		Comments	normal	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	6.8	needs-patch
Defects Awaiting Review	41826	WP_Comment_Query can generate negative offset in LIMIT clause		Comments	normal	defect (bug)	new	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	4.9	has-patch
Defects Awaiting Review	43946	Inconsistent encoding of comment_content		Comments	normal	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	4.9.5	needs-patch
Defects Awaiting Review	66272	"Comments: ""Mine"" view count not updated via AJAX after moderation actions"		Comments	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	66077	Unapproved comment preview renders oEmbed URL differently from the approved comment		Comments	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65657	get_lastcommentmodified() includes notes, so an internal note changes the comments-feed Last-Modified/ETag		Comments	normal	defect (bug)	new	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	6.9	has-patch
Defects Awaiting Review	65642	get_page_of_comment() counts internal notes, breaking comment permalink pagination		Comments	normal	defect (bug)	new	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	6.9	has-patch
Defects Awaiting Review	56539	Check if index in $args isset / ! empty before using it in Walker_Comment methods or create default $args in case if it is empty		Comments	normal	defect (bug)	new	2022-09-09T08:23:59Z	2026-03-02T12:35:05Z	"Taking into account the comments in #53449, I suggest local fix for the comments walker (wp-includes/class-walker-comment.php).

Class Walker_Comment uses some $args indexes without checking if they exist. And in my case, they don't exist, $args are empty array and I am getting notices. I will consider adding $args into the call, but they are commented as optional and don't suppose to be used in such way. 

Examples:

public function start_el uses:

{{{
$args['short_ping']
$args['format']
}}}
 
And 
{{{
$args['style']
}}}
is used without checking that it exists in several methods - end_el, end_lvl, ping, comment, html5_comment, start_lvl.
"	oglekler		has-patch
Defects Awaiting Review	64604	Comments column and controls visible for pages		Comments	normal	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		
Defects Awaiting Review	58014	Invalid Post ID when updating a comment in editing		Comments	normal	defect (bug)	new	2023-03-29T19:10:59Z	2026-01-20T07:18:55Z	"== Bug Report
=== Description
Invalid Post ID when i update a comment

Content of the post:
 the comment made in front-end on a lorem post created by hand no feature image.

Content of the comment:
 A test is when you are made to make little drawings to see if you are not crazy.

I just try to add the word: ""Really"" at the end of the comment 

=== Environment
- WordPress: 6.2
- PHP: 7.4.1
- Server: Apache/2.4.43 (Unix)
- Database: mysqli (Server: 8.0.16 / Client: mysqlnd 7.4.1)
- Browser: Chrome 111.0.0.0 (Linux)
- Theme: Twenty Twenty-Three 1.1
- Language : FR
- MU-Plugins: None activated
- Plugins: 
  * WordPress Beta Tester 3.3.7

=== Steps to Reproduce
1. Go to `Posts > Add New` and create a new post.
2. On the frontend, add a comment.
3. Click `Edit`.
4. Add a word.
5. Click `Update`.
x. 🐞 Bug occurs.

=== Expected Results
1. ✅ The post must be updated and the word added.

=== Actual Results
1. ❌ I have the error message : **Invalid Post ID**
2. ❌ Checking the content after the error. The content has not changed."	wplmillet	6.2	
Defects Awaiting Review	35862	Comments screen: audit all the background color animations		Comments	normal	defect (bug)	new	2016-02-18T17:26:13Z	2025-10-06T16:53:45Z	"Noticed some weird behavior, to reproduce: go in the Comments screen (in the ""All"" view), and mark as spam or move to the trash an '''approved''' comment. The comment row background will quickly ""flash"" to red and then the comment row will disappear.

Do the same on an '''unapproved''' comment: no red flash.

There are also other cases where this happens, seems all related to pending comments. By the way, the JavaScript animations still run and the background is animated behind the scenes. It just can't be seen because the pending comment row background color is now set on the `th` and `td` elements that hide the change on the `tr` background. Looks like this JavaScript part wasn't updated after the CSS changes in WordPress 3.8.

There are also other old things that missed to be updated, for example at some point JavaScript still uses `#FFFFE0`. This was the background color used for unapproved comments in WordPress 3.7 but they use `#FEF7F1` since 3.8.

I'd propose two options:
1. Fix the animations :)
2. Get rid of them. Apparently, not so many users have complained about the (partial) lack of color animations in the last 2 years

I'd lean toward the second option. There are several lines of JavaScript in `edit-comments.js` and `wp-lists.js` that could be removed, they are hard to maintain and being a bit old code they also violate the separation of structure, presentation and behavior principle. Yes, the JS could be refactored and maybe use a more modern approach but for, I'd say, a very little benefit.

So before any patch attempt, this would need a decision. Any thoughts more than welcome.

In the screenshot below, the red flash on pending comments, how it used to be on WordPress 3.7

[[Image(https://cldup.com/Ml9laEw1jQ.png)]]"	afercia	3.8	ui/ux
Defects Awaiting Review	47393	Comment form submission with invalid fields incorrectly returns 200 OK response		Comments	normal	defect (bug)	new	2019-05-26T15:28:48Z	2025-09-17T16:07:17Z	"This follows up on #11286.

I just noticed that a bunch of error responses are returning 200 status code:

* `comment_author_column_length`
* `comment_author_email_column_length`
* `comment_author_url_column_length`
* `comment_content_column_length`
* `require_name_email`
* `require_valid_email`
* `require_valid_comment`

The origin of this seems to be this [https://core.trac.wordpress.org/ticket/11286#comment:44 comment]:

> * Validation errors: 200. I agree completely w/bpetty. This isn't a 4xx error: the request was understood and the client received a response.

I don't think this is right. Sure the request was understood, but it was understood to be incorrect.

Should they not be 400 (Bad Request)? The argument against 400 was this [https://core.trac.wordpress.org/ticket/11286#comment:21 comment]:

> The HTTP Specification says that 400 is for when ""the request could not be understood by the server due to malformed syntax"". So whilst this might be an appropriate response for invalid inputs (e.g. bad email address), I don't think it should be used in wp-includes/comment.php for duplicate comments and comment flooding. There 403 is more appropriate.

Nothing here specifically arguing against using 400 for invalid fields.

Also, more recently the REST API sends 400 status code responses in `\WP_REST_Comments_Controller::create_item()` for these errors:

* `rest_comment_exists`
* `rest_invalid_comment_type`
* `rest_comment_content_invalid`
* `rest_comment_author_data_required`
* `comment_author_column_length`
* `comment_author_email_column_length`
* `comment_author_url_column_length`
* `comment_content_column_length`
* `comment_flood`

The exceptions are `comment_duplicate` which returns [https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409 409] (Conflict), and the generic DB error `rest_comment_failed_create` which returns with a 500 error code, as expected.

For the length errors, a [https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413 413] (Payload Too Large) code may be more specific. Also, for comment flooding, what about the status [https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429 429] (Too Many Requests)? The REST API should perhaps be updated to use this instead of 400.

All this to say, to align with the REST API the comment form submission errors should use 400+ error codes instead of 200."	westonruter	4.1	has-patch
Defects Awaiting Review	57343	HTML in comments is automatically deleted		Comments	major	defect (bug)	new	2022-12-16T16:26:22Z	2025-08-15T13:02:13Z	If I add a photo, or a class for a link, or something else, they're immediately removed when I save them.	locksoft	6.1.1	needs-patch
Defects Awaiting Review	53310	All Comments are not visible in comment section in WordPress Backend Post Section		Comments	normal	defect (bug)	new	2021-05-31T15:25:09Z	2025-08-01T04:56:49Z	"All Comments are not visible in comment section in WordPress Back-end Post Section
-
Ex : 1. If I have 104 Comment in My Post then I am able to see only latest 100 comment

2. If I have 21 Comment in Post then I am able to see only 20 comments 

**Reference Video Link:** https://www.loom.com/share/45c015457f81401ea4cabbb562c5ef34

**Note : This issue occurs in Backend post section**"	shailu25	5.7.2	has-patch
Defects Awaiting Review	63504	Email me whenever Anyone posts a comment not working		Comments	normal	defect (bug)	new	2025-05-29T23:17:29Z	2025-07-09T23:31:22Z	"== Bug Report
=== Description
Having enabled Settings > Discussion >  Email me whenever > Anyone posts, is not delivering any emails

=== 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 137.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty 2.9
- MU Plugins: None activated
- Plugins:
  * Test Reports 1.2.0
  * WP Mail SMTP 4.4.0

=== Steps to Reproduce
1. Enable Settings > Discussion >  Email me whenever > Anyone posts
2. Disable Settings > Discussion >  Email me whenever > A comment is held for moderation
2. Create a post 
3. Go and add a comment as another user
4. 🐞 No email delivered

=== Expected Results
- An email should be delivered every time someone posts a comment
- Note that with ""A comment is held for moderation"" enabled, moderation emails are correctly sent.

=== Additional Notes
- Found this bug through [https://wordpress.org/support/topic/post-comments-not-coming-via-email-for-my-posts-only/ this report] in Support Forums. Props phsiii."	SirLouen		dev-feedback
Defects Awaiting Review	60161	Comments on pages where comments are not allowed		Comments	normal	defect (bug)	new	2023-12-28T10:15:28Z	2025-05-12T01:38:17Z	Recently I’ve had comment moderation requests on a site where comments are not allowed (both in the Settings > Comments and in the page Settings). I don’t know how these comments are submitted. The targetted page is the Privacy Policy page.	is0ph	6.4.2	
Defects Awaiting Review	63157	wp_list_comments behaves differently when passed string or array		Comments	normal	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	6.7.2	
Defects Awaiting Review	61468	DivisionByZero issue for comments on PHP8.0+		Comments	major	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	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	normal	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	6.7.1	
Defects Awaiting Review	55891	"Please add an action for additions within the ""comment-metadata"" div"		Comments	normal	defect (bug)	new	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	6.0	has-patch
Defects Awaiting Review	62066	Weird ability to modify comments to be empty	Lela Bones	Comments	minor	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		
Defects Awaiting Review	60693	"""Previously approved comment"" for logged out users bug"		Comments	normal	defect (bug)	new	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	6.4.3	dev-feedback
Defects Awaiting Review	49869	Apply comment field filters to backend		Comments	normal	defect (bug)	reopened	2020-04-10T16:21:27Z	2024-03-07T01:13:41Z	"Recently, I had to work on an internally consuming WP project. I am a bit surprised how WP filters are mainly affecting only visual side, instead of applying to backend functions.

so, for example:

{{{
add_filter('comment_form_default_fields', 'website_remove');
function website_remove($fields)
{
	if( isset($fields['url']) )
		unset($fields['url']);
	return $fields;
}
}}}

it only removes 'url' input field from output of comment form. So, what is the point of that, if it can be simply achieved by css `display:none`. ? the intention is clear, that it should REMOVE ""url"" parameter from comment system at all.
However, at this moment, even if people use 'comment_form_default_fields' filter to remove `url`, it is almost meaningless - anyone  in front-end form can just insert `url` field (i mainly say bots, but also typical user can just insert ""url"" parameter in browser ""inspect element"") and submit form and in backend, in `wp-includes/comment.php :: wp_handle_comment_submission` still accepts the `url` field.

In parallel of the fact that WP advocates ""never trust user input"", the filters should be applied firstly and mostly to backend functions in my mind. I firmly reckon that the filters (in any other WP form too) should be applied in both front-end and back-end functions for same parameter.  

So in backend, the same filter should be applied to comment fields ( in `wp-includes/comment.php :: wp_handle_comment_submission`):

{{{
$comment_data = apply_filters('comment_form_default_fields', $comment_data, true);
}}}



the third parameter is indication whether the filter is in BACK-END (true) or FRONT-END (false).
So, in front-end output of comments (`wp-includes\comment-template.php`, function `comment_form`) the filter can now be:

{{{#!php
<?php
$fields = apply_filters( 'comment_form_default_fields', $fields, false );
}}}


instead of

{{{#!php
<?php
$fields = apply_filters( 'comment_form_default_fields', $fields);
}}}


Hope you understand my concern. Every filter for fields should affect two places - output and input."	ttodua		has-patch
Defects Awaiting Review	58700	wp_set_comment_status() modifies post_content		Comments	major	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	6.2.2	
Defects Awaiting Review	58544	Need to verify safe website URL in comment form		Comments	normal	defect (bug)	reopened	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		has-patch
Defects Awaiting Review	58058	Fix PHP open and close tag placement in /wp-admin/comment.php LineNo 175		Comments	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	57615	Various comment functions reporting error when `get_comment()` returns `null`		Comments	minor	defect (bug)	new	2023-02-02T21:14:08Z	2023-03-08T16:06:06Z	"While working on #53290 I noticed that if the function `get_comment_author_link()` is called with no value passed into it or if an invalid comment ID is passed into the function an error is thrown on the return filter:

{{{
Trying to get property 'comment_ID' of non-object
wp-includes/comment-template.php:242
}}}

While gathering information to report this I also noticed several other functions in the same file, `wp-includes/comment-template.php` will suffer from the same or a similar issue:

+ `comment_author()`
+ `get_comment_author_email()`
+ `comment_author_email()`
+ `get_comment_author_IP()`
+ `comment_author_url()`
+ `get_comment_excerpt()`
+ `comment_excerpt()`
+ `get_comment_type()`


Some of the functions in this file, `get_comment_author()` for example, store the comment ID as a variable and pass that into the return filter:

`$comment_ID = ! empty( $comment->comment_ID ) ? $comment->comment_ID : $comment_ID;`

I'm currently working on writing tests since most of the functions I'm mentioned don't have existing test coverage.

I'm also uploading a patch with my proposed solution. If this seems like the right direction to go I'll add changes to the remaining functions and update the patch (and tests)."	thomasplevy		has-patch
Defects Awaiting Review	57513	All the comments not showing properly in edit posts		Comments	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	55409	Comment link navigation positioning messed with comment, when i try option “break comment to 50 top level”		Comments	normal	defect (bug)	new	2022-03-17T03:51:08Z	2022-03-17T03:57:26Z	"Navigation on comment positioning is messed up. Check my screenshot here. https://prnt.sc/ErlX_M6nLwxL and here https://prnt.sc/OwxWUUTdMW_T and here https://prnt.sc/XZcJsPknS5zo

those screenshot is from my live site. everything is updated to latest version.

i also try to test it on local environment, the issue persist. "	mryudha	5.9.2	
Defects Awaiting Review	51082	Default value for comment_type changed can lead to comments not shown and malfunctioning plugins		Comments	normal	defect (bug)	new	2020-08-20T14:58:04Z	2021-12-17T15:45:14Z	"Had a situation where a theme would not show comments any more with WP 5.5, it would show correct number of comments but not the comments content. Using 5.4.2 backup made the comments appear again.

After some research found this remark at `wp_insert_comment()`

{{{
@since 5.5.0 Default value for `$comment_type` argument changed to `comment`.
}}}

The theme in question uses a callback function for `wp_list_comments()` with this code:

{{{
switch ( $comment->comment_type ) :
	case '' :
		// print normal comment here...
		break;
	case 'pingback'  :
	case 'trackback' :
		break;
endswitch;
}}}

That causes the comments not to be shown because `$comment->comment_type` is `'comment'` with WP 5.5 and not an empty string any more.

Many themes with callbacks including Twenty Twelve, Twenty Eleven compare to `'pingback'` and `'trackback'` first and then as `default` case print normal comment, without checking real value of `$comment->comment_type`.

That's why the new behaviour of WP 5.5 accidentally works with many themes.

For backward compatibility `$comment->comment_type` should be set to empty string instead `'comment'` when using a callback or a deprecated notice or similar should be triggered."	Ov3rfly	5.5	
Defects Awaiting Review	43695	$depth and $args are switched when using custom callback in wp_list_comments()		Comments	normal	defect (bug)	new	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	4.9.5	has-patch
Defects Awaiting Review	53674	Approved comment isn't displaying when its parent comment is spam		Comments	normal	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		
Defects Awaiting Review	53228	Unspamming a comment should respect `comment_previously_approved` setting		Comments	normal	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		
Defects Awaiting Review	52930	Can't close Insert/Edit Link Pop Up when Editting a Comment		Comments	normal	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	5.7	
Defects Awaiting Review	52682	Total comment count is wrong with two meta queries on the same key		Comments	normal	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	5.6.2	
Defects Awaiting Review	43759	CS: Fix violations for wp-includes/class-wp-comment-query.php		Comments	normal	defect (bug)	new	2018-04-13T11:46:50Z	2020-10-16T00:46:01Z	Working on a patch for this during WordCamp London, currently.	jipmoors		has-patch
Defects Awaiting Review	46931	Argument type mismatch		Comments	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	49669	Duplicate comments from the same user could be inserted to the database		Comments	minor	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	5.4	
Defects Awaiting Review	48519	Comment reply form in admin incompatible with most custom fields plugins		Comments	normal	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	5.2.4	needs-patch
Defects Awaiting Review	46943	Settings ->Discussion bad view dropdown in mobile version		Comments	normal	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		
Defects Awaiting Review	43015	function get_previous_comments_link not working in front page		Comments	normal	defect (bug)	new	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	4.9.1	dev-feedback
Defects Awaiting Review	45585	comments ordering by date, orders them only for the current page.		Comments	normal	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	4.9.8	
Defects Awaiting Review	41581	Cleared Comments stuck in moderation		Comments	normal	defect (bug)	new	2017-08-07T18:32:40Z	2018-08-31T23:57:30Z	"I am the third person to report this issue, since it was first reported in June on the [https://en.forums.wordpress.com/topic/comments-stuck-in-moderation-queue-even-though-akismet-cleared-this-comment?replies=44 Dot Com Forum]. A Staff Member responded to the ticket, at the time, and stated that they would be filing a Bug Report, but we have not heard back.

A third user reported the issue on the [https://wordpress.org/support/topic/comments-held-in-moderation-even-after-previously-approved-comment/#post-9388458 Dot Org Forum] 2 months and 2 weeks ago.  

Not all cleared users are getting their comments bumped into moderation. This is the case for all three of us. The only plugin the other dot org user and I have in common is the Akismet plugin and I disabled that to confirm that it didn't fix the problem.

Please advise."	fb2ts	4.8.1	
Defects Awaiting Review	42459	"Comments metabox doesn't load all the comments when clicking ""Show more comments"" link"		Comments	normal	defect (bug)	new	2017-11-07T18:04:17Z	2018-07-31T18:11:29Z	"Recently, I found an issue related to the Comments meta-box on a post edit screen. To reproduce the bug, go to the article with a certain number of comments. Suppose there are 25 comments. Then go to the post edit screen, enable the comments and scroll down to view all the comments(you will see 10). Then click the link ""Show more comments"" at the bottom of the section. You will see the second part of the comments (10 again), and the link ""Show more comments"" will disappear. You may notice that you can't load the remaining comments(5).

Why this happened? My short investigation below. 

I found that on my opinion there is a mismatch in amount of loaded comments between the ''commentBox'' object(`/wp-admin/js/post.js`) and comments meta-box init script(`/wp-admin/includes/meta-boxes.php`).

First have a look at `/wp-admin/includes/meta-boxes.php:741`
{{{#!php
<script type=""text/javascript"">jQuery(document).ready(function(){commentsBox.get(<?php echo $total; ?>, 10);});</script>
}}}

As you can see there are 10 comments set to be loaded. 

Then go to `/wp-admin/js/post.js:42-45`
{{{#!js
if ( ! num )
  num = 20;

this.st += num;
}}}

As you can see there is default `num` value set to 20. Important: then commentBox.st was increased by a `num` value. 

But now have a look at ""Show more comments"" link onclick attribute. 
{{{#!php
<a href=""#commentstatusdiv"" onclick=""commentsBox.load(26);return false;"">Show more comments</a>
}}}

As you can see `commentsBox.load(26)` call will update `commentBox.st` but then `commentBox.get(26, 20)` will be called (because `num = 20`). But to fit the init script(`meta-boxes.php`) it should be `commentBox.get(26, 10)`. 

My solution here is to set default `num` value to 10. So I guess `/wp-admin/js/post.js:42` should looks like this:
{{{#!js
if ( ! num )
  num = 10;
}}}

Let me know if I missed something and we can't accept new default `num` value.
I have tested it on my local end. It works well after I changed `num` default value to 10."	rku4er	4.8.3	
Defects Awaiting Review	40293	Comment template - warning		Comments	normal	defect (bug)	new	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	4.8	has-patch
Defects Awaiting Review	40164	Apace HTTP 414 error on deleting comments in bulk		Comments	normal	defect (bug)	new	2017-03-15T15:41:13Z	2017-03-15T21:23:12Z	"Bit of an edge case, but I just had to delete 3000 comments from a WP site I took on and I was doing them in 200's (so not to over run the server and so I can check for any legitimate comments).

Doing this, the first 200 comments were ""spanmmed"" fine, but then you do the next 200, it generates a 414 error as the url becomes something like:


{{{
/wp-admin/edit-comments.php?s=&comment_status=moderated&pagegen_timestamp=2017-03-15+15%3A31%3A06&_total=200&_per_page=200&_page=1&paged=1&_ajax_fetch_list_nonce=ef4afc8347&_wp_http_referer=%2Fnew-site%2Fwp-admin%2Fedit-comments.php%3Fcomment_status%3Dmoderated%26paged%3D1%26spammed%3D200%26ids%3D814%2C365%2C2177%2C813%2C2021%2C812&_wpnonce=461233332d&_wp_http_referer=%2Fnew-site%2Fwp-admin%2Fedit-comments.php%3Fcomment_status%3Dmoderated%26paged%3D1%26spammed%3D200%26ids%3D814%2C365%2C2177%2C813
}}}


Basically for every process it duplicates the url and if you have 100+ ID's in each request, it passes a really long url string

1) Is there a reason why all the comment ID's are passed to the url?
2) Can this be amended so in edge cases, so the 414 error isn't generated as it can and will frustrate some people."	garethgillman	4.7.3	has-patch
Enhancements Awaiting Review	66602	Tests: Add unit tests for WP_Comments_List_Table::prepare_items() and the small methods of the Comments list table		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66541	Tests: Add unit tests for the Post Comments blocks		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66539	Tests: Add unit tests for the server-side rendering of the Comments Title block		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66538	Tests: Add unit tests for the Comments Pagination blocks		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66537	Tests: Add unit tests for the server-side rendering of the Comment Reply Link block		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66536	Tests: Add unit tests for the server-side rendering of the Comment Edit Link block		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66535	Tests: Add unit tests for the server-side rendering of the Comment Date block		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66494	Tests: Add unit coverage for the comment functions in comment.php		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66459	Alternative Unicode characters can be used to bypass disallowed comment keys		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	64506	wp_dashboard_recent_comments executes an unnecessary SQL query		Comments	normal	enhancement	reopened	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	6.9	has-patch
Enhancements Awaiting Review	43792	get_comment_excerpt filter should tell if the comment was shorted or not		Comments	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	59488	Add index to comment_type and comment_approved fields in comment table		Comments	normal	enhancement	new	2023-09-28T12:43:53Z	2026-07-29T04:35:42Z	"Follow on from #58368

It is common to query comments by `comment_type` or `comment_approved`.  There are several query done in the admin to get counts for different screens. But for sites with many comments, this results in slow returning queries. Add database indexes to these two fields to improve database performance. "	spacedmonkey	3.0	has-patch
Enhancements Awaiting Review	65313	Extend `WP_Comment_Query` 'fields' parameter to support individual column names		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	64839	Comments: add ability for site visitors to edit / delete their own comments		Comments	normal	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		
Enhancements Awaiting Review	55309	Incorrect post comment count after deleting comment with replies		Comments	normal	enhancement	new	2022-03-03T16:29:07Z	2025-11-11T12:08:53Z	"If you move a comment to the trash, and that comment has sub-comments, none of those comments are visible (which is desired) but post->comment_count is reduced by 1 rather than by the total number of comments that have now been hidden. 

For example: post has 1 comment with 3 replies. Comment count is 4. Delete the first comment. Now no comments are visible but comment count is 3.

The first comment has comment_approved set to 'trash' but the other 3 comments are still '1'. Perhaps the right fix is that when trashing a comment, all of its sub-comments are also trashed explicitly rather than implicitly."	jwz		
Enhancements Awaiting Review	64016	Unnecessary HTML comments in the comments walker.		Comments	trivial	enhancement	new	2025-09-20T07:07:15Z	2025-09-20T22:24:47Z	"When `wp_list_comments()` uses the `ul` or `ol` style, the source-code of the page becomes littered with `<!-- .children -->` and `<!-- #comment-## -->`

These are caused by [https://github.com/WordPress/WordPress/blob/69ced2eb1fc85ec5e106384b48c8015c77468402/wp-includes/class-walker-comment.php#L91 class-walker-comment.php#L91] and [https://github.com/WordPress/WordPress/blob/69ced2eb1fc85ec5e106384b48c8015c77468402/wp-includes/class-walker-comment.php#L238 #L238]

This was [https://github.com/WordPress/WordPress/commit/b3f6427c6ff3fb6f4861a2f63e8439ea980e7f15 introduced in 2013] with the comment ""Some helpful HTML comments to help untangle the HTML"".

I'm not sure what utility these HTML comments add. They aren't targetted by any existing code that I can find. The HTML produced is fairly straightforward and doesn't need untangling.

I plan to send a PR to remove the HTML comments from the output - unless anyone has strong feelings otherwise?

* [https://wordpress.slack.com/archives/C02RQBWTW/p1758321415072609?thread_ts=1758316523.847199&cid=C02RQBWTW Discussion on Slack]
* [https://mastodon.social/@Edent/115233058314937651 Discussion on Mastodon]"	edent	6.8.2	
Enhancements Awaiting Review	63995	Comments: show top commentors		Comments	normal	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		
Enhancements Awaiting Review	63996	Comments: create a dedicated view that shows all comments from someone		Comments	normal	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		
Enhancements Awaiting Review	47514	Change priority of make_clickable callback to boost performance		Comments	minor	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	5.2.1	
Enhancements Awaiting Review	55922	Update wp_list_comments type parameter to allow array or string		Comments	normal	enhancement	new	2022-06-05T06:27:24Z	2024-07-17T23:00:35Z	"Right now, the options here are all, or a specific comment type. This should allow for multiple comment types as allowed in WP_Comment_Query

"	dshanske	2.7	has-patch
Enhancements Awaiting Review	60238	Remove comments completely option		Comments	normal	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	6.4.2	
Enhancements Awaiting Review	47926	Disable website field in comment section		Comments	normal	feature request	new	2019-08-23T06:03:40Z	2023-11-20T10:29:42Z	"Hi,
Please make it possible to hide website field in comment section.
It is not useful at all. Just spammers post fake comments for link building.
I know It can be hide via css code, but not all users know how to do that.
And I noticed that the css code for hiding this field may not be the same for all themes.
Thanks a lot"	longman2020		
Enhancements Awaiting Review	58156	finetune wp_update_comment_count		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	58375	Turn comments off by default for attachment pages (or make is easier to do so without code)		Comments	normal	enhancement	new	2023-05-22T14:49:42Z	2023-05-25T07:09:59Z	"If a new user is installing WordPress the first time, it lasts some time until the first spam comment appears. Typically, they now disable comments on **Settings -> Discussion**.

First problem: this is just disabling the comments for ''future'' posts.

Now they learn about bulk editing posts, which works fine. 

But the website is now online for some time and more media is uploaded, and now the spam comes to the next open comment form: **on attachment pages**.

Not sure if attachment pages follow the setting from the discussion page, but there will be many media items with open comments.

Now we have the second problem: On the grid view, there is no way to disable the comments at all (you need to follow a link to get to the single media edit page).

On this page you need to customize the screen options to enable the meta box, and now you can disable the comments for ''this'' media item. This has to done manually for every media item with open comments (but there is no way to see if the comments are open - so you need to edit every media item).

This could be a real pain for websites with many media items.

**I would recommend changing the behavior and have comments on attachment pages turned off by default.** 

I think it will be easier to educate theme developers to turn them on again if the theme uses them (e.g. photography themes) as documented here:
https://make.wordpress.org/core/2015/07/06/comments-are-now-turned-off-on-pages-by-default/

This is already discussed in the comments on this post.

Related tickets: #12991 and #21391

Another way could be to use the idea of this comment:
https://core.trac.wordpress.org/ticket/12991#comment:22

If turning the default to off is not possible, we could use the bulk edit to enable/disable the comment/pingback/trackback feature.

The need for such a feature could be seen in the plugin directory, as there are more than one plugin for disabling comments on attachment pages (and more):
https://wordpress.org/plugins/disable-comments/
https://wordpress.org/plugins/smart-attachment-page-remove/
https://wordpress.org/plugins/disable-comments-rb/
https://wordpress.org/plugins/comments-plus/
https://wordpress.org/plugins/disable-comments-on-attachments/
https://wordpress.org/plugins/disable-comments-by-click5/
https://wordpress.org/plugins/no-page-comment/
https://wordpress.org/plugins/stop-media-comment-spamming/
https://wordpress.org/plugins/disable-comments-wpz/
https://wordpress.org/plugins/disable-post-comments/
https://wordpress.org/plugins/close-comments-on-media-attachment/

These add up to more than a million active installations."	zodiac1978		dev-feedback
Enhancements Awaiting Review	57732	Add a filter for comment template block		Comments	normal	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	6.1.1	
Enhancements Awaiting Review	57314	Update all references to wp/v2 to namespace field in class-wp-rest-comments-controller.php		Comments	normal	enhancement	reopened	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		has-patch
Enhancements Awaiting Review	57105	Enhance wp_handle_comment_submission() with a custom validation		Comments	normal	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	6.2	
Enhancements Awaiting Review	57106	Allowing comment form error pages		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	18630	Custom Comment Validation Error		Comments	minor	feature request	new	2011-09-09T19:49:33Z	2022-07-15T15:49:43Z	"One of the things that bugs me about WordPress is not being able to customize the wp_die() function that is called on comment form validation. I have seen some people sugget core hacks, eek. I'm hoping that a hook is added to allow overriding of the default wp_die(). Maybe even a new template file wp_error.php that would be called first. 

I haven't found a lot of discussion on this in trac just #11286 and #10551"	bandonrandon	3.3	has-patch
Enhancements Awaiting Review	53639	"Ability to add checkboxes to ""Email me whenever"" section"		Comments	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	55470	Allow for finer-grained callbacks for wp_list_comment		Comments	normal	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	2.7	
Enhancements Awaiting Review	54473	Comments listing screen in wp-admin doesn't expose if a comment was left by a logged in user		Comments	normal	enhancement	new	2021-11-19T05:34:17Z	2021-11-20T00:26:35Z	"When viewing wp-admin/edit-comments.php it's not possible to determine if comments are being left by an ""anonymous"" user, or by a logged in user, despite this being stored in the comments table.

This is particularly useful for Sites where users need to be logged in to comment, or for sites with public registration enabled (such as WordPress.org).

Using #meta5485 as an example, spammers can register and then leave spam comments on posts, but it's not immediately visible what their user login is, or have any link to their profile - Having a link directing the moderator to the users profile, in addition to being able to spam just the comment, would be greatly beneficial for those use-cases.

There's already a bit of information overload on the comments listing author section, so perhaps for logged in users the information shown might be able to be adjusted/minified/etc. There might not be any reason to display the Email address for example."	dd32		has-patch
Enhancements Awaiting Review	44226	Link to Privacy Policy in comment consent		Comments	normal	feature request	new	2018-05-25T13:18:42Z	2021-10-29T09:31:19Z	"Hi!
It's possible add the url to privacy policy after consent in comments?
Thank You!"	paolobros	4.9.6	
Enhancements Awaiting Review	54234	comment_type of reply should be same as parent		Comments	normal	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		
Enhancements Awaiting Review	40355	"Default to ""https://"" in comment author URL field"		Comments	normal	enhancement	new	2017-04-04T15:56:58Z	2021-06-07T10:00:12Z	"One pet peeve of mine with commenting on other people's WordPresses, is on new sites I haven't commented on yet (or aren't powered by Jetpack Comments) that I need to type `https://` in every Website field. Traditionally, this field is currently empty unless a cookie exists (see: `wp_get_current_commenter()`).

Tangentially, recent efforts across the web to SSL all-of-the-things (`\o/`) makes this field an interesting opportunity to gently nudge the web in the direction of `https://` feeling more like the norm than the exception.

A plugin can easily enable this (and I'll likely make one today) but I'll offer up the idea here first.

Patch imminent."	johnjamesjacoby		dev-feedback
Enhancements Awaiting Review	53215	get_comments_number should also need comment_type		Comments	normal	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		
Enhancements Awaiting Review	53040	Prune IP and Email Addresses from Comments After X Days		Comments	normal	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	5.7.1	
Enhancements Awaiting Review	53038	Comment Moderation by Specific Post or Page		Comments	normal	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	5.7.1	
Enhancements Awaiting Review	50538	WP_Comments_List_Table should not show views that have a count of 0	pbiron	Comments	normal	enhancement	assigned	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		dev-feedback
Enhancements Awaiting Review	39282	The process for approving and then replying to a comment can be made more visible		Comments	normal	enhancement	new	2016-12-14T18:17:51Z	2020-09-01T15:53:25Z	"The workflow for approving and then immediately replying to a comment has a shortcut in WordPress, but it's not obvious. If you don't know about it, you can waste time and effort switching between the pending and approved views on the comment moderation screen after approving a comment and then wanting to reply to it.

The `Reply` link on a pending comment is actually a shortcut for approving and then replying to a comment. The `Reply` link text should be updated to `Approve and Reply` to reflect this and make comment moderation a more enjoyable process."	johnbillion	3.1	needs-patch
Enhancements Awaiting Review	39133	Check email length in is_email()		Comments	normal	enhancement	new	2016-12-07T05:38:44Z	2020-07-17T14:50:12Z	"In reference to this ticket - https://core.trac.wordpress.org/ticket/38506#comment:12

It would be better to check email length within the is_email() itself instead of 
validating it at various other places.

"	PranaliPatel	4.8	has-patch
Enhancements Awaiting Review	50361	Highlight if link targets in comments don't refer to the link text		Comments	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	48480	Add comment_form_opening_tag and comment_form_closing_tag filters		Comments	normal	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		
Enhancements Awaiting Review	47447	Allow client-side storing of comment meta		Comments	normal	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		
Enhancements Awaiting Review	43298	Add filter to hide comment types from showing up in the default query	schlessera	Comments	normal	enhancement	assigned	2018-02-12T15:05:23Z	2019-01-16T06:50:09Z	"Comment types are not something WordPress supports by default. However, there is some data and API support for it. The `wp_comments` table contains a `comment_type` column which can be used for this purpose. The big downside is that by default these will be shown in all comment overview. Both on the frontend and the backend.

There are plugins that already do this. The examples that triggered this ticket are [https://github.com/woocommerce/woocommerce/blob/d2e9b366121166c7cb26936bd2c251f3dd7ebd5d/includes/class-wc-comments.php#L110 WooCommerce] and [https://github.com/WordPress/gutenberg/pull/4685/files#diff-df5e27f1866a42a0c24ae7c0b17b1bc6R496 this PR on Gutenberg]. These plugins use the `where` clause in the pieces of the query to make this possible.

I propose we add a 'simple' filter that can hide specific comment types from view. If `comment_type` is not queried in any other way, this blacklist will make sure that all comment types in the blacklist are not returned from the query.

'''Why not wait for full comment_type support?'''

Full `comment_type` support is a much bigger effort. This filter would benefit us in the short run and doesn't conflict with full `comment_type` support."	atimmer		dev-feedback
Enhancements Awaiting Review	44485	Allow some functions from comments-template.php to accept a comment or post ID		Comments	normal	enhancement	new	2018-07-01T14:11:57Z	2018-07-01T14:11:57Z	"Nowadays, it's not uncommon to have to use some templating functions outside of the loop.

Most of them already accepts a comment or post ID (get_permalink, ...).

But, that's not the case for some functions related to comments.

I did a small update of the file to allow that."	tristanleboss		has-patch
Enhancements Awaiting Review	40031	Consider Adding Web Annotations to WordPress		Comments	normal	feature request	reopened	2017-03-04T05:20:30Z	2018-02-19T23:30:39Z	"This is a strawman ticket published to generate discussion and hopefully concensus.

The W3C has standardized [https://wptavern.com/web-annotations-are-now-a-w3c-standard-paving-the-way-for-decentralized-annotation-infrastructure Web Annotions] to decentralize annotations  across the web ''(""annotations"" being a superset of commenting.)''   

As WordPress' mission is to ''""Democratize Publishing,""'' and as WordPress is by far the most widely used tool for publishing content on the web that also allows other people to comment on said content, it would seem fitting ''(at least to me)'' that WordPress would empower users of WordPress to control their own annotations across the web, moving forward.

How might to work?  WordPress could offer three (3) new and yet related features:

1. Add enhancements to the commenting system to accept references to annotations.

2. Enable a WordPress site to be an ''""Annotation Server.""'' This would likely leverage the existing comment system where the comments could be associated with a new custom post type where each inidividual post could collection annotations for and represent one ""persona"" of a given registered user as well as how that persona could be presented to the outside world in the form of a URL that represents the user.

3. An ''""Annotate This""'' feature similar to ''""Press This""'' which can store annotations at the user's own WordPress site where the Annotate This UI could become the UI for commenting on all future WordPress websites (and potential non-WordPress sites) that offer feature 1.  For those that doesn't offer feature 1 this UI could provide functionality to more easily transfer the comment to the foreign commenting system ''(such as copying it to the clipboard on user request)'' and possibly even implement commenting for specific well-known services ''(Twitter, Facebook, LinkedIn, Disqus, Medium, etc.)''

Note that some people's first reaction to this idea might be ''""that's plugin territory""'' -- which I can appreciate -- but there are four (4) reasons why I think this is core territory instead:

1. It is reasonable to assume that 80% of WordPress users would want to maintain their own comments in addition to their own posts, 

2. This idea only really has benefits if it can become ubiquitous, e.g. If the 3 features are all available. If a plugin then an individual can only ever control one side of annotations thus dooming their implementation to obscurity.  Note that a ''""Feature Plugin""'' slated for a future version of WP core is not ''""plugin territory""'' that I am arguing against.

3. It is a W3C recommendation, not some startup 3rd party service so it is likely to be adopted by many if not all of the web in the next few years.  Why should WordPress not be the tool that helps define for the world how annotations should best be utilized, before some walled-garden like Facebook establishes the defacto-approach ahead of WordPress?

4. And finally, WordPress's mission is to ''""Democratize Publishing""'' and I cannot think of many other feature requests that are more ''""on-mission""'' than this one,


Thoughts?"	MikeSchinkel		
Enhancements Awaiting Review	41760	wp_list_comments callback params		Comments	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	39028	Comments on private posts or specific edge cases can get a confusting white screen error.		Comments	normal	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	4.4	needs-patch
Enhancements Awaiting Review	41110	"Display full content of ""Pending"" comment on WP Dashboard"		Comments	normal	enhancement	new	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	4.8	has-patch
Reporter Feedback / Close	51492	Wrong order of comments when using numbered pagination		Comments	normal	defect (bug)	new	2020-10-10T11:16:25Z	2026-10-07T07:37:10Z	Using paginate_comments_links() to show numbered pagination in comments instead of 'older comments' or 'newer comments' causes a problem. When comments are broken into pages, with the last page and newer comments shown by default, the numbered pagination shows the current page as the last in the pagination. For example, if there are 60 comments broken down to 20 comments per page, the initial post-loading shows page 3 as the current page (instead of page 1) and a person has to navigate backwards to read other comments (page 2 then page 1).	askel45	5.5.1	close
Reporter Feedback / Close	46963	Comments meta box offset bug for custom comment types		Comments	normal	defect (bug)	new	2019-04-17T13:13:39Z	2026-08-20T18:28:20Z	"There is a conflict in the 'comments' meta box when used in combination with custom comment types.

The `Show more comments` link loads duplicates, without an offset due to this line of code:

https://github.com/WordPress/WordPress/blob/72979b167d913bf49745fa737654bdf6d13168de/wp-admin/js/post.js#L99

{{{
this.st = jQuery('#the-comment-list tr.comment:visible').length;
}}}

For custom comment types, the `comment` class may not exist. See how comment classes are generated here:

https://github.com/WordPress/WordPress/blob/03240dd3f4442546562824bc6a10ed7c197bd6b2/wp-includes/comment-template.php#L466

{{{#!php
<?php
$classes[] = ( empty( $comment->comment_type ) ) ? 'comment' : $comment->comment_type;
}}}

You can see an example of this with WooCommerce which uses a comment type named 'review' (https://github.com/woocommerce/woocommerce/issues/23313). Because the comments out output without the `comment` class and instead they have a `review` class, the JS code fails to set the correct offset.

Possible solutions:

- Output `comment` class for custom comment types in addition to their custom class.
- Revise jquery selector to be more generic e.g. count the `tr` elements instead."	mikejolley		reporter-feedback
Reporter Feedback / Close	65366	Comments Bug		Comments	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	64387	Emails not being sent following update to 6.9		Comments	normal	defect (bug)	new	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	6.9	close
Reporter Feedback / Close	51589	Missing whitespace between comment reply title and cancel comment reply link		Comments	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	58604	title_reply_to Value of comment_form() Function Isn't Working		Comments	major	defect (bug)	new	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	6.2.2	reporter-feedback
Reporter Feedback / Close	63675	Sanitize request values and improve translatable strings in edit-comments.php		Comments	minor	defect (bug)	new	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		close
Reporter Feedback / Close	45998	Comments trashed after reply		Comments	normal	enhancement	new	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	5.0.3	reporter-feedback
Reporter Feedback / Close	39505	Add an option to add custom classes to comment_reply_link()		Comments	normal	enhancement	new	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	4.7	reporter-feedback
Reporter Feedback / Close	60533	The comment tree is old – maybe it’s worth changing it?		Comments	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	58723	Remove deprecated parameter tests in comments_link()		Comments	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	59191	Disqus Commenting Plugin Blocked by Twenty Twentythree Theme		Comments	normal	defect (bug)	new	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		close
Reporter Feedback / Close	52875	If a post is in trash related comments cannot be removed or trashed		Comments	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	54621	Unsaved comment warning without any changes made when click on Publish, Update or Preview Buttons		Comments	major	defect (bug)	assigned	2021-12-14T14:42:58Z	2022-03-18T16:47:44Z	"Hi Team,

I got unsaved comment changes warning without any changes made in the content of the custom post type post, here is screenshot: https://i.imgur.com/PQmirDL.png
I see new codes are added in the WordPress core file: wp-admin/js/edit-comments.js And there is some condition issue, the code is have strict equality comparison operator to undefined ID which is not present in the custom post type: #replyrow
Screenshot: https://i.imgur.com/kAHNkrs.png

Please review it.
Thanks"	askaryabbas	4.6	reporter-feedback
Reporter Feedback / Close	41788	PHP Fatal error: Call to a member function has_cap() on a non-object in wp-includes/comment.php		Comments	normal	defect (bug)	new	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	4.8.1	reporter-feedback
Reporter Feedback / Close	43183	wp-comments-post.php endpoint support for OPTIONS		Comments	normal	enhancement	new	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		reporter-feedback
Defects Awaiting Review	39340	Scheduled Posts are being missed (problem with wp-cron.php?)		Cron API	normal	defect (bug)	new	2016-12-20T09:45:33Z	2026-09-24T10:45:54Z	"Scheduled posts are missing their set time. This is not an issue with out server times, nor is it an issue with the cron jobs. 

I have seen that many other users are experiencing problems with this, but as of yet there has been no word from WordPress. 

Has this been fixed in 4.7? Or is this still outstanding? "	remarkablemike	4.6.1	
Defects Awaiting Review	51716	WP Cron - looses entries		Cron API	normal	defect (bug)	new	2020-11-05T20:42:26Z	2026-09-23T10:33:40Z	"Hello, I've been working with an external API for submitting orders from Woocommerce. To ensure the system is responsive I've been calling the scheduled events to save the orders to the API shortly after the order is submitted. 

I have noted that if items are saved at the same time. One of the events will not be saved. 

This appears to be caused by the cron task being build around a single database record (object), and in many cases would be completely fine, but is not reliable when being used in any great capacity. 

I understand my use-case isn't potentially what this was designed for, but there is room for improvement with the scheduled events to ensure reliability. 

I'm not 100% sure if I'm correct here, but it also appears that these tasks are also run when subsequent web requests are made, is there any current normalized interface for setting this up to run via an OS cron task or similar. To ensure other visitors requests aren't slowed down by checks (small) and events being activated (potentially slow). 



"	Nate1		has-patch
Defects Awaiting Review	57271	Cron unschedule / reschedule event errors	audrasjb	Cron API	normal	defect (bug)	assigned	2022-12-04T09:55:55Z	2026-08-14T20:50:58Z	"Multiple users have reported errors since v6.0 across installs with completely different themes and plugins ...

{{{
[09-Nov-2022 11:28:28 UTC] Cron unschedule event error for hook: do_pings, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {“schedule”:false,”args”:[]}

[09-Nov-2022 18:05:03 UTC] Cron unschedule event error for hook: wordfence_processAttackData, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {“schedule”:false,”args”:[]}

[21-Nov-2022 07:53:04 UTC] Cron reschedule event error for hook: wf_scan_monitor, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {“schedule”:”wf_scan_monitor_interval”,”args”:[],”interval”:60}

[21-Nov-2022 07:53:04 UTC] Cron unschedule event error for hook: wf_scan_monitor, Error code: could_not_set, Error message: The cron event list could not be saved., Data: {“schedule”:”wf_scan_monitor_interval”,”args”:[],”interval”:60}
}}}

There are many more examples on the support thread https://wordpress.org/support/topic/cron-unschedule-event-error-for-hook/

I have so far been unable to find a way to manually re-produce this issue but this is what I have discovered so far ...

So this error happens when `wp_unschedule_event()` and `wp_reschedule_event()` fails.

`could_not_set` error is presented by` _set_cron_array()` which is the return function for `wp_unschedule_event()` and `wp_schedule_event()`.

`could_not_set` error is returned by `_set_cron_array()` when the updating of the cron table fails with `update_option( 'cron', $cron );`.

`update_option()` fails when …

1) The `$option` parameter is empty
This should never happen
2) The old option value is the same as the new option value
This suggests the cron job is running more than once but may not be the only reason ... ?
3) The database insert query `$wpdb->update()` fails
This is a bit worrying but shouldn’t be the case as surely there should be an accompanying database error?

I think we can rule out (1) seeing as the `$option` parameter is never empty.

We can maybe rule out (2) because from the thread above, this happens on high traffic sites as well as low traffic sites and on sites using the default wp-cron firing as well as cron fired by the system … ?

The leaves (3) being the most likely cause of the ""bug"".

I have tried to assign to @audrasjb (I hope that's OK to do?) because they added the commit on the 20th September that started to highlight the issue https://github.com/WordPress/WordPress/commit/84d19848666a81584e0007a6ab7f7ad3c990d71a

I realise that this is not going to be easy to diagnose until the issue can be manually replicated but I think it should be looked into.

Oliver
"	domainsupport	6.0	has-patch
Defects Awaiting Review	53927	Add test for _get_cron_array()		Cron API	normal	defect (bug)	new	2021-08-13T21:14:16Z	2026-05-07T16:21:50Z		pbearne		has-patch
Defects Awaiting Review	63830	Event system breaks when an event is scheduled during processing of a queue of more than one events		Cron API	normal	defect (bug)	new	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	6.8.2	has-patch
Defects Awaiting Review	57924	Cron fires twice	j3gaming	Cron API	critical	defect (bug)	assigned	2023-03-14T22:13:57Z	2024-03-05T18:52:31Z	"**Problem:**
In wp-includes/cron.php _set_cron_array( $cron, $wp_error = false ) is rarely called without every cron task in the $cron parameter. Eventually leading to a random one being deleted by update_option('cron', $cron);

**Expected Behaviour:**
(Assuming 22 total crons)

wp_schedule_event( ... ) runs.
Passing in a total count of 23 $crons into _set_cron_array( $crons, $wp_error );
(not sure why it's +1 the total cron count)

wp_unschedule_event( ... ) runs.
Passing in a total count of 22 $crons into _set_cron_array( $crons, $wp_error );
(I assume the one from the previous call is being removed)

Then the cron is executed. Ready for the next time.

**The Bug:**
RARELY, the incorrect amount is passed, causing a series of events, that deletes the cron entirely.

I am debugging this myself as I can make this happen regularly and will continue to log my progress here. I am hoping to fix this myself for the community, I'm also posting to see if anything has been flagged in the past to give me a head start."	j3gaming	6.1.1	dev-feedback
Defects Awaiting Review	60657	wp_schedule_event problem		Cron API	normal	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	6.4.3	
Defects Awaiting Review	56490	wp-cron.php using count() on null		Cron API	normal	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	6.0.2	
Defects Awaiting Review	55556	WP cron daily issue		Cron API	normal	defect (bug)	new	2022-04-11T08:36:02Z	2022-04-11T08:36:02Z	"In wordpress, a day is defined as having 24 hours:

wp-includes/default-constants.php: define( 'DAY_IN_SECONDS', 24 * HOUR_IN_SECONDS );

but that doesn’t take summer/winter time into account of course.
While it is being stated above the definition that these values are approximate and are provided for convenience, the DAY_IN_SECONDS is being used in the “daily” cron definition. This means - in case of DST - if you plan something to happen daily at midnight (say membership status recalc, half of the year it will happen one hour later/earlier (depending on the day you planned it initially).
So, in order to be sure something happens daily “as soon as the new day starts”, you need to plan it at 01:00 at the earliest to be sure it is always on the same day (in case of DST).
Since the fixed wp schedules are in fact “fixed”, why not have them calculate “daily” as the DateTime function “+1 day”? The same goes for weekly, monthly, yearly. The basic schedules could even be thrown away and WP could e.g. translate 'daily' to '+1 day' on the fly.

I know WP cron doesn’t run exactly the moment you want it (unless you use system cron), but if running something “daily” at around midnight and it causes it to be ran at 23:00 instead, you might be giving people an extra free day entrance (again for memberships).

Moreover, getting rid of ""schedules"" and moving cron to its own database table would be even better (planning a recurring action should not require the need for a schedule definition via a filter, but use ""last executed time"" + the recurrence definition in datetime notation as a cron-definition). But this last remark is a whole other discussion, so not for this issue (but I would be willing to invest time in this to help develop it)."	liedekef		
Defects Awaiting Review	36082	Schedule post, not added to cron, shown as 'scheduled' in admin. Doesn't publish.		Cron API	normal	defect (bug)	new	2016-03-03T14:08:09Z	2019-06-04T18:13:40Z	"Hello,

We have an intermittent problem on a high traffic site.

The issue is that occasionally, a post will be scheduled but not picked up in cron (we log whats in the cron). In the admin, it shows as being scheduled but obviously never posts because it's not actually present in the cron.

What could make this happen?

The site has about 20 users in the admin, with around 30 pageviews/second on frontend. (4 webservers etc)"	dencreativeltd	4.4.1	
Defects Awaiting Review	29581	Scheduled Posts do not work in WordPress 4.0		Cron API	normal	defect (bug)	new	2014-09-08T04:56:28Z	2019-06-04T18:13:38Z	"The post says ""missed schedule"" after the scheduled time has passed. We have to manually force the publishing by changing the date and updating from the admin. We've done it on installs with no conflicting plugin and replicated the issue on different installs as well. All show the same behavior. This was not the case through 3.9.2."	pro99	4.0	
Defects Awaiting Review	47127	Parameter Error in class-wp-hook files		Cron API	major	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	5.1.1	
Enhancements Awaiting Review	62314	Infinite callback loop when 'priority' is not numeric in php 8.x		Cron API	minor	enhancement	assigned	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	6.6.2	has-patch
Enhancements Awaiting Review	58470	Add configurable batching to `wp_scheduled_delete` for controlling cleanup operations		Cron API	normal	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	6.3	
Reporter Feedback / Close	63938	A feature to bulk schedule events		Cron API	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	57589	transition_post_status hook does not fire when cron publishes scheduled post.		Cron API	normal	defect (bug)	new	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	6.1.1	close
Defects Awaiting Review, reported against no version	33139	Customizer on mobile: 'Save & Publish' button may overflow when translated.		Customize	normal	defect (bug)	new	2015-07-27T12:50:16Z	2021-05-23T17:46:38Z		iseulde		dev-feedback
Defects Awaiting Review, reported against no version	31970	Live Preview header image crop is not correct size		Customize	normal	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		needs-patch
Defects Awaiting Review	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	defect (bug)	new	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		has-patch
Defects Awaiting Review	65258	Customizer control focus border misaligned in WordPress 7.0 RC4		Customize	normal	defect (bug)	new	2026-05-18T05:34:16Z	2026-10-05T21:51:24Z	"While testing WordPress 7.0 RC4 in the Customizer, the focus/active border styling for Customizer controls appears visually misaligned.

When hovering or focusing a control (example: 'Header Image'), the blue highlight border does not align correctly. The top and bottom border spacing looks inconsistent compared to the left border, creating an uneven focus outline.

== Steps to Reproduce
Install WordPress 7.0 RC4
Activate Twenty Fourteen
Go to Appearance → Customize
Hover or focus a Customizer section item such as 'Header Image'"	hardipparmar	6.7	has-patch
Defects Awaiting Review	46128	"Custom header ""Hide image"" button not displayed when randomizing images via theme setup"		Customize	normal	defect (bug)	new	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	3.4	has-patch
Defects Awaiting Review	64760	Site Icon and Site Logo remove button styling inconsistent in Customizer		Customize	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62681	The theme count in Customizer > Change > WordPress.org Themes displays incorrect results		Customize	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	54184	HTML entities get decoded in Customizer text fields		Customize	normal	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	5.8.1	
Defects Awaiting Review	63438	Admin: Standardize accordions UI on Menus screen and in Customizer		Customize	minor	defect (bug)	new	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	6.7	has-patch
Defects Awaiting Review	61669	CSS error using grid in Customizer		Customize	normal	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		
Defects Awaiting Review	63234	Misalignment of post items in WordPress menu customization panel		Customize	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63181	Customize Colors and Style Guide Mismatch		Customize	normal	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	6.7.2	
Defects Awaiting Review	63042	Customizer accordion sections do not respond to click		Customize	normal	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	6.7	
Defects Awaiting Review	54211	Small css bug when using customize-controls in customizer.php		Customize	minor	defect (bug)	new	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	3.4	dev-feedback
Defects Awaiting Review	55587	Customize preview removes URL query parameters of the same name and keeps only the last one		Customize	major	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		
Defects Awaiting Review	54063	"Customizer: First autosave after publish moves you out of the ""Block Settings"" area"		Customize	normal	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		
Defects Awaiting Review	53925	CTRL + S does not “publish” customizer changes		Customize	normal	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		
Defects Awaiting Review	50060	Header Video: Use playVideo after mute instead of autoplay to prevent video blocking because of autoplay with sound enabled		Customize	normal	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		needs-patch
Defects Awaiting Review	47550	Some Unicode characters not saving in customizer		Customize	minor	defect (bug)	new	2019-06-17T13:47:59Z	2021-05-31T16:23:54Z	"If you use upcoming Emojis (Like U+1F90D White Heart - https://emojipedia.org/white-heart/ ), WordPress is unable to save the change.
Works at some places, doesn't work at other places.

In the customizer, i can use the Emoji for the site title and description without any problems.
If i instead try to use the emoji for a widget title the preview works, but saving does not.

There is no error message, all other things i changed will be saved, just the affected field keeps it old value.

Workaround: In areas where i am allowed to insert HTML, i can just write &#1F90D; to use the emoji.
"	marvinside	5.2.1	
Defects Awaiting Review	40183	Customizer strange slide out		Customize	normal	defect (bug)	new	2017-03-17T12:23:52Z	2021-05-29T17:18:28Z	Don't know how to say it right what it looks like. Strange customizer behaviour when selecting text input or when clicking anywhere and dragging to the right.	halftones	4.7.3	
Defects Awaiting Review	30969	adding theme support  for  'custom-header' or 'custom-background' results to duplicate admin menu items		Customize	normal	defect (bug)	reopened	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	4.1	dev-feedback
Defects Awaiting Review	46422	"Improve the Customizer header ""placeholder"""		Customize	normal	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		
Defects Awaiting Review	25333	Can't remove theme support for certain custom header arguments		Customize	normal	defect (bug)	new	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	3.4	has-patch
Enhancements Awaiting Review	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	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	61756	Customizing Panel Size		Customize	normal	enhancement	new	2024-07-25T16:50:40Z	2024-12-11T11:43:07Z	"The Appearance - Customize - Additional CSS panel is really difficult to use because it is just too narrow to be useful (see [[Image(https://mmdbiz.com/test/currentCSSpanel.png)]])

There is a simple fix for this if you add a few lines of CSS to the WordPress admin:


{{{
#customize-controls {
    overflow: hidden;
    resize: horizontal;
    max-width: 50%;
}

}}}

This will allow the Side Bar to be expanded to 50% which is sufficient in most cases and makes the panel usable for adding a bit more complicated CSS. I believe it would be trivial to implement this and it would be a very helpful feature for everybody.
See [[Image(https://mmdbiz.com/test/expandedCSSpanel.png)]])

Thank you for considering this.

Marcello"	discsox	6.6.1	has-patch
Enhancements Awaiting Review	55766	Site icon checkbox to use the site logo		Customize	normal	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		
Enhancements Awaiting Review	53688	add super admin feature to help developer		Customize	major	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		needs-codex
Enhancements Awaiting Review	33469	Customizer Menus: Restore active menu to a location after selecting and unsetting another menu		Customize	normal	enhancement	new	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	4.3	dev-feedback
Enhancements Awaiting Review	40432	Customizer: Should we stop contextually hiding features?		Customize	normal	enhancement	new	2017-04-12T22:20:48Z	2018-09-12T17:52:10Z	"This is a continuation of the conversation in #39087. 

If something doesn't appear on a page you're previewing, it gets hidden in the Customizer panel. For example, if your archive pages have a sidebar, but your static pages do not, you will not be able to edit your archive sidebar. It will be hidden until you go to an archive page. 

The same goes for contextual theme options. For example, you can't assign sections to your homepage in Twenty Seventeen unless you're on your homepage.

This is often very confusing for folks new to WordPress, as evident in the previous ticket linked above. I think we should change this behavior, and I'm interested in hearing what others think."	melchoyce	4.0	
Enhancements Awaiting Review	41972	Add Import/Export functionality to the Customizer		Customize	normal	enhancement	new	2017-09-25T08:35:01Z	2018-07-13T03:25:18Z	"As a theme author, a big part of our documentation and guidance is instructing people how to replicate different theme previews. Fr complex Customizer settings, it would be great to be able to provide a user with a file which could be uploaded to the site. Much like uploading an xml file to import the post/page content.

I'm aware of plugins such as https://wordpress.org/plugins/customizer-export-import. However I think it would be a great enhancement to add import/export functionality to core, removing the reliance on a plugin and the extra burden this adds for beginner level users.

This could also help alleviate issues raised in #27177.

The import/export options could be a further development of the UI mentioned in #39896."	anonymized_11892634	4.8.2	
Enhancements Awaiting Review	39599	Customizer: when no title on page it adds weird content in navigation link		Customize	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	39614	Video header: Support free formats like .webm/vp8 and .ogv/theora		Customize	normal	enhancement	new	2017-01-17T16:15:52Z	2017-03-13T00:51:54Z	It seems like the theme do not support free formats like webm or ogv. This concerns me as the web should use open standards and not closed ones. Content wise, WordPress supports the use of both mp4 and webm to provide broader support of browsers and it seems like the same practice should be applied here. As I'm not a great programmer I will just create this ticket as a suggestion.	fnadde42	4.7.1	
Reporter Feedback / Close	65021	Fatal error in _wp_get_iframed_editor_assets(): wp_print_media_templates not found		Customize	normal	defect (bug)	new	2026-04-03T14:15:51Z	2026-04-03T15:54:22Z	"When opening the Customizer, a fatal error occurs:

Fatal error: call_user_func_array(): Argument #1 ($callback) must be 
a valid callback, function ""wp_print_media_templates"" not found

The function _wp_get_iframed_editor_assets() in block-editor.php 
creates an isolated script context and calls wp_print_footer_scripts(), 
which fires the print_media_templates action. However, media-template.php 
is not loaded in this isolated context, so wp_print_media_templates() 
is undefined.

Fix: Add a require_once for media-template.php before wp_print_footer_scripts() 
inside _wp_get_iframed_editor_assets().

Here is my temporary fix for the function:

{{{#!php
<?php
function _wp_get_iframed_editor_assets() {
	global $wp_styles, $wp_scripts;

	// Keep track of the styles and scripts instance to restore later.
	$current_wp_styles  = $wp_styles;
	$current_wp_scripts = $wp_scripts;

	// Create new instances to collect the assets.
	$wp_styles  = new WP_Styles();
	$wp_scripts = new WP_Scripts();

	/*
	 * Register all currently registered styles and scripts. The actions that
	 * follow enqueue assets, but don't necessarily register them.
	 */
	$wp_styles->registered  = $current_wp_styles->registered;
	$wp_scripts->registered = $current_wp_scripts->registered;

	/*
	 * We generally do not need reset styles for the iframed editor.
	 * However, if it's a classic theme, margins will be added to every block,
	 * which is reset specifically for list items, so classic themes rely on
	 * these reset styles.
	 */
	$wp_styles->done =
		wp_theme_has_theme_json() ? array( 'wp-reset-editor-styles' ) : array();

	wp_enqueue_script( 'wp-polyfill' );
	// Enqueue the `editorStyle` handles for all core block, and dependencies.
	wp_enqueue_style( 'wp-edit-blocks' );

	if ( current_theme_supports( 'wp-block-styles' ) ) {
		wp_enqueue_style( 'wp-block-library-theme' );
	}

	/*
	 * We don't want to load EDITOR scripts in the iframe, only enqueue
	 * front-end assets for the content.
	 */
	add_filter( 'should_load_block_editor_scripts_and_styles', '__return_false' );
	do_action( 'enqueue_block_assets' );
	remove_filter( 'should_load_block_editor_scripts_and_styles', '__return_false' );

	$block_registry = WP_Block_Type_Registry::get_instance();

	/*
	 * Additionally, do enqueue `editorStyle` assets for all blocks, which
	 * contains editor-only styling for blocks (editor content).
	 */
	foreach ( $block_registry->get_all_registered() as $block_type ) {
		if ( isset( $block_type->editor_style_handles ) && is_array( $block_type->editor_style_handles ) ) {
			foreach ( $block_type->editor_style_handles as $style_handle ) {
				wp_enqueue_style( $style_handle );
			}
		}
	}

	/**
	 * Remove the deprecated `print_emoji_styles` handler.
	 * It avoids breaking style generation with a deprecation message.
	 */
	$has_emoji_styles = has_action( 'wp_print_styles', 'print_emoji_styles' );
	if ( $has_emoji_styles ) {
		remove_action( 'wp_print_styles', 'print_emoji_styles' );
	}

	ob_start();
	wp_print_styles();
	wp_print_font_faces();
	wp_print_font_faces_from_style_variations();
	$styles = ob_get_clean();

	if ( $has_emoji_styles ) {
		add_action( 'wp_print_styles', 'print_emoji_styles' );
	}

	ob_start();
	wp_print_head_scripts();
	if ( ! function_exists( 'wp_print_media_templates' ) ) {
		require_once ABSPATH . WPINC . '/media-template.php';
	}
	wp_print_footer_scripts();
	$scripts = ob_get_clean();

	// Restore the original instances.
	$wp_styles  = $current_wp_styles;
	$wp_scripts = $current_wp_scripts;

	return array(
		'styles'  => $styles,
		'scripts' => $scripts,
	);
}
}}}
"	manuelurak		reporter-feedback
Reporter Feedback / Close	44598	Main logo won't update when deleted and reuploaded with the same file name		Customize	normal	defect (bug)	new	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		close
Reporter Feedback / Close	64621	Custom fields disapearing		Customize	normal	defect (bug)	new	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	6.9.1	reporter-feedback
Reporter Feedback / Close	39362	Checkbox control for 'Automatically add new top-level pages to this menu' not wrapped in checkbox customize control		Customize	normal	enhancement	new	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	4.7	close
Reporter Feedback / Close	48902	Customizer code editor CSS breaks on activate() (Or breaks when loaded later)		Customize	normal	defect (bug)	new	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	4.9	reporter-feedback
Reporter Feedback / Close	46596	WP_Customize_Date_Time_Control class - date format ignores day of the month suffix (S)		Customize	normal	defect (bug)	new	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	4.7	reporter-feedback
Reporter Feedback / Close	54252	Appearance - Customize : Only widgets is displayed in the customizer options using Safari 15.x		Customize	normal	defect (bug)	new	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	5.8.1	reporter-feedback
Reporter Feedback / Close	44968	Header Text color option doing two jobs, so both suffer		Customize	normal	defect (bug)	reopened	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		close
Reporter Feedback / Close	57899	Bad javascript in customize-controls.js for padding-top causes bugs		Customize	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	46301	Customizer iframe warning		Customize	minor	defect (bug)	new	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	5.1	reporter-feedback
Reporter Feedback / Close	52208	Favicon - Error when choosing / cropping an image		Customize	normal	defect (bug)	new	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	5.6	reporter-feedback
Reporter Feedback / Close	43122	customize.php fails to load with default changeset_uuid	bpayton	Customize	normal	defect (bug)	assigned	2018-01-18T00:46:13Z	2021-05-30T17:26:42Z	"I am seeing a rare condition where users are unable to load the Customizer with no specified changeset and see the message ""Cheatin, uh? This changeset cannot be further modified.""

In all cases, I am seeing two `customize_changeset` posts with the same GUID post name, one with draft status and the other with published status. When WP_Customize_Manager attempts to find a changeset to load by default, it finds the draft with the GUID, and when it attempts to load the post, it finds the published post with the same GUID and dies with the message mentioned above.

I read WP_Customizer and theorized how this could be happening but have no theory worth mentioning. Still, this seems like some kind of race condition."	bpayton	4.7	reporter-feedback
Reporter Feedback / Close	35559	Image wrapped in anchor disappear in Customizer (Safari)		Customize	normal	defect (bug)	new	2016-01-21T13:40:20Z	2021-05-23T18:52:05Z	Medium and large size images that set as a featured images displaying through the_post_thumbnail disappear when viewing from customizer if height is not set strictly (400px for example). It disappear time to time – try to reload page or click menu links to update customizer window.	halftones	4.4	reporter-feedback
Reporter Feedback / Close	51962	Race condition in wp_get_custom_css_post() would clear the custom CSS entry		Customize	normal	defect (bug)	new	2020-12-08T03:11:04Z	2020-12-08T04:59:57Z	"Our production system was recently affected by a (what it looks to me) race condition in `wp_get_custom_css_post()`; for reference here's the code in question:
{{{#!php

        if ( get_stylesheet() === $stylesheet ) {
                $post_id = get_theme_mod( 'custom_css_post_id' );

                if ( $post_id > 0 && get_post( $post_id ) ) {
                        $post = get_post( $post_id );
                }

                // `-1` indicates no post exists; no query necessary.
                if ( ! $post && -1 !== $post_id ) {
                        $query = new WP_Query( $custom_css_query_vars );
                        $post  = $query->post;
                        /*
                         * Cache the lookup. See wp_update_custom_css_post().
                         * @todo This should get cleared if a custom_css post is added/removed.
                         */
                        set_theme_mod( 'custom_css_post_id', $post ? $post->ID : -1 );
                }
        } else {

}}}


Our database went down after retrieving the `$post_id` from options. `get_post()` failed silently followed by `new WP_Query( $custom_css_query_vars );` that failed too while the DB was down. Eventually the DB became available and the `custom_css_post_id` setting was set to `-1`.

As a result our website's styling was affected until we were able to restore the custom CSS stored in the `custom_css` post.

I think better error handling within the `wp_get_custom_css_post()` could prevent such side effect from taking place."	candrei	4.7	reporter-feedback
Reporter Feedback / Close	50730	_wpCustomizeSettings has invalid data for starter-content widgets		Customize	normal	defect (bug)	new	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		dev-feedback
Reporter Feedback / Close	45669	Theme Default Suggested Header Image Not display		Customize	normal	defect (bug)	new	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	5.0.1	reporter-feedback
Defects Awaiting Review, reported against no version	37678	Add an action hook for plugins to do database upgrades on		Database	normal	defect (bug)	new	2016-08-16T18:10:59Z	2025-06-24T15:41:16Z	"Currently, plugins that have custom database tables usually hook into `admin_init` and pray for rain when comes to their database alterations. This pollutes the `admin_init` hook namespace quite a bit, particularly with database actions that are almost always necessary in order for plugins to actually work correctly.

It would be nice if WordPress core had a dedicated action hook meant for executing database alterations & upgrades, no different than there being one for `plugins_loaded`, `template_redirect`, et all...

I'm conflicted on where exactly this hook should be. I'm 95% sure it belongs somewhere after `admin_init` so that admin area plugins have a chance to hook everything in. I'm also 95% certain I don't want this as part of the plugin activation sequence, because it's becoming more common to deploy plugins via WP CLI, version control, or some other deployment process, and activation hooks aren't usually ran that way."	johnjamesjacoby		dev-feedback
Defects Awaiting Review, reported against no version	40779	function_exists() audit in wp-db.php		Database	minor	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	60505	Column names in wpdb->insert aren't sanitized.		Database	normal	defect (bug)	new	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	6.4.3	has-patch
Defects Awaiting Review	57149	get_table_from_query() doesn't properly handle a prepared escape_like() table name		Database	normal	defect (bug)	new	2022-11-18T15:15:43Z	2026-10-26T23:30:23Z	"A common way to check if a table exists is to run a query like the following, the same way that `maybe_create_table()` currently works:

{{{#!php
<?php
$wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $table_name ) );
}}}


This results in the prepared query for a table name such as `wp_my_custom_table` to end up being:

{{{
SHOW TABLES LIKE 'wp\\_my\\_custom\\_table'
}}}



While the above isn't necessarily a proper query, it is still valid.  

The problem is that `$wpdb->get_table_from_query()` ends up returning the table name with extra slashes, e.g. `wp\_my\_custom\_table`.  This specifically breaks HyperDB which is attempting to use that table name to determine the dataset to use."	prettyboymp		has-patch
Defects Awaiting Review	60077	Class UnexpectedValueException not found		Database	critical	defect (bug)	assigned	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	6.4.2	has-patch
Defects Awaiting Review	62976	Multiple queries executing - Bulk deletion		Database	critical	defect (bug)	new	2025-02-17T06:53:27Z	2026-10-12T07:28:48Z	"We are trying to perform a bulk deletion in trash page (100 files). Meanwhile we enabled sql slow log to capture the slow running queries. 

While analysing the log file, it seems query running behind is not bulk deleting the resources rather it deletes the resources one by one.

FYR, I've attached the sql slow running log file."	rishab16	6.7.1	dev-feedback
Defects Awaiting Review	63751	wpdb->set_prefix() throws deprecation notice for preg_match() when setup-config.php is loaded		Database	minor	defect (bug)	new	2025-07-25T19:12:57Z	2026-09-25T10:23:00Z	"A bit esoteric, but this is throwing a reliable deprecation notice in my logs when bots visit `/wp-admin/setup-config.php`:

{{{
[25-Jul-2025 18:59:23] PHP deprecated: ""preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated"" file: /[...]/wp-includes/class-wpdb.php:1007 url: [...]/wp-admin/setup-config.php 
}}}

The code throwing the error: 

{{{
public function set_prefix( $prefix, $set_table_names = true ) {

	if ( preg_match( '|[^a-z0-9_]|i', $prefix ) ) {
		return new WP_Error( 'invalid_db_prefix', 'Invalid database prefix' );
	}
}}}


The immediate cause is obvious: `preg_match()` is run without checking that `$prefix` has any content, and in PHP 8.x you're not allowed to pass empty strings to it. 

The ""real"" cause, I don't know. Why is there no `$prefix` available when normally there would be? Should there be?

These `WP_INSTALLING` files like `setup-config.php` are a mystery to me, and seem relatively untested especially with these PHP 8.x edge-cases. 

My goal with this ticket is just to clean up the deprecation warning. 

It seems to me all that needs to be done is to check that `!empty( $prefix)` before doing the preg_replace(), so:

{{{
public function set_prefix( $prefix, $set_table_names = true ) {

	if ($prefix && preg_match( '|[^a-z0-9_]|i', $prefix ) ) {
		return new WP_Error( 'invalid_db_prefix', 'Invalid database prefix' );
	}
}}}

Seems to me that would resolve the notice and have the exact same effect as the old code. 

Thank you for helping fix this 🙏🏻"	jerclarke	6.8.2	has-patch
Defects Awaiting Review	43664	$wpdb->get_results fails in specific cases with non-latin charaters in where clause		Database	normal	defect (bug)	new	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	4.9.4	has-patch
Defects Awaiting Review	65709	Both CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE are not checked for non empty string		Database	normal	defect (bug)	new	2026-07-24T15:54:17Z	2026-08-13T17:43:11Z	"Hardly used but they can still be in error.

This patch tests for typing and non-false string value."	ramon fincken	1.5	has-patch
Defects Awaiting Review	46146	dbDelta not parsing enum correctly		Database	normal	defect (bug)	new	2019-01-30T08:41:12Z	2026-06-12T13:59:01Z	"Given an enum definition such as:
{{{
enum('a', 'b')
}}}

The dbDelta function parses it as:
{{{
enum('a',
}}}

Which causes a change to be detected on every execution. I'm also afraid other cases with spaces (like strings with spaces in enum values, etc.) will cause similar problem since the regular expressions in the dbDelta function seem to cover only some particular cases."	janjakes		has-patch
Defects Awaiting Review	51486	The add_option function should not be able to update existing rows in the database.		Database	normal	defect (bug)	new	2020-10-09T01:12:29Z	2026-06-08T12:22:03Z	"In certain edge cases, `add_option` is able to update existing option values. This should not be possible. If SQL is executed which instructs ""Insert XYZ"" into database, then the insert should fail if the key already exists in the database, unless the SQL specifies that an UPDATE should happen.

The `add_option` function does check first to see if an option exists before attempting to add it to the database. In the overwhelming majority of cases, this works fine because when the option exists the function will return early before attempting to insert into the database.

However, consider a scenario where an object cache is being used. And further consider that the object cache may report incorrectly. If the object cache tells `add_option` that the value doesn't exist in the database (but in reality it does!), then `add_option` continues on and attempts to insert the supposedly new option.

In that particular circumstance, the SQL query, shown below, is executed which will insert the new row. And in the event that the option already exists, it will be overwritten.

The issue here is that `add_option` shouldn't be able to update the existing value. The query should fail. Why is the `ON DUPLICATE KEY UPDATE` clause included here?

{{{#!php
<?php    // Code here is from wp-includes/option.php Line 581:
    $result = $wpdb->query(
        $wpdb->prepare(
            ""INSERT INTO `$wpdb->options` (`option_name`, `option_value`, `autoload`)
             VALUES (%s, %s, %s)
             ON DUPLICATE KEY UPDATE
                `option_name`  = VALUES(`option_name`),
                `option_value` = VALUES(`option_value`),
                `autoload`     = VALUES(`autoload`)
            "",
            $option,
            $serialized_value,
            $autoload
        )
    );
}}}

I realize this is an edge case. If the object cache being used gives bad information to `add_option` then really its the object caching plugin at fault. However, I can't understand a possible circumstance where `add_option` should ever UPDATE an existing option. The SQL here should not include `ON DUPLICATE KEY UPDATE`. Am I missing something? Is there a good reason for that clause? What would happen if that clause were removed?"	khag7	2.9	has-patch
Defects Awaiting Review	58559	Database error bug in wordpress current version		Database	normal	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		
Defects Awaiting Review	62104	Multisite triggers UPDATE queries on _sitemeta of almost 150k character		Database	normal	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	6.5.5	
Defects Awaiting Review	59836	Using the pre_get_table_charset filter ensures wpdb->col_meta never gets populated		Database	normal	defect (bug)	new	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	6.3.3	has-patch
Defects Awaiting Review	55610	HTTP response should not be 200 when returning error-page		Database	major	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		
Defects Awaiting Review	61889	Function dbDelta() splits queries on semi-colon in column COMMENT and table COMMENT		Database	normal	defect (bug)	new	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.5	has-patch
Defects Awaiting Review	54836	"Huge error logs filled with ""WordPress database error Illegal mix of collations"" errors caused by spammers"		Database	critical	defect (bug)	new	2022-01-16T19:12:41Z	2025-03-19T05:57:10Z	"This has been going on for quite a long time. By that, it has now been years. Every few weeks to a month we have to delete our error log as it builds to become an incredibly huge file on the server. So far, there has been no resolution to this anywhere. We have tried the forums and so many other places which have recommended starting a ticket as clearly, we aren't alone in experiencing this. There has to be a way of preventing this. 

This causes huge stability issues and consumes a LOT of space on the host. Therefore, I feel this has earned the privilege of being considered ""critical"". I filed under ""database"" although this may be better under something else as it seems to be some kind of injection attack using search engines and fake links that try to load content into the blog via error or search results, etc. 

Here is (believe it or not) a very small sample of what the error logs hold every time...

(see attachment, as this would be far too much to paste into the post)"	jh20001		
Defects Awaiting Review	40953	Empty values are handled inconsistently between wpdb->get_results() and wpdb->get_col()		Database	normal	defect (bug)	new	2017-06-08T17:18:39Z	2025-01-17T14:53:06Z	"As outlined and discussed yesterday in Slack [https://wordpress.slack.com/archives/C02RQBWTW/p1496821047585923 here], [https://wordpress.slack.com/archives/C02RQBWTW/p1496844209230845 here], and [https://wordpress.slack.com/archives/C02RQBWTW/p1496850305693715 here], `wpdb` treats empty stored values differently in the `get_results()` and `get_col()` methods. This is because of the use of `get_var()` inside of `get_col()`, which defaults to null for empty values.

For example, let's say you're running a query like `SELECT rate FROM sometable` through `get_results()`. With the default parameters and empty values for the column, you'd get something like the following:

{{{
array(2) {
  [0]=>
  object(stdClass)#1734 (1) {
    [""rate""]=>
    string(0) """"
  }
  [1]=>
  object(stdClass)#1735 (1) {
    [""rate""]=>
    string(0) """"
  }
}
}}}

If you ran that same query through `get_col()`, you'd instead get an array of `null` values:

{{{
array(4) {
  [0]=>
  NULL
  [1]=>
  NULL
}
}}}

This seems oddly inconsistent. And writing tests for the workaround is annoying in that creates the need to understand the core workaround in the future.

Now, this code goes all the way back to [112], so changing the default behavior is not even on the table.

Some solutions brainstormed with @boonebgorges and @johnjamesjacoby include:

* A global flag to check against, i.e. `wpdb_get_col_force_strings( true );`
* A global flag in the form of a constant
* A settable `wpdb`-level flag
* A new argument for `get_col()` to selectively change the behavior.

The global flag ideas are attractive because they cover the entire DB stack: whether you're using the abstraction layers like `get_posts()`, `WP_Query`, or any of the other query classes, it ''just works'' all the way down the line.

The settable `wpdb` flag is attractive only if you're really working with direct queries like we are in our custom table query classes. The same goes for a new argument in `get_col()`, though both could be implemented higher up the stack in the form of arguments or filters.

I think a good first step here would be to try to benchmark performance for all of the listed options, just to see what we're looking at. The global flag choices seem like they could be the least impactful.

In the short term, our workaround for AffiliateWP will probably be to create a wrapper for `get_results()` that simply plucks the values out so we can maintain consistency, but I'm not a big fan of writing and maintaining core workarounds in perpetuity.

Whichever way we go in core, this is something that we should probably address. Who knows how many workarounds there are currently in the wild to fix this."	DrewAPicture	0.71	dev-feedback
Defects Awaiting Review	61338	wpdb::prepare function null value convert to empty String		Database	normal	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		needs-patch
Defects Awaiting Review	53320	Why delete_metadata and update_metadata slow performance?		Database	normal	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		
Defects Awaiting Review	57385	Disable foreign key checks when dropping tables inside wp_uninitialize_site() function	johnjamesjacoby*	Database	normal	defect (bug)	accepted	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		dev-feedback
Defects Awaiting Review	59974	MAX_JOIN_SIZE wp-blog-header.php		Database	minor	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	6.3.2	
Defects Awaiting Review	58965	No luck running WP when running PHP 8.2.8 + mysql  Ver 15.1		Database	normal	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	6.2.2	
Defects Awaiting Review	58286	"Growing database due to unnecessary transients containing ""g_url_details_response_"""		Database	critical	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	6.2	
Defects Awaiting Review	58133	WordPress database error Illegal mix of collations		Database	major	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	6.1.1	needs-patch
Defects Awaiting Review	54834	Mysql gone away when importing DB on create wp_posts indexes		Database	blocker	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		
Defects Awaiting Review	57283	Postmeta - Performance Improvement - Woocommerce		Database	critical	defect (bug)	new	2022-12-06T13:16:30Z	2022-12-06T14:42:36Z	"Hi Team,

Struggling since almost a month to find the solution for slow search in woocoomerce. Tried verious different things like speed up index mysql. Changing mysql version from 5.7 to 8.x. 
Updated index - added high performance keys for post meta table.

When backend team search for orders from woocommerce-orders tab - it takes almost 3 min to get the results. 

Looking for inputs from wordpress community and help for the same."	kapil4sam	6.1.1	
Defects Awaiting Review	57072	WordPress 6.1 uses wrong database collation		Database	normal	defect (bug)	new	2022-11-11T10:35:00Z	2022-11-11T10:35:00Z	"After upgrade to WordPress 6.1 some plugins started reporting ""WordPress database error Illegal mix of collations (utf8mb4_unicode_520_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT)"". See: https://wordpress.org/support/topic/database-error-after-upgrade-to-wordpress-6-1/

It seems that WordPress 6.1 wrongly detects database collation. This is probably related to #54841.

Database section of the Site Health page (/wp-admin/site-health.php?tab=debug) displays:
{{{
Database charset	utf8mb4
Database collation	utf8mb4_unicode_520_ci
}}}
Eariler versions displayed correct one:
{{{
Database charset	utf8mb4
Database collation	utf8mb4_unicode_ci
}}}

Database collation should be utf8mb4_unicode_ci per server and database configuration:

{{{
MariaDB [(none)]> SHOW VARIABLES LIKE '%_server' ;
+----------------------+--------------------+
| Variable_name        | Value              |
+----------------------+--------------------+
| character_set_server | utf8mb4            |
| collation_server     | utf8mb4_unicode_ci |
+----------------------+--------------------+
2 rows in set (0.002 sec)

MariaDB [(none)]> USE wordpress;
Database changed

MariaDB [wordpress]> SELECT @@character_set_database, @@collation_database;
+--------------------------+----------------------+
| @@character_set_database | @@collation_database |
+--------------------------+----------------------+
| utf8mb4                  | utf8mb4_unicode_ci   |
+--------------------------+----------------------+
1 row in set (0.000 sec)
}}}

Server version: 10.6.10-MariaDB-log

Having {{{define('DB_COLLATE', '');}}} in wp-config.php.

Using {{{define( 'DB_COLLATE', 'utf8mb4_unicode_ci' );}}} did not fix the issue, nor changed collation information in Database section of the Site Health page."	Krstarica	6.1	
Defects Awaiting Review	57000	wp_usermeta table is emptied because of a wrong query being executed		Database	normal	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	6.0.3	
Defects Awaiting Review	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	minor	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		
Defects Awaiting Review	55907	Failed to insert log entry: value too long		Database	normal	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	5.9.3	
Defects Awaiting Review	55206	wp core api memory leaks		Database	normal	defect (bug)	assigned	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		dev-feedback
Defects Awaiting Review	53958	Database: wp_postmeta - meta_key index		Database	major	defect (bug)	new	2021-08-19T09:38:58Z	2021-08-25T14:15:20Z	"The index on the **wp_postmeta** table for the meta_key column is set to **VARCHAR(191)**, While the column is **VARCHAR(255)**. This has a huge performance impact on queries that use the wp_postmeta table. 

In testing i noticed a performance increase on large websites with millions of records of several 100% when removing the index size on the column.

This seems like a very obvious improvement and the issue has surely been raised before? So if there is a reason this cannot be altered without breaking something else I would like to know what that is.

If you require any more information, let me know."	wishe	5.8	
Defects Awaiting Review	50789	Improve WPDB logic around information_schema		Database	normal	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	5.5	
Defects Awaiting Review	53033	Remove comments, ping, to_ping columns from posts table		Database	normal	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		
Defects Awaiting Review	52210	File URL gets saved even when upload fails		Database	major	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	5.6	
Defects Awaiting Review	43893	The maybe_create_table() function has two definitions		Database	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	49785	Wrong result / duplicates in query when using MariaDB		Database	normal	defect (bug)	new	2020-04-02T20:57:31Z	2020-04-03T11:45:56Z	"The page parent selector uses a rest api endpoint that results in the following query:

First 100 pages:
{{{
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.ID NOT IN (51915) AND wp_posts.post_parent NOT IN (51915) AND wp_posts.post_type = 'page' AND ((wp_posts.post_status = 'publish')) ORDER BY wp_posts.menu_order ASC LIMIT 0,100
}}}

Next group of 100 pages:
{{{
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.ID NOT IN (51915) AND wp_posts.post_parent NOT IN (51915) AND wp_posts.post_type = 'page' AND ((wp_posts.post_status = 'publish')) ORDER BY wp_posts.menu_order ASC LIMIT 100,100
}}}

etc..

In a site we've got a total of 128 pages that match this query.

Resulting total is correct, however, there is 17 duplicates. This means that we're missing pages in the resulting page parent select input, and instead we have duplicates.

Running query directly in database gives the same, incorrect, result.
Replicating query as wp_query gives the same, incorrect, result.

I've tested this with no plugins activated, twentytwenty theme. Same incorrect result.

MySQL 5.5.5 - 10.1.44-MariaDB
Ubuntu 18.04.1
WordPress 5.4
TwentyTwenty 1.2

I'm also getting one duplicate in my local duplicate (local by flywheel 3.3.0) using built in MySQL 5.7.23"	Kim.Bertelsen	5.4	
Defects Awaiting Review	49482	Non-english slug can sometimes cause an error in WordPress query		Database	normal	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	5.3.2	
Defects Awaiting Review	49363	wpdb::query() does not detect LOAD DATA as an insert statement type		Database	normal	defect (bug)	new	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	5.3.2	has-patch
Defects Awaiting Review	46932	dbDelta does not account for MySQL keywords being used as key names		Database	minor	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		
Defects Awaiting Review	46923	$wpdb->get_var() — empty sting becomes a NULL		Database	normal	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	5.1.1	
Defects Awaiting Review	46739	post attributes order not working correctly		Database	normal	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	5.1	
Defects Awaiting Review	46625	username and password automatically change to  dexter		Database	normal	defect (bug)	new	2019-03-24T07:32:46Z	2019-03-24T10:18:13Z	"Dear sir,

username and password automatically change to dexter

"	ram181	4.9.1	
Defects Awaiting Review	30795	Upgrade bug affecting indexing		Database	normal	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	2.1	
Defects Awaiting Review	39273	Updating to 4.7 can break serialized data because $wpdb->determine_charset now forces utf8 when DB_CHARSET is set to utf8mb4		Database	normal	defect (bug)	new	2016-12-14T05:05:58Z	2019-03-15T02:23:09Z	"I've seen this happen several times now. `DB_CHARSET` is defined as `utf8mb4` and the columns in the database are set to `utf8mb4_unicode_ci`. However, the changes in 38581 are now forcing `utf8` causing the serialized array lengths to change when the data is queried and breaking them because the charsets don't match. 

I can't say for certain because I'm debugging this issue on a site that isn't mine, but I don't think anyone explicitly set `DB_CHARSET` to `utf8mb4` in `wp-config.php`. It appears that at one point, WordPress set that define and created (or updated) those tables to `utf8mb4_unicode_ci`. 

Deleting the `DB_CHARSET` define fixes the issue but that doesn't seem like an ideal solution for users who update and end up with a broken site. 

I'll admit this is a bit over my head, so I'm hoping someone smarter than me might be able to chime in with some more info :) I'm definitely available to keep the conversation going. Thanks! "	justinbusa	4.7	dev-feedback
Defects Awaiting Review	46452	dbDelta given the same PRIMARY KEY and normal KEY produces no error, reports table created successfully, but the table is not created		Database	trivial	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	5.1	
Defects Awaiting Review	43589	WPDB Update change NULL values to acceptable values		Database	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	44973	Issues with $wpdb->get_col_info		Database	normal	defect (bug)	new	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	4.9.8	has-patch
Defects Awaiting Review	36924	dbDelta(): Support more than one whitespace between field name and its type definition		Database	normal	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	4.5.2	
Defects Awaiting Review	41278	SQL_CALC_FOUND_ROWS slow query		Database	normal	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	4.8	
Defects Awaiting Review	39811	Bug maybe_unserialize() broke mysql data.		Database	normal	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	4.7.2	
Enhancements Awaiting Review	58180	Specify the REGEXP format for meta_query		Database	trivial	enhancement	new	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	6.2	needs-docs
Enhancements Awaiting Review	44386	Problem with utf8mb4_unicode_ci collation for arabic content		Database	major	enhancement	new	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	4.9.6	dev-feedback
Enhancements Awaiting Review	40357	dbDelta can't change primary keys, create AUTO_INCREMENT columns and doesn't make significant index changes		Database	normal	enhancement	new	2017-04-04T17:20:04Z	2026-01-30T05:09:49Z	"dbDelta has three inter-related issues which center around changing indexes. 


1) It isn't possible to change which column is the primary key
2) It isn't possible to add a new AUTO_INCREMENT column 
2b) It isn't possible to modify an existing AUTO_INCREMENT to no longer be AUTO_INCREMENT
3) Indices with the same name are not dropped/re-created, even when the index definition is changed significantly. 


== Use case ==

A client had been tracking inventory in a custom table where the product ID was the primary key. When he opened a new location, we added a location column, and wanted to be able to track how many of each product was in each location. 

1. A table's purpose is being expanded, or otherwise doesn't meet the needs of the data. 

Since the primary key is unique, we needed to add a new key column and change which column was designated as the primary key.

2. A table was originally defined without an AUTO_INCREMENT column and the need for such a column arises. 

The new column we wanted to add and use for the key was simply an AUTO_INCREMENT integer column. In testing we defined the new column and also defined a new UNIQUE index (so, not changing the primary key yet).

Since dbDelta adds new columns before adding the new indices, and in separate ALTER TABLE statements, MySQL refuses to add a new AUTO_INCREMENT column without an index. 

The solution is to add the new column without the AUTO_INCREMENT designation, then add the UNIQUE index, then alter the table to use AUTO_INCREMENT.

3. A primary (or other key) could be significantly and intentionally altered, significantly changing how queries are run.

I understand that WP doesn't want to drop and recreate indices when changing the sub-part of an index (see: https://core.trac.wordpress.org/ticket/34870#comment:21)

However I think that it should change the index, if the definition is significantly altered. 

In the use case above, we could've changed the primary key to be `PRIMARY KEY(productId,location)` instead of adding a new column and switching the index to that column. 

In other use cases, changing from a BTREE to FULLTEXT index would change which types of queries need to a full table scan. 


== This Patch ==

This patch does the following: 

1. You can now add a new AUTO_INCREMENT column to an existing table

When a new AUTO_INCREMENT column is added to an existing table, the column creation is done in two parts. First the column is created as a non-AUTO_INCREMENT column, and a separate `ALTER TABLE` statement is set to run after index creation to enable AUTO_INCREMENT.

Note: The CREATE TABLE statement given to dbDelta must provide the required indexes that MySQL expects.


2. You can now modify a column with AUTO_INCREMENT to no longer use AUTO_INCREMENT

3. You can change which column is the primary key

4. Significant index definitions cause an index to be dropped and re-created

The cases that cause an index to be dropped and re-created are: 

	* An index which wasn't UNIQUE, but now is or vice-versa
	* An index which changes index type (eg. FULLTEXT => BTREE)
	* An index which contains a different number of columns
	* An index which contains a different column order
	* An index which contains different columns

Note: Changing the index sub-part or no longer defining the index in the table does not cause it to be dropped. 


== Other notes ==

1. I've tried to use WP coding standards and comment my code well. I'd love feedback if there are things I can do better.

2. I've included a file, test.php which takes 13 table definitions, takes them two at a time, and converts between each possible combination. 

To run it, put it in the root WordPress directory and run `php ./test.php`. 

3. Also, the dbDelta phpunit tests still pass."	stuporglue	4.8	needs-unit-tests
Enhancements Awaiting Review	58871	support uca14.0.0 collation in database where available		Database	normal	enhancement	new	2023-07-20T23:36:30Z	2025-09-30T09:03:10Z	"Like #32105 supporting a modern collation is a good idea.

MariaDB added this in 10.10.1 (ref: https://jira.mariadb.org/browse/MDEV-27009).

As the current default is case insensitive, we'll follow the same insensitivity and use accent insensitive.

So of the collations available, use uca1400_ai_ci.

ref: https://mariadb.com/kb/en/supported-character-sets-and-collations/#collations"	danielblack	6.3	has-patch
Enhancements Awaiting Review	63734	wpdb::prepare() should reject invalid schema object names		Database	normal	enhancement	new	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	6.9	has-patch
Enhancements Awaiting Review	46287	Add insert_ignore() method to wpdb to avoid unecessary boilerplate code		Database	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	62512	"Add ""Learn WordPress"" Links to the ""WordPress Events and News"" Dashboard Widget"		Database	normal	feature request	new	2024-11-22T05:56:53Z	2025-05-26T14:29:53Z	"Hey Team

This ticket proposes adding links to Learn WordPress in the existing ""WordPress Events and News"" dashboard widget in wp-admin.


**Objective:**
Provide direct access to Learn WordPress resources for users via the dashboard.
Make it a quick and straightforward addition to the existing widget for now, while we explore creating a dedicated ""Learn WordPress"" widget in the core later.
Implementation Plan:

**Quick Addition:**
Extend the existing ""WordPress Events and News"" widget to include a link (or links) to Learn WordPress resources (e.g., Tutorials, Courses, Workshops).
This can be added in the widget footer or a prominent section, keeping the UI clean.

**Future Enhancement:**
In the background, we can work on designing and implementing a new, standalone dashboard widget focused entirely on Learn WordPress.

**Benefits:**
Encourages learning and contribution by making WordPress education resources more accessible.
Provides immediate value while a more comprehensive widget is developed.

Please share your feedback or suggestions for further improvement!

For more information see mentioned screenshot, please"	sumitsingh		has-patch
Enhancements Awaiting Review	36242	wpdb set_sql_mode add param	pbearne	Database	normal	enhancement	reopened	2016-03-14T23:43:46Z	2025-01-18T15:04:42Z	When making a creating a db drop-in that supports multiple databases, I had to override the whole {{{set_sql_mode}}} method. If {{{set_sql_mode}}} accepted a {{{$dbh}}} param, the method could easily be reused.	spacedmonkey	3.9	dev-feedback
Enhancements Awaiting Review	41054	Use sargable date filtering where possible		Database	trivial	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		needs-patch
Enhancements Awaiting Review	62575	Prints SQL/DB error limit last_query too long		Database	normal	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		
Enhancements Awaiting Review	54070	"Increase CPT ""machine name"" limit from its current maximum of 20 characters."		Database	normal	feature request	new	2021-09-03T13:30:04Z	2024-11-08T15:28:41Z	"In order to accommodate proper namespacing for Custom Post Types (as well as, potentially, transliteration from non-Latin alphabets), 20 characters is often not enough.

Custom Taxonomies currently have a machine name limit of 32 characters. It would be nice to see CPTs have at least that many, although 64 characters would be even better."	taupecat	2.1	needs-codex
Enhancements Awaiting Review	61856	Add support for MySQL SSL connections		Database	normal	enhancement	new	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	6.7	has-patch
Enhancements Awaiting Review	41281	attachment_url_to_postid results in very slow query	joemcgill*	Database	normal	enhancement	accepted	2017-07-10T07:53:25Z	2024-07-18T09:49:18Z	"`attachment_url_to_postid` throws query like this:

{{{
# wp-includes/media.php ll.3922
$sql = $wpdb->prepare(
	""SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_wp_attached_file' AND meta_value = %s"",
	$path
);
}}}

But wp_postmeta table has index only of `meta_key`, this may cause file sort.

== Why this is problem ==

Let's assume that you have 20,000 posts and each post has 10 attachments in your WP news site.
MySQL filters rows with `meta_key` but still remain 200,000 possible rows.
This causes file sort.

`attachment_url_to_postid` is used not only in admin screen, but also in public area(e.g. AMP Plugin https://wordpress.org/plugins/amp/ ).

Now twitter changes URL for mobile device if AMP version is available. 
So, MySQL CPU raises up to 100% by `attachment_url_to_postid` if site traffic is high, 

== Solution ==

To avoid slow query, I suggest adding another index.

{{{
ALTER TABLE $wpdb->postmeta ADD INDEX meta_key_meta_value (meta_key(191), meta_value (64));
}}}"	Takahashi_Fumiki	4.9	
Enhancements Awaiting Review	61604	Split `wp_insert_post` in two		Database	minor	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		
Enhancements Awaiting Review	60254	Add filter to class-wpdb.php#query that allows to return data from filter return value		Database	normal	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	6.5	
Enhancements Awaiting Review	59639	Dedicated tables for media libary		Database	major	feature request	new	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		dev-feedback
Enhancements Awaiting Review	59281	Support for Database Cursor		Database	normal	feature request	new	2023-09-04T19:34:08Z	2023-09-27T13:47:35Z	Is it possible to do a cursor query using the `$wpdb` instance or could it be added, which will return a generator (yield)?	heera		
Enhancements Awaiting Review	58694	Enhancement in wordpress Database API		Database	normal	feature request	reopened	2023-07-01T12:11:08Z	2023-08-30T17:51:17Z	"Hi 

im a wordpress developer and freelancer

i also do wordpress Database optimization for my customers and I have a very smart suggestion to optimize the database structure of Beloved WordPress!

issue: Keep in mind that every plugin and theme installed in WordPress will inject some data (options/post-metas/ etc) to the wpdb and when you remove them their data will remain (unused) inside user wp database with no clue or indication of what template or plugin the information was for!


My suggestion: you can simply add an extra Argument for the core functions for adding options or metas (update_option or update_post_meta/update_user_meta) this Arg will add that plugin or theme base name to the added option or meta added like this -> update_option(""myopt"", ""myvalue"", $autoload, ""wooslider"")
which the 4th arg is the name of my example plugin and its REQUIRED type ALSO the name of the plg/theme can be auto inserted from an PHP constant -> (define('WOODMART_CORE', __FILE__); )

NOTE: By using this new system, whenever a person wants to manually optimize the database, she/he can easily find out which information is not needed and quickly query and delete them, Also, the plugins that perform database cleaning are much easier and more efficient, fully automatically find out which plugins no longer exist and which information is related to them and can be deleted without any trouble!

See the pic plz...

https://mdezign.ir/wp-content/uploads/2023/07/aasdsadasdasd.jpg

Consider this as a Great New development in order to optimize and speed up all WordPress sites!

Thanks a lot.
"	mdesignfa	6.2.2	
Enhancements Awaiting Review	59106	Add secondary index on `wp_posts` table to improve media queries performance		Database	normal	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	6.4	
Enhancements Awaiting Review	58826	Please add a default post relations table		Database	critical	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		
Enhancements Awaiting Review	49654	maybe_drop_table		Database	normal	enhancement	new	2020-03-16T17:37:38Z	2023-04-07T15:21:11Z	We currently have a function for `maybe_create_table`, I was looking for one to `maybe_drop_table`.  This would be a very helpful function.	bhubbard		
Enhancements Awaiting Review	56259	Database Repair doesn't check for missing primary keys / A.I.		Database	minor	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		
Enhancements Awaiting Review	46210	Add helpers for default/empty datetime value		Database	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	54324	Rename Table Function - maybe_rename_table()		Database	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	55938	WP prefix on installation - instructions to be indicated		Database	minor	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		
Enhancements Awaiting Review	55202	A proper (error) message should be show when mysql setting autocommit=0		Database	normal	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	5.9	
Enhancements Awaiting Review	54627	Adding More Timestamp columns to database		Database	normal	enhancement	new	2021-12-14T23:54:04Z	2021-12-14T23:54:04Z	"I would love to see 'created_at' and 'updated_at' as new columns to some of the default tables such as users, users_meta, etc. Mysql can autofill these columns automatically, and it is very useful information to know when rows are added or updated.

I could also see 'created_by' and 'updated_by' as possible columns as well, so it is possible to know when the table row was created or updated by a particular User ID."	bhubbard		
Enhancements Awaiting Review	54560	Return null from wpdb::get_results when query fails		Database	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	43019	Hook to validate post form data before save		Database	major	enhancement	new	2018-01-04T13:23:07Z	2021-10-28T03:26:41Z	"There doesn't seem to be a hook available to validate form data before a post is saved. In my case I'm considering using JavaScript to validate the post title, content and meta but would prefer to do this validation server side.

Can we add a hook?"	henry.wright		has-patch
Enhancements Awaiting Review	54235	Script for handling metadata in wp_postmeta		Database	normal	feature request	new	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		needs-docs
Enhancements Awaiting Review	52527	Better RAM handling in wp-db.php		Database	normal	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	5.6.1	
Enhancements Awaiting Review	51762	Unix authentication support via unix_socket		Database	normal	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		
Enhancements Awaiting Review	39826	LIMIT clause not required in get_options function as there's already a UNIQUE KEY on option_name		Database	normal	enhancement	new	2017-02-09T23:41:05Z	2020-05-07T19:31:10Z	"The Core get_options (wp-includes/option.php) uses LIMIT 1 to retrieve only a single row for an option.
However, the option_name field already has a UNIQUE KEY in the table schema, so it's impossible for the db to contain or return more than one row for any option_name.

Barring history I'm unaware of (if there used to not be a UNIQUE KEY on this field in the past), it's safe to remove the LIMIT 1 clauses from these queries (there are a few instances in the function.


While LIMIT clauses can sometimes be harmful to performance, in this particular scenario that's not the case.  However, it's just superfluous."	arjenlentz	4.7.2	dev-feedback
Enhancements Awaiting Review	47994	The additions of a new wp_posts table columns called post_level and post_patriarch		Database	normal	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		
Enhancements Awaiting Review	47818	$wpdb should update ->insert_id also when `LAST_INSERT_ID(...)` is found		Database	normal	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		
Enhancements Awaiting Review	46576	short-circuit filter for dbDelta		Database	normal	enhancement	new	2019-03-20T15:32:29Z	2019-03-20T15:32:29Z	"`dbDelta` function can cause strange things on the large-scale WordPress installations. When you have large amounts of data, you don't really want to schema changes apply directly on the production. (at least we don't do that) 

So, I recommend adding new short-circuit filter to avoid that.

(I know, returning an empty array with `dbdelta_queries` might be a workaround but not ideal for this job.)"	m_uysl		
Enhancements Awaiting Review	46565	Mixed engine in tables, could bring to major WP failure! Also there is a small fix that could avoid that.		Database	normal	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	4.9.8	needs-patch
Enhancements Awaiting Review	8924	autoload should be boolean in add_option()		Database	normal	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		
Enhancements Awaiting Review	42703	WP_Query: Swap parsing date into own method		Database	normal	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		
Enhancements Awaiting Review	41956	Errno in $wpdb		Database	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	44292	Make use of protected process_fields		Database	normal	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		
Enhancements Awaiting Review	39748	Function to insert or update DB value		Database	normal	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		
Enhancements Awaiting Review	41944	Add %u support to wpdb->prepare		Database	normal	enhancement	new	2017-09-21T13:30:31Z	2017-09-21T15:30:20Z	"MySQL unsigned int: 4bn [[BR]]
PHP %d signed int: 2bn[[BR]]
[[BR]]
Maybe the standard should be %u not %d or at the very least support both while internally using %u for all key lookups?[[BR]]
[[BR]]
Especially since much of the WP Core specifically sets ID fields as bigint unsigned not null auto_increment.[[BR]]
[[BR]]
If a site never has more than 2bn records, and MOST will NEVER get that big, it is a non-issue but shouldn't the standard be consistent between the DB engine and the language processor (PHP)?"	charlestonsw	4.8.2	
Enhancements Awaiting Review	40150	VARCHAR/TEXT inefficiencies		Database	normal	enhancement	new	2017-03-14T00:45:10Z	2017-03-14T00:45:10Z	"From conversation with Matty Cohen, a selection of structural improvement suggestions, for performance and future-proofing. Note that these aspects have recently been applied to WooCommerce already, resulting in a much optimised/modernised default table structure.

Current some of the TEXT and VARCHAR use in WP Core appear to be based on old information - that is, restrictions and behaviour from MySQL versions long ago. This has consequences for performance.

First, VARCHAR.

In MySQL 4.0, VARCHAR used to be restricted to 255 max. In MySQL 4.1 character sets such as UTF8 were introduced and MySQL 5.1 supports VARCHARs up to 64K-1 in byte length. Thus, any occurrence of VARCHAR(255) indicates some old style logic that needs to be reviewed.

Why not just set the maximum length possible? Well...
A VARCHAR is subject to the character set it's in, for UTF8 this means either 3 or 4 (utf8mb4) bytes per character can be used. So if one specifies VARCHAR(50) CHARSET utf8mb4, the actual byte length of the stored string can be up to 200 bytes.
In stored row format, MySQL uses 1 byte for VARCHAR length when possible (depending on the column definition), and up to 2 bytes if necessary. So, specifying VARCHAR(255) unnecessarily means that the server has to use a 2 byte length in the stored row.
This may be viewed as nitpicking in the margin, however storage efficiency affects the number of rows that can fit on a data page and thus the amount of I/O required to manage a certain amount of rows. It all adds up, so having little unnecessary inefficiencies will cost - particularly for larger sites.

Best practice is to set VARCHAR to the maximum necessary, not the maximum possible - otherwise, as per the above, the maximum possible is about 16000 for utf8mb4, not 255 - and nobody would propose setting it to 16000, would they? But it's not much different, in stored row space a VARCHAR(255) requires a 2 byte length indicator just like VARCHAR(16000) would.

So please review VARCHAR columns and set their definition to the maximum actually necessary, this is very unlikely to come out as 255. If 255, why not 300? Or rather 200? Or 60? Setting a proper number indicates that thought and data analysis has gone into the design. 255 looks sloppy.

On to TEXT.

TEXT (and LONGTEXT) columns are handled different in MySQL/MariaDB. First, a recap of some facts related to TEXT columns.

The db server often needs to create a temporary table while processing a query. MEMORY tables cannot contain TEXT type columns, thus the temporary table created will be a disk-based one. Admittedly this will likely remain in the disk cache and never actually touch a disk, however it goes through file I/O functions and thus causes overhead - unnecessarily. Queries will be slower.

InnoDB can store a TEXT column on a separate page, and only retrieve it when necessary (this also means that using SELECT * is needlessly inefficient - it's almost always better to specify only the columns that are required - this also makes code maintenance easier).

A TEXT column can contain up to 64k-1 in byte length (4G for LONGTEXT). So essentially a TEXT column can store the same amount of data as a VARCHAR column (since MySQL 5.0), and we know that VARCHAR offers us benefits in terms of server behaviour. Thus, any instance of TEXT should be carefully reviewed and generally the outcome is to change to an appropriate VARCHAR.

Using LONGTEXT is ok, if necessary. If the amount of data is not going to exceed say 16KB character length, using LONGTEXT is not warranted and again VARCHAR (not TEXT) is the most suitable column type.

Applications don't need to care, so the db definition can be altered without any application impact.

Summary:
Particularly when combined with the best practice of not using SELECT *, using appropriately defined VARCHAR columns (rather than VARCHAR(255) or TEXT) can have a measurable and even significant performance impact on application environments. It is a worthwhile effort."	arjenlentz	4.7.3	
Reporter Feedback / Close	65626	7.0.1 9.9797 lagging at WP_Query->get_posts() on site with 16K= posts		Database	normal	defect (bug)	new	2026-07-14T10:42:44Z	2026-07-16T09:43:07Z	"WordPress Core	Rows 12	Time 9.9797

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 = '_thumbnail_id' )
AND wp_posts.post_type = 'post'
AND ((wp_posts.post_status = 'publish'))
GROUP BY wp_posts.ID
ORDER BY RAND()
LIMIT 0, 12


[Tue Jul 14 08:40:19.216116 2026] [proxy_fcgi:error] [pid 426947:tid 139710814889536] (70007)The timeout specified has expired: [client 172.68.15.214:10260] AH01075: Error dispatching request to : (polling)
[Tue Jul 14 09:58:00.006114 2026] [proxy_fcgi:error] [pid 527710:tid 139710806496832] (70007)The timeout specified has expired: [client 104.22.102.3:13269] AH01075: Error dispatching request to : (polling)
[Tue Jul 14 09:58:06.495507 2026] [proxy_fcgi:error] [pid 427011:tid 139710823282240] (70007)The timeout specified has expired: [client 104.23.166.58:11062] AH01075: Error dispatching request to : (polling)
[Tue Jul 14 09:58:14.009622 2026] [proxy_fcgi:error] [pid 427011:tid 139710747747904] (70007)The timeout specified has expired: [client 172.70.174.186:11287] AH01075: Error dispatching request to : (polling)
[Tue Jul 14 10:09:31.561638 2026] [proxy_fcgi:error] [pid 426947:tid 139709766424128] (70007)The timeout specified has expired: [client 172.71.223.122:11059] AH01075: Error dispatching request to : (polling)
[Tue Jul 14 11:17:00.561688 2026] [proxy_fcgi:error] [pid 426947:tid 139710680770112] (70007)The timeout specified has expired: [client 104.23.211.198:11988] AH01075: Error dispatching request to : (polling)
[Tue Jul 14 11:19:06.963564 2026] [proxy_fcgi:error] [pid 427011:tid 139710647035456] (70007)The timeout specified has expired: [client 172.71.191.109:12030] AH01075: Error dispatching request to : (polling)
[Tue Jul 14 11:21:58.529651 2026] [proxy_fcgi:error] [pid 527710:tid 139710605137472] (70007)The timeout specified has expired: [client 104.23.211.199:13219] AH01075: Error dispatching request to : (polling)
[Tue Jul 14 11:22:24.018843 2026] [proxy_fcgi:error] [pid 527710:tid 139710772926016] (70007)The timeout specified has expired: [client 172.68.245.177:11419] AH01075: Error dispatching request to : (polling)
[Tue Jul 14 11:23:08.984133 2026] [proxy_fcgi:error] [pid 527710:tid 139710756140608] (70007)The timeout specified has expired: [client 172.71.190.204:10807] AH01075: Error dispatching request to : (polling)
[Tue Jul 14 11:29:35.673203 2026] [proxy_fcgi:error] [pid 426947:tid 139710571730496] (70007)The timeout specified has expired: [client 104.22.93.43:9864] AH01075: Error dispatching request to : (polling)

"	bibliata	7.0.1	reporter-feedback
Reporter Feedback / Close	63825	"Creating a post containing UTF-8, then changing WP_CHARSET to ""latin1"", makes posts un-editable."		Database	normal	defect (bug)	new	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	6.6.2	close
Reporter Feedback / Close	63966	Database Extensions for Federation Support and Compatibility at the WordPress Core Level		Database	normal	feature request	new	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		close
Reporter Feedback / Close	59172	wp_query meta_query NOT EXISTS not creating correct sql query		Database	normal	defect (bug)	new	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	6.3	reporter-feedback
Reporter Feedback / Close	61071	Need to display appropriate error messages when the database table is empty or corrupted.		Database	normal	enhancement	reopened	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	6.4	dev-feedback
Reporter Feedback / Close	60503	MySQL VALUES function deprecated in MySQL 8		Database	minor	defect (bug)	new	2024-02-12T12:19:23Z	2024-12-10T22:03:15Z	"e.g. for add_option SQL query (but issue happens in other places too, but not many)

{{{#!php
""INSERT INTO `$wpdb->options` (`option_name`, `option_value`, `autoload`) VALUES (%s, %s, %s) ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)""
}}}


we get the SQL logs spammed with:

>'VALUES function' is deprecated and will be removed in a future release. Please use an alias (INSERT INTO ... VALUES (...) AS alias) and replace VALUES(col) in the ON DUPLICATE KEY UPDATE clause with alias.col instead

Since WP 6.4 minimum SQL is 8+, so this deprecated syntax isn't necessary anymore, since the new syntax is supported in all supported SQL versions.

This should have been fixed in WP 6.4, but at least now with WP 6.5 release, as it's easy to fix and avoid having a performance penalty from the deprecation notice handling/reporting.

"	kkmuffme		close
Reporter Feedback / Close	56533	dbDelta() ignores changes to column nullability (NULL/NOT NULL)		Database	major	defect (bug)	new	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	6.0.2	reporter-feedback
Reporter Feedback / Close	55115	Change deprecated wpdb::escape() method		Database	normal	enhancement	new	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		close
Reporter Feedback / Close	52648	Problem with certain passwords not working to login to mysql db		Database	major	defect (bug)	new	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	5.2	reporter-feedback
Reporter Feedback / Close	52253	New filter on wp-db.php		Database	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	51097	post cannot be saved due to certain variant of Japanese Kanji		Database	normal	defect (bug)	new	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	5.5	close
Defects Awaiting Review	52220	Weekly archives/week 53 incorrect crossing over a year change	Rarst*	Date/Time	normal	defect (bug)	accepted	2021-01-04T19:50:24Z	2026-08-13T17:57:57Z	"I run a site that publishes items every single day, and I regularly make use of its weekly archives. 

The relevant dates here(via https://www.epochconverter.com/weeks/2020) are:  
2020 week 52 is Dec 21 – Dec 27  
2020 week 53 is Dec 28 – Jan 3  
2021 week 1 is Jan 4 – Jan 10

Instead, my weekly archives come out as:  
2020 week 52 is Dec 21 – Dec 27   
2020 week 53 is Dec 28 – **Dec 31**  
2021 week 1 is Jan 4 – [ongoing]
[I can provide live URLs for these, just wasn't sure if self-linking was frowned upon.]

There's three days in there that just…don't exist(in the archives; there ''are'' published entries). 

It's kind of a pain to find much information on weekly archives in the first place since they're not all that common in actual use and the search terms are broad but I'm currently trying to find someplace else that publishes often enough I can try feeding it a query string to see what happens.

This replicates for previous year changes, ie. 2020 week 1 is Dec 30, 2019–Jan 5, 2020 but the archive just starts at Jan 1 instead.
Also replicates with all plugins disabled and using Twenty Twenty-One."	sugeneris	5.6	has-patch
Defects Awaiting Review	65281	Custom Time & Date Format Fields Allow Empty Save Instead of Validation		Date/Time	normal	defect (bug)	new	2026-05-20T18:43:42Z	2026-06-15T14:26:48Z	"== Title ==
Custom Time & Date Format Fields Allow Empty Save Instead of Validation

== Description ==
During WordPress 7.0 release party testing, an issue was identified related to custom time and date format settings.

When the custom fields for '''Time Format''' and '''Date Format''' are cleared (left blank), WordPress still allows the settings to be saved successfully.

Although WordPress falls back to default formatting behavior internally, the system should validate these fields before saving.

== Current Behavior ==

* User clears the custom Time Format and/or Date Format fields.
* WordPress accepts and saves the changes.
* WordPress automatically falls back to default formatting behavior.

== Expected Behavior ==

* If custom Time Format or Date Format fields are empty or invalid:
  ** System should either save ''null'' values explicitly, OR
  ** Prevent saving and show a validation/error message.
* User should be prompted to enter valid format values before settings are saved.

== Suggested Validation ==

* Restrict empty submissions for custom format fields.
* Display an admin notice such as:

<blockquote>
Please configure a valid date and time format.
</blockquote>

== Steps to Reproduce ==

# Go to ''Settings → General''.

# Navigate to Date Format / Time Format settings.

# Clear the custom format fields.

# Click '''Save Changes'''.

# Observe that WordPress still saves the settings without validation.

== Impact ==

* May create confusion for users/admins.
* Blank or invalid custom settings can lead to inconsistent formatting behavior.
* No clear indication that configuration is incomplete.

== Environment ==

* WordPress Version: 7.0
* Tested during: WordPress 7.0 Release Party Testing
"	ashirhabib		has-patch
Defects Awaiting Review	57409	Post date/time selector on a different timezone than of the server's	pbearne	Date/Time	normal	defect (bug)	assigned	2023-01-02T09:50:40Z	2025-12-05T16:15:51Z	"I've noticed this bug since updating to WordPress 6.1, but I didn't know it had anything to do with timezones until I traveled to Brazil the past couple of weeks.

My server is running on GMT-3, Brazil's timezone. While I was there, everything was ok. But here in Portugal (GMT), the post's date/time selector has a bug in which it doesn't circle the correct date on the calendar, but the previous day instead.

I'm attaching a screenshot."	rfischmann	6.1	
Defects Awaiting Review	55242	Time options in Settings have changed to uppercase AM and PM instead of lowercase		Date/Time	normal	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	5.9.1	
Defects Awaiting Review	63772	get_calendar() shows incorrect month-end due to current_time() timezone issue		Date/Time	normal	defect (bug)	new	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	6.8.2	dev-feedback
Defects Awaiting Review	63348	Missing “Create Date” on Draft Products		Date/Time	critical	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	6.8	
Defects Awaiting Review	55503	Post Date display issue if we set empty from General Settings page	pbearne	Date/Time	normal	defect (bug)	assigned	2022-03-31T14:04:23Z	2024-12-13T17:13:51Z	"Hello,

I have faced one issue with the post date field on the backend side.

If we set empty Date and Time format from the General Settings page then the post date will be empty displaying on the edit screen of an article(any post type).
We need to set any default date and time format to display or make the Date format and Time format field required. If any admin set it empty mistakenly then it will take hours to figure out the root cause of the issue."	rishishah		dev-feedback
Defects Awaiting Review	49012	Date format output incorrect in Finnish		Date/Time	normal	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	5.3.1	
Defects Awaiting Review	57955	wp_localize_jquery_ui_datepicker parsing general settings date_format wrong		Date/Time	minor	defect (bug)	new	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	6.1.1	
Defects Awaiting Review	46609	Incorrect posts date on saving scheduled posts draft		Date/Time	normal	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	5.1	
Defects Awaiting Review	26980	the_modified_date is lower than the_date when post is scheduled		Date/Time	normal	defect (bug)	reopened	2014-02-01T08:38:41Z	2021-05-05T21:43:34Z	"I scheduled a post on 30th Jan for 1st Feb. When the post was published, the modified date shows lower than the published date. 

I am using {{{<?php the_date('F j, Y'); ?>}}} for first part & {{{<?php the_modified_date('F j, Y'); ?>}}} for the second part.

[[Image(https://dl.dropboxusercontent.com/u/1830109/wp-381-date.jpg)]]

This should show the_modified_date = the_date in case of scheduled posts?

Thoughts?"	tushonline	3.8	has-patch
Defects Awaiting Review	51945	Dates in REST API responses are incompatible with date-time JSON schema format		Date/Time	normal	defect (bug)	new	2020-12-05T13:08:06Z	2020-12-07T13:14:31Z	"Most date properties of objects in a REST API response (for example the published date of a post) declare a JSON schema format of `date-time`. This is incorrect because `date-time` format requires a timezone identifier and dates in the REST API do not include one.

The `date-time` format uses IETF RFC 3339 which differs from ISO 8601. The former requires a timezone identifier, the latter does not. Notably several date field descriptions in the REST API reference ISO 8601, which is also incorrect.

Validating a REST API response against its JSON schema therefore fails due to the incorrect date format.

== Tested with:

* [https://github.com/ajv-validator/ajv AJV]
* [https://github.com/java-json-tools/json-schema-validator json-schema-validator]

Note that [https://www.jsonschemavalidator.net/ Json.NET Schema] contains [https://github.com/JamesNK/Newtonsoft.Json.Schema/issues/105 a bug which means it incorrectly allows a date without a timezone identifier].

== References:

* [https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.7.3.1 JSON schema standard section 7.3.1] where it states that the `date-time` production from IETF RFC 3339 is used for its `date-time` format
* [https://tools.ietf.org/html/rfc3339#section-5.6 IETF RFC 3339 section 5.6] where its `date-time` production ABNF is specified

== Potential Solutions

1. Switch to using IETF RFC 3339 format for dates, and use the time zone of the site as the timezone identifier
2. Switch to using IETF RFC 3339 format for dates, use `Z` as the timezone identifier, and convert all dates to UTC
3. Remove `date-time` from the JSON schemas and don't change the format or timezone used for dates

I think option 1 is preferable but this is technically a breaking change as REST API consumers might not expect a timezone identifier in the date fields even though the `format` declares that one will be present.
"	johnbillion	4.7	dev-feedback
Defects Awaiting Review	43028	Remove numbers before month in dropdown, it makes user confused when drowdown is not opened		Date/Time	normal	defect (bug)	new	2018-01-05T12:01:10Z	2020-06-22T17:18:06Z	"Bug: Remove numbers before month in dropdown, it makes user confused when drowdown is not opened


1. Navigate to Header from left Rail
2. Select ""Header Media""
3. Make anu changes
4. Select ""setting"" icon near ""publish"" button from top
5. Select ""Schedule"" radio button
6. Check Date Field

"	nilamacharya	3.3	has-patch
Defects Awaiting Review	49414	wp_read_image_metadata should look for timezone offset		Date/Time	normal	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		
Enhancements Awaiting Review	48936	Remove mysql2date() usage from core	pbearne	Date/Time	normal	enhancement	assigned	2019-12-11T13:04:27Z	2026-10-31T17:28:26Z	"`mysql2date()` was originally meant from processing times as stored by WP in database.

Unfortunately its design is very limited because both time zone of input and output is ambiguous. It is interchangeably used for local and UTC times.

As implementation detail that meant that it would produce incorrect output for formats including time zones for local time inputs. Time zone would happen be UTC from WP core setting PHP time zone to UTC on load.

In 5.3 release this behavior was flipped to produce correct local time output for local time input, as considerably more common. Accordingly now ''UTC'' input produces incorrect output for formats with time zone.

While the function is common and familiar, it is hardly irreplaceable and its design is so limited it seems to be unsalvageable.

I propose we move towards eliminating its use in core and eventually formally deprecating it."	Rarst		has-patch
Enhancements Awaiting Review	48935	Need to Remove strtotime() usage from core		Date/Time	normal	enhancement	new	2019-12-11T12:58:07Z	2024-11-05T00:25:48Z	"`strtotime()` is routinely used in core for processing timezone-ambiguous input. Since it is affected by default PHP time zone setting (set by core to UTC on boot) it is also vulnerable to this setting being changed by third party code.

Related change of `date()` to `gmdate()` in 5.3 release caused some new issues, because in some places while changing default time zone broke things combination of `strtotime()` and `date()` meant things got broken ''by the same amount'' and outputs were ""correct"" (ignoring the fact they would be implied in absolutely different time zone from intended).

Dropping use of `strtotime()` in favor of date parsing with explicit time zone handling (such as `DateTimeImmutable` objects) is logical next step to make core insensitive to PHP time zone context."	Rarst	6.2	dev-feedback
Enhancements Awaiting Review	48740	Add constant for database date format		Date/Time	normal	enhancement	new	2019-11-20T13:08:57Z	2019-11-20T14:18:36Z	"A lot of core Date/Time code is dealing with `Y-m-d H:i:s` format, as stored for posts and other objects in database.

This is effectively a so-called ""magic"" string, which is not self-explanatory and prone to user error if typed by hand (I messed up `i` with `m` for minutes more than once probably).

Since there is no upstream PHP constant for this format, I suggest we introduce one in core and use it in place of magic string:

{{{#!php
define( 'WP_DATE_MYSQL', 'Y-m-d H:i:s' );
}}}

Not absolutely sure about the name, I used `DATE_MYSQL` as class constant before, but `WP_DATE_DATABASE` might be more appropriately generic. To my knowledge there isn't a specific ISO or RFC designation for such format.

If there is agreement on the need and the name I'll work on a patch for replacement and switch from strings in core."	Rarst		dev-feedback
Reporter Feedback / Close	66142	Empty custom date/time fields are saved instead of remaining null in WordPress 7.1.1		Date/Time	normal	defect (bug)	new	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	7.1.1	close
Reporter Feedback / Close	53780	PHP 8.1: DateTimeZone::getTransitions() change		Date/Time	normal	defect (bug)	reopened	2021-07-26T09:48:55Z	2025-02-07T11:21:46Z	"This is a follow-up to #49038.

PHP 8.1 getTransitions, The data format that the library uses has changed, and will now only contain a list of transitions up until the last time the *rules* changed.
https://bugs.php.net/bug.php?id=80963"	autotutorial		close
Reporter Feedback / Close	44597	Scheduling posts adds wrong seconds as post_date		Date/Time	normal	defect (bug)	new	2018-07-17T15:41:55Z	2025-01-15T18:26:31Z	"Whenever I schedule a random post on wordpress, for example I give the date 2 August 2018 18:00, wordpress inserts the wrong seconds into the database in post_date. post_date of the example given would be something like `2018-08-02 18:00:22`. WordPress would add these 22 seconds, which is wrong, because I have defined only hours and minutes in the GUI, so seconds should not be just randomly defined. 
Here is a database example:
[[Image(https://i.imgur.com/0KM1Jpw.png)]]
"	katsar0v	4.9.7	close
Reporter Feedback / Close	61223	Date Time and UTC / GTM Timezone is not synchronizing		Date/Time	minor	defect (bug)	new	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	6.5.3	close
Reporter Feedback / Close	51625	Date/Time test failures during DST transition		Date/Time	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	53755	WordPress 5.8 DatePicker component crashes		Date/Time	blocker	defect (bug)	new	2021-07-22T21:28:13Z	2024-12-13T17:05:53Z	"when using the DatePicker component in the editor, try to change the month to input a different date.  WP will crash and the error in the console is TypeError: t.onMonthPreviewed is not a function

I noticed in an article ""Whats new in Gutenberg 10.9"" from June of this year that bug # 31751 fix addresses this.  I'm NOT using the gutenberg plugin, rather what comes with WordPress.  This was not an issue in the previous version of WP. 

I have cleared all caches etc  tried on different computers with different test scenarios.   

"	ilenejohnson		close
Reporter Feedback / Close	58774	Sorting Posts after Published Date OR Last Update should be a standard function	pbearne	Date/Time	normal	feature request	assigned	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	6.2.2	reporter-feedback
Defects Awaiting Review, reported against trunk	66438	Block style variation text color hidden by a block type text gradient		Editor	normal	defect (bug)	new	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	trunk	has-patch
Defects Awaiting Review, reported against trunk	66428	Entity Fields: Do not register the Parent field for non-hierarchical post types		Editor	normal	defect (bug)	new	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	trunk	has-patch
Defects Awaiting Review, reported against no version	25886	Sortable items gets stuck when dragging over TinyMCE		Editor	normal	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		needs-patch
Defects Awaiting Review, reported against no version	41106	wp_editor() doesn't support attributes besides id and class		Editor	normal	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		
Defects Awaiting Review, reported against latest stable branch	66310	custom css applied in editor is not picked up by blocks after 7.1.3 update		Editor	normal	defect (bug)	new	2026-10-14T15:48:00Z	2026-10-28T11:08:09Z	"I haven't seen a ticket for this one; hope it's not a duplicate.

Any custom css or classes added in the Additional CSS Classes or the Additional CSS fields is ignored, even when the css is valid, isn't clashing with other rules, and is saved on the page or the customizer. This seems to be related to the 7.1.3 update; no other changes have been made and these fields worked as expected before the update."	smithkr	7.1.3	
Defects Awaiting Review, reported against latest stable branch	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	normal	defect (bug)	new	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	7.1	has-patch
Defects Awaiting Review	64216	Undefined array key 0 in wp-includes/block-editor.php on line 468		Editor	normal	defect (bug)	new	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	6.8.3	has-patch
Defects Awaiting Review	30942	In quicktags settings, setting buttons to zero-length string doesn't give empty toolbar.		Editor	normal	defect (bug)	new	2015-01-07T16:48:15Z	2026-11-04T06:34:47Z	"This issue was raised on WordPress stackexchange http://wordpress.stackexchange.com/a/174086/57034.

If you set the buttons of the quicktags settings to a zero-length string, eg by using the `'quicktags_settings'` filter
{{{
	add_filter( 'quicktags_settings', function ( $qtInit ) {
		$qtInit['buttons'] = '';
		return $qtInit;
	} );
}}}

which typically results in the following setting in `tinyMCEPreInit`

{{{
qtInit: {'content': id:""content"",buttons:""""},'replycontent': id:""replycontent"",buttons:""""}}
}}}

then quicktags just ignores it and uses the default buttons, due to this falsey test on line 263 of ""wp-includes/js/quicktags.js""
{{{
			if ( settings.buttons ) {
				use = ','+settings.buttons+',';
			}
}}}

This can be worked around by using any non-falsey value in setting `$qtInit['buttons']` but that's somewhat non-intuitive. The proposed simple patch tests for string type so you can use `''` (and also tests for boolean `false` which is nice to have as well).
{{{
			if ( typeof settings.buttons === 'string' ) {
				use = ','+settings.buttons+',';
			} else if ( settings.buttons === false ) {
				use = ' '; // Any old truthy string.
			}

}}}
"	gitlost	4.1	has-patch
Defects Awaiting Review	56429	Gutenberg author box missing		Editor	normal	defect (bug)	new	2022-08-24T14:03:31Z	2026-11-02T07:18:42Z	"There is a bug related to the author box missing when all of the following conditions are true:

- When there are more than 70 users in a WP installation
- When an Editor creates a post and saves it as a draft. This must be the only post of that user
- If all the users are ordered alphabetically, that user must be above 60 in the order

When this is true, if another Editor opens that draft, the author box won't be visible. There is an additional request that should fetch that user and it's returning error 403

If Administrator opens it, the author box is present

The cause for the bug is the last condition that fails here - https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php#L445 because the function checks for the author of the post"	lgadzhev	6.0.1	has-patch
Defects Awaiting Review	29643	Ordered List Problem When Switiching between Visual Editor and HTML editor		Editor	normal	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	4.0	
Defects Awaiting Review	66373	wp.editor.autop() doubles <br /> tags inside [caption]		Editor	normal	defect (bug)	new	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	6.9.4	has-patch
Defects Awaiting Review	66375	Enqueue the classic theme styles synced from Gutenberg instead of `classic-themes.css`		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	66046	Rename Editor to Edit Site in the Dashboard (for Block Themes)		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	59551	Respect non-null values from the `pre_render_block` filter		Editor	normal	defect (bug)	new	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	6.0	has-patch
Defects Awaiting Review	62734	Regression in custom CSS loading order for `wp_enqueue_global_styles()`		Editor	normal	defect (bug)	new	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	6.7	dev-feedback
Defects Awaiting Review	64841	wp_editor() with quicktags enabled does not force-print buttons.css on the frontend, unlike editor.css		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	66285	Duotone presets with slugs that are not kebab-case are not applied on the front end		Editor	normal	defect (bug)	new	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	6.3	has-patch
Defects Awaiting Review	66199	Style Engine collapses significant whitespace inside quoted CSS strings		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	66124	Search form hides the top button of the vertical scrollbar inside the plugin/theme file editor		Editor	normal	defect (bug)	new	2026-09-17T08:46:09Z	2026-10-03T14:32:02Z	When using the search (CTRL + F) inside the default plugin/theme file editors, the search form field stays above the Top button of the vertical scroll bar. On some instances, it even hides the slider.	alanjacobmathew		has-patch
Defects Awaiting Review	65171	wp_check_post_lock_window filter values below 120s break post lock detection in backgrounded tabs		Editor	normal	defect (bug)	new	2026-05-05T21:12:28Z	2026-10-01T14:17:27Z	"== Summary ==

When `wp_check_post_lock_window` is filtered to a value lower than the maximum heartbeat interval (120s), post lock detection silently breaks for users editing in backgrounded tabs. A second editor opening the same post sees no ""Currently being edited"" modal, walks into the editor, and on the next heartbeat takes over the lock — silently overwriting any unsaved changes the first editor had typed.

== Steps to reproduce ==

Add the following to a theme or plugin:

{{{
  add_filter( 'wp_check_post_lock_window', function() { return 30; } );
}}}

1. User A opens `/wp-admin/post.php?post=N&action=edit`. `_edit_lock` is set with the current timestamp.
2. User A switches to a different tab/window so the editor tab is backgrounded. `heartbeat.js` overrides `interval` to 120000ms.
3. After 30 seconds, the lock is considered expired by `wp_check_post_lock()` (uses the filtered window).
4. User A's lock is not refreshed until 120s elapse (next backgrounded heartbeat).
5. Between t=30s and t=120s, user B opens the same post. `wp_check_post_lock()` returns false. No takeover modal appears. B walks into the
  editor.
6. B's first heartbeat claims the lock. A's next heartbeat receives `lock_error` and A is shown the takeover modal — losing any unsaved changes.

I reproduced this end-to-end by logging both heartbeat traffic and `wp_check_post_lock_window` calls. The 120s gap between A's heartbeats is exactly what `heartbeat.js:512` produces; the lack of modal for B is exactly what `post.php` produces when the lock has aged past 30s.

== Code paths ==

The defect is two pieces of core that have no shared awareness:

`src/wp-admin/includes/post.php`, `wp_check_post_lock()`:

{{{
  $time_window = apply_filters( 'wp_check_post_lock_window', 150 );

  if ( $time && $time > time() - $time_window && get_current_user_id() !== $user ) {
      return $user;
  }
}}}

The filter has no documented minimum value.

`src/js/_enqueues/wp/heartbeat.js`, `scheduleNextTick()`:

{{{
  if ( ! settings.hasFocus ) {
      interval = 120000; // 120 seconds. Post locks expire after 150 seconds.
  }
}}}

The 120000 constant is hardcoded; the comment confirms the design implicitly assumes the lock window is always 150s. There is no mechanism for a customised lock window to reach the JS layer.

`src/wp-includes/general-template.php`, `wp_heartbeat_settings()`, does not expose the lock window — it only sets `ajaxurl` and `nonce`."	katag9k		needs-unit-tests
Defects Awaiting Review	65312	Templates Editor - Can't create a template for a specific category		Editor	normal	defect (bug)	new	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	7.0	needs-docs
Defects Awaiting Review	59511	Navigation Block issue		Editor	normal	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	6.3.1	needs-patch
Defects Awaiting Review	49094	preg_match() expects parameter 2 to be string on line 417 of wp-includes/class-wp-block-parser.php		Editor	critical	defect (bug)	new	2019-12-29T20:45:06Z	2026-09-29T19:58:27Z	"wp version 5.3.2
os MacOS 10.15.2
browser FireFox 71.0

Building a custom theme and on a very simple page if I have a qry param in the url that is an array ''(ex. ?c[]=3&c[]=6)'' I get the following warnings. If I change the url param to a string like ''c=3'' then the warnings go away.

{{{
Warning: preg_match() expects parameter 2 to be string, array given in /wp-includes/class-wp-block-parser.php on line 417

Warning: strlen() expects parameter 1 to be string, array given in /wp-includes/class-wp-block-parser.php on line 489
}}}

The reason the url has these params is for a custom data filter with a multi-select menu.

After a google search it appears that this bug was introduced in version 5.3.1 and based on my findings to fix the issue that is accurate. 

The bug appears to be related to the parse_blocks() function, I was able to trace the issue back to this location: blocks.php line 271 function filter_block_content();

If I update the function like so, 


{{{
function filter_block_content( $text, $allowed_html = 'post', $allowed_protocols = array() ) {
	$result = '';

	if ( !is_array( $text ) ) {
		$blocks = parse_blocks( $text );
		foreach ( $blocks as $block ) {
			$block  = filter_block_kses( $block, $allowed_html, $allowed_protocols );
			$result .= serialize_block( $block );
		}
	}

	return $result;
}
}}}


by adding the **if !is_array()** condition the page works properly and warnings go away. I'm not 100% sure if this is the correct place for this fix but wanted to let you know about the issue, since I don't believe WP should be trying to parse qry params this way. 

Hope this information is helpful."	thenerdcave	5.3.2	
Defects Awaiting Review	66183	wp_get_global_settings() and wp_get_global_styles() return the entire array when the requested path does not exist		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	66062	_restore_wpautop_hook() re-adds wpautop at priority -1 when a later the_content callback runs the_content again		Editor	normal	defect (bug)	new	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	5.2	has-patch
Defects Awaiting Review	63923	style-engine: Add string check to prevent fatal errors from malformed block attributes		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	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	defect (bug)	new	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		has-patch
Defects Awaiting Review	65876	Block style variations emit a duplicate copy of the same CSS for every block instance		Editor	normal	defect (bug)	new	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	7.0.4	has-patch
Defects Awaiting Review	65872	Editor: enable notes on the global styles post type		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65753	ACF Block fields showing in Sidebar Inspector instead of Editor Canvas in WP 7.0.2 (SCF v6.9.3 / ACF v6.8.6 vs 6.9.5)		Editor	normal	defect (bug)	new	2026-07-29T12:00:19Z	2026-07-30T05:52:50Z	"Hi everyone,

I am noticing a change in behavior in how ACF/Secure Custom Fields (SCF) blocks render in the Gutenberg Block Editor when running on **WordPress 7.0.2**.

**Environment Details:**

**WordPress Version:** 7.0.2 (Backup site on 6.9.5)
**Plugin:** Secure Custom Fields (SCF) v6.9.3 / ACF Pro v6.8.6
**Theme:** Custom WP Theme

**Issue Summary:**

In WP **6.9.5:** When creating a new page and adding an ACF block for the first time, the block's fields were rendered directly inside the main block editor canvas (in-context editing) as expected when **'mode' => 'edit'** is set in **acf_register_block_type()**.

In **WP 7.0.2 (with SCF v6.9.3 / ACF v6.8.6)**, when inserting the same newly added block on a page for the first time:

The block fields automatically open inside the **Right Sidebar (Block Inspector panel)** under the **Block** tab.
For some blocks where template output returns 0 bytes when empty, Gutenberg renders an **""Edit Block""** placeholder button in the canvas, while blocks that echo empty **<section>** tags bypass this and place all fields into the sidebar inspector.

**Sample Block Registration Code (acf_register_block_type):**

{{{#!php
<?php
acf_register_block_type( array(
    'name'            => 'wysiwyg',
    'title'           => __( 'WYSIWYG', 'text-domain' ),
    'render_callback' => 'theme_acf_block_render_callback',
    'category'        => 'custom-blocks',
    'icon'            => 'admin-comments',
    'mode'            => 'edit',
    'supports'        => array(
        'align' => true,
    ),
) );
}}}

**Screenshot:** https://prnt.sc/cBxF81YGS9Mb

**Questions for the Community:**

1. Was there an intentional change in WP 7.0.2 or SCF v6.9.3 / ACF v6.8.6 regarding how initial block state / **InspectorControls** focus is handled for custom ACF blocks upon insertion?

2. What is the recommended WP / ACF hook or filter to globally enforce default inline canvas editing for all registered blocks when creating a new page without hiding sidebar panels via custom CSS?

Any insights, filters, or best practices would be greatly appreciated!

Thanks!"	nishantkapadiya	7.0	
Defects Awaiting Review	65701	allowed_block_types_all hook prevents patterns from being inserted		Editor	normal	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	7.0.2	
Defects Awaiting Review	43071	User without the ability to publish are unable to edit post status		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65469	Backend: Publish		Editor	normal	defect (bug)	new	2026-06-16T08:02:31Z	2026-06-19T11:58:49Z	"In WordPress 7, the publish-options have visual formatting issues. This is dependent on the language and size of texts and buttons. I have issues when using German, though the formatting issues are visible in English as well.

The core problem is that functions are no longer on different lines, but somehow in a single line. If the text is too long, buttons are moved out of sight and no longer available (like: ""Publish"" or ""Update""). I guess it's a CSS issue."	krisseeuw	7.0	dev-feedback
Defects Awaiting Review	65377	Remove redundant noreferrer from target=_blank links in Gutenberg (backport request)	adamsilverstein	Editor	normal	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	6.9	
Defects Awaiting Review	63695	viewStyle is loaded in the footer when the active theme is the classic theme		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65071	Focus border styling breaks slug input layout in Classic Editor	joedolson*	Editor	normal	defect (bug)	accepted	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		has-patch
Defects Awaiting Review	64967	Bug report – Whitespace / non-breaking spaces removed after save in Gutenberg		Editor	normal	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		
Defects Awaiting Review	55586	`get_block_wrapper_attributes` generates PHP notices.		Editor	normal	defect (bug)	new	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	5.6	dev-feedback
Defects Awaiting Review	59271	Issue With the Duotone filter With Image in Editor		Editor	normal	defect (bug)	closed	2023-09-02T07:06:23Z	2026-01-27T05:57:23Z	"While Adding an Image & apply custom Duotone filter  in it & choose custom Shadow & highlights to the image at that time image not display on front end with given shadows.
It works in backend editor, But in frontend it doesn't work properly. refer below video form same

https://www.awesomescreenshot.com/video/20433189?key=59d607fc51153fcb135dc6af3931b17c

WP Version : 6.3
PHP Version : 8.0"	dhruval04	6.3	needs-patch
Defects Awaiting Review	45387	Valid HTML get mangled on the frontend		Editor	normal	defect (bug)	new	2018-11-20T18:12:49Z	2026-01-22T16:42:57Z	"Open the HTML editor, paste this HTML code


{{{
<p>To make this thing happen, go to Pages <a href=""http://google.com/"" target=""_blank"" rel=""noreferrer noopener"" aria-label=""This is > an aria label"">http://google.com</a></p>
}}}


And preview the post in frontend.

The HTML is a big mangled in the output, the link don't show up properly.

I suspect that it's related to one of `the_content` filters.

Reproduced in 4.9.8"	youknowriad		has-patch
Defects Awaiting Review	59149	Inconsistent Behaviour of Block Editor while Adding/Searching for Blocks		Editor	normal	defect (bug)	new	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	6.3	dev-feedback
Defects Awaiting Review	52626	Block editor doesn't paginate parent page results		Editor	major	defect (bug)	new	2021-02-23T17:10:15Z	2025-12-08T12:24:47Z	"Conditions:

More than 100 pages.
Use gutenberg editor.
Edit a page.

Result: 

Parent page dropdown is broken / does not contain all pages.

Expected result:

Should be able to see all the 100+ pages in the parent page dropdown.

Reason: 

rest api ajax request only fetches the first 100 pages. The response headers does contain the corrent headers:
X-WP-Total: 1040 (i have 1040 pages)
X-WP-TotalPages: 11 (yes it's 11 x 100 pages)

I see only one ajax request for the first 100 pages.
After that i would see 10 more requests in older versions of wordpress.
Now it's only one. 
I have tried reading the javascript but it's not easy to read.

This breaks my companies internal website. Would be nice to have a fix. We can't switch away from gutenberg.

This is also related to an older unfixed bug: https://core.trac.wordpress.org/ticket/46294



"	hobzhobz	5.6.2	
Defects Awaiting Review	31416	An accessibility issue with the Publish metabox		Editor	normal	defect (bug)	new	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	4.1.1	has-patch
Defects Awaiting Review	63580	render_block does not render innerblocks when used explicitly		Editor	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	63109	test_get_block_editor_settings_theme_json_settings failing		Editor	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	62966	PHP output of get_comment_delimited_block_content does not match Gutenberg JS output		Editor	normal	defect (bug)	new	2025-02-14T19:09:58Z	2025-12-01T02:39:21Z	"The `get_comment_delimited_block_content` function (in PHP) does not produce the same output as block content created in Gutenberg.

For example, if I create a new post using the block editor and add a paragraph block with the text ""This is a paragraph."" and save it, the following markup gets saved to `post_content`:

{{{
<!-- wp:paragraph -->
<p>This is a paragraph.</p>
<!-- /wp:paragraph -->
}}}

However, if I attempt to do the same thing using the `get_comment_delimited_block_content`:

{{{
#!php
get_comment_delimited_block_content( 'paragraph', [], '<p>This is a paragraph.</p>' );
}}}

the output lacks the line breaks:

{{{
<!-- wp:paragraph --><p>This is a paragraph.</p><!-- /wp:paragraph -->
}}}

This presents problems for PHP code that produces Gutenberg markup (e.g., in data migrations) because what is saved to the database by using this function is not the same as what would be saved if the user edited the content directly in Gutenberg, which may have unintentional side effects down the line if code expects there to be line breaks after the opening comment and before the closing comment as it is written by Gutenberg JS.

The output of `get_comment_delimited_block_content` in PHP should match what is generated by Gutenberg's JavaScript. At a minimum, the function should be modified so that when block contents are provided, there are line breaks after the opening comment and before the closing comment, but there may be other areas where the output doesn't match exactly that should be brought into parity as well.

(Note: While this applies to block editor functionality, the code in question lives in wp-includes/blocks.php which is part of Core, not the Gutenberg GitHub repo.)"	kevinfodness		has-patch
Defects Awaiting Review	62591	No changes being saved on blog issue		Editor	normal	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		
Defects Awaiting Review	46555	update fails when I have a print statement in my code.		Editor	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	61953	aspect-ratio setting for image in overwritten pattern not working		Editor	normal	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		
Defects Awaiting Review	52601	Link validation issue on TinyMCE using Classic Editor		Editor	minor	defect (bug)	new	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	5.6	dev-feedback
Defects Awaiting Review	63993	wp_ajax_wp_remove_post_lock does not remove a post lock		Editor	normal	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		
Defects Awaiting Review	53267	Search Form Doesn't Return Results Found in Reusable Blocks		Editor	normal	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	5.7.2	
Defects Awaiting Review	63153	Onscreen keyboard obscures post body and Custom Fields input on mobile		Editor	normal	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	6.7.2	
Defects Awaiting Review	63856	Bug Report: Post Author Can Be Assigned to Subscribers via Gutenberg Editor		Editor	normal	defect (bug)	new	2025-08-21T17:27:23Z	2025-08-23T09:58:16Z	"Hello WordPress Team,

Good evening! I regularly use WordPress for both client projects and personal work, and while testing the Gutenberg editor, I noticed a bug.

Normally, when editing a post in Gutenberg, the Author option on the right-hand side shows a dropdown with users who have the roles Administrator, Editor, or Contributor — but not Subscribers (which is correct).

However, if I inspect the element in the browser and manually change the dropdown value to a user ID that belongs to a Subscriber, the post gets reassigned to that Subscriber.

This seems like an issue, because Subscribers should not be selectable as post authors into the Editor in admin side.

I’ve attached screenshots to make this clearer:

User list: https://prnt.sc/9XIMve4OaJfJ

Post list (created by Admin): https://prnt.sc/i_uEpCAZnBB8

Author dropdown in editor: https://prnt.sc/s5Gcu2eGVYSI
, https://prnt.sc/MzDGzWtO2bRb

After changing dropdown value to Subscriber user ID: https://prnt.sc/VNH1QBIcRjN5

Subscriber “Chilu” appearing in the list: https://prnt.sc/lOH2a1ZCgFWZ

Post successfully assigned to Subscriber: https://prnt.sc/Qnnjikk3jevz

Could you please review this bug? I believe it may allow unintended assignment of posts to users with the Subscriber role.

Thank you for your time and support!

Best regards,
Chirag Patel"	chilu5504	6.8.2	needs-unit-tests
Defects Awaiting Review	63765	register_block_pattern() returns true even when disallowed blocks are used, causing silent failure in the editor.		Editor	normal	defect (bug)	new	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	6.8.2	dev-feedback
Defects Awaiting Review	49443	Safari Browser - Component Color Picker not getting closed on Custom Color Picker button click		Editor	normal	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	5.4	needs-patch
Defects Awaiting Review	55714	& stored as &amp; for Post Title and Excerpt in Editor		Editor	normal	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		
Defects Awaiting Review	63608	Hooked blocks not inserted		Editor	normal	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	6.8	
Defects Awaiting Review	63470	WordPress 6.8.1 - Adding a new block or line in Editor causes the page to jump down		Editor	critical	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		
Defects Awaiting Review	60157	Cursor moves to a different paragraph when use directional keys to navigate in a text		Editor	normal	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	6.4.2	
Defects Awaiting Review	58709	Bug 6.3 beta-3: Black screen when selecting blocks in List view outside the block editor viewport.		Editor	major	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		needs-patch
Defects Awaiting Review	58432	"BUG: Custom Core Block Variation details not updated in ""Settings Sidebar"" section"		Editor	major	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		
Defects Awaiting Review	58095	Post featured image block use full size image => huge impact on performance		Editor	normal	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	6.3	
Defects Awaiting Review	58085	Some dialogs are blurry on HiDPI devices		Editor	normal	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	6.2	
Defects Awaiting Review	56310	Inconsistency when adding fonts to fontFamilies in wp_global_styles post		Editor	normal	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	6.0	
Defects Awaiting Review	55827	Can't drag and drop block into empty column in list view		Editor	normal	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	6.0	
Defects Awaiting Review	54113	Override core/gallery block		Editor	normal	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	5.8.1	
Defects Awaiting Review	53047	"My ""Posts"" page (when a static front is selected) uses the old editor"		Editor	normal	defect (bug)	reopened	2021-04-16T02:12:40Z	2025-05-12T01:37:50Z	"I'm using WP 5.7.1.

Very strange, minor bug:

Every page, except my Posts page, uses the Gutenberg editor. I'm told on the support forums that this is not normal.

The Posts page, when I enter Edit, calls up what looks like the previous-generation editor.

This persists when all plug-ins are deactivated. It even persists on another of my sites, which uses a completely different WP installation.

Unfortunately, I don't know how this can be reproduced, since I can't make it NOT happen.

Let me know what other info I can provide! 
"	DavidSortOf		has-patch
Defects Awaiting Review	62676	Classic editor: Firefox - Full height editor button not loading in the editor	joedolson*	Editor	normal	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	6.7.1	
Defects Awaiting Review	59978	Classic editor cursor control		Editor	normal	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	6.4	needs-patch
Defects Awaiting Review	51449	Image caption missing after saving in multisite with non super administrator account		Editor	major	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	5.5.1	needs-patch
Defects Awaiting Review	60317	Cannot select an author from dropdown due to truncated users list		Editor	normal	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		
Defects Awaiting Review	61600	Import of scheduled posts		Editor	minor	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		
Defects Awaiting Review	62964	WordPress Master-Master Replication Conflicts Caused by Gutenberg Blocks		Editor	normal	defect (bug)	new	2025-02-14T07:00:11Z	2025-02-14T07:48:36Z	"Our company uses a WordPress setup with two servers behind a load balancer, and we rely on master-master MySQL replication. To prevent replication conflicts, cron jobs are configured to run only on a single server. This setup has worked seamlessly for several years, but we started encountering weekly replication conflicts around two months ago.

The conflict occurs with the following SQL queries:

{{{#!sql
### DELETE FROM `fr_wp`.`wp_sitemeta`
### WHERE
###   @1=385338
###   @2=1
###   @3='_site_transient_wp_theme_files_patterns-39b075616449d092b365a81b6f9d3e6d'
###   @4='a:2:{s:7:""version"";s:0:"""";s:8:""patterns"";a:0:{}}'

### DELETE FROM `fr_wp`.`wp_sitemeta`
### WHERE
###   @1=385336
###   @2=1
###   @3='_site_transient_timeout_wp_theme_files_patterns-39b075616449d092b365a81b6f9d3e6d'
###   @4='1737837003'
# at 150934730
}}}

Upon reviewing the WordPress source code, I identified that these conflicts are caused by the WordPress function {{{_register_theme_block_patterns}}} being executed at the exact same time on both servers.

Since our site does not use Gutenberg blocks, we resolved the issue by preventing this function from being executed:

{{{#!php
<?php
remove_action('init', '_register_theme_block_patterns');
}}}

"	copytrans	6.7.2	
Defects Awaiting Review	60957	Install fonts in Font Library in WP 6.5 not working on multisite using Twenty Twenty-four		Editor	normal	defect (bug)	new	2024-04-08T07:38:06Z	2025-02-08T00:22:42Z	"Fonts install in the e.g. ""uploads/sites/8/fonts"" directory on the proper ""site"" in multisite. The new font shows up in the Font Library in Styles Typography, but is not rendered either in the Style Book or the front end.

Here is the `theme.json` for the installed font:
{{{
		""fontFace"": [
			{
				""fontFamily"": ""\""Alegreya Sans SC\"""",
				""fontStyle"": ""normal"",
				""fontWeight"": ""500"",
				""src"": ""http://eosfse.movingmoment.com/wp-content/uploads/sites/8/fonts/mtGm4-RGJqfMvt7P8FUr0Q1j-Hf1DrpG0iFrMYJ_K-4.woff2""
			},
			{
				""fontFamily"": ""\""Alegreya Sans SC\"""",
				""fontStyle"": ""italic"",
				""fontWeight"": ""500"",
				""src"": ""http://eosfse.movingmoment.com/wp-content/uploads/sites/8/fonts/mtGk4-RGJqfMvt7P8FUr0Q1j-Hf1BkxdBidhMKB6O-51OA.woff2""
			}
		],
		""fontFamily"": ""\""Alegreya Sans SC\"", sans-serif"",
		""name"": ""Alegreya Sans SC"",
		""slug"": ""alegreya-sans-sc""
	}
],
}}}"	hartsook	6.5	
Defects Awaiting Review	62894	Media Library functionality in the block editor causes CSP 'unsafe-eval' error		Editor	normal	defect (bug)	new	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	6.7.1	has-patch
Defects Awaiting Review	62810	Pattern with Query Loop and Cover block renders wrongly in preview		Editor	minor	defect (bug)	new	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	6.7.1	has-patch
Defects Awaiting Review	62871	Font Library Install Fonts not accessible after migrating website		Editor	normal	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	6.7.1	
Defects Awaiting Review	62240	Cover block image is not displayed when the block inside group with background color		Editor	normal	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		
Defects Awaiting Review	62208	Font size issue occur in responsive for author filter list		Editor	normal	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	6.6.2	
Defects Awaiting Review	62030	Can't Access Some Block Templates in Classic Themes		Editor	normal	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	6.6.2	
Defects Awaiting Review	46264	Page attributes 'ORDER' does not saving data for post-type 'post'.		Editor	normal	defect (bug)	new	2019-02-17T11:06:28Z	2024-07-18T07:25:46Z	"I used {{{ add_post_type_support()}}} function to support 'page-attributes' for Menu Order at post-type 'post'.

{{{#!php
<?php
function prefix_add_posts_order() {
	add_post_type_support( 'post', 'page-attributes' );
}
add_action( 'admin_init', 'prefix_add_posts_order' );
}}}

When I save the post after putting an integer value in the Order field then no value is saving on 'wp_posts' table 'menu_order' column and it does not also update on the editor page.

But when I switch to TinyMCE editor it's working fine. 

"	tanvirul	5.0	has-patch
Defects Awaiting Review	61664	Can't insert a reusable block and other problems		Editor	critical	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		
Defects Awaiting Review	58236	theme.json customTemplates with child themes work wrong		Editor	normal	defect (bug)	new	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	6.3	has-patch
Defects Awaiting Review	61405	Residual of block found in `get_blocks_metadata` even when block is unregistered using `unregister_block_type()`.		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	61234	Investigation Request: High Frequency of `hooked_block_types` Filter Calls		Editor	normal	defect (bug)	new	2024-05-16T22:27:16Z	2024-07-03T15:09:51Z	"I have identified a potential performance concern related to the `hooked_block_types` filter in WordPress 6.5.3, particularly regarding its scalability when a site has a large number of blocks and custom patterns.

=== Steps to Reproduce: ===
1. **Environment Setup:**
   - Installed a completely blank WordPress.org 6.5.3 site using the default Twenty Twenty-Four theme.
   
2. **Customization:**
   - Installed and activated a custom plugin to count the number of times the `hooked_block_types` filter is applied. The plugin code is as follows:

{{{#!php
<?php
/*
Plugin Name: Hooked Block Types Counter
Description: A simple plugin to count how many times the 'hooked_block_types' filter is applied.
Version: 1.0
Author: Your Name
*/

function init_hooked_block_types_counter() {
    $GLOBALS['hooked_block_types_count'] = 0;
}
add_action('init', 'init_hooked_block_types_counter');

function increment_hooked_block_types_count($hooked_block_types, $relative_position, $anchor_block_type, $context) {
    $GLOBALS['hooked_block_types_count']++;
    return $hooked_block_types; // Returning the original list without modification
}
add_filter('hooked_block_types', 'increment_hooked_block_types_count', 10, 4);

function log_hooked_block_types_count() {
    $count = $GLOBALS['hooked_block_types_count'];
    error_log(""The 'hooked_block_types' filter was run $count times."");
}
add_action('shutdown', 'log_hooked_block_types_count');
?>
}}}




3. **Initial Observation:**
   - Visiting the front page with the default Twenty Twenty-Four theme and no additional content shows:
     {{{
     [16-May-2024 22:03:09 UTC] The 'hooked_block_types' filter was run 526 times.
     }}}

4. **Adding Content:**
   - Using the Site Editor, edited the `Index` template by adding a Columns block, with a few Paragraph blocks in each column.
   - After saving the changes and visiting the home page again, it showed:
     {{{
     [16-May-2024 22:09:02 UTC] The 'hooked_block_types' filter was run 590 times.
     }}}

=== Concerns: ===
- While the out-of-the-box performance might be acceptable, the issue scales significantly with added content. 
- On a site with extensive custom patterns, I observed the filter being applied approximately 9,800 times.
- This scalability concern implies that functions hooked to `hooked_block_types` could potentially run thousands of times, which can have significant performance implications.
- For example, Jetpack’s `sharing-button.php` hooks into this filter and runs the following check: `( new Modules() )->is_active( 'sharedaddy' )`. Running such a check 10,000 times seems inefficient and could lead to performance bottlenecks. Authors writing code on this hook might be unaware it could be run thousands of times.

=== Reference: ===
Jetpack’s sharing-button.php:
https://github.com/Automattic/jetpack/blob/3631fb251d8734d656d818ed3c52cf71a2be204c/projects/plugins/jetpack/extensions/blocks/sharing-button/sharing-button.php#L224

=== Request: ===
- Investigate why the `hooked_block_types` filter is being applied so many times.
- Consider optimizing the filter application to reduce redundancy and improve performance.
- Provide guidelines or best practices for plugin authors to avoid performance issues when hooking into `hooked_block_types`.

Thank you for looking into this matter. I believe addressing this will help improve the performance and scalability of WordPress sites, especially those with complex block structures and custom patterns."	mreishus	6.5	
Defects Awaiting Review	61058	Edit Permalinks, Date, Time and Visibility not working on 6.5.2		Editor	normal	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	6.5	
Defects Awaiting Review	61270	Error notice Updating failed. The response is not a valid JSON response.		Editor	critical	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	6.5.3	
Defects Awaiting Review	55288	Site Editor on 5.9.1 fails to find homepage template for FSE themes, on WP subdirectory installation		Editor	critical	defect (bug)	new	2022-03-01T18:47:29Z	2024-04-30T01:28:16Z	"I'm getting an error when launching the site editor on 5.9.1, stating “The editor is unable to find a block template for the homepage”. This happens on both Twenty-Twenty-Two and a custom FSE theme (otherwise functional, has templates/single.html and templates/index.html). **My WP installation is in a subdirectory**, using the [[https://github.com/roots/bedrock|Bedrock]] site structure, so the editor URL is `https://example.test/wp/wp-admin/themes.php?page=gutenberg-edit-site`

I've tried it on PHP 7.4.25 and 8.0.14. I've confirmed it still happens with all plugins deactivated.

Notably, activating the Gutenberg plugin version 12.6.1 eliminates the error and the editor loads correctly.

There are several other reports of the same error in this Twenty-Twenty-Two forum thread: https://wordpress.org/support/topic/the-editor-is-unable-to-find-a-block-template-for-the-homepage/

The error code output from the copy button is

{{{
Error: `getHomepageParams`: HTTP status error, 404 
    at https://example.test/wp/wp-includes/js/dist/edit-site.js?ver=403e01f2b098b6a656118a51787581cb:8766:13
    at async getHomepageParams (https://example.test/wp/wp-includes/js/dist/edit-site.js?ver=403e01f2b098b6a656118a51787581cb:8762:20)
    at async redirectToHomepage (https://example.test/wp/wp-includes/js/dist/edit-site.js?ver=403e01f2b098b6a656118a51787581cb:8797:28)
    at async reinitializeEditor (https://example.test/wp/wp-includes/js/dist/edit-site.js?ver=403e01f2b098b6a656118a51787581cb:9067:5)
}}}
"	andronocean	5.9.3	dev-feedback
Defects Awaiting Review	61018	Block editor color selector displays incorrect color information		Editor	minor	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	6.5	
Defects Awaiting Review	60976	register_block_type not working with Oxygen		Editor	normal	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		
Defects Awaiting Review	60952	"Completely broken out of the box: can't edit ""hello world"" post, lots of errors in browser console in wp-admin"		Editor	critical	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	6.5	
Defects Awaiting Review	60956	Incorrect copy-paste behavior in the header		Editor	critical	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	6.5	needs-patch
Defects Awaiting Review	60151	FSE theme Styles select Issue		Editor	normal	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		
Defects Awaiting Review	60075	Heading-Level Tooltip prevents from selecting a level		Editor	normal	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	6.4.2	
Defects Awaiting Review	56410	WordPress API error when trying to add tags		Editor	critical	defect (bug)	new	2022-08-20T03:49:31Z	2024-02-07T17:05:11Z	"In this video- https://www.loom.com/share/6671fc834c624e37940ba9ecf0398389 you can see that, even with all plugins deactivated and with a default theme, there is an error whenever we tried to add a new tag. As you can see in the video, there is a 400 server error related to the WordPress API.

Maybe it is showing due to - WordPress API error when trying to add tags that already exist to a existing post or within site.

I’ve run into an error in the browser console whenever I try to add tags (that already exist on the site) to a post. I’ve managed to reproduce this on a completely new site.

To reproduce this, please try the following steps:
1) Create a few tags (around 5-6) under Posts > Tags.
2) Create a new post.
3) With the browser console open, start adding your tags to the new post.
4) You should see a 400 Bad Request error for /wp-json/wp/v2/tags?_locale=user

I was able to reproduce this error on a completely new WordPress 6.0.1 install.
We then tried to reproduce this issue on a completely new WordPress installation with no plugins and we managed to reproduce this problem. It looks like this is a problem in WordPress core and not in a plugin. The error seems to be triggered only when you try to add a tag that already exists on the site."	fanmerch2016	6.4.2	
Defects Awaiting Review	60464	Shortcode in Patterns -> Template Parts -> General -> An item in it.		Editor	normal	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	6.4.3	
Defects Awaiting Review	59087	Can’t Paste Markdown Into WP 6.3 Gutenberg, Old Posts are Wonky		Editor	normal	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	6.4.3	
Defects Awaiting Review	60396	Color Picker picks color by hex value		Editor	normal	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		
Defects Awaiting Review	59228	Links in 6.3 missing new window.nofollow.etc		Editor	normal	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	6.3	
Defects Awaiting Review	60225	Directional Keyboard Scrolling Jump Bug		Editor	normal	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	6.4.2	
Defects Awaiting Review	60005	Video block shows a blank white square with play button instead of video placeholder in mobile view.		Editor	normal	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	6.4	
Defects Awaiting Review	58145	JS error: Uncaught ReferenceError: Element is not defined		Editor	normal	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	6.2	needs-patch
Defects Awaiting Review	59773	WP-Admin post editor JS createPreloadingMiddleware has PHP WP_Query deliver Drafts while in editor they are not		Editor	normal	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	6.3.2	
Defects Awaiting Review	58720	Page-Specific template in Site Editor detaches itself from the page when page slug is updated.		Editor	normal	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		
Defects Awaiting Review	56506	Used default separator style in editor but It's showing Wide Line Separator style in My Patterns		Editor	normal	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	6.0.2	
Defects Awaiting Review	59565	WordPress Block Editor Tag Limit Bug		Editor	normal	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	6.3.2	
Defects Awaiting Review	44310	Apostrophe and/or Hyphen in Titles Rendered as &#8217; and &#8211; When Added as Link in Editor		Editor	normal	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	4.9.6	needs-patch
Defects Awaiting Review	54931	get_block_template filter not fired when template saved in posts		Editor	normal	defect (bug)	new	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	5.9	has-patch
Defects Awaiting Review	59535	Page/Post scrolls up while converting quotes to paragraph		Editor	minor	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	6.3.1	
Defects Awaiting Review	59540	Selecting Open in New Tab closes the link editing window		Editor	normal	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		
Defects Awaiting Review	59340	"""Open in new tab"" checkbox in hyperlink entry doesn't save"		Editor	normal	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	6.3	needs-patch
Defects Awaiting Review	59498	I18N issue in site editor		Editor	normal	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	6.3.1	
Defects Awaiting Review	37758	The Link Checker tool does not detect some links		Editor	normal	defect (bug)	new	2016-08-21T14:25:45Z	2023-09-16T12:09:45Z	"hello,

The Link Checker tool in WordPress 4.6 doesn’t detect an error when you put something before ‘http(s)‘. Example: xhttps://www.google.com

And the tool does not detect error if a missing letter in ""http"".
examples :
ttps://core.trac.wordpress.org/newticket
htps://core.trac.wordpress.org/newticket
htts://core.trac.wordpress.org/newticket"	Djibs13	4.6	has-patch
Defects Awaiting Review	59364	When editing Styles > Layout or Block > * > Dimensions, every possible (and unnecessary) combination of global settings is copied to custom styles		Editor	blocker	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	6.3.1	
Defects Awaiting Review	59344	Link UI Goes Off The Screen, Can't Acces Advanced		Editor	major	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	6.3.1	
Defects Awaiting Review	59264	Some block parts (navigation) break when top level folder gets renamed		Editor	normal	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	6.3.1	
Defects Awaiting Review	59194	Lazy Loading not applying at all in the front page template		Editor	critical	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	6.3	
Defects Awaiting Review	58815	Opinionated styles (add_theme_support(wp-block-styles)) set margin top to 0 for image and other blocks		Editor	normal	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	6.3	
Defects Awaiting Review	59104	duotone is not applied to videos in the cover block in safari		Editor	normal	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	6.3	needs-patch
Defects Awaiting Review	59124	Dropdown navigation not displaying past the header		Editor	major	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	6.3	
Defects Awaiting Review	59051	When copying multiple paragraphs, only one is copied		Editor	critical	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	6.3	
Defects Awaiting Review	58975	Replace image deletes the link!		Editor	normal	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	6.1.1	
Defects Awaiting Review	58880	HOLD 6.3 and FIX Template Parts vs. Patterns		Editor	major	defect (bug)	new	2023-07-23T02:10:29Z	2023-07-25T00:15:33Z	"In 6.3 ""Template Parts"" are now found under Patterns and rumored to eventfully be called 
""Patterns""? Whoa! NOT GOOD! It is becoming WAY TOO confusing for my clients.

PLEASE keep Template Parts (""Partial Templates"" or ""Sub-Templates"" if you like) under the Templates section. If you think is better to call them ""Partial Templates"" or ""Sub-Templates"" that could be good.  

**Here is what I’m suggesting:**


== Patterns
=== WP Library
-xxxx
-xxxx

=== ''user created''
-xxxx
-xxxx


== Templates
=== Full Templates
-Page
-Blog
-Blog List
-404
-''user created''
-etc.

=== Partial Templates or “Sub-Templates” or “Template Parts”
-Header
-Footer
-''user created''
-etc.

Thank you,
Douglas Knoyle"	dougster123		
Defects Awaiting Review	58886	When editing a pattern getting console error on chrome browser		Editor	normal	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		needs-patch
Defects Awaiting Review	58813	Editing Slug to an Existing Slug causes wrong content to display		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	58759	Iframed block editor breaks printing some pre-registered scripts enqueued late		Editor	normal	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	6.3	
Defects Awaiting Review	54522	unsaved edits should consistently trigger pop-up alert		Editor	major	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	5.6	
Defects Awaiting Review	56039	Classic Editor: Current selection is not preserved when switching Visual to Text editor		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	58021	Since update 6.2 does not open products or pages in Google Chrome.		Editor	blocker	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	6.2	
Defects Awaiting Review	58045	Global style change cannot be reverted		Editor	normal	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	6.2	needs-patch
Defects Awaiting Review	47520	[WP5.2.1] Crop images in IE11 not working		Editor	normal	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	5.2.1	
Defects Awaiting Review	57495	Cover block: fixed background doesn't work		Editor	normal	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	6.1.1	
Defects Awaiting Review	57599	`wp_theme_json_data_default` filter is not properly to setting `settings.spacing.padding` value		Editor	normal	defect (bug)	new	2023-02-01T18:21:06Z	2023-02-02T16:25:29Z	"There appears to be an issue in how the `theme.json` filters get currently applied. When trying to use the filter on the  `default` layer to enable the `settings.spacing.padding` option it doesn't work as expected. 

Within a plugin I'm trying to call the filter like so: 


{{{#!php
<?php
/**
 * Plugin Name: Test
 */

add_filter( 'wp_theme_json_data_default', 'test_filter_core_theme_json' );

function test_filter_core_theme_json( $theme_json ) {
	$new_data = [
		'version' => 2,
		'settings' => [
			'spacing' => [
				'margin' => true,
				'padding' => true,
			],
		],
	];

	return $theme_json->update_with( $new_data );
};
}}}


And for Theme I'm using a completely empty theme that has this `theme.json` file:

{{{#!json
{
	""version"": 2,
	""$schema"": ""https://schemas.wp.org/trunk/theme.json""
}
}}}

The expected result is that the padding dimension panel in for example the group block could be added. But that isn't the case. At the same time the `margin` option which I've also added in the example above does work as intended.

If you change the `theme.json` file to set the `padding` option to true it does work. And also if you change the filter that gets used to the `theme` layer it works as expected: 

{{{#!php
<?php
/**
 * Plugin Name: Test
 */

add_filter( 'wp_theme_json_data_theme', 'test_filter_core_theme_json' );

function test_filter_core_theme_json( $theme_json ) {
	$new_data = [
		'version' => 2,
		'settings' => [
			'spacing' => [
				'margin' => true,
				'padding' => true,
			],
		],
	];

	return $theme_json->update_with( $new_data );
};
}}}

or

{{{#!json
{
	""version"": 2,
	""$schema"": ""https://schemas.wp.org/trunk/theme.json"",
	""settings"": {
		""spacing"": {
			""padding"": true
		}
	}
}
}}}
"	fabiankaegy	6.1.1	
Defects Awaiting Review	57601	Custom browser user agent breaks visual editor		Editor	normal	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	6.1.1	
Defects Awaiting Review	57499	Featured Image block size options not displaying in FSE		Editor	normal	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		
Defects Awaiting Review	57237	file_exists(): open_basedir restriction in effect. File(core/post-comments) is not within the allowed path(s)		Editor	critical	defect (bug)	new	2022-11-30T21:22:36Z	2022-12-15T13:33:18Z	"Hello,

After updating wordpress to version 6.1.1 I see this php warning messages:

{{{
Warning: file_exists(): open_basedir restriction in effect. File(core/post-comments) is not within the allowed path(s): (/data/web/virtuals/291601/virtual) in /data/web/virtuals/291601/virtual/www/wp-includes/blocks.php on line 532

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/291601/virtual/www/wp-includes/blocks.php:532) in /data/web/virtuals/291601/virtual/www/wp-includes/pluggable.php on line 1416

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/291601/virtual/www/wp-includes/blocks.php:532) in /data/web/virtuals/291601/virtual/www/wp-includes/pluggable.php on line 1419
}}}

I can't get into admin. I use php 8.1.11.

I try to rename all plugins via FTP, but nothing change.

On my another testing website I see the same php warning messages, but I can reach the wordpress administration. So I tryed to disable all plugins and change theme to default ""Twenty Twenty-Two"" but nothing change.

I am not the only one who suffer with these errors. Here for examle:
https://stackoverflow.com/questions/74327979/wp-error-warning-file-exists-open-basedir-restriction-in-effect-filecore


Thank you,

David"	davidki		dev-feedback
Defects Awaiting Review	57061	social-icons block not working		Editor	major	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	6.1	
Defects Awaiting Review	57095	Shortcode's query are executing at backend because of the_content filter		Editor	normal	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	6.1	
Defects Awaiting Review	56956	Classic link editor in WordPress 6.1		Editor	normal	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		
Defects Awaiting Review	57091	Global Styles: Element styles not working for third-party blocks		Editor	normal	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	6.1	
Defects Awaiting Review	47816	Shortcodes being run in editor when gutenberg is active		Editor	normal	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	6.1	
Defects Awaiting Review	56961	Stack on mobile (media and text block) doesnt work any longer		Editor	normal	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	6.1	
Defects Awaiting Review	55968	xss string to be treated as simple string		Editor	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	56893	Unnecessary line breaks added by the code editor that breaks JavaScript		Editor	critical	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	6.0.3	
Defects Awaiting Review	56873	Core Blocks validation error from wordpress 6.0.3		Editor	minor	defect (bug)	new	2022-10-20T21:47:17Z	2022-10-21T01:46:23Z	Hello! There seem to be some validation errors of some core block patterns from version 6.0.3 (they seem to be inconsistencies of the style attribute). They can be viewed in the developer console.	gigito78	6.0.3	
Defects Awaiting Review	56859	Blocks: register_block_script_handle() does not account for symlinks		Editor	normal	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	6.0.3	
Defects Awaiting Review	56627	Underscores are not allowed in block names; error message is misleading.		Editor	normal	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		
Defects Awaiting Review	56768	Images encoded with Base64 with a given string length appears weird in editor but kills the post render on the site		Editor	normal	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	6.0.2	
Defects Awaiting Review	56744	Inaccuracy in user_can_richedit() function on /wp-includes/general-template.php		Editor	normal	defect (bug)	new	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	6.0.2	needs-patch
Defects Awaiting Review	56464	Event custom metabox with Gutenberg not showing correctly		Editor	normal	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		
Defects Awaiting Review	56218	wp-block-columns no margins or padding in WordPress 6		Editor	normal	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	6.0	
Defects Awaiting Review	56082	Block editor does not unset changed/dirty flag for nested types		Editor	normal	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		
Defects Awaiting Review	56080	Block Editor Search Function Choke		Editor	normal	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	6.0	
Defects Awaiting Review	56054	Need to add some gap between input and range slider in Avatar block		Editor	normal	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	6.0	
Defects Awaiting Review	55916	Font size in post editing is not validated		Editor	normal	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	6.0	
Defects Awaiting Review	55945	UI Isssue on header list view		Editor	normal	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	6.0	
Defects Awaiting Review	55886	Need to check query loop block thumbnail issue in post template		Editor	normal	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	6.0	
Defects Awaiting Review	55864	No tag in the editor to reuse blocks		Editor	critical	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	6.0	
Defects Awaiting Review	55844	color picker has scroll in styles menu		Editor	minor	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	6.0	
Defects Awaiting Review	55728	baseURL missing for remotely fetched editor styles		Editor	normal	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	5.9.3	
Defects Awaiting Review	55284	thumbnails issue		Editor	major	defect (bug)	new	2022-03-01T11:14:14Z	2022-05-10T10:18:06Z	After updating to the latest version of wordpress, the space between elements in the frontend is not respected. For example, the thumbnails of image galleries created with WordPress blocks are aligned abnormally, spaces are not respected. See Attachment.	simobenedettidesign	5.9.1	has-patch
Defects Awaiting Review	55509	CSS conflict in Custom Fields table		Editor	normal	defect (bug)	new	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	5.9.1	has-patch
Defects Awaiting Review	54982	"In 5.9 (classic) post editor the author pulldown only lists users with ""edit_posts"" capability"		Editor	normal	defect (bug)	new	2022-01-28T21:52:56Z	2022-04-09T00:22:22Z	"In WordPress 5.9 in the classic editor when editing a post, the “Author” pulldown only shows the administrators. In 5.8.3 it listed all of the authors (and contributors). Here’s the screenshot from 5.9 when using the classic editor: https://photos.app.goo.gl/zQjK441TmNKL2wJf9
It still shows all the authors (in 5.9) when I switch to the block editor. Here’s the screenshot using 5.9 with the block editor:
https://photos.app.goo.gl/ZAiT1gdDHT9F6RLF7

In 5.8.3 it lists all of the Authors in the Author dropdown when using the classic editor:
https://photos.app.goo.gl/qkyn4Bi3X3oDz3537

It looks like this was due to a change in the function post_author_meta_box in the file src/wp-admin/includes/meta-boxes.php
It used to display all of the authors and contributors regardless of their capabilities and now it only displays users that have the ""edit_posts"" capability.

Here's the commit that introduced the problem:
https://github.com/WordPress/wordpress-develop/commit/0cf6d3e48d18b4e8cb932fa02bb82bf5de14a48c"	joneiseman	5.9	dev-feedback
Defects Awaiting Review	55548	"Unchecked ""Uncategorized"" checkbox re-checks itself upon publish or update of a post"		Editor	normal	defect (bug)	new	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	5.9.3	dev-feedback
Defects Awaiting Review	55484	class-wp-editor.php line 1697		Editor	normal	defect (bug)	new	2022-03-30T00:46:36Z	2022-03-31T19:32:19Z	"Line 1697 of class-wp-editor.php should end with a semicolon.

Otherwise, if the page is compressed errors are in the console and the editor isn't functioning correctly."	karin2	5.9.2	
Defects Awaiting Review	55494	Include only Sticky Posts bug		Editor	critical	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	5.9.2	
Defects Awaiting Review	55254	Site Editor: Template Part Areas are not exported		Editor	normal	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	5.9	
Defects Awaiting Review	55315	SVGs in editor (beta)		Editor	normal	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	5.9.1	
Defects Awaiting Review	55314	When saving edits to the footer in editor (beta), saving fails		Editor	normal	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	5.9.1	
Defects Awaiting Review	55142	Custom, external or 3rd party styles are not loaded inside the preview iframe		Editor	normal	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	5.9	
Defects Awaiting Review	55139	TypeError: k is not iterable		Editor	normal	defect (bug)	new	2022-02-10T19:19:27Z	2022-02-10T19:19:27Z	"When I am in the block editor and try typing something in the box search get the below  error, see image 01 and 02.
[[Image(https://inqmatic.com/wp-content/uploads/2022/02/image_01.png)]]
[[Image(https://inqmatic.com/wp-content/uploads/2022/02/image_02.png)]]

The error is:


{{{
TypeError: k is not iterable
    at f (https://c0.wp.com/c/5.9/wp-includes/js/dist/block-editor.min.js:26:86949)
    at https://c0.wp.com/c/5.9/wp-includes/js/dist/block-editor.min.js:26:86506
    at Array.map (<anonymous>)
    at m (https://c0.wp.com/c/5.9/wp-includes/js/dist/block-editor.min.js:26:86496)
    at p (https://c0.wp.com/c/5.9/wp-includes/js/dist/block-editor.min.js:26:86043)
    at https://c0.wp.com/c/5.9/wp-includes/js/dist/block-editor.min.js:12:14633
    at Object.useMemo (https://c0.wp.com/c/5.9/wp-includes/js/dist/vendor/react-dom.min.js:220:462)
    at c.useMemo (https://c0.wp.com/c/5.9/wp-includes/js/dist/vendor/react.min.js:30:236)
    at Wg7J.t.a (https://c0.wp.com/c/5.9/wp-includes/js/dist/block-editor.min.js:12:14608)
    at Le (https://c0.wp.com/c/5.9/wp-includes/js/dist/vendor/react-dom.min.js:100:3)
}}}


further, this error appear then update to wordpress 5.9.

Thanks."	zirtrex	5.9	
Defects Awaiting Review	54907	After upgrading to 5.9 I get blank screens when trying to edit or add posts		Editor	normal	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	5.9	
Defects Awaiting Review	54913	Post / Update Post button does not work		Editor	normal	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	5.9	
Defects Awaiting Review	54951	Page editor blank / throwing error		Editor	major	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	5.9	
Defects Awaiting Review	54981	WP 5.9 Gallery Block Issues		Editor	normal	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	5.9	
Defects Awaiting Review	52855	Block editor sometimes missing some theme_support sections of sidebar		Editor	normal	defect (bug)	new	2021-03-18T20:17:10Z	2022-01-29T02:11:44Z	"The block editor is sometimes missing sections in the sidebar related to what the theme supports, like page templates and featured image. It appears that post formats are unaffected, and also wide-blocks (which isn't in the sidebar, but is theme_support related).

According to replies to this forum topic
https://wordpress.org/support/topic/theme-support-for-post-thumbnails-stopped-working-after-upgrading-to-wp-5-7/
it is sometimes a JS error in unrelated code, but sometimes the existence of the theme's index.php file. A few users indicate it must be something else.

Steps to reproduce the effect of index.php:
1. Using WP 5.6.x, activate a theme that supports featured images, such as Twenty Twenty.
2. Edit a post or page.
3. Note that the featured image (or page template) section is in the edit sidebar.
4. Rename the theme's index.php to testindex.php.
5. Repeat steps 2 & 3.
6. Update WP to 5.7.
7. Edit a post or page.
8. See that the featured image (or page template) section is missing.

These steps repeated with the Classic editor show no missing sections."	joyously	5.7	
Defects Awaiting Review	53029	'separate_items_with_commas' does not display in Block editor meta section		Editor	normal	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	5.7	
Defects Awaiting Review	50754	REST updating a post without author support updates the author to the current user		Editor	normal	defect (bug)	new	2020-07-24T10:53:26Z	2021-12-27T20:56:40Z	"When updaing a post using the REST API, if the post belongs to a post type that does not support post author, then the database entry for the post gets updated and the current user is set as author.

Steps to reproduce, using the Blocks editor as REST API cover:
* Register a post type and make sure you do not declare support for post author.
* Create a new post for that type using the blocks editor, and notice that the databse entry for it sets the author to be the current user.
* Switch to another user with proper editing capabilities, and edit the post again also using the post editor.
* Upong saving, confirm that the database entry for the post states that th author is this second user.

This does not happen when updating a post manually using the legacy classic editor: in this case, the author set when first creating the post is respected on following edits.

Although this might be considered a minor thing (the post type should not be supporting author logic, right?), the implications reach deeper. Users set as the post author in the database get notifications on new comments, for eample, despite the author support for their post type. Having them modified inconsistently based on the editor used to adjust the content copy introduces a major editorial flow nightmare in sites maintained by multiple users.

Probably related: #47041"	jadpm	5.0	
Defects Awaiting Review	54606	The selectControl component has margin bottom 0 in label of selectControl.		Editor	normal	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	5.8.2	needs-patch
Defects Awaiting Review	54587	In some gutenberg blocks the styles setting is not displaying image.		Editor	normal	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	5.8.2	needs-patch
Defects Awaiting Review	54475	CSS Selector in block-library css will broke SVG scaled text rendering  in Chrome 96 (Win 10, Win 11, Mac OS)		Editor	major	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	5.8.2	
Defects Awaiting Review	54445	Space bar doesn't work when typing a post.		Editor	normal	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	5.8.2	
Defects Awaiting Review	54439	In block editor for page/post setting, the 'P' not showing properly inside the drop-down		Editor	normal	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		
Defects Awaiting Review	54430	Block Editor does not save text where the ellipsis are in quotation marks .		Editor	normal	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		
Defects Awaiting Review	54417	Featured Image Exceeds Container		Editor	normal	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	5.8.1	
Defects Awaiting Review	53934	Vimeo embed working in admin and not on post when using private link		Editor	normal	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	5.8	
Defects Awaiting Review	54220	Issue with link tool in block editor		Editor	normal	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	5.8.1	
Defects Awaiting Review	54098	WordPress 5.8 - Cannot read properties of undefined (reading 'clientId')		Editor	blocker	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		
Defects Awaiting Review	54046	Uncaught SyntaxError: Invalid regular expression		Editor	normal	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	5.8	
Defects Awaiting Review	54040	Changing element text or background color should only affect color		Editor	normal	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	5.8	
Defects Awaiting Review	53846	Drag and drop multiple blocks into container breaks editor		Editor	normal	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	5.8	
Defects Awaiting Review	53999	it didn't save TAGS in post.		Editor	critical	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	5.8	
Defects Awaiting Review	53901	"I found error in wordpress ""Publishing failed. The response is not a valid JSON response."""		Editor	critical	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	5.8	
Defects Awaiting Review	53563	Global styles layout settings in the editor clash with the frontend		Editor	normal	defect (bug)	new	2021-06-30T14:43:33Z	2021-08-05T15:32:05Z	"The `theme.json` file allows the `contentSize` and `wideSize` to be set:


{{{
{
  ""settings"": {
    ""layout"": {
      ""contentSize"": ""580px"",
      ""wideSize"": ""900px""
    }
}
}}}

When these are set, blocks like the Group block show the Layout panel. Now the default width can be inherited, or blocks can be made wide.

This all works great in the editor, due to the following autogenerated CSS:


{{{
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > * {
    max-width: 580px;
    margin-left: auto !important;
    margin-right: auto !important;
}

 .editor-styles-wrapper .block-editor-block-list__layout.is-root-container > [data-align=""wide""] {
    max-width: 900px;
}
}}}

This works well on the frontend for blocks that are restricted to the content size. The following CSS is output:

{{{
.wp-container-60dc7f6096866 > * {max-width: 580px;margin-left: auto !important;margin-right: auto !important;}.wp-container-60dc7f6096866 > .alignwide { max-width: 900px;}.wp-container-60dc7f6096866 .alignfull { max-width: none; }.wp-container-60dc7f6096866 .alignleft { float: left; margin-right: 2em; }.wp-container-60dc7f6096866 .alignright { float: right; margin-left: 2em; }
}}}

However for wide aligned blocks, none of the relevant CSS is output.

{{{
.wp-container-60dc7f6096b14 .alignleft { float: left; margin-right: 2em; }.wp-container-60dc7f6096b14 .alignright { float: right; margin-left: 2em; }
}}}

There should be the following CSS:

{{{
.wp-container-60dc7f6096b14.alignwide {max-width: 900px;margin-left: auto !important;margin-right: auto !important;}
}}}

The issue here comes from the difference between a block-based, and a hybrid theme.

In a block-based theme, all blocks are full-width by default. Wide blocks can only break out of content width restricted blocks.

In a hybrid theme though, the content area is restricted--usually through CSS. But wide elements still need to be able to be wider than this container. The only way to get the desired outcome is to wrap the content in a group using `the_content` filter hooked in super early.

In addition using the layout controls hardcode alignment margins, which makes it difficult to control these through the theme's styles."	anonymized_8769252	5.8	
Defects Awaiting Review	53814	Template Editor has no URL to access it		Editor	normal	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	5.8	
Defects Awaiting Review	53810	Template Editor: Code editor view doesn't show the template		Editor	normal	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	5.8	
Defects Awaiting Review	53723	503 Errors in Posts with Complex Gutenberg Content		Editor	normal	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		
Defects Awaiting Review	53698	Published posts auto scrolls on reload		Editor	normal	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		
Defects Awaiting Review	19173	Issues with wp_editor() when used inside of a meta box.	azaozz	Editor	normal	defect (bug)	reopened	2011-11-06T07:16:40Z	2021-07-07T18:20:53Z	"I ran into a couple of obscure issues when adding an editor inside of a meta box.  Errors are generated when moving the meta box around and then switching between the Visual and HTML editors. Also, the resize handle (.mceResize) is a bit too low when viewing the Visual tab when our custom editor has been added within a meta box. Tested in FF7 7.0.1 WPv3.3beta2

I'm adding the Editor within a meta box because it's the easiest way to add an Editor field type within the meta box/ CPT plugin I've made. It seems like it will be a common use case.

Here's a simple plugin that adds an editor within a meta box.

{{{
<?php
/**
 * Plugin Name: WP Editor in a Meta Box
 * Plugin URI: 
 * Description: Demonstration of WP Editor in a meta box.
 * Version: 1.0
 * Author: goto10
 * Author URI: 
 * License: 
 */

// file name: wp_editor-in-meta-box-test.php 

/* Meta box code based on http://codex.wordpress.org/Function_Reference/add_meta_box */

/* Define the custom box */
add_action( 'add_meta_boxes', 'myplugin_add_custom_box' );

/* Do something with the data entered */
add_action( 'save_post', 'myplugin_save_postdata' );

/* Adds a box to the main column on the Post and Page edit screens */
function myplugin_add_custom_box() {
	add_meta_box( 'wp_editor_test_1_box', 'WP Editor Test #1 Box', 'wp_editor_meta_box' );
}

/* Prints the box content */
function wp_editor_meta_box( $post ) {

  // Use nonce for verification
  wp_nonce_field( plugin_basename( __FILE__ ), 'myplugin_noncename' );
	
	$field_value = get_post_meta( $post->ID, '_wp_editor_test_1', false );
	wp_editor( $field_value[0], '_wp_editor_test_1' );
}

/* When the post is saved, saves our custom data */
function myplugin_save_postdata( $post_id ) {
  
	// verify if this is an auto save routine. 
  // If it is our form has not been submitted, so we dont want to do anything
  if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) 
      return;

  // verify this came from the our screen and with proper authorization,
  // because save_post can be triggered at other times
  if ( ( isset ( $_POST['myplugin_noncename'] ) ) && ( ! wp_verify_nonce( $_POST['myplugin_noncename'], plugin_basename( __FILE__ ) ) ) )
      return;

  // Check permissions
  if ( ( isset ( $_POST['post_type'] ) ) && ( 'page' == $_POST['post_type'] )  ) {
    if ( ! current_user_can( 'edit_page', $post_id ) ) {
			return;
		}		
  }
	else {
		if ( ! current_user_can( 'edit_post', $post_id ) ) {
			return;
		}
	}

  // OK, we're authenticated: we need to find and save the data
	if ( isset ( $_POST['_wp_editor_test_1'] ) ) {
		update_post_meta( $post_id, '_wp_editor_test_1', $_POST['_wp_editor_test_1'] );
	}
	
}
}}}



'''Case 1:'''
	Steps to reproduce error:[[BR]]
	  Activate test plugin.[[BR]]
	  HTML tab is selected in our custom editor instance.[[BR]]
	  Drag meta box containing editor around (ensuring the jQuery UI Sortable drop placeholder shows up, but the box does not need to be docked to a new location)[[BR]]
	  Release the box[[BR]]
	  Switch to the editor's Visual tab[[BR]]
	
'''The following error occurs:'''
	j is null
	In file: /wp-includes/js/tinymce/wp-tinymce.php?c=1&ver=345-20110918
	The top row of tinymce icons is also duplicated. Once the error occurs, we can no longer switch between tabs.
	
	
'''Case 2:'''
	Steps to reproduce error:[[BR]]
	  Activate test plugin.[[BR]]
	  Visual tab selected.[[BR]]
	  Drag meta box containing editor around.[[BR]]
	  Release the box.[[BR]]
	  switch to the editor's HTML tab.[[BR]]
	
'''The following error occurs:'''
	Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDOMHTMLDocument.implementation]
	In file: /wp-includes/js/tinymce/wp-tinymce.php?c=1&ver=345-20110918

Note: It may take a couple of tries when switching between visual/HTML tabs to trigger the errors. Sometimes the errors won't happen, but usually they do."	goto10	3.3	has-patch
Defects Awaiting Review	53583	Distraction Free Writing Mode not available on visual tab		Editor	normal	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	5.7.2	
Defects Awaiting Review	53537	Default content overwrittern when using a default post format		Editor	normal	defect (bug)	new	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	5.0	has-patch
Defects Awaiting Review	53517	Pasting Text		Editor	normal	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		
Defects Awaiting Review	53439	Updating failed. The response is not a valid JSON response.		Editor	major	defect (bug)	new	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	5.7.2	dev-feedback
Defects Awaiting Review	53434	Reusable Blocks - raised a ticket in March (now closed) but still have a problem		Editor	critical	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	5.7.2	
Defects Awaiting Review	53391	Block editor Code and Preformatted failing to accept text		Editor	normal	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	5.7.2	
Defects Awaiting Review	53256	Cover images within a column break the editor		Editor	normal	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	5.7.2	
Defects Awaiting Review	53254	YouTube blocks becomes uneditable		Editor	normal	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	5.7.2	
Defects Awaiting Review	53208	WordPress editor documentation: a few suggested changes		Editor	normal	defect (bug)	new	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		needs-docs
Defects Awaiting Review	53026	"register_block_type_from_metadata fails if path points to a JSON file that is not named ""block.json"""		Editor	normal	defect (bug)	new	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	5.5	dev-feedback
Defects Awaiting Review	52918	WordPress 5.7 block parent focus bug for reusable block		Editor	normal	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	5.7	
Defects Awaiting Review	53027	gutenberg editor: click on document-outline elements has no effect.		Editor	major	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	5.7	
Defects Awaiting Review	50648	Different behavior for default category term with editors		Editor	normal	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	5.5	
Defects Awaiting Review	50146	Blocks: `serialize_block()` doesn't support `WP_Block_Parser_Block`		Editor	normal	defect (bug)	new	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	5.3.1	has-patch
Defects Awaiting Review	52570	"WordPress 5.6.1 bug/error ""Publishing failed. The response is not a valid JSON response."""		Editor	normal	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	5.6.1	needs-patch
Defects Awaiting Review	51644	allowed_block_types breaks if array keys become non-sequential		Editor	minor	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	5.5.1	
Defects Awaiting Review	52475	Metaboxes unable to be moved to side panel anymore?		Editor	normal	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	5.6.1	
Defects Awaiting Review	52540	WordPress 5.6.1 blocking new posts		Editor	blocker	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	5.6.1	
Defects Awaiting Review	52415	Apostrophe transformed in HTML entity in the page parent selector		Editor	normal	defect (bug)	new	2021-02-01T15:10:05Z	2021-02-14T14:02:24Z	"Wordpress 5.6

If you have a page with apostrophe in the title, when you want to add this page as a parent page, the apostrophe is not interpreted correctly.

Instead of having ""Aujourd'hui' we have ""Ajourd&rsquo;hui""

I'm not sure if it's gutenberg related..."	jihaisse	5.6	has-patch
Defects Awaiting Review	52305	WordPress Classic & Gutenberg Editor - ENTER key casing Textarea View Position To Jump		Editor	normal	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		
Defects Awaiting Review	50226	Updating block attribute meta (type array) fails if it is the only meta attribute		Editor	normal	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	5.4.1	
Defects Awaiting Review	50110	Incorrect property docblocks in WP_Block_Type	peterwilsoncc	Editor	minor	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	5.0	
Defects Awaiting Review	52308	"WordPress Editor does not preserve ""blank"" (empty) lines in Code/Text mode"		Editor	normal	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		
Defects Awaiting Review	52215	conflict with useBlockProps()		Editor	normal	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		
Defects Awaiting Review	49894	Drag & Drop image upload error on multisite install when no upload space available		Editor	normal	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		
Defects Awaiting Review	52054	WordPress 5.6 broke my ability to create posts.		Editor	normal	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		
Defects Awaiting Review	51989	Preview does not reflect layout change on published posts		Editor	normal	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		
Defects Awaiting Review	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	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		
Defects Awaiting Review	50132	Word Counter on Classic Editor is bugged		Editor	normal	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	5.4.1	
Defects Awaiting Review	31751	Using PgDn and PgUp keyboard keys in the editor scrolls both post edit box and the whole viewport		Editor	normal	defect (bug)	new	2015-03-24T16:42:26Z	2020-11-24T06:13:57Z	"The editor in WordPress 4.1 is great, and the whole sticky sidebar is a great improvement, but editing using Page Down and Page Up keys as part of the workflow is some of the most frustrating experience one can have because they control both the cursor in the post edit box and the page itself.

For example, if I go into a short post, put the cursor at the beginning of the post, and press Page Down, I'm going to end up with this: [[Image(http://i.imgur.com/CZr3FXQ.png)]]

At this point, I can only see a tiny sliver of the post because the page has scrolled too.

This is similar to #30919, except I'm not talking about the distraction-free mode, which I almost never use.

Windows 8.1 on Chrome 42 beta, but this behavior has been the same for as long as I can remember."	archon810	4.1.1	needs-patch
Defects Awaiting Review	31375	Image caption with heading adds an empty paragraph at page edits		Editor	normal	defect (bug)	new	2015-02-19T11:22:17Z	2020-11-24T06:11:30Z	"Hi,

I'm experiencing a problem when trying to use heading tags within image captions. Upon inserting (or editing) the image on a page, I wrote a heading before a block of text in the caption. The whole thing would look something like this:

{{{
<h3>Heading here</h3>A block of text directly following the heading.
}}}

What happens is that every time I edit the page in any way (not even touching the image or image caption) there is an extra empty paragraph added to the caption text. That means that anything below the caption jumps one line further down at every edit.

Just to see if this is some plugin conflict, I created a clean WordPress install without plugins, and tried the same thing. The problem was reproduced. Looking at the html code generated, there is a new <p></p> added at every page edit, and sometimes a couple of <br /> are inserted before the heading tags. Here is a link to my test site:

[http://dev.webbkoncept.se/themetest/]

I tried it using both themes twenty fourteen and twenty fifteen, experiencing the same bug."	sweman	4.1	needs-patch
Defects Awaiting Review	47187	<!--more--> tag on same line as content prevents any edits to that line	SergeyBiryukov*	Editor	normal	defect (bug)	accepted	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	5.2	has-patch
Defects Awaiting Review	40964	WordPress 4.8 Pasting into editor functionality changed		Editor	normal	defect (bug)	new	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	4.8	has-patch
Defects Awaiting Review	45126	Expired session post editing continuation bug		Editor	normal	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	4.9.8	
Defects Awaiting Review	51721	wp-admin/js/post.(min.)js does not successfully validate post dates within years 0000—0100		Editor	normal	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	2.9	
Defects Awaiting Review	49393	Author user role, Gutenberg add picture from someone else, rest_forbidden_context crash, image size crash		Editor	normal	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	5.3.2	
Defects Awaiting Review	46655	Block editor adding line breaks between blocks		Editor	minor	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	5.1	
Defects Awaiting Review	51323	Multiple Reference Id backend issue in Inner block component		Editor	normal	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		
Defects Awaiting Review	51080	Spacing in embed when para begins with emoji		Editor	normal	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	5.5	
Defects Awaiting Review	46153	Leading space after past text from docx		Editor	normal	defect (bug)	new	2019-01-31T01:09:31Z	2020-08-24T23:36:55Z	"Please copy and past text from atatchment to block editor.

You will see space before every text line.
"	alexufo	5.0.3	
Defects Awaiting Review	48464	Issues with non-breaking spaces on Windows		Editor	normal	defect (bug)	new	2019-10-30T11:01:40Z	2020-08-17T14:21:36Z	"Hello, 

I recently noticed an issue with non-breaking spaces: when inserted with keyboard shortcuts (like `ALT+255` on Windows or `ALTGr+<` using an enhanced keyboard), they seem to be removed by WordPress (or not interpreted as such at all).

We need to add them either by typing `&nbsp;` or by pasting it from an external file. Which is not very convenient.

With @webaxones and @audrasjb we did some digging, here's what we found:

1/ It seems to appear only on Windows (tested on Windows 10) since JB tested it on his Mac and couldn't reproduce it

2/ It does not seem to be browser specific since we reproduced the bug on Chrome 78.0.3904.70 and Firefox 70.0;

3/ It's not plugin related since I've been able to reproduce it on a fresh install;

4/ It's not somehow Gutenberg related since I've been able to reproduce it on a totally random old version: WP 4.7.7 (fresh install as well, haven't tried with older versions);

5/ It may be related to #26842;

6/ Other shortcuts works fine;

7/ We tested the shortcuts on other browser-based editors (like Google Docs) and they work fine.


As far as we know, it could be either (or both):
- A very old issue with WordPress
- A bug related to a change made in Windows or in browsers that affects how WordPress interacts with these shortcuts.

Thanks,

"	peexy		
Defects Awaiting Review	50108	Custom Post Type with public => false still generates/reserves title as permalink		Editor	minor	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	5.4.1	
Defects Awaiting Review	49857	Groups disappear after inserting something inside it in Gutenberg		Editor	normal	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	5.4	needs-patch
Defects Awaiting Review	48698	"Update fails if there’s a ""Custom Html"" block and an Iframe inside it"		Editor	normal	defect (bug)	new	2019-11-18T12:10:39Z	2020-04-01T18:33:54Z	"When creating a new post or updating an old post, If there's a ""Custom Html"" block with an Iframe inside it, save always fails - regardless of what's in that block.

It gives the following error:
Updating failed. Error message: The response is not a valid JSON response."	ozgurnevres	5.3	
Defects Awaiting Review	49333	Image on text section of Media & Text block not displaying on front side		Editor	normal	defect (bug)	new	2020-01-31T06:42:24Z	2020-02-19T20:45:01Z	If we enable 'Crop image to fill entire column' option for Media & Text block, Image placed through Image block to the Text section of Media & Text block remains hidden on front end.	ramizmanked		
Defects Awaiting Review	45852	Tick Box Open link in new tab...		Editor	normal	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	5.0.2	
Defects Awaiting Review	45829	New editor replaces > with &gt; within <pre> tag		Editor	major	defect (bug)	new	2019-01-04T13:09:07Z	2020-01-14T19:07:58Z	"Hi,
I just updated to WordPress 5 and started using the new block editor.

I typeset source code in my posts using a <pre> tag. This code contains a > comparison operator. Upon saving my draft, > gets replaced with &gt;, and this entity is also displayed in the article preview.

This happens even if I disable the visual editor.

The old editor does not present this bug and installing the Classic Editor extension allowed me to work around this."	yannsalmon	5.0.2	dev-feedback
Defects Awaiting Review	48915	Gutenberg Paragraph Block, Drop Cap missing sanitize rule for initial hard return line <br>		Editor	minor	defect (bug)	new	2019-12-09T05:01:54Z	2020-01-10T21:15:46Z	"When content has dirty markups, or mistaken is made with hard return before input, more specifically a <br> markup as first element, Drop Cap option can be enable but there is no effect on the first letter in the rendered content.
See example:

{{{
<!-- wp:paragraph {""dropCap"":true} -->
<p class=""has-drop-cap""><br>Lorem Ipsum quam quasi mollitia</p>
<!-- /wp:paragraph -->
}}}
"	Giorgio25b	5.3	needs-patch
Defects Awaiting Review	45062	tinyMCE editor breaks captions with HTML		Editor	normal	defect (bug)	new	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	4.9.8	dev-feedback
Defects Awaiting Review	48539	WordPress Editor sometimes chops off titles in Chrome		Editor	minor	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	5.2.4	
Defects Awaiting Review	47930	Photo gallery captions bug		Editor	critical	defect (bug)	new	2019-08-23T20:58:24Z	2019-10-19T12:06:12Z	"I detected an error in the Gutenberg photo gallery photo captions.

If gallery photos contain captions (the text that is in the black gradient over each image), when you make any changes to this gallery (include or remove photos, for example), all captions disappear.

The error happens in the latest version of WordPress (5.2.2) regardless of the theme used."	mvaweb	5.2.2	
Defects Awaiting Review	48336	Global block editor image styles causing problems		Editor	normal	defect (bug)	new	2019-10-17T05:34:17Z	2019-10-18T01:54:32Z	"I was just testing WordPress 5.3 RC1 on my site and I noticed that the images layout was broken in one of the elements. The element is a custom theme element that is outside the main content area (it is not added from the editor). Then I noticed the following global CSS that is added globally for all images on the front-end in the /wp-includes/css/dist/block-library/style.css:


{{{
img {
  max-width: 100%;
  height: auto; }
}}}


I think that there will be many others affected by this global CSS, especially the `max-width: 100%;` property. Some more dynamic elements (like sliders) that assume the default image max-width being none, and need the image to overflow its parent will now look broken with this global rule.

I'm not very familiar with the block editor internals, but I believe that those styles should be somehow scoped to the block editor elements only and not applied globally to all elements on the front-end.
"	dennis_f	5.3	
Defects Awaiting Review	48151	Setting featured image appears to use site URL instead of WordPress URL		Editor	normal	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	5.2.3	
Defects Awaiting Review	47971	HTML markup bugs when using custom HTML editor		Editor	normal	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		
Defects Awaiting Review	37829	Problem when adding a link and searching published articles		Editor	normal	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	4.5	needs-patch
Defects Awaiting Review	46405	The editor has encountered an unexpected error		Editor	normal	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	5.1	
Defects Awaiting Review	44980	When using a mobile browser (iOS 12) and the Visual Editor you won’t be able to properly select/highlight text		Editor	normal	defect (bug)	new	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	4.9.8	has-patch
Defects Awaiting Review	46100	Custom field validation is not working in Gutenberg Editor		Editor	major	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		
Defects Awaiting Review	45744	post preview does not work		Editor	critical	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		
Defects Awaiting Review	45743	revisions  issue with block editor		Editor	major	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	5.0.2	
Defects Awaiting Review	45742	"When using HTTPS, ""preview post"" fails."		Editor	normal	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	5.0.2	
Defects Awaiting Review	45620	Issues with WordPress 5.0		Editor	normal	defect (bug)	new	2018-12-13T10:54:40Z	2018-12-17T00:00:56Z	"I have loved using WordPress over the last few years but cannot express how horrible this new version of WordPress is. It has made WP the least user friendly web editor in the universe...

Here's a few of the things I find most irritating:

Get rid of the multiple scrolling, including the ""Document"" panel on the right of screen (Permalinks, Categories, Tags etc)

Preview button displays the existing published paged, not most recent edits

Adding an image is more complicated, as is adding a link to media item such as a PDF document. Need to add a block, upload the PDF, copy the link, delete the block then create a hyperlink.

Clicking the Use classic WordPress editor button doesn't work/no change

Switching between visual editor and code editor involves more navigation. Please add it to the main tool bar

If you preview a webpage it opens in the same tab as WordPress. Sometimes it is helpful easily view both the editor and the previewed page in order to make the required changes.

Occassionally the Add hyperlink field is locked open, cannot close it, so it floats over the webpage being edited.

Auto save can take too long. Even for a standard page of text with a feature image. "	lccwgtn		
Defects Awaiting Review	45532	WordPress 5.0 preview does not show updated content		Editor	normal	defect (bug)	reopened	2018-12-08T03:34:48Z	2018-12-13T03:09:59Z	"When making an update to a page using the WordPress 5.0 code editor and then clicking ""Preview,"" the preview page does not display the updated content.

Steps to reproduce: 
- Log in as an admin
- Click Pages
- Select a page to edit
- Click the 3 dots menu on the right
- Select ""Code Editor""
- Make changes to code within the editor
- Click Preview in the top right

Expected result: Updated code will be displayed in the preview page

Actual result: The preview page displays the unedited page until the ""Update"" button is clicked"	JoshCrawford	5.0	needs-patch
Defects Awaiting Review	41511	Attachment page URL not created correctly for image uploaded directly to library before being added to post		Editor	normal	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	4.8	
Defects Awaiting Review	43267	"Admin editor ""Insert link"" modal on mobile seems to have incorrect styling"		Editor	normal	defect (bug)	new	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	4.8.3	has-patch
Defects Awaiting Review	41229	the tag read more is not working		Editor	normal	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	4.8	
Enhancements Awaiting Review	66640	Tests: Cover deprecated feature-level selectors in WP_Theme_JSON	wildworks	Editor	normal	enhancement	closed	2026-11-10T03:42:56Z	2026-11-10T08:14:01Z	"Adds dedicated unit test coverage for deprecated feature-level selectors defined via `__experimentalSelector` in block supports.

The existing test relied on the Calendar block's metadata. Gutenberg PR [https://github.com/WordPress/gutenberg/pull/64345 #64345] replaces that block's deprecated color selector with stable block selectors, so the test would no longer exercise the deprecated path. A purpose-built test block keeps the coverage independent of any core block's metadata.

The Tests:
 * Register a test block that uses `__experimentalSelector`.
 * Verify the generated color and typography CSS.
 * Clean up the registered block during teardown.

Backports for: [https://github.com/WordPress/gutenberg/pull/64345 Gutenberg #64345]"	shailu25		has-patch
Enhancements Awaiting Review	66601	Tests: Add unit tests for the server-side rendering of the Comments block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66600	Tests: Add unit tests for the server-side rendering of the Latest Posts block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66599	Tests: Add unit tests for the server-side rendering of the Button block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66598	Tests: Add unit tests for the server-side rendering of the Calendar block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66597	Tests: Add unit tests for the server-side rendering of the File block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66596	Tests: Add unit tests for the class that the Heading, List and Paragraph blocks add on the server		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66595	Tests: Add unit tests for the server-side rendering of the Latest Comments block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66594	Tests: Add unit tests for the server-side rendering of the Categories List block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66593	Tests: Add unit tests for the server-side rendering of the Archives block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66592	Tests: Add unit tests for the server-side rendering of the Media & Text block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66590	Tests: Add unit tests for the server-side rendering of the Breadcrumbs block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66589	Tests: Add unit tests for the server-side rendering of the Navigation Submenu block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66588	Tests: Add unit tests for the server-side rendering of the Page List block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66587	Tests: Add unit tests for the server-side rendering of the Playlist block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66586	Tests: Add unit tests for the server-side rendering of the Icon block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66582	Tests: Add unit tests for the Avatar block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66581	Tests: Add unit tests for the Home Link block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66580	Tests: Add unit tests for the server-side rendering of the Playlist Track block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66579	Tests: Add unit tests for the server-side rendering of the Pattern block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66578	Tests: Add unit tests for the server-side rendering of the Navigation Overlay Close block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66577	Tests: Add unit tests for the server-side rendering of the Login/out block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66576	Tests: Add unit tests for the server-side rendering of the Accordion Item block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66575	Tests: Add unit tests for the server-side rendering of the Accordion block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66574	Tests: Add unit tests for the server-side rendering of the Details block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66573	Tests: Add unit tests for the server-side rendering of the Query Pagination Numbers block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66572	Tests: Add unit tests for the server-side rendering of the Query Pagination Previous block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66571	Tests: Add unit tests for the server-side rendering of the Query Pagination Next block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66570	Tests: Add unit tests for the server-side rendering of the Query Pagination block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66569	Tests: Add unit tests for the server-side rendering of the Query No Results block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66568	Tests: Add unit tests for the server-side rendering of the Query Total block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66567	Tests: Add unit tests for the server-side rendering of the Query Title block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66564	Blocks: Support file: paths for block icons in block.json		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66534	Tests: Add unit tests for the Search block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66533	Tests: Add unit tests for the variations of the Template Part block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66532	Tests: Add unit tests for the Site Logo block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66530	Tests: Add unit tests for the Query block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66529	Tests: Add unit tests for the Social Link block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66528	Tests: Add unit tests for the server-side rendering of the Tab List block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66527	Tests: Add unit tests for the server-side rendering of the Tab Panel block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66526	Tests: Add unit tests for the server-side functions of the Tabs block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66519	Tests: Add unit tests for the server-side rendering of the Read More block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66518	Tests: Add unit tests for the server-side rendering of the Site Tagline block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66517	Tests: Add unit tests for the server-side rendering of the Site Title block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66515	Tests: Add unit tests for the server-side rendering of the Video block		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66510	Add unit tests for wp_is_explicit_aspect_ratio_value() and wp_should_add_elements_class_name()		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66509	Add unit tests for the block supports helper functions that have no tests		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66504	Add unit tests for WP_Block_Pattern_Categories_Registry		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66469	Theme JSON: Allow a theme to name the template its templates are rendered inside		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66420	Editor: Stop loading block content styles outside the post editor canvas		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65907	Restore the revisions easter egg	adamsilverstein	Editor	normal	enhancement	assigned	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		has-patch
Enhancements Awaiting Review	66198	Typography: Add font-stretch and font-variation-settings support to Theme JSON styles		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66333	A request for a Story Editor or Plain Text Editor to make editing invisible text quicker than going to Code Viewer		Editor	normal	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		
Enhancements Awaiting Review	66306	Editor: Support spacing presets for text indent		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66264	Blocks: Add asset file (.asset.php) support for styles in register_block_style_handle()		Editor	normal	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	trunk	
Enhancements Awaiting Review	66105	Site Editor: Preserve block search state when returning from a block in Styles		Editor	normal	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	7.1	
Enhancements Awaiting Review	66172	Editor: Add space-around and space-evenly flex justification options		Editor	normal	enhancement	new	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	trunk	has-patch
Enhancements Awaiting Review	65897	Surface community-contributed patterns from the Pattern Directory in the editor (opt-in)	ugyensupport	Editor	normal	enhancement	assigned	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		has-patch
Enhancements Awaiting Review	66115	PLEASE reword and revamp how “Inner blocks use content width” is used!		Editor	normal	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	7.1	
Enhancements Awaiting Review	65866	Editor: Allow notes on templates and template parts		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65841	theme.json settings.viewport: warn when a breakpoint is dropped		Editor	normal	enhancement	new	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	7.1	has-patch
Enhancements Awaiting Review	65628	PHP-only blocks: in-canvas editing		Editor	normal	enhancement	new	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	7.1	has-patch
Enhancements Awaiting Review	65614	Site Editor: skip block-theme-only preloads for classic themes		Editor	normal	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	7.1	
Enhancements Awaiting Review	65335	Show a warning message about a commented-out Gutenberg block in the Classic Editor.		Editor	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	64608	Add support for Terms Query Pagination blocks		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65361	Modify the notes capability model		Editor	normal	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		
Enhancements Awaiting Review	65356	Columns block conversion workflow from 2 to 3 or 4 columns is not intuitive		Editor	normal	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	7.0	
Enhancements Awaiting Review	65332	Custom HTML block should display the HTML code by default		Editor	major	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	7.0	
Enhancements Awaiting Review	64725	Background block support: render uploaded images as <img> for responsive image support		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65120	Add `wp_elements_block_supports_class_name` filter to `wp_get_elements_class_name()`		Editor	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	57420	Add filter for wp_theme_get_element_class_name		Editor	minor	enhancement	closed	2023-01-04T10:09:25Z	2026-04-08T13:34:44Z	"Hello,

I think it would be a good idea to add a filter to the wp_theme_get_element_class_name or WP_Theme_JSON::get_element_class_name function return. This would allow to add classes programmatically to the elements.

It could be something like that :


{{{#!php
<?php
public static function get_element_class_name( $element ) {
	$class_name = '';

	if ( array_key_exists( $element, static::__EXPERIMENTAL_ELEMENT_CLASS_NAMES ) ) {
		$class_name = static::__EXPERIMENTAL_ELEMENT_CLASS_NAMES[ $element ];
	}

	return apply_filters( ""element_{$element}class_name"", $class_name );

	// Or another option, without dynamic part.
	return apply_filters( ""element_class_name"", $class_name, $element );


}
}}}



Have a nice day."	benjgrolleau		has-patch
Enhancements Awaiting Review	59562	edit_form_after_title Hook Not Functional in Block Editor on New Post Page.		Editor	normal	enhancement	new	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	6.3.2	dev-feedback
Enhancements Awaiting Review	62791	Could `pre_render_block` come later		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	64360	enqueue_block_assets action ignores script modules		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	64521	Blocks: Move block parser PHP classes from Gutenberg to Core	dmsnell	Editor	normal	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		
Enhancements Awaiting Review	61073	Cover Block Improvement		Editor	minor	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	6.5	
Enhancements Awaiting Review	62256	A suggestion for binding blocks.		Editor	normal	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		
Enhancements Awaiting Review	43702	Empty State UX for Posts & Pages screen when there is no content		Editor	normal	enhancement	new	2018-04-05T16:35:04Z	2025-10-31T18:36:22Z	"The default screen people see when they first visit the Posts, Pages, etc., dashboard sections is quite uninspiring.

Taking a cue from WooCommerce's default product screen (screenshot included), we can enhance the default Posts & Pages screens to make it a bit more welcoming to new users."	mrtortai		
Enhancements Awaiting Review	63067	Allow non queryable taxonomies to be queried in Query Block		Editor	normal	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		
Enhancements Awaiting Review	61325	Ability to control editor preview breakpoints		Editor	normal	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	6.5.3	
Enhancements Awaiting Review	53287	Make SEO Meta Data Easy		Editor	normal	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	5.7.2	
Enhancements Awaiting Review	62769	Saving Post without Title and Content		Editor	normal	enhancement	new	2025-01-02T13:58:10Z	2025-09-26T12:39:37Z	"Hi Team,

While saving the post, I found that the post is saving with the title and content and showing the success message as shown in the given screenshot.

1. https://tinyurl.com/28oxwfk9

By clicking into the View Post, it opens the **404** page, which is not correct either.

I would suggest adding some validation to check if the **title** should not be blank, or else there might be a proper message. Also, if that post is added, it should show in the post lists.

Thanks
Tristup



"	tristup		has-patch
Enhancements Awaiting Review	39624	Misleading warning when editing the page_for_posts page		Editor	normal	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	4.2	
Enhancements Awaiting Review	40608	show view link and permalink when editing a post even if post type does not supports 'title'		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	39841	Additional Post Button Options		Editor	normal	enhancement	new	2017-02-10T18:38:24Z	2025-09-13T13:36:58Z	"Turn ""Update""/""Publish"" into a button with a dropdown. So if a user selects say Update & Return it will redirect the user back to the posts admin screen. If a users selects the Update & Add New option then it would update that existing post, then redirect to a new posts screen or return to the post list screen instead."	lukecavanagh		
Enhancements Awaiting Review	46171	"Add ""backing up this post in your browser"" label to post-type"		Editor	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	62470	Filter for get_the_block_template_html		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	63089	Request: Previous / Next Buttons for WP Admin		Editor	normal	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		
Enhancements Awaiting Review	59811	Remove suggestion to add tags and categories		Editor	normal	enhancement	new	2023-11-06T10:37:05Z	2025-03-06T06:41:00Z	"Right now, in the pre-publish screen, we suggest users to add tags and categories to their post. I'd like to make a few changes to what we do there, and I'll explain why:

- If no tags and no categories are selected, we could suggest adding either a tag or a category. But:
  - If a site doesn't have any tags, we shouldn't suggest adding tags.
  - If a site doesn't have any categories, we shouldn't suggest adding categories.
  - If this leads to not suggesting either, then that's fine.

Right now, we suggest adding tags ''and'' categories to every page. Every time someone creates a new tag that way, we create a new URL on the internet that needs to be crawled, when really that page might not be very useful at all.

In my ideal world, if a theme has no support for tags (many don't show tags on post pages), we shouldn't even have an interface for it. We might consider adding something like an `add_theme_support` feature for tags, where we default to it being on but allow themes to `remove_theme_support` for tag pages and then not show tags in the interface, or something similar to that extent."	joostdevalk		
Enhancements Awaiting Review	53602	Expand get_post's $filter parameter to allow a blocks as a return shape		Editor	normal	enhancement	new	2021-07-06T09:56:21Z	2024-12-11T09:28:07Z	"Part of ""PHP APIs Overview"" in Gutenberg: https://github.com/WordPress/gutenberg/issues/8352.

`get_posts` accepts three arguments at the moment:
https://developer.wordpress.org/reference/functions/get_post/#parameters

The proposal is to expand the `$filter` parameter to accept also `blocks` as an option:

> (string) (Optional) Type of filter to apply. Accepts 'raw', 'edit', 'db', or 'display'.
> Default value: 'raw'

The implementation details are still to be defined but it would probably require a [https://developer.wordpress.org/reference/functions/parse_blocks/ `parse_block`] function call.
"	gziolo	5.8	
Enhancements Awaiting Review	55780	Global Styles: Introduce filter for toggling stylesheet cache		Editor	normal	enhancement	new	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	5.9	has-patch
Enhancements Awaiting Review	61599	Can synchronize with pages and templates ?		Editor	normal	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	6.5.5	
Enhancements Awaiting Review	61422	registerBlockVariation not holding the blockName param		Editor	normal	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		
Enhancements Awaiting Review	61472	Widths of Row/Stack inside of a Stack in Gutenberg Editor		Editor	normal	feature request	new	2024-06-20T05:00:59Z	2024-08-01T11:48:14Z	"It would be very helpful for us if there is an option in the Gutenberg Editor to set custom Width of Row/Stack inside of a Stack. Currently we can set width of blocks inside of a Row, but we can only set Height of Blocks inside of a Stack. It will be really good to have an option to set Width of the Blocks inside of a Stack also. Infact it will be a good option to have to all blocks to set it’s dimensions irrelevant of where they are being used.

I have attached two screenshots showing that we can only set height of blocks inside of Stacks."	posimyththemes		
Enhancements Awaiting Review	61473	Feature to set Absolute & Relative position of Blocks in Gutenberg Editor		Editor	normal	feature request	new	2024-06-20T05:02:33Z	2024-07-31T14:36:31Z	It would be very helpful for us if there is an option in the Gutenberg Editor to set Absolute & Relative Position of Blocks. Currently we only have support setting position to sticky, but in some cases that’s not enough. Like for an Example if we want to build a Notification Badge (1) in top-right corner in some Stack/Row, there is no Absolute/Relative positioning available in Gutenberg Editor. For such cases if there is an option available to position any Block anywhere in absolute/relative position it will be really helpful.	posimyththemes		
Enhancements Awaiting Review	61696	Make overriding and back porting classes from gutenberg repo easier		Editor	normal	enhancement	new	2024-07-18T17:02:38Z	2024-07-18T18:50:14Z	"The gutenberg repo overrides a number of core classes, including but not limited to 

- WP_Theme_JSON -> [https://github.com/WordPress/gutenberg/blob/0ba206b88120ef93da94cd7df6e427cf918700e9/lib/class-wp-theme-json-gutenberg.php WP_Theme_JSON_Gutenberg] 
- WP_Theme_JSON_Data -> [https://github.com/WordPress/gutenberg/blob/0ba206b88120ef93da94cd7df6e427cf918700e9/lib/class-wp-theme-json-data-gutenberg.php WP_Theme_JSON_Data_Gutenberg]
- WP_Theme_JSON_Resolver -> [https://github.com/WordPress/gutenberg/blob/0ba206b88120ef93da94cd7df6e427cf918700e9/lib/class-wp-theme-json-resolver-gutenberg.php WP_Theme_JSON_Resolver]
- WP_Theme_JSON_Schema -> [https://github.com/WordPress/gutenberg/blob/0ba206b88120ef93da94cd7df6e427cf918700e9/lib/class-wp-theme-json-schema-gutenberg.php WP_Theme_JSON_Schema_Gutenberg]
- WP_Duotone -> [https://github.com/WordPress/gutenberg/blob/0ba206b88120ef93da94cd7df6e427cf918700e9/lib/class-wp-duotone-gutenberg.php WP_Duotone_Gutenberg]

Currently this has a number of issues, including
- Overrides are not perfect, so it is unperdictable what version of this class will be used, core or gutenberg. 
- It makes backporting changes to these classes a manaul process. 
- It makes it hard to write unit test the code. 

Recommendation

Add filters similar to `parse_blocks` function. 
{{{#!php
function parse_blocks( $content ) {
	/**
	 * Filter to allow plugins to replace the server-side block parser.
	 *
	 * @since 5.0.0
	 *
	 * @param string $parser_class Name of block parser class.
	 */
	$parser_class = apply_filters( 'block_parser_class', 'WP_Block_Parser' );

	$parser = new $parser_class();
	return $parser->parse( $content );
}

}}}

Possible issues: 

A number of these classes, have static methods and consts, that make referencing class name by string a little harder. 
"	spacedmonkey	5.0	
Enhancements Awaiting Review	61551	Page template list lacks sorting		Editor	normal	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	6.5.5	
Enhancements Awaiting Review	61254	Backport: Introduce new dedicated media search handler and add new label field search handler		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	61001	"Hide the Editor Page Title when the current Template is ""Page No Title"""		Editor	trivial	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	6.5	
Enhancements Awaiting Review	60968	Create action `edit_form_before_title`		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	60829	Improve shortcode support for link fields		Editor	normal	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		
Enhancements Awaiting Review	60830	Advanced Editor Tools - SIMPLE SORT		Editor	normal	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	5.9.2	
Enhancements Awaiting Review	60773	Add a new Post from the editor		Editor	normal	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		
Enhancements Awaiting Review	60696	Block hooks: Allow insertion of a hooked block with attributes		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	58799	Need to add filter to register a template in [NEW] WordPress site editor through a plugin		Editor	blocker	enhancement	new	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	6.2.2	has-patch
Enhancements Awaiting Review	60587	Block hooks: Allow filtering of block data on traversal		Editor	normal	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		
Enhancements Awaiting Review	60020	Padding issue on adding background color		Editor	normal	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		
Enhancements Awaiting Review	60001	Deprioritize categories		Editor	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	60393	Test with Gutenberg active		Editor	normal	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		needs-patch
Enhancements Awaiting Review	60152	"Footnotes save to public, unprefixed ""footnotes"" field"		Editor	normal	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	6.4.2	
Enhancements Awaiting Review	60063	Add a dynamic hook to filter the pre-rendered content of a single block.		Editor	normal	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		
Enhancements Awaiting Review	58786	Support for adding custom, post-level meta descriptions in WP core.		Editor	normal	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		
Enhancements Awaiting Review	54653	Alphabetically sorted Headers in a Single Blog Post		Editor	normal	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		
Enhancements Awaiting Review	59620	Remove a query to /wp-json/wp/v2/users from the editor where there isn't a real need		Editor	normal	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		
Enhancements Awaiting Review	59396	Allow the user to add a poster to YouTube videos		Editor	normal	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	6.4	
Enhancements Awaiting Review	59201	Taxonomy Query Loop		Editor	normal	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		
Enhancements Awaiting Review	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	normal	enhancement	new	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	6.2	dev-feedback
Enhancements Awaiting Review	58153	Ctrl + SHIFT + D conflicts with browser shortcuts		Editor	normal	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	6.2	
Enhancements Awaiting Review	57849	About supporting markdown officially		Editor	normal	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	6.2	
Enhancements Awaiting Review	54975	Allow filtering global styles		Editor	normal	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	5.9	
Enhancements Awaiting Review	56522	Add filter for wp_get_layout_style		Editor	normal	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	5.9	needs-patch
Enhancements Awaiting Review	57421	Editor: add new parameter to hook when enqueuing block assets		Editor	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	54850	New filter for build_query_vars_from_query_block()		Editor	normal	enhancement	new	2022-01-18T10:37:25Z	2022-12-19T14:03:59Z	"As raised in [https://github.com/WordPress/gutenberg/issues/36504 Gutenberg #36504] a filter to modify and extend the query for the query block would be helpful. 

This would allow developers to add new attributes to the query loop block and then pass them to the query."	grapplerulrich	5.8	has-patch
Enhancements Awaiting Review	57016	When searching for a block, there is an unexpected blank space at the bottom of the Editor		Editor	normal	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	6.1	
Enhancements Awaiting Review	56069	Footer Template Parts and Reusable Blocks Have Added Spacing By Default		Editor	normal	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	6.0	
Enhancements Awaiting Review	55951	Page List and Latest Posts Text Colors Do Not Automatically Adjust to Background Color in 6.0		Editor	major	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	6.0	
Enhancements Awaiting Review	55913	Custom Fields table can have extra-wide checkboxes and radio buttons		Editor	normal	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	6.0	
Enhancements Awaiting Review	50615	Editor: Create standalone JSON schema for block type definition		Editor	normal	feature request	new	2020-07-08T16:34:50Z	2022-04-30T04:59:05Z	"There is an existing schema for block type definition embedded in the new REST API endpoint:

https://github.com/WordPress/wordpress-develop/blob/c3993eb19dee52dfd6ca9f9ef7cec785538e361d/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php#L363-L569

There is also another schema being developed for Block Directory that will take part in `block.json` file validation:

https://github.com/tellyworth/plugin-directory/blob/25388b9c12193194a16db5264ed84f2f3965552e/block-json/class-validator.php#L36-L182

It would be great to consolidate efforts and make such schema publicly accessible as it would benefit other projects in the WordPress ecosystem like WP-CLI. There is a related discussion related to translatable strings extraction, see https://github.com/wp-cli/i18n-command/pull/210#issuecomment-634107470

> This kind of schema would need to live somewhere outside of WordPress context, where WP-CLI and other tools can easily assess which fields in `block.json` are translatable and which aren't.

All that would make it also possible to easily extend the schema in one place and related tools consuming it could automatically adjust their behavior based on the changes applied."	gziolo		
Enhancements Awaiting Review	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	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		
Enhancements Awaiting Review	54305	Transition of block editor width when previewing desktop/tablet/mobile causes multiple resize events (and unnecessary lag)		Editor	normal	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		
Enhancements Awaiting Review	54024	Internal links with href=outdated-slug and a data-type data-id as fallback should use that and update href=new-slug instead of resulting in broken link (404)		Editor	normal	feature request	new	2021-08-27T13:16:19Z	2021-09-06T19:35:30Z	"**1) The main expectation is in the issue title:**
- Internal links, that are inline A elements with href=outdated-slug and which have the attributes data-type data-id as fallbacks should indeed use that fallback and update href=new-slug instead of resulting in a broken link (404), as I experienced it on **Wordpress 5.8 on a PHP 8 server with the Astra theme**.

Thoughts:
- Maintaining and updating internal pretty-URLs, I deem that a core feature of a CMS.
- I really hope it's only a bug, but that use case in general is handled by WordPress or if not by a pretty - robust and popular plugin (recommendations appreciated, if that's the case!).

**2) An appreciated feature would be: When changing a post's title (for all post types!) offer an option to bulk process the link text of incoming links.**

- Definition of ""link text"" a.k.a. ""link label"" a.k.a. ""navigation label"":
 - That is the text between the opening and closing of the html a tag:
{{{
<a href=""/slug-remains-same-or-gets-changed"">
Link Label was like Old Title or was a Custom Label
<a/>`
}}}

- Overall expectation: If a link has a custom link text, I'd expect that no automatic mechanism of WordPress ever kicks in, but the link text remains as is, as the link creator surely put some (contextual) consideration into it.

- When changing a page's title or slug, it would be cool to have these ""Processing options"" in a ""Title Widget"" of Gutenberg or the Classic Editor:
{{{
For internal incoming links update their link text to the new title?
(•) Don't change existing link text at all!
( ) Only if the old link text was exactly the old title [√] and in the same case
( ) Regardless of the old title  ⚠️
}}}
    - Note: The options and also the defaults are sorted from no changes at all to most destructive.
    - Hover/click on ⚠️ gives this tooltip: Warning: Authors probably put special contextual consideration when creating custom link text (aka label). This resets all those link texts to the new title. It is an un-doable batch operation! In doubt, first perform a backup.

**Followup**

- For both 1+2 see my screenshot series full with annotations, which will be attached below.

- Questions:
 - I'm not sure into which component this falls.
 - Whether 2) should be a separate ticket.
 - I used Gutenberg's ""Insert link"" feature and this creates the markup. But I am pretty sure what I observed is not Gutenberg-specific, but that generated markup and its handling the the database for rendering, is core functionality."	abitofmind		
Enhancements Awaiting Review	53630	Prior State Recall for Panes in Editor (Collapse/Expanded)		Editor	trivial	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	5.7.2	
Enhancements Awaiting Review	52819	Naming of Reusable block: make it required & unique		Editor	normal	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		
Enhancements Awaiting Review	50803	Button link missing from block settings		Editor	normal	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		
Enhancements Awaiting Review	52659	Insert Link tool should not apply anchor tag before anchor has been applied		Editor	normal	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		
Enhancements Awaiting Review	46129	Inconsistent logic in allowed_block_types		Editor	normal	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		
Enhancements Awaiting Review	48279	Avoid block markup in starter content and default pages		Editor	normal	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	5.0	
Enhancements Awaiting Review	45435	Port Gutenberg's `removep` Function to Php		Editor	normal	enhancement	new	2018-11-27T19:15:23Z	2020-11-24T02:44:43Z	"Gutenberg has `autop` and `removep` functions, code is here:

https://github.com/WordPress/gutenberg/tree/master/packages/autop

`autop` in JS is equivalent to `wpautop` in PHP.

There is no `removep` or `wpremovep` in PHP.

I have often needed it. Please port it into WordPress for PHP developers.

Thank you for your consideration."	conner_bw	4.9.8	has-patch
Enhancements Awaiting Review	50214	"Consider introducing the concept of ""Editors"""		Editor	normal	feature request	new	2020-05-20T15:55:55Z	2020-11-23T09:26:09Z	"The recent release of the Iceberg Editor plugin [https://github.com/useIceberg/iceberg-editor] (built on Gutenberg) has got me thinking about the concept of ""Editors"" and Publishing flows. The REST API opens up a huge world of possibilities in regards to editing/publishing experiences. WordPress core itself currently has 2 ""Editors"" (until at least 2022, perhaps longer):

- The Block Editor (Gutenberg)
- The Classic Editor (5+ million installs)

There are many other plugins which introduce other Publishing experiences:
- Iceberg (https://github.com/useIceberg/iceberg-editor)
- Elementor (5+ million installs)
- Divi
- Beaver Builder
- etc

If WordPress embraced these Publishing flows with a proper Editor/Publisher Registry, it would allow all of these amazing Publishing experiences to be used together, with the user being empowered to pick the right tool for the right job. 

This would even open up possibilities for plugins like WooCommerce, where a ""Product Editor"" could be created for ""Products"", allowing a completely streamlined experience for publishing products. 

Every type of content (and especially for post_types) could benefit from a streamlined publishing experience. For example, for publishing videos, a Video Editor (plugin) could emulate YouTube's step-by-step publishing experience.

If WordPress core created a proper registry for Editors/Publishers, it could empower both developers and users to build streamlined and focused publishing experiences right into the WordPress dashboard in a way that a single Editor never could. 

This seems like a natural next-step in the WordPress journey, especially watching the explosion of creativity and user-response (millions upon millions of installs) happening around publishing experiences and flows for WordPress. 

A flow for creating a new post might look like this:

1. Click on ""Create new post""
2. If multiple Editors are installed+registered for this post_type, show an Editor Picker. If only a single Editor exists for this post_type, immediately show it.
3. You now experience the publishing experience provided by that Editor, and publish. 
4. Future edits to that post will automatically use the Editor initially chosen. 
5. When viewing your existing posts in the posts UI table, a column for ""Editor"" is shown to indicate ""Gutenberg"", ""Elementor"", etc.

I think ideally this registry is something that would exist in WordPress core, giving developers an official API to work with, and a consistent flow for users to pick their editor of choice. "	johnstonphilip		
Reporter Feedback / Close	66356	Column image size		Editor	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	61347	Swapping templates hangs site		Editor	normal	defect (bug)	new	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	6.5.3	reporter-feedback
Reporter Feedback / Close	45341	WSOD when editing a page with define( 'SAVEQUERIES', true ); set in wp-config.php		Editor	normal	defect (bug)	new	2018-11-14T06:43:28Z	2026-10-07T07:10:34Z	"WSOD when editing a page (Issue introduced between v5Beta3 and v5Beta4)
{{{
[1542177584  ] PHP   7. trigger_error() /var/www/wordpress/wp-includes/functions.php:4112
[1542177584  ] PHP   6. _deprecated_hook() /var/www/wordpress/wp-includes/plugin.php:629
[1542177584  ] PHP   5. do_action_deprecated() /var/www/wordpress/wp-admin/includes/post.php:2210
[1542177584  ] PHP   4. the_block_editor_meta_box_post_form_hidden_fields() /var/www/wordpress/wp-admin/includes/post.php:2066
[1542177584  ] PHP   3. the_block_editor_meta_boxes() /var/www/wordpress/wp-admin/edit-form-blocks.php:394
[1542177584  ] PHP   2. include() /var/www/wordpress/wp-admin/post.php:160
[1542177584  ] PHP   1. {main}() /var/www/wordpress/wp-admin/post.php:0
[1542177584  ] PHP Stack trace:
[1542177584  ] PHP Notice:  edit_form_advanced is <strong>deprecated</strong> since version 5.0.0! Use block_editor_meta_box_hidden_fields instead. This action is still supported in the classic editor, but is deprecated in the block editor. in /var/www/wordpress/wp-includes/functions.php on line 4112
[1542177584  ] PHP Notice:  edit_form_after_title is <strong>deprecated</strong> since version 5.0.0! Use block_editor_meta_box_hidden_fields instead. This action is still supported in the classic editor, but is deprecated in the block editor. in /var/www/wordpress/wp-includes/functions.php on line 4112
}}}"	timhibberd	5.0	reporter-feedback
Reporter Feedback / Close	65480	Custom HTML Block hangs when switching tabs and scrolling (Gutenberg/WordPress 7.0)		Editor	major	defect (bug)	new	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	7.0	close
Reporter Feedback / Close	65494	deleting the content of a wordpress post crashes wordpress		Editor	normal	defect (bug)	new	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		close
Reporter Feedback / Close	65381	Uncaught TypeError: Cannot read properties of undefined (reading 'borderColor') in block-editor.min.js on WordPress 7.0		Editor	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	64995	Publish Button returns Code View and NOT Visual View?		Editor	normal	defect (bug)	new	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	6.9.4	reporter-feedback
Reporter Feedback / Close	64912	"Issue with the ""layout"" node on blocks in theme.json"		Editor	normal	defect (bug)	new	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	6.9.4	close
Reporter Feedback / Close	64512	Synched pattern override link		Editor	normal	defect (bug)	closed	2026-01-15T15:52:52Z	2026-02-09T13:30:22Z	"We've encountered an issue after updating to WordPress 6.9.
In WordPress 6.8.3 a synched pattern with an override on a paragraph it's possible to add a link in the paragraph. After the update to WordPress 6.9 this isn't possible anymore.

"	amazingfullstack	6.9.1	reporter-feedback
Reporter Feedback / Close	60790	Font Library: Editor has encountered an unexpected error		Editor	normal	defect (bug)	new	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	6.5	reporter-feedback
Reporter Feedback / Close	61492	For planned articles, pages 2 (to x) do not work in the preview		Editor	normal	defect (bug)	reopened	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	6.5.5	close
Reporter Feedback / Close	45691	In Code View Bolded Text Has Strong tag wrapped around each character		Editor	normal	defect (bug)	new	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	5.0.1	close
Reporter Feedback / Close	55390	Not able to choose Color picker in customizer when the blocks are added in widget		Editor	major	defect (bug)	new	2022-03-15T13:21:58Z	2026-01-29T11:59:11Z	"Hi Team,

I hope you are doing well and safe!

I would like to highlight an issue with the color picker in the customizer when using the blocks in widgets.

1. For choosing the custom color, whenever you click on the color selection, it will trigger a click event where it will ask you to leave the site or not? 
Here is the screenshot: https://share.bsf.io/YEur81BW

2. The color selection palette is not properly displayed. 
Here is the screenshot: https://share.bsf.io/wbuzJ0zq

Furthermore, I have gone ahead and found that this issue is coming from WordPress version 5.9.2

Also, I have demonstrated a video that would help you check it on your end too.

This issue is occurring on default themes as well as other famous themes as well.

Here is the screencast: https://share.bsf.io/yAuKoy2J

I would suggest you please check this on priority and release a patch for this issue, as users are facing lots of issues due to this.

Looking forward to your response."	nileshc	5.9.2	close
Reporter Feedback / Close	46389	Post Form Code Editor Issue		Editor	normal	defect (bug)	new	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	5.1	reporter-feedback
Reporter Feedback / Close	51410	Patterns examples		Editor	normal	defect (bug)	new	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	5.5.1	reporter-feedback
Reporter Feedback / Close	56519	Inner blocks serialization bug in serialize_block function		Editor	normal	defect (bug)	new	2022-09-06T08:41:24Z	2026-01-25T12:23:15Z	"Hi,

The serialize_block function https://developer.wordpress.org/reference/functions/serialize_block/ fails when the number of inner blocks increases.

The following custom function solved it for me.

{{{#!php
<?php
function custom_serialize_block( $block ) {
	$block_content = '';

	foreach ( $block['innerContent'] as $chunk ) {
		if ( is_string( $chunk ) ) {
			$block_content .= $chunk;
		} else {
			foreach ( $block['innerBlocks'] as $inner_block ) {
				$block_content .= custom_serialize_block( $inner_block );
			}
		}
	}

	if ( ! is_array( $block['attrs'] ) ) {
		$block['attrs'] = [];
	}

	return get_comment_delimited_block_content(
		$block['blockName'],
		$block['attrs'],
		$block_content
	);
}
}}}
"	saqibsarwar	5.3.1	reporter-feedback
Reporter Feedback / Close	40759	Word Count Discrepancies		Editor	normal	defect (bug)	new	2017-05-14T12:36:09Z	2026-01-19T15:27:14Z	"I've noticed several discrepancies between how WordPress, Pages, Google Docs, and Word count words. Given the following text, all four count things quite differently.

{{{
a 1
foo-bar
e.g.
jack & jill
5 @ $4.99
.
fuzz@baz.blog
}}}

|| ||= WordPress =||= Word =||= Pages =||= Docs =||
|| Individual Words (a, jack, jill) ||  3  ||  3  ||  3  ||  3  ||
|| Individual Numbers (1, 5) ||  0  ||  2  ||  2  ||  2  ||
|| Hyphenated Words (foo-bar) ||  1  ||  1  ||  2  ||  1  ||
|| Abbreviations (e.g.) ||  1  ||  1  ||  2  ||  2  ||
|| Punctuation that translates to a word (&) ||  0  ||  1  ||  0  ||  0  ||
|| Punctuation that translates to a word in this usage (@) ||  0  ||  1  ||  0  ||  0  ||
|| Punctuation that doesn't translate to a word (.) ||  0  ||  1  ||  0  ||  0  ||
|| Compound number ($4.99) ||  0  ||  1  ||  1  ||  2  ||
|| Email address (`fuzz@baz.blog`) ||  1  ||  1  ||  3  ||  3  ||

I tend to fall in the camp of ""what would a reasonable native speaker count as a word"", which is probably closest to Word's definition, minus the punctuation that doesn't translate to a word.

----

See also:

 - #57987"	pento		reporter-feedback
Reporter Feedback / Close	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	defect (bug)	new	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		close
Reporter Feedback / Close	64486	Deactivating plugin removes native wp metabox from page editor		Editor	normal	defect (bug)	new	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		close
Reporter Feedback / Close	28006	Add visual cues when viewing drafts on the frontend		Editor	trivial	feature request	assigned	2014-04-24T08:07:28Z	2025-10-30T15:34:59Z	"This is a relatively minor issue, but I've often had the problem where I think a post is published because I can view it on the frontend and there is nothing on the page that indicates that I am viewing a draft. If this happens to me from time to time then I'm sure it happens to other users too.

I propose adding a few unobtrusive visual cues to the single post page that indicates that you are viewing a draft. I have attached my changes here - they include:

* Adding ""(Draft)"" to the end the 'edit post' text in the admin bar
* Adding ""(Draft)"" to the end of the default link generated by {{{ edit_post_link() }}}
* Adding a new body class to single post pages: {{{ single-status-{status} }}}

These changes are minor enough to not break the existing display, yet significant enough to clearly show that you are currently viewing a draft. The addition of the post status to the body class will also help with customising the page according to the current status."	hlashbrooke		close
Reporter Feedback / Close	64088	Button to add a post tag breaks into new line in German translation		Editor	minor	defect (bug)	new	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	2.8	close
Reporter Feedback / Close	57443	Page template label sticks to default		Editor	normal	defect (bug)	new	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		close
Reporter Feedback / Close	57595	Filter comments_array not called for Block comments		Editor	normal	enhancement	new	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		close
Reporter Feedback / Close	7745	Private posts cannot have unpublished or pending review status		Editor	minor	enhancement	new	2008-09-15T16:32:19Z	2025-10-02T16:16:01Z	"Posts with private ticked are immediately set to published, and cannot be reverted to unpublished or pending review while private is ticked. Given the default use of private posts, this behavior is understandable, but it seems far simpler if the behavior remained consistent with public posts.

In our particular case, we are using Role Manager to allow subscribers to read private posts. A simple solution that suits our particular needs well. But we really need the full draft/review process, just as with public posts."	nyoungman		close
Reporter Feedback / Close	44651	Make the excerpt explanation filterable		Editor	normal	enhancement	new	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		needs-docs
Reporter Feedback / Close	41953	Improved Meta Box Save Hook		Editor	normal	feature request	new	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		close
Reporter Feedback / Close	53425	Allow meta_input to be updated through user input		Editor	normal	enhancement	new	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	5.8	reporter-feedback
Reporter Feedback / Close	59085	Command Palette - switching posts wrong url redirect for non FSE sites		Editor	normal	defect (bug)	new	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	6.3	close
Reporter Feedback / Close	60210	Preserving Link When Replacing the Image of an Image Block within Unsynced Patterns		Editor	minor	defect (bug)	new	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		close
Reporter Feedback / Close	61084	getDate JS error when opening post		Editor	major	defect (bug)	new	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	6.5	close
Reporter Feedback / Close	44377	"add filter to post_submit_meta_box() to conditionally refrain from outputting the ""Visibility"" fields"		Editor	normal	enhancement	new	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		close
Reporter Feedback / Close	63817	Gutenberg List View – Drag & Drop Blocks Misbehaving with Nested Columns		Editor	normal	defect (bug)	new	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	6.8.2	close
Reporter Feedback / Close	53785	Block Styles dropdown should use 'Default' instead of 'Not set'		Editor	normal	defect (bug)	new	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		close
Reporter Feedback / Close	63638	Lack of pinch-to-zoom support in Gutenberg core lightbox on mobile devices		Editor	normal	enhancement	new	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		close
Reporter Feedback / Close	63498	Improvement Native Lightbox Function		Editor	normal	feature request	new	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	6.8	close
Reporter Feedback / Close	61147	CSS: Parse Error. html :where([style * =border-top-color])		Editor	minor	defect (bug)	new	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	6.5	close
Reporter Feedback / Close	62602	Table directory not available for the wp editor		Editor	normal	defect (bug)	new	2024-11-28T14:21:00Z	2025-06-10T05:42:03Z	There is no table directory available for the TinyMCE editor of default WP Editor	meetmehta1205	6.7.1	reporter-feedback
Reporter Feedback / Close	63537	New version blows up when i just try to copy text		Editor	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	61517	New swap template feature make website not repond		Editor	critical	defect (bug)	new	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	6.5.5	reporter-feedback
Reporter Feedback / Close	62429	Can't create a new page ore update a page		Editor	minor	defect (bug)	new	2024-11-14T18:01:35Z	2025-05-12T01:38:42Z	"just updated to 6.7

Best regards HENK MUTSAERS"	uitdaging	6.7	reporter-feedback
Reporter Feedback / Close	61032	List item blocks displays unexpected or invalid content error		Editor	normal	defect (bug)	new	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	6.5	reporter-feedback
Reporter Feedback / Close	59170	Overlapping text when posting using iPhone		Editor	normal	defect (bug)	new	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	6.3	reporter-feedback
Reporter Feedback / Close	55417	Text Highlighting Broken		Editor	normal	defect (bug)	new	2022-03-17T21:25:47Z	2025-05-12T01:37:56Z	Trying to add a custom HEX, RGB, or HSL colors using the UI is just broken. Trying to input values or paste in values doesn't work. I have tried disabling all plugins and have tested it on multiple wordpress.org sites. Editing the value in the code editor still works, but it's just less convenient. Hopefully, this can get fixed next update, thanks!	notgeo	5.9.2	reporter-feedback
Reporter Feedback / Close	55271	Featured Image Section Disappears In Block Editor		Editor	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	49891	Gutenberg Block Cover - Fixed Background		Editor	normal	defect (bug)	new	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	5.4	reporter-feedback
Reporter Feedback / Close	63113	Gutenberg bug for non latin		Editor	normal	defect (bug)	new	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	6.7.2	reporter-feedback
Reporter Feedback / Close	57817	Navigation block frame responsive issue		Editor	normal	defect (bug)	new	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	6.1.1	reporter-feedback
Reporter Feedback / Close	62726	The ID of the Footnotes is updated when editing posts		Editor	normal	defect (bug)	new	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	6.7.1	reporter-feedback
Reporter Feedback / Close	61893	While creating new pattern in wordPress.org, there is issue in browse all pattern.		Editor	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	62655	Block editor styling component toolbars overlap, obscuring features.		Editor	minor	defect (bug)	new	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	6.7.1	reporter-feedback
Reporter Feedback / Close	62492	CSS is not loading		Editor	normal	defect (bug)	new	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	6.7	reporter-feedback
Reporter Feedback / Close	57922	Changing class-wp-editor.php Insert/Edit Link header from H1 to H3 or other		Editor	normal	enhancement	new	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	6.1.1	reporter-feedback
Reporter Feedback / Close	60998	Multiple block recovery error		Editor	normal	defect (bug)	new	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	6.5	reporter-feedback
Reporter Feedback / Close	59741	Public-facing content using Page template is not displaying (since Gutenberg plugin Version: 16.9.0)		Editor	normal	defect (bug)	new	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	6.3.2	reporter-feedback
Reporter Feedback / Close	60996	WordPress 6.5.2 displays multiple h1 - wp_link_dialog is displayed		Editor	major	defect (bug)	new	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	6.5	reporter-feedback
Reporter Feedback / Close	60893	This block has encountered an error after update 6.5		Editor	normal	defect (bug)	new	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	6.5	reporter-feedback
Reporter Feedback / Close	53912	Bug when using Block-styles loading enhancements in WP 5.8		Editor	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	48196	The Code Editor generates tag soup with empty paragraphs in td elements		Editor	normal	defect (bug)	new	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	5.2.3	reporter-feedback
Reporter Feedback / Close	59092	WordPress Editor not working after updating to 6.3 - Showing Blank Screen		Editor	normal	defect (bug)	new	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	6.3	reporter-feedback
Reporter Feedback / Close	53620	add_meta_box $callback firing after publish or update but not updating dom html		Editor	normal	defect (bug)	new	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	5.7.1	reporter-feedback
Reporter Feedback / Close	58191	"Preview mode button breaks in custom post types in wordpress 6.2 - manually removing ""preview_nonce="" from url fixes it"		Editor	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	57626	Searches to add a link in post-edit, to be sortable/filterable to better find tags		Editor	trivial	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	57287	Type error calling Styles > Customize > Blocks from FSE		Editor	normal	defect (bug)	new	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	6.1.1	reporter-feedback
Reporter Feedback / Close	56953	TypeError: Cannot destructure property 'themeSupportsLayout' of '(0 , p.useSelect)(...)' as it is undefined		Editor	normal	defect (bug)	new	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	6.1	reporter-feedback
Reporter Feedback / Close	53037	Post Attributes UI issue in page list		Editor	normal	defect (bug)	new	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	5.7.1	reporter-feedback
Reporter Feedback / Close	55566	Start value in List block doesn't work		Editor	normal	defect (bug)	new	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	5.9.3	reporter-feedback
Reporter Feedback / Close	55039	Page template automatically changed when page is reload		Editor	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	54580	Latest Posts Gutenberg Block not supporting args filter.		Editor	normal	feature request	reopened	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	5.8.2	reporter-feedback
Reporter Feedback / Close	53867	Multiple reusable blocks issues since 5.8		Editor	major	defect (bug)	new	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	5.8	reporter-feedback
Reporter Feedback / Close	53154	Image in 'Media & Text' block not affected by 'Additional CSS class(es)'		Editor	normal	defect (bug)	new	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	5.7.1	reporter-feedback
Reporter Feedback / Close	53172	React-dom mistake		Editor	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	52741	Video embeds (YouTube and Wistia) do not show on page.		Editor	normal	defect (bug)	new	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	5.6.2	reporter-feedback
Reporter Feedback / Close	52556	WordPress is adding &nbsp; always		Editor	normal	defect (bug)	new	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	5.6.1	reporter-feedback
Reporter Feedback / Close	49193	Parent Page selector not available in Page Attributes when using Block Editor		Editor	normal	defect (bug)	new	2020-01-14T03:35:40Z	2021-01-13T17:58:53Z	"We're running a multisite with around 190 child sites on it.

When our users are using the block editor, the ""Parent Page"" drop down selector does not appear within the Page Attributes box.

I've tried using the default wordpress theme - same result.
Our test platform, on the same server with an identical configuration and plugin set but which only has a couple of child sites is not experiencing this problem - however, it does take a couple of seconds for this individual dropdown  selector to load.

The other diference is that the multisite where the issue exists is showing an error in developer tools that says ""Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 6

"	Brandicoot	5.3.2	reporter-feedback
Reporter Feedback / Close	46376	Right hand column (update page) gets stuck		Editor	normal	defect (bug)	new	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	5.1	reporter-feedback
Reporter Feedback / Close	48789	Provide ability to drag and drop images among and between Gutenberg Blocks		Editor	normal	enhancement	new	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	5.3	reporter-feedback
Reporter Feedback / Close	32143	wpLink function getAttrs() missing link-text		Editor	normal	enhancement	new	2015-04-27T07:04:06Z	2020-11-24T01:38:12Z	"After last update to 4.2 wpLink() was renewed and the title-input was replaced.
Instead of title, you can now insert/change the link text.
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/js/wplink.js?rev=32017

But in function getAttrs() the val of link-text was forgotten.

Therfor I proporse to add this line in getAttrs():

   linktext: $.trim( inputs.text.val() ),


Also it would be nice to populate the link-text field with the document title of a chosed intern element, like it was made with the old title-field before.




"	xwolf	4.2	reporter-feedback
Reporter Feedback / Close	46206	Strange behaviour with links inside a table		Editor	normal	defect (bug)	new	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	5.0.3	reporter-feedback
Reporter Feedback / Close	50443	Heading h2 rest api level		Editor	normal	defect (bug)	new	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	5.4.2	reporter-feedback
Reporter Feedback / Close	41732	Potential Core Issue		Editor	normal	defect (bug)	new	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	4.8.1	reporter-feedback
Reporter Feedback / Close	48796	"Image size reporting as ""thumbnail"" after most recent update"		Editor	normal	defect (bug)	new	2019-11-26T15:53:35Z	2020-11-05T06:16:41Z	"Recently, I noticed, when editing images in my existing blog posts, that the image size reported for all of the images on my blog is ""thumbnail"", when in fact, they were inserted into the post as ""large"" or ""full"". Is this a glitch that will be fixed? I hope so because there are old images in my blog, which were originally inserted incorrectly, and ARE in fact inserted as thumbnails. I correct these when I come across them in my editing, but now it's impossible to tell which ones are wrong because every image reports as being a ""thumbnail image"". Will this be corrected?
"	happy hooligans		reporter-feedback
Reporter Feedback / Close	47978	Upload files with Media Library takes much load time to upload image		Editor	normal	defect (bug)	new	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	5.2.2	reporter-feedback
Reporter Feedback / Close	42028	On-screen elements missing or dead in Mac OS 10.13 and Google Chrome		Editor	normal	defect (bug)	new	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	4.7.4	reporter-feedback
Reporter Feedback / Close	51158	"With ACF Blocks in 5.5, ""enqueue_assets"" causes fatal error"		Editor	blocker	defect (bug)	new	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	5.5	dev-feedback
Defects Awaiting Review, reported against no version	42074	YouTube Auto-Embed Does Not Work with Video+Playlist Links		Embeds	normal	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		needs-patch
Defects Awaiting Review	66643	Embeds: Vimeo videos ignore the start time (#t=) in the URL		Embeds	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63590	Youtube oEmbed Test is not loading scripts		Embeds	normal	defect (bug)	new	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	5.5	has-patch
Defects Awaiting Review	57234	oembed_cache created in post affects the post_author on export		Embeds	normal	defect (bug)	assigned	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		has-patch
Defects Awaiting Review	44399	Add unique capability for oembed		Embeds	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	66218	Same-site post embeds get a doubled #?secret= fragment, breaking the resize/reveal handshake		Embeds	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	44231	XML oembed discovery is not implemented correctly		Embeds	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	39472	Code tag still parses embeds		Embeds	normal	defect (bug)	new	2017-01-04T20:55:45Z	2026-07-22T13:57:33Z	"WordPress 4.7.

The 'code' block in the WordPress editor behaves incorrectly.

For example:

{{{
<code>Test Test
Another
www.google.com
http://www.google.com
https://www.youtube.com/watch?v=JHw6LTuMkNQ
Foxtrot Uniform Charlie Kilo
</code>
}}}

Displays as normal code in the wp-admin, but once published it creates an embed on the page. This should not happen and the contents of the code block should be displayed without embeds."	rmens	4.7	has-patch
Defects Awaiting Review	65082	WP_oEmbed()->fetch() uses wp_embed_defaults() incorrectly		Embeds	normal	defect (bug)	closed	2026-04-16T20:18:25Z	2026-04-17T01:57:25Z	"In the `fetch()` method of `WP_oEmbed()` it's expecting an array with `width` and `height` keys however `wp_embed_defaults()` returns a compacted numerically indexed array.

The net result is that the provider always has `maxwidth` and `maxheight` values of 0, and embeds come out very small.

Another compounding problem is that block themes don't necessarily declare `$contentwidth` either, so the net result is small embeds that don't fill their containers.

Offending code:

{{{

	public function fetch( $provider, $url, $args = '' ) {
		$args = wp_parse_args( $args, wp_embed_defaults( $url ) );

		$provider = add_query_arg( 'maxwidth', (int) $args['width'], $provider );
		$provider = add_query_arg( 'maxheight', (int) $args['height'], $provider );

}}}"	sanchothefat		has-patch
Defects Awaiting Review	59552	Rest api not returns embedded data,if i use at least one field.		Embeds	normal	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		
Defects Awaiting Review	37597	served oEmbed from cache even when expired		Embeds	normal	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	4.0	needs-patch
Defects Awaiting Review	45033	Add TIDAL to oEmbed whitelist		Embeds	normal	defect (bug)	reopened	2018-10-03T08:20:13Z	2025-07-22T03:13:20Z	"At TIDAL we have recently finished our new modern embed player. Compared to the old embed this one is free from Flash, login requirements and has a new fresh design.  It's made lean and responsive and optimised to load fast. We've also set up an oEmbed API for it. We would like to get this new embed player whitelisted in WordPress.

I've read through the documentation on whitelisting providers available here: https://make.wordpress.org/core/handbook/contribute/design-decisions/#whitelisting-oembed-providers

TIDAL started back in 2015 and is today one of the biggest music streaming providers, and one of few with music videos and high fidelity sound. So I'd say we meed the criteria for being a well-established, popular, trusted and mainstream service. We implement the oEmbed specification and use the rich and video oEmbed types for our embeds.

As for the security concern it is important for us at TIDAL as well. In our oEmbed API response we only pass an iframe in the HTML field which load a direct embed url. To further touch on the matter we also care for not leaving black holes on the web which can be vectors for malwares or unpleasant user experiences. An example is that our previous embeds are migrated to this new TIDAL embed player.

I'll go through the ""things to be considered"" list of questions;

**Is the service is popular enough for core developers to have heard of it before? Is it ""mainstream?""**

Probably :)

**If similar services are already supported, how does this service compare in terms of size, features, and backing?**

Spotify is already supported, in terms of size they have the same restrictions on sizes in their oEmbed API as we do (maxwith/maxheight for rich/video types). For features: TIDAL, apart from Spotify, also serves video embeds. This can be an on demand video or a live stream.

**Does this service have a large following on Twitter, Facebook, or other social media?  Is its Twitter account verified?**

* Twitter: >242 000 (Twitter account is verified)| https://twitter.com/TIDAL
* Facebook: >972 000 | https://nb-no.facebook.com/TIDAL/
* Instagram: >413 000 | https://www.instagram.com/tidal/

**Is its oEmbed endpoint clearly established and properly documented?**

The oEmbed endpoint is available at https://oembed.tidal.com and as per the oEmbed documentation it takes an URL as required parameter. As for our case it would be one of the links you get when clicking share in the applications, for example https://tidal.com/track/74695970. ( https://oembed.tidal.com/?url=https://tidal.com/track/74695970 ) There is not documentation on our oEmbed API endpoint separately since the main usage is intended to be via the oEmbed discovery procedure and seamless to the normal user. 

**Does the oEmbed endpoint work with WordPress' oEmbed auto-discovery?**

Yes. Our browser pages have the oEmbed discovery <link> tag. Example: https://tidal.com/browse/track/74695970 which has 
{{{
<link rel=""alternate"" type=""application/json+oembed"" href=""http://oembed.tidal.com/?url=https://tidal.com/track/74695970"" />
}}}
in the source code.

**Does the service make an effort to build relationships with developers, such as through robust APIs?**

For APIs to be consumed from the outside we stive to create robust APIs. For example the oEmbed API is made in golang and runs on AWS Lambda to scale easily.

**How old is the service?**

TIDAL, launched in March 2015.

**Does it have a well-established Wikipedia article? (Seriously.)**

We seriously do. https://en.wikipedia.org/wiki/Tidal_(service)

**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?**

Bjørn Johansen and Paul Schreiber has written an ""Embed Tidal"" plugin. This created an embed from a TIDAL link. It creates embeds for the old TIDAL embed though, the one with Flash that is now replaced on our end. And does not use the oEmbed API that came with the new embed we recently launched.
Link: https://wordpress.org/plugins/embed-tidal/

**Is the provider frequently proposed?**

No idea.

\\
I hope we can get it done soon. Let me know if there is anything I can do to help. :)
\\

Kind regards, \\
Jeremy Karlsson\\
TIDAL"	tidal		has-patch
Defects Awaiting Review	63701	Reviewing Smugmug oEmbed		Embeds	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	63667	Delete oEmbed postmeta if the related embed block is deleted / no longer present in the content		Embeds	normal	defect (bug)	new	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	2.9	dev-feedback
Defects Awaiting Review	60729	YouTube embed start=		Embeds	minor	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	6.4.3	needs-patch
Defects Awaiting Review	61558	oEmbed: Support non-dot-com Pinterest URLs		Embeds	normal	defect (bug)	new	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	5.9	has-patch
Defects Awaiting Review	52990	Account for single quoted attributes when lazy loading images and iframes.		Embeds	normal	defect (bug)	new	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	5.5	needs-unit-tests
Defects Awaiting Review	60147	Possible bug when YouTube embeds having both loading=lazy attribute and the enablejsapi parameter		Embeds	normal	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		
Defects Awaiting Review	51328	Classic Editor adds extra p tags to Instagram Embed		Embeds	normal	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	5.5.1	
Defects Awaiting Review	58644	embed height fix		Embeds	normal	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	4.4	
Defects Awaiting Review	57699	Autoembeds not rendered in front-end post content		Embeds	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	49682	oEmbed should not trigger for urls with fragments		Embeds	normal	defect (bug)	new	2020-03-23T02:30:19Z	2022-09-23T00:02:52Z	"As reported in #meta4346 WordPress's link autoembeding embeds links with fragment anchors attached and ultimately causes the links meaning to change.

For example, the embed for https://wordpress.org/support/article/writing-posts/#visual-versus-text-editor will just be the Writing Posts page with no link to the specific section."	dd32		
Defects Awaiting Review	56440	Embed blocks in widget areas caching in many posts		Embeds	normal	defect (bug)	new	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	6.0.1	dev-feedback
Defects Awaiting Review	56346	Youtube oembed with double quotes in title breaks html		Embeds	normal	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		
Defects Awaiting Review	54694	Gist embed doesn't work for file with space in name		Embeds	normal	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		
Defects Awaiting Review	54058	Kickstarter videos do not play in Google Chrome		Embeds	normal	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		
Defects Awaiting Review	52935	oEmbed cache is no longer refreshed upon post update		Embeds	normal	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	5.0	
Defects Awaiting Review	36239	wp-embed image size is using the smallest image or it sometimes uses the one for featured images		Embeds	normal	defect (bug)	new	2016-03-14T19:48:48Z	2020-09-25T19:44:53Z	When using the wp-embed in my custom post types the image size is correct, a bit big, but it's not blurry. In regular posts, the image size is the thumbnail size created for the media library thumbnail (not the one in the media settings) because that happens to be the smallest one. I noticed that for posts, whatever is the smallest image is being used, whether set in the functions file or by WordPress.	carasmo	4.4.2	dev-feedback
Defects Awaiting Review	51085	oEmbed JSON returning 404/401 when embedding anything from Spotify		Embeds	normal	defect (bug)	new	2020-08-20T16:49:49Z	2020-08-20T23:40:00Z	"Hi there,

Trying to embed a Spotify track/podcast episode via oEmbed. It worked great in the past. 
Right now I'm testing with WP 5.4.2 and 5.5, no plugins, default theme. PHP 7.3/7.4.
This happens both in the block editor and classic editor.

Getting a 404 in the browser console - 
Failed to load resource: the server responded with a status of 404 () - https://domain.com/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fopen.spotify.com%2Falbum%2F7xYnLZK3hR60bzd6sRNOvm%3Fhighlight%3Dspotify%3Atrack%3A3MUeRkKpLxxyRFzqMTj1HY&_locale=user

Then also 401 when trying to access directly but I guess that makes sense - 
{""code"":""rest_forbidden"",""message"":""Sorry, you are not allowed to make proxied oEmbed requests."",""data"":{""status"":401}}



Trying to embed:

https://open.spotify.com/embed/track/1G1aohIsSGFUDnkJLGMJr2
Or 
https://open.spotify.com/track/1G1aohIsSGFUDnkJLGMJr2"	secondlinethemes	5.5	
Defects Awaiting Review	50329	Video not playing		Embeds	normal	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	5.4.1	
Defects Awaiting Review	50172	Flickr embed not embedding content		Embeds	normal	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	5.4.1	needs-patch
Defects Awaiting Review	49185	Option to use text link instead of auto embed.		Embeds	normal	defect (bug)	new	2020-01-13T13:18:47Z	2020-03-28T18:06:43Z	"Adding links. If an link goes to another WordPress site we will see an auto embed.
It would be great with an option to either auto embed or show a regular text link.

I made the Gutenberg issue here:
https://github.com/WordPress/gutenberg/issues/15102
Another similar issue: https://github.com/WordPress/gutenberg/issues/13000"	paaljoachim		
Defects Awaiting Review	49683	Multisite oEmbeds of URLs ignore query parameters		Embeds	normal	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		
Defects Awaiting Review	49627	oEmbedding - Privacy by design - Inconsistencies & Legal concerns		Embeds	normal	defect (bug)	new	2020-03-12T11:41:19Z	2020-03-23T01:14:09Z	"oEmbedding is now driven by two files :

* {{{wp-includes/class-wp-oembed.php}}}  and its list of ""popular"" oEmbed providers : array ( pattern => array( oembed_url, regex [boolean] ) )

This list is loaded in {{{wp-settings.php}}} with this instruction : {{{$GLOBALS['wp_embed'] = new WP_Embed();}}}
This list of providers is filterable with hook {{{'oembed_providers'}}}, but the hook appears to be fired before {{{'plugins_loaded'}}} and {{{'init'}}} hooks.
The modus operandi to alter the ""popular"" providers list is described here : [https://wordpress.org/support/article/embeds/] .

* {{{wp-includes/js/dist/block-library.js}}}

The data structure is here different due to some visual aspects (Gutenberg)
Several variables with name like {{{'embedXxxxxIcon'}}} are objects containing svg icons
and another list of oEmbed providers with a specific variable called 'common' which is a set of 
 -- name => settings ( title, name svg icon, keywords, description )
	 => patterns

1) the lists of oEmbed providers are not identical in php and javascript.

2) in each list, the patterns for each oEmbed provider can be different.

3) the once driven oEmbedding process by the php array that could be filtered or altered (""popular"" oEmbed providers) is not possible anymore.
If you are using the Classic editor or Gutenberg, the process to retrieve the data and the structure of the data are different as shown in screenshot1 (Classic trunk) and screenshot2 (Gutenberg 5.3).
'Classic editor' is using {{{admin-ajax.php}}} and retrieves a specific json format.
'Gutenberg' is using the rest-api and calls a url such as {{{'index.php?rest_route=/oembed/1.0/proxy&url....&_locale=user'}}} and retrieves the full oembed json from the provider.
In the class-wp-oembed-controller, the code executed seems similar to Classic editor (data2html) but the result is obviously different.
Both are caching the html code in post_meta table, 'Gutenberg' is caching the json result of oembed in options table.
This means that the filter 'oembed_result' is by-passed when oembed content is displayed in 'Gutenberg'.

4) if a site decides to remove one or all references to ""popular"" or ""trusted"" (vocabulary differs in code comments) oEmbed providers or add its own, this is not possible anymore when using Gutenberg, because the javascript providers list is hard-coded and cannot be altered.
For obvious local regulations, it is important to be consistent and coherent in the oembedding policy choices of each site for each site.
This is a regression and an infringement to the ""Privacy by design"" policy adopted by wordpress open source project.

5) i am not going to discuss how the ""popular"" providers got elected by a ""popular"" vote or an electoral college and if they had a superpac to get elected (or more accurately ""be referenced"").
On some websites, these arbitrary choices that cannot be altered may contervene to website policy e.g. educational blogs for kids, or local laws.
In some countries, this can be considered as political [ethymology definition : ""life in the city""] choice and can put at risk wordpress users : loading in their browsers references to forbidden sites.
Surveillance is everywhere and not all countries are democracies.

6) it is important, that in WordPress, all ""popular"" oEmbed providers removed or added by filter, be removed or added in any form of code (Gutenbeg specific blocks included) (privacy by design).
This implies a unique reference list of providers (filterable/alterable in php) with some extra information for visual aspects under Gutenberg.
The javascript variables must be generated (or not if providers is an empty array) from the php list (with some default values if extra information is not provided).
To simply and easily :
	a) add a new provider on both sides and specific svg icons.
	b) remove a ""popular"" provider with an easy
		{{{wp_oembed_remove_provider( 'tactic' ); }}}
	   rather than 
		{{{wp_oembed_remove_provider( '#https?://(www\.)?tactic\.com/.*/video/.*#i' );}}}
	c) {{{wp_oembed_remove_all_providers()}}} is also welcome.

7) it could be interesting to offer optional and intermediate solutions to oEmbedding as it is processed today (privacy by design) :
	a) insert specific html ( usually iframe : fully intrusive)
	b) insert link to url with thumbnail when available {{{<a href=...><img src=thumbnail_url ... /></a>}}} (less intrusive)
	c) insert link as text {{{<a href=url ...>(some title or text if available or url)</a>}}} (no oEmbedding : not intrusive)
Requires to cache the complete json answer indifferently ('Classic' or 'Gutenberg').

8) it could be interesting to encapsulate the oembedding result in a custom html5 element (privacy by design) 
such as {{{<wp-oembed> ... </wp-oembed>}}} to allow theme developpers to add specific js on embedded content.

9) The oEmbed providers listed in wordpress are referenced by wordpress. Definitely change the vocabulary used in the code comments.
Do not use ""popular"" or ""trusted"" providers but 'referenced providers', because this is the most accurate definition.


Regards

related #43713, 

related https://wordpress.org/support/article/embeds/


ps : as a remainder, GDPR chapter IV title is Controller and Processor."	arena		
Defects Awaiting Review	49271	Video Player not responsive when inserting YouTube or Vimeo URL		Embeds	normal	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	4.9.8	
Defects Awaiting Review	49173	Allow sanitized inline styles on oEmbed iframes		Embeds	normal	defect (bug)	new	2020-01-11T21:31:58Z	2020-01-13T17:09:44Z	"Embeds from the New York Times are currently broken because the oEmbed `<iframe>` sets its height via an inline `style` attribute which is removed by Kses in `wp_filter_oembed_result()`. The result is an embed that appears broken due to the iframe not having sufficient height.

I believe the fix is simply to allow the `style` attribute on the `iframe`, and to allow the `safecss_filter_attr()` function to remove style properties that are deemed unsafe:

{{{#!diff
--- a/src/wp-includes/embed.php
+++ b/src/wp-includes/embed.php
@@ -879,6 +879,7 @@ function wp_filter_oembed_result( $result, $data, $url ) {
 			'marginheight' => true,
 			'scrolling'    => true,
 			'title'        => true,
+			'style'        => true,
 		),
 	);
}}}

The result of this change for NYTimes embeds is the inclusion of the CSS `border:none;max-width:500px;min-width:300px;min-height:550px;width:100%` on the iframe's `style` attribute.
"	westonruter	4.4	has-patch
Defects Awaiting Review	46559	Could not embed some content		Embeds	normal	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		
Defects Awaiting Review	42825	[embed] shortcode  - oembed_cache not being updated when $cached_recently is false		Embeds	normal	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		
Defects Awaiting Review	44074	oEmbed with many <pre> tags do not work		Embeds	minor	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		
Defects Awaiting Review	45653	Embed a youtube video block in gutenberg editor shows black screen area does not display video		Embeds	normal	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	5.0.1	
Defects Awaiting Review	44704	`wp.media.view.EmbedLink` and `oembed/1.0/proxy` don't work as expected		Embeds	normal	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	4.9.7	
Defects Awaiting Review	44705	Edit embed contents without saving post breaks previews		Embeds	normal	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	4.9.7	
Defects Awaiting Review	42258	Twitter embed link in posts generates an empty paragraph		Embeds	normal	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	4.9	
Defects Awaiting Review	41746	oEmbed does not respect canonical provider url parameter		Embeds	normal	defect (bug)	new	2017-08-28T20:30:45Z	2017-09-20T20:39:38Z	"I came across a Twitter URL format that would not embed correctly. Providing that URL to their provider endpoint returned an error. But the original page had a `<link>` element which already had a working, canonical `url` parameter in its querystring.

An example URL is:
{{{https://twitter.com/i/web/status/898599373956722688}}}

If you try to fetch oEmbed data for that URL by just adding it as a `url` querystring parameter on the standard Twitter oEmbed provider URL, it will return an error.

But view source on that page, and you'll see:
{{{<link rel=""alternate"" type=""application/json+oembed"" href=""https://publish.twitter.com/oembed?url=https://twitter.com/dimensionmedia/status/898599373956722688"" title=""David Bisset on Twitter: &quot;Agorakit is a web based open source &quot;groupware for citizens initiatives” (which i’ve seen @buddypress used for too) https://t.co/bFPw9ZZWi2 https://t.co/H1REt0QfcO&quot;"">}}}

Note that the path of this URL is `.../{username}/status/{id}`, whereas the original URL was `.../i/web/status/{id}`.

I've worked out a small patch and method for getting WordPress to use oEmbed discovery to extract and use the canonical URL.

When using `wp_oembed_add_provider()`, if you leave the provider URL falsey, then `WP_oEmbed::get_provider()` will use discovery to find it (assuming that you haven't forced `discovery = false` in `$args`). Then my patch will pull the `url` arg from there and use that, instead of the original URL that was passed in to the embed handling.

Later, when the JSON response is being handled, the code will still be able to see whether this is a whitelisted URL pattern, and bypass/perform security filtering such as `kses()` (see `wp_filter_oembed_result()`).
"	dougal	2.9	needs-unit-tests
Defects Awaiting Review	40464	Embed video in Wordpress gives W3c Markup Validation issue		Embeds	normal	defect (bug)	new	2017-04-16T10:47:25Z	2017-04-16T15:51:37Z	"When embed video in wordpress, the below validation issue occurs:
Error: The frameborder attribute on the iframe element is obsolete. Use CSS instead."	pmbaldha	4.4	
Enhancements Awaiting Review	66508	Add unit tests for WP_oEmbed::_strip_newlines(), _add_provider_early() and _remove_provider_early()		Embeds	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65999	Allow auto-discovered embeds to link to third party sites.		Embeds	normal	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		
Enhancements Awaiting Review	65587	wp-embed performs extra query even when unnecessary		Embeds	trivial	enhancement	new	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	7.1	has-patch
Enhancements Awaiting Review	65190	Add komoot to the oEmbed provider allowlist		Embeds	normal	enhancement	new	2026-05-07T15:01:00Z	2026-06-15T07:41:19Z	"komoot (https://www.komoot.com) is a route-planning and outdoor navigation platform with public tour, smarttour, collection, and guide pages.

komoot now provides an oEmbed-compatible JSON endpoint:

https://www.komoot.com/oembed

Supported URL examples:

- https://www.komoot.com/tour/2766645113
- https://www.komoot.com/smarttour/e1239517945
- https://www.komoot.de/collection/2050920
- https://www.komoot.com/guide/1006/dolomites-mountain-passes

The endpoint follows the oEmbed spec:

- `format=json`
- `type=rich`
- returns `html` containing an iframe, `width`, `height`, `provider_name`, `provider_url`, `cache_age`
- returns `thumbnail_url` for tour and smarttour embeds
- sends `Access-Control-Allow-Origin: *`
- sends cacheable responses via `Cache-Control: public, max-age=3600, s-maxage=86400`

Example request:

https://www.komoot.com/oembed?url=https%3A%2F%2Fwww.komoot.com%2Ftour%2F2766645113&format=json

Example response includes:

{{{
<iframe src=""https://www.komoot.com/tour/2766645113/embed?layout=classic&embed_source=oembed&profile=1"" width=""640"" height=""700"" frameborder=""0"" scrolling=""no"" allowfullscreen referrerpolicy=""strict-origin-when-cross-origin""></iframe>
}}}

Discovery tags are also present on canonical embeddable pages:

{{{
<link rel=""alternate"" type=""application/json+oembed"" href=""https://www.komoot.com/oembed?url=..."" title=""..."" />
}}}

Adding komoot to the trusted providers list would let WordPress users paste komoot URLs directly into the editor and get a rich route/collection/guide embed without installing a plugin.

Suggested provider pattern:

{{{
#https?://(www\.)?komoot\.(com|de|es|fr|it|nl|pl|jp|kr)/(tour|smarttour|collection|guide)/.*#i
}}}

Suggested endpoint:

{{{
https://www.komoot.com/oembed
}}}

How to test:

1. Apply the provider allowlist patch.
2. Open a new post in Gutenberg.
3. Paste one supported komoot URL on its own line, for example:
   - https://www.komoot.com/tour/2766645113
   - https://www.komoot.de/collection/2050920
   - https://www.komoot.com/guide/1006/dolomites-mountain-passes
4. Confirm WordPress resolves the URL to an embed block.
5. Confirm the front-end post output contains the iframe from the oEmbed response."	federicofonta		
Enhancements Awaiting Review	65087	oEmbed dynamic aspect ratio handling in block themes without $content_width		Embeds	normal	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		
Enhancements Awaiting Review	64941	Support TikTok carousel embeds		Embeds	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	63948	Distinguish between “Link Preview Card” and “Embed WordPress (full post)”		Embeds	normal	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		
Enhancements Awaiting Review	63158	Add Panda Video oEmbed endpoint		Embeds	normal	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		
Enhancements Awaiting Review	61127	Make `wp_filter_oembed_result` less strict		Embeds	normal	enhancement	new	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	4.4	has-patch
Enhancements Awaiting Review	61907	Make oembed_invalid_url return 400 instead of 404		Embeds	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	60727	Allow fine-grained control of when to use oEmbed for providers outside the explicit list		Embeds	normal	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		
Enhancements Awaiting Review	59299	Add Felt.com to the list of oEmbed providers		Embeds	normal	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		
Enhancements Awaiting Review	39918	Whitelist audioBoom oEmbeds		Embeds	normal	enhancement	new	2017-02-20T11:00:33Z	2023-05-30T09:50:56Z	"{{{
sandbox=""allow-scripts""
}}}
is disabling links within our iframe player on some wp sites, try the social icons on the audioBoom player in this article http://www.niemanlab.org/2017/02/in-a-chaotic-presidency-civics-101-is-giving-listeners-a-reintroduction-to-how-the-u-s-government-works/.

What are the steps to getting audioBoom whitelisted so that no changes are made to the oEmbed codes?
"	arunaudioboom	4.8	
Enhancements Awaiting Review	58120	oEmbed Mastodon		Embeds	normal	feature request	new	2023-04-12T14:31:06Z	2023-04-22T23:53:00Z	"Porting [https://github.com/WordPress/gutenberg/issues/49687 this issue] here for discussion.
> If I put a link to a Mastodon toot in the embed block, it embeds, but it has no style applied and looks bad: 
>[[Image(https://user-images.githubusercontent.com/1994311/230915699-45480012-7db9-4eff-93cd-f64dd4e46a09.png)]]

As I mentioned there Since [https://joinmastodon.org/servers Mastodon is not 1 single website], but software that can be deployed to any url, we might need a different approach than the provider whitelist."	mediaformat		
Enhancements Awaiting Review	57076	Allow fullscreen in oembed videos		Embeds	normal	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		
Enhancements Awaiting Review	56489	An extra post lookup in WP_Embed::shortcode for known post		Embeds	normal	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		
Enhancements Awaiting Review	55079	Allowed post tags and allowed tags iframe		Embeds	normal	enhancement	new	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	5.9	has-patch
Enhancements Awaiting Review	54468	Apply aspect ratio classes to wp_oembed_get when theme_supports('responsive-embeds') is added		Embeds	normal	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	5.9	
Enhancements Awaiting Review	54434	Add Zoomable as an oEmbed provider		Embeds	normal	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		
Enhancements Awaiting Review	54414	Support embedding Mobile Twitter URLs		Embeds	normal	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	5.0	
Enhancements Awaiting Review	49910	Embed: resizable iframes		Embeds	normal	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		
Enhancements Awaiting Review	49352	Allow get_proxy_item to be filtered/altered before a response is sent to the editor.		Embeds	normal	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		
Enhancements Awaiting Review	40776	"Feature request : Need class parameter for ""Twitter"" embed share"		Embeds	normal	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		
Enhancements Awaiting Review	39850	WordPress embedded links drop query vars from URL		Embeds	normal	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		
Reporter Feedback / Close	53573	Non-WP Blog Embeds are being cropped.		Embeds	normal	defect (bug)	new	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	5.7.2	close
Reporter Feedback / Close	63813	How to Handle Embed Block Errors for YouTube URLs in WordPress?		Embeds	normal	defect (bug)	assigned	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		reporter-feedback
Reporter Feedback / Close	60321	Add Viostream.com to oEmbed allowlist		Embeds	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	62344	Social Media Embed Suggestion		Embeds	normal	feature request	new	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		close
Reporter Feedback / Close	53935	Vimeo oembed force player with large height on blog post		Embeds	minor	defect (bug)	new	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	5.8	reporter-feedback
Defects Awaiting Review	56784	Optimization in wp_staticize_emoji function		Emoji	normal	defect (bug)	new	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	6.0.2	has-patch
Defects Awaiting Review	61806	twemoji is always loaded on Windows devices	pbearne*	Emoji	minor	defect (bug)	accepted	2024-08-01T16:59:19Z	2024-09-07T03:46:39Z	"The twemoji script seems to always be loaded and triggering, despite the requested page containing natively supported emoji.

Only the front-end seems to enqueue the twemoji script, the back-end editor still uses renders native emoji as expected.

By blocking the `wp-emoji-release.min.js` file, emoji are rendered as expected in the front-end.

Initially marking this as a minor issue, since technically we are loading an additional file that modifies the rendered content, but it also sort of ensures a consistent emoji experience regardless of devices for visitors which one could argue is a feature (😅?)

Versions:
- Windows 10
- Browsers:
  - Chrome 127.0.6533.72
  - Firefox 128.0.3 "	Clorith		
Defects Awaiting Review	49730	WordPress-generated RSS feeds replace unicode symbols with images.		Emoji	normal	defect (bug)	new	2020-03-30T20:46:03Z	2021-02-04T14:22:14Z	Which rather misses the point of having them as part of Unicode. This causes trouble for feed readers because the images have to be handled specially in order for them to format with the text, e.g. https://github.com/Ranchero-Software/NetNewsWire/issues/1958	jralls		
Enhancements Awaiting Review	60306	PHPunit test for wp_enqueue_emoji_styles		Emoji	normal	task (blessed)	new	2024-01-19T22:43:38Z	2026-10-31T19:29:33Z		pbearne		has-patch
Enhancements Awaiting Review	46190	Firefox Emoji Detection Slow		Emoji	normal	enhancement	new	2019-02-05T18:52:24Z	2022-07-06T19:25:57Z	"The emoji detection script loaded by default on WordPress is parser blocking but it still progressive enhancement as it

a) it runs fast,
b) finishes before the style requests are being downloaded.

However Firefox seems to have an issue in recent versions. 

I tested the times it takes on Browserstack and sometimes it goes as high as more than 1s on both Windows and Mac.

The way I tested is by adding this code to functions.php

{{{#!php
<?php
add_action( 'wp_head', function() {
	?>
<script>var e=new Date()</script>
	<?php
}, 6 );

add_action( 'wp_head', function() {
	?>
<script>var n=new Date()-e;console.log(n)</script>
	<?php
}, 7 );
}}}

so the the wp-emoji-loader.min.js inlined in the html head is sandwiched between getting the timestamps. 

On other browsers it is like 8ms, 20ms but Firefox is really slow. 

Likely a Firefox bug, but should be a workaround for it in WP."	superpoincare	5.0.3	has-patch
Reporter Feedback / Close	63451	Flag emoji rendering issue on Windows environment		Emoji	normal	defect (bug)	new	2025-05-15T16:23:26Z	2026-09-25T09:05:34Z	"**Title:**
Flag emoji rendering issue on Windows environment

**Description:**
On WordPress, flag emojis for England (`🏴󠁧󠁢󠁥󠁮󠁧󠁿`), Scotland (`🏴󠁧󠁢󠁳󠁣󠁴󠁿`), and Wales (`🏴󠁧󠁢󠁷󠁬󠁳󠁿`) do not render correctly in Windows environments. Instead of showing their respective flag designs, they are displayed as a plain black flag (`🏴`).

On mobile devices (such as Android or iOS), these flag emojis render properly as intended using either system emojis or Twemoji fallback. However, on Windows 10/11 desktop systems, particularly with the Segoe UI Emoji font, the emoji tag sequences required for these regional flags are not supported, causing them to appear as a generic black flag.

**Steps to Reproduce:**

1. Post a comment or content on a WordPress site containing these emojis:

   * 🏴󠁧󠁢󠁥󠁮󠁧󠁿 (England)
   * 🏴󠁧󠁢󠁳󠁣󠁴󠁿 (Scotland)
   * 🏴󠁧󠁢󠁷󠁬󠁳󠁿 (Wales)
2. View the page on:

   * **Mobile (Android/iOS)** → Emoji display correctly
   * **Windows 10/11 desktop** → Displays as 🏴 black flag

**Expected Result:**
England, Scotland, and Wales flag emojis should render properly across platforms, or at least gracefully fallback via Twemoji when system font support is lacking.

**Actual Result:**
On Windows, all three flag emojis appear as 🏴.

**Additional Info:**

* Confirmed on latest WordPress.com and WordPress.org self-hosted sites.
* Twemoji appears to correctly render these on other platforms like Mastodon, X.com (Twitter), and Misskey.
* Possible workaround: Ensure Twemoji or another fallback emoji library handles emoji tag sequences on desktop platforms where system fonts lack support.

**Related Links:**

* [Emojipedia - England Flag](https://emojipedia.org/flag-england/)
* [Emojipedia - Scotland Flag](https://emojipedia.org/flag-scotland/)
* [Emojipedia - Wales Flag](https://emojipedia.org/flag-wales/)
https://wordpress.com/support/emoji/
https://x.com/thaumiel999/status/1923038246533001630
https://mastodon.social/@thaumiel999/114512564948217544
https://misskey.io/notes/a7t3kaiafyr70boz
https://kimjiwoon96.wordpress.com/2025/02/16/%EC%95%84%ED%8C%8C%ED%8A%B8-%EC%98%A5%EC%83%81/comment-page-1/#comment-54"	kimjiwoon		close
Reporter Feedback / Close	57277	Emojis after translate update		Emoji	normal	defect (bug)	new	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	6.1.1	reporter-feedback
Defects Awaiting Review, reported against no version	32433	Add registered image sizes in WXR export file		Export	normal	defect (bug)	new	2015-05-18T21:26:41Z	2018-07-17T08:15:01Z	"When a WordPress site is exported, attachments are also exported (though only the original image url). If a user then imports that into a new WordPress install, images will be generated for all registered image sizes on the new blog.

If however, the exported site was running different image sizes, it will potentially have references to those images in post content (e.g. `image-322x422.png`); however, `322x422` is not a registered image size on the new site. This will produce 404 images in the new post content.

This was acknowledged (though I don't think addressed) in #16984:

> A problem that might arise is if there are different image size settings on the export and import sites. So an exported post might contain an image img-200x200.jpg but the import site hasn't generated the appropriate size. For the first patch I'm ignoring this and saying that it's up to the user to ensure the settings are consistent. Potential future fixes include importing options or generating the extra sizes on the fly

The user will typically not have control over image sizes either way (as they have to be registered in code) - also the recipient of a WXR file does not know the image sizes on the exported site.

It therefore seems logical to include image sizes somewhere in the WXR file, so importers (the WordPress importer or otherwise) know what image sizes to generate for all existing attachments."	joehoyle		has-patch
Defects Awaiting Review, reported against no version	34798	Export Bug		Export	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	52815	Wrap long Category name drop down when export post on export.php screen		Export	normal	defect (bug)	new	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	5.7	has-patch
Defects Awaiting Review	64556	Tools -> Export | Failure when setting category		Export	normal	defect (bug)	new	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	6.9	has-patch
Defects Awaiting Review	60545	Default XML exporter is failing to export block templates.		Export	normal	defect (bug)	assigned	2024-02-15T05:31:05Z	2026-01-29T06:25:09Z	"When attempting to export XML through the **""Tools > Exports""** menu with the selection **""Choose what to export > All,""** the process does not include the export of created templates.

"	heymehedi	6.4.3	has-patch
Defects Awaiting Review	61620	Edited Images don't include un-edited versions in WXR file, even if used in a Post		Export	normal	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		
Defects Awaiting Review	59716	Deprecated messages exporting post meta with meta_value null from PHP 8.1		Export	normal	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		
Defects Awaiting Review	52470	Exported WXR contains terms twice		Export	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	58195	WordPress Exporter includes trashed posts when the author filter is enabled		Export	normal	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		
Defects Awaiting Review	57451	Cross Site Request Forgery on Admin of any wordpress site to export files		Export	minor	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		needs-patch
Defects Awaiting Review	57166	Export theme		Export	normal	defect (bug)	new	2022-11-21T13:17:02Z	2022-11-21T13:17:02Z	"When I export Twenty Twenty Two from the FSE there is an error in the link to font files. The path to the files ought to point to a relative file path, but this is what I get:


{{{
{
							""fontDisplay"": ""fallback"",
							""fontFamily"": ""Source Serif Pro"",
							""fontStretch"": ""normal"",
							""fontStyle"": ""italic"",
							""fontWeight"": ""200 900"",
							""origin"": ""gutenberg_wp_webfonts_api"",
							""provider"": ""local"",
							""src"": [
								""**http://localhost:8888/wpux/wp-content/themes/twentytwentytwo/**assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2""
							]
						}
					],
}}}
"	perthykjaerjensen	6.0.1	
Defects Awaiting Review	55135	Media URLs break when migrating WordPress content to different domains		Export	normal	defect (bug)	new	2022-02-10T08:28:16Z	2022-02-10T10:58:10Z	"All media assets use absolute URLs when exporting WordPress content, including the domain name and port if present. 

When importing the content on a new WordPress installation located at a different domain or port, page/post media fail to render since they point to the previous domain/port.

https://github.com/creativecommons/project_creativecommons.org/issues/225

The hard-coded links require post-processing the XML file for the content to be portable across domains and environments (e.g., development, staging, and production).

Ideally, media URLs in the export file would be relative to the WordPress root, such as described in the following issue from 11 years ago: #17048."	brylie	5.9	
Enhancements Awaiting Review	56118	Exception to escapement: Exported or imported data		Export	major	feature request	new	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		needs-docs
Enhancements Awaiting Review	47446	Tools > Export does not include term meta data for a custom post type		Export	normal	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	5.2.1	
Enhancements Awaiting Review	63328	Improve Export Tool to Support Multiple Content Type Selection		Export	normal	enhancement	new	2025-04-22T05:59:06Z	2025-05-26T14:29:53Z	"Currently, the Tools > Export screen in WordPress only allows exporting one content type at a time via radio buttons — ""All content"", ""Posts"", ""Pages"", or ""Media"".

Issue:

Users who wish to export multiple specific content types (e.g., only Posts and Pages) cannot do so in a single operation.

They are forced to run the export process multiple times and manually merge or manage multiple WXR files.

🛠 Suggested Enhancement:

Replace the current radio buttons with checkboxes for ""Posts"", ""Pages"", ""Media"", and possibly Custom Post Types.

Allow users to select any combination of content types.

Update backend logic to collect and package selected types into one export file."	nikitasolanki1812		needs-patch
Enhancements Awaiting Review	58982	Tools > Export does not include termmeta data for post categories		Export	normal	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	6.3	
Enhancements Awaiting Review	48366	Export valid paragraphs HTML with wpautop applied		Export	normal	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		
Enhancements Awaiting Review	50013	[Feature Request] Tools: Export: Post, Categories: All - but exclude these		Export	normal	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		
Enhancements Awaiting Review	48180	extend export with filter for join and where clause		Export	normal	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	5.2.3	
Enhancements Awaiting Review	37848	Form fields misaligned on export.php		Export	normal	enhancement	new	2016-08-27T10:57:16Z	2019-06-17T13:54:31Z	"On the export page, all the form fields are misaligned.
Refer attached screenshots for a better view."	adhun	5.2.1	has-patch
Enhancements Awaiting Review	39021	Import Export Attachments		Export	normal	enhancement	new	2016-12-02T02:52:10Z	2019-03-19T02:01:50Z	"Currently when we export a post type, it seems that the post thumbnails are exported as id's. It would be fantastic if these could be exported as url's to the images as otherwise there is no way for a separate install to import the post data.

currently, for posts with a thumbnail the below or similar is added to the `<item>`
{{{
		<wp:postmeta>
			<wp:meta_key><![CDATA[_thumbnail_id]]></wp:meta_key>
			<wp:meta_value><![CDATA[9]]></wp:meta_value>
		</wp:postmeta>
}}}

I propose this is moved to `<wp:attachment>` or `<wp:post_thumbnail>` and the specific postmeta for `_thumbnail_id` removed from postmeta and re-created on each import.

Problems with my suggestion that I've considered

 * Re-importing (w|c)ould create duplicate media. As the post has to exist for post-meta to be added. Maybe using the basename function we could check for existing media, maybe it's an edge case... I think this is unlikely to be a large problem and it potentially empowers less technical users.
 * Some plugins would see no benefit as they use either custom metadata keys or multiple attached images (like WooCommerce). I'd suggest this could be mitigated by adding a filter of an array of strings that on import / export treats a list of fields as keys to treat as thumbnails)
"	LewisCowles	4.6.1	
Enhancements Awaiting Review	39298	Add filters for the exporter		Export	normal	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		
Enhancements Awaiting Review	26311	Updated (responsive) Tools -> Export admin screen		Export	normal	enhancement	new	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	3.8	
Enhancements Awaiting Review	30170	"""Start Date""/""End Date"" are confusing in the exporter"		Export	normal	enhancement	new	2014-10-29T11:40:47Z	2017-07-22T04:03:42Z	"I've been running a lot of post exports lately, and for some reason I'm constantly screwing up ""Start Date"" vs ""End Date"" when selecting an export range.

The ''right'' way is Start Date == Older Date, and End Date == Newer Date. But, because my memory is pathetic (at best), I constantly forget this and end up downloading empty exports.

I think there are a few potential fixes:

1) Change the wording, to something like ""Start Date (Older)"" and ""End Date (Newer)"", or different text entirely

2) Use some JS to alert the user/prevent the download if they chose a more recent month as the Start Date

3) Try to guess the user's intentions and download the export even if they screw up the order

(Or perhaps some combination of the three.)"	chrisvanpatten		ui/ux
Reporter Feedback / Close	56907	Export Child theme produces corrupt zip file		Export	normal	defect (bug)	new	2022-10-25T22:42:50Z	2026-06-15T13:01:06Z	"Export of a theme from the Site Editor with any year theme from WordPress including twentytwentytwo, produces a working zip file.

However if you have a child theme of any year theme from WordPress including twentytwentytwo, produces a corrupt zip file.

The error reported by ZipRepair.net is:
Your .zip file had the following issue:
End of Central Directory record could not be found.

All files were recovered from the corrupt zip by ZipRepair.net

This corrupt zip file occurs without any changes to the child theme from the parent theme and without any plugins active. Only the child functions.php and style.css exist."	meushar	6.0.3	reporter-feedback
Reporter Feedback / Close	55764	Export of menus		Export	normal	feature request	new	2022-05-18T09:12:39Z	2022-05-19T08:22:54Z	"​It will be time saving a lot if WordPress allows export ​of ​menus​. ​
"	martiniwebb		reporter-feedback
Defects Awaiting Review	62652	Ambiguous class resolution SimplePie_Core in wordpress 6.7		External Libraries	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	60207	regarding WP 6.4.2 - masonry 4.2.2 and imagesloaded 5.0.0 js not compatible		External Libraries	normal	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	6.4.2	
Defects Awaiting Review	52926	mobile compatibility library sortable list input field ignores touch event		External Libraries	normal	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	5.7	needs-patch
Enhancements Awaiting Review	35331	Update external Prototype library to 1.7.3		External Libraries	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	63258	Loose external reference to cdn.dashjs.org		External Libraries	normal	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		
Enhancements Awaiting Review	52012	Bundle jQuery plugin temporarily to encourage adoption of auto-updates		External Libraries	normal	feature request	new	2020-12-10T10:48:30Z	2020-12-19T17:53:52Z	"**Some background:
**

I wanted to include some comments here that I see as representative of the user experiences I have read about across the interwebs when they upgraded to to WordPress 5.6:


{{{
Hello Wordfence team,
Thank you for this very interesting post. 
Every update of WP makes me worried, 
especially lately because of all the plugin and themes update needed after... 
and the risk of big bug...
For the security, Wordfence is installed in all my websites

for many years now and it really help me to sleep well ;)
Merry christmas time for all
Cécile
}}}

{{{
Thank you for this useful rundown of the newest WordPress update. 
While it does sound exciting, 
I'm going to hold off for the time being 
and make sure all my plugins have caught up.
}}}

{{{
Do you think I should postpone the WordPress update to the latest? 
And I have to test the latest WordPress first on my local site?
And is there no problem if I delay updating WordPress 
to the latest version? 
Are there no security holes or other bugs if I delay updating 
WordPress to the latest version?
}}}


{{{
i had upgraded my website to latest version of wordpress from 5.5 to 5.6. 
after few hours from upgrade my site started showing blank popup on screen 
which was not removeable even this have a cancel icon at top.

my whole structure of [readacted] was disturbed.

so I've downgraded back to 5.5 now it's working fine.

so if you want to upgrade your version. do it at your own risk.
}}}

The above comments are from the WordFence blog:
https://www.wordfence.com/blog/2020/12/wordpress-5-6-introduces-a-new-risk-to-your-site-what-to-do/

**The Problem:
**

There were a large number of questions on the Forums during 5.5. and 5.6. where sites experienced fatal errors or other unexpected behaviour.
While plugins that have not updated to the latest version of jQuery libraries are certainly not the only reason for fatal errors or unexpected behaviour - and while the number of active installations of the jQuery Helper plugin are probably inflated at this point - the number of downloads for the plugin and trends regarding questions on the Forums and other WordPress-related Help sites, in combination with other indicators like the number of plugins in the repository that make reference to outdated jQuery libraries suggest that the problem is not trivial.

When sites break, non-technical users tend to want to roll back.
This breaks trust in auto-updates and is highly likely to lead to users staying on older Core versions for longer and not trying to update again for years.

**The Proposed Solution:**

Please note that this solution on its own won't magically solve all update problems. However, it is one part that seems like it can be mitigated to reduce the ""noise"" (not suggesting that the concerns are not valid - suggesting that word of mouth is highly effective) / friction in the ecosystem.

Bundle the jQuery Helper into Core (like Hello Dolly).

Strongly consider running a cron job to disable (and possibly delete) the plugin after a certain number of admin logins (say 20).
Have a prominent message (possibly redirect to a ""landing page"") to show the admin user how many logins they have left before the plugin is automatically disabled / deleted.
Consider allowing the admin to extend the number of admin logins (perhaps to 200), or to enable the plugin until disabled (for sites that use plugins reliant on the outdated jQuery libraries).

If possible, consider making use of Site Health to give an indication to the admin user as to whether or not the plugin is needed on their current setup or not.

A bundled plugin approach could potentially be used for other breaking changes in the future - as one of the main constraints .org has always had to contend with was that there hasn't really been a good way to communicate these to a large number of site owners / admins.

The goal here is **not** to let people use insecure libraries indefinitely - the goal is to get them **off** those libraries as soon as possible by facilitating communication and by not leaving them with a broken site (potentially during the middle of the night without them even being aware that the auto-update is happening) and scaring them off updating at all."	carike	5.5	
Enhancements Awaiting Review	48499	request: bundle unminified jQuery		External Libraries	normal	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	5.2.4	
Reporter Feedback / Close	59423	Datepicker in wordpress do not follow the Date format set in the settings		External Libraries	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	48457	Requests library depends on PHP zlib		External Libraries	normal	defect (bug)	new	2019-10-29T10:56:23Z	2022-10-05T13:36:34Z	"Currently the Requests library checks for zlib in some locations, but not others, before using it.

This means it's possible to get a fatal error because `gzinflate()` is undefined, for example when trying to fetch content from the WordPress.org API.

Specifically noticed in `compatible_gzinflate()`, at line 947."	Clorith	4.6	close
Reporter Feedback / Close	51990	Codemirror does not support JSX by default as mentioned		External Libraries	major	defect (bug)	new	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	5.5.3	reporter-feedback
Reporter Feedback / Close	34130	Thickbox previous arrow		External Libraries	minor	defect (bug)	new	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	4.3.1	close
Defects Awaiting Review	56883	Feeds of non-existent tags and categories displays an empty feed instead of 404		Feeds	normal	defect (bug)	new	2022-10-21T19:27:09Z	2026-11-02T07:19:34Z	"I noticed in Google Search Console that Google often visits feeds of tags that no longer exist. It turns out that the RSS feeds still work instead of returning a 404.

Recreating the issue is simple:
Go to the page of the non-existent tag, e.g. `/tag/asdsdsad/` and append `feed/` to the end of the address, eg. `/tag/asdsdsad/feed/`. An empty feed will be displayed instead of a 404.

This should return a 404 so that search engine bots can forget about it instead of fetching it every so often.
I have thousands of such deleted tags on my site. It would be better for the environment if the bots didn't waste resources on this."	rafaucau	6.0.3	has-patch
Defects Awaiting Review	47623	Feeds: <lastBuildDate> has incorrect date		Feeds	major	defect (bug)	new	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	5.2.2	has-patch
Defects Awaiting Review	63843	`<wfw:commentRss>` in feeds can be empty causing invalid feed when filtered by `post_comments_feed_link`		Feeds	normal	defect (bug)	new	2025-08-19T21:45:49Z	2026-10-08T20:56:57Z	"For history on this issue please see this older (resolved) ticket: https://core.trac.wordpress.org/ticket/9134

In it they ensured that the feeds didn't insert a `<wfw:commentRss>` URL for each post in the main feed unless comments were open or there were already comments (i.e. that you could expect content). 

This ticket is about a related issue that affects the same code: It's possible for `get_post_comments_feed_link()` to return empty, if filtered by `post_comments_feed_link`, and in that scenario, currently, the result is an invalid feed because `<wfw:commentRss>` must contain a valid URL. 

(Note this ticket is about the RSS2 feed, but I'm pretty sure the same fix will also apply to Atom)

**Higher-level problem: Need a way to disable per-post comment feeds**

WordPress needs a straightforward way to completely disable per-post comment feeds, and currently the only solution causes RSS validation errors due to `wfw:commentRss` being inserted in `feed-rss2.php` regardless of whether there is a link or not.

This ticket assumes there's no willingness to add a proper way to disable per-post comment feeds, such as a `per_post_comment_feeds_enabled` filter that could handle the various aspects of this, ensuring the per-post feed URLs result in HTTP errors as well as ensuring the URLs aren't inserted into the header or main feeds. 

Either way, if such a higher-level filter was added, some change to `feed-rss2.php` would still be needed, because the logic in that file, described below, is unable to handle a scenario where per-post comment feeds are disabled. 

**Why disable per-post comment feeds?**

Simple answer is because we simply have a right to decide for ourselves. There should be **some** form of fine-grained control over the publishing of comment feeds sitewide and per-post, without having to disable comments completely on posts (the only way that normal users can do so currently). 

The more specific motivation for our case, a journalism org going back to 2005, is that scrapers pick up and check all the per-post RSS feeds, which is a huge resource drain that provides no value to anyone involved. We share full RSS of our content, and are happy to have a single, site-wide commend feed, but in the case of per-post comment feeds, we want to both turn them off so they don't load, and of course also stop promoting the feed URLs so they don't get visited at all and don't risk an SEO punishment for inserting links that don't resolve. 

**Only way to disable per-post comment feeds in RSS: Filter `post_comments_feed_link` causing validation errors**

There should be an easy way to disable these feeds, but when I looked I found nothing and came up with the following solution, which I shared on the WP StackExchange:

https://wordpress.stackexchange.com/a/361130/175

It involves several filters to do the whole job, I won't repeat them all here, but the one that triggers the major issue for us is `post_comments_feed_link` which, as far as I can tell, is the only logical way to avoid publishing the per-post comment feed URLs in RSS:


{{{
function gv_disable_insert_post_comments_feed($for_comments) {
	
	return '';
}
add_filter('post_comments_feed_link', 'gv_disable_insert_post_comments_feed');
}}}


Doing this means that when `feed-rss2.php` checks for the per-post comments URL, it gets nothing, which is good, except that it still outputs the empty `<wfw:commentRss></wfw:commentRss>` tag. This results in the following output in https://validator.w3.org/:

{{{
Sorry
This feed does not validate.

line 76, column 21: wfw:commentRss must be a full and valid URL: (64 occurrences) [help]

					<wfw:commentRss></wfw:commentRss>
}}}

It seems self-evident to me that if there's no URL, WP should not output an empty tag that generates a validation error. It's also clear that the `<wfw:commentRss>` is in no way mandatory, because it's not shown if there are no comments and comments are closed. 

So it seems worthwhile to fix this and ensure that the tag is only inserted when there is a URL to show.

Here's the old code:

{{{
		<?php if ( get_comments_number() || comments_open() ) : ?>
			<wfw:commentRss><?php echo esc_url( get_post_comments_feed_link( null, 'rss2' ) ); ?></wfw:commentRss>
			<slash:comments><?php echo get_comments_number(); ?></slash:comments>
		<?php endif; ?>
}}}

Seems a simple update that avoids the possibliity of a validation error would be the following:

{{{
		<?php if ( esc_url( get_post_comments_feed_link( null, 'rss2' ) ) AND ( get_comments_number() || comments_open() )) : ?>
			<wfw:commentRss><?php echo esc_url( get_post_comments_feed_link( null, 'rss2' ) ); ?></wfw:commentRss>
			<slash:comments><?php echo get_comments_number(); ?></slash:comments>
		<?php endif; ?>
}}}

Not exactly elegant, but it avoids the error, and would allow sites to use the `post_comments_feed_link` filter to solve the problem with a single solution. 

Any reason not to do this?

Any core committers think it would instead be better to add more of an API for this, e.g. a function `wp_post_comment_feeds_enabled()` which has it's own filter to completely disable the feed URLs? Honestly that's what I tink is called for, considering that turning off these feeds is very appealing in the age of AI scrapers. It should be extremely simple both for someone to do themselves if they have access to a functions.php file, and for someone to add to a plugin via the API rather than via hacks. 

Thanks to anyone who read through this, hopefully we can fix this little issue at some point!







"	jerclarke		dev-feedback
Defects Awaiting Review	65853	Using is_feed() does not always work		Feeds	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63292	atom_enclosure doesn't always get MIME type - inconsistency with rss_enclosure		Feeds	minor	defect (bug)	new	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	6.8	has-patch
Defects Awaiting Review	9993	Rss and atom feeds are dropping some characters		Feeds	normal	defect (bug)	assigned	2009-05-31T23:54:40Z	2026-04-17T07:12:18Z	"Blog post with title:

{{{
& > test <
}}}

has the less than ( < ) is stripped from the atom and rss feed.

"	pm24601	2.7.1	has-patch
Defects Awaiting Review	19998	Feeds can contain characters that are not valid XML		Feeds	normal	defect (bug)	new	2012-02-09T16:28:47Z	2026-01-08T18:50:34Z	"It is possible for any of the feeds to contain control characters which are not valid in XML e.g. http://www.fileformat.info/info/unicode/char/1c/index.htm

When outputting user supplied content in an XML context we should strip these control characters - they are unprintable and just break feed parsers.

http://en.wikipedia.org/wiki/Valid_characters_in_XML has a good list of what is and isn't valid.

I guess we need a {{{strip_for_xml()}}} function or something."	westi	3.3.1	has-patch
Defects Awaiting Review	51306	Add inline documentation for atomlib.php		Feeds	normal	defect (bug)	new	2020-09-14T08:09:30Z	2025-09-05T12:20:25Z	Doc: Add $msg parameter entry for _p($msg) function	anonymized_18274256	5.5	has-patch
Defects Awaiting Review	49171	Trying to get property 'post_type' of non-object in wp-includes/link-template.php on line 682		Feeds	normal	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		needs-patch
Defects Awaiting Review	62627	PHP warning or fatal error if user supplies array instead of string		Feeds	normal	defect (bug)	new	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	6.7.1	has-patch
Defects Awaiting Review	57763	RSS Feed not valid		Feeds	major	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	6.1.1	
Defects Awaiting Review	37763	Target server overload due to invalid RSS feed URL in RSS widget	stevenkword	Feeds	normal	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	4.6	needs-patch
Defects Awaiting Review	57661	Scheduled Posts not updating lastBuildDate in feed		Feeds	major	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	6.1.1	
Defects Awaiting Review	59311	Error on feed link		Feeds	major	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	6.3.1	
Defects Awaiting Review	59082	Titles and descriptions in RSS feeds need to use CDATA to encode special characters.		Feeds	major	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	6.3	
Defects Awaiting Review	50044	The function get_self_link() in feed.php does not include the port		Feeds	normal	defect (bug)	new	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	5.5	has-patch
Defects Awaiting Review	50159	Simplepie 1.5.5 - code review and modifications - fix SimplePie cache bug		Feeds	normal	defect (bug)	new	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	5.5	has-patch
Defects Awaiting Review	55215	Unknown file in WordPress core: wp-includes/SimplePie/Cache/adf416701234bb74c7b67e4f1dc6eede.spc Type: File		Feeds	normal	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		
Defects Awaiting Review	54802	Allow post_comments_feed_link to disable feed output		Feeds	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	44283	Enclosure can't deal with CDN media files - WPCore redirects the URL		Feeds	normal	defect (bug)	new	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	4.9.6	dev-feedback
Defects Awaiting Review	50498	"Change ""html"" to ""HTML"" in atomlib.php"		Feeds	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	52239	CREA DDF blacks out in latest WordPress		Feeds	critical	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	5.6	
Enhancements Awaiting Review	66525	Tests: Add unit tests for the server-side rendering of the RSS block		Feeds	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66505	Add unit tests for WP_SimplePie_Sanitize_KSES		Feeds	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66480	Tests: Add unit coverage for get_self_link()		Feeds	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66479	Tests: Add unit coverage for comments_link_feed()		Feeds	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66478	Tests: Add unit coverage for bloginfo_rss()		Feeds	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	64363	add MarkDown feeds		Feeds	normal	enhancement	new	2025-12-04T23:58:16Z	2026-04-27T16:04:13Z	"Matt [https://www.youtube.com/watch?v=U_DF4-23C8Q&t=5989s said] it might be good to have a Markdown version of the content.

This is the start of doing this."	pbearne		has-patch
Enhancements Awaiting Review	57107	No-op `MagpieRSS`		Feeds	normal	enhancement	new	2022-11-14T15:44:34Z	2024-07-26T14:04:34Z	"MagpieRSS is an XML-based RSS parser built in the days of PHP 4.x.

MagpieRSS has been deprecated in WordPress since version 3.0 was released in 2010. The library itself has not been updated since 2004 and is abandoned.

Since then the library has continued to be included with WordPress to avoid breaking any sites that may have been using it. It has been deemed an ""adopted"" external library, but only the following very minor updates have been made:
- inline documentation.
- changes to avoid fatal PHP errors in modern versions of PHP.
- changes to avoid deprecated notices/other warnings in modern versions of PHP.

Looking at the plugin directory, there is [https://wpdirectory.net/search/01GHVBFXQJA6M0VH9FVT4HHF1S almost no meaningful usage of the class]. 90-95% of the matches are false positives related to identifying when a crawler is accessing pages/feeds.

Enough time has passed since deprecating this class where no-opping can be considered to avoid continuing to ship code that no one is using."	desrosj		dev-feedback
Enhancements Awaiting Review	52536	"Add ""X-Robots-Tag: noindex"" to feeds by default"		Feeds	major	enhancement	new	2021-02-16T10:46:30Z	2024-01-08T21:42:17Z	"We’ve noticed that spammy websites are linking to RSS search results on our site that include their domain in the search terms.

For example, if our site is wordpress.org and their site is example.com, they might link to wordpress.org/search/+example.com+best+pharmacy+pills+online/feed/rss2/

For normal WordPress searches, this isn’t a problem because the search results are set to “noindex”. However, these RSS2 pages are outputted as XML and don’t include any kind of “noindex” tag, so Google recognizes them as being indexable pages.

Looking around Google, it seems like this type of blackhat SEO technique is fairly common and most likely done in bulk by bots.

SEO plugins like Yoast and AIOSEOP appear to add a ""noindex"" tag to the search result pages, but neither of them seems to add that response header to the feeds, which means that most WordPress sites are vulnerable to that tactic.

Since feeds and search pages are built into WordPress's core and most people wouldn't want their results to be indexed anyway, can we add noindex to those two types of pages by default?"	pikamander2		
Enhancements Awaiting Review	58939	Option to bypass fetch_feed cache on call.		Feeds	minor	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		
Enhancements Awaiting Review	49321	provide standard pagination links in RSS/Atom feeds		Feeds	normal	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	5.4	
Enhancements Awaiting Review	55909	Do WordPress feeds need pagination query SQL_CALC_FOUND_ROWS?		Feeds	normal	enhancement	new	2022-06-03T07:40:59Z	2022-06-03T15:20:46Z	"It seems that by default, WordPress feeds endpoints generate an extra SQL_CALC_FOUND_ROWS query, because the `no_found_rows` query parameter [https://github.com/WordPress/wordpress-develop/blob/2c06c9afd5ba32a0f55a9f8313e636fbcb698cab/src/wp-includes/class-wp-query.php#L1943 defaults] to false. 

On large sites with ten of thousands of posts, this can create slow queries which overall can affect the database performance.

While checking the docs and expected functionality of feeds https://wordpress.org/support/article/wordpress-feeds/ , I don't see any mention for pagination, so my question is:

Are feeds supposed to have pagination enabled and if NOT, does it make sense to set the `no_found_rows => true` for the default WP_Query when feeds are triggered? 

So far, I've managed to fix it with

{{{#!php
<?php
function feed_filter($query)
{
    if( $query->is_feed && $query->is_main_query() )
    {
        $query->set('no_found_rows', true);
    }
}

add_action( 'pre_get_posts', 'feed_filter' );

}}}


but curious if there might be other implications to this?"	ovidiul	6.0	
Enhancements Awaiting Review	50441	Allow CORS for RSS feed		Feeds	normal	enhancement	new	2020-06-20T18:22:19Z	2021-10-08T06:59:23Z	"I'm developing an in-browser RSS reader and want to get an RSS feed from my blog on WP.com but browser (both Chrome and FF) shows me the error:

{{{
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://wordpress.com/blog/feed/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
}}}

Here is a small example to reproduce:

{{{
<html>
<head>
    <script src=""https://unpkg.com/rss-parser/dist/rss-parser.min.js""></script>
    <script>
        let parser = new RSSParser();
        parser.parseURL('https://wordpress.com/blog/feed/', function(err, feed) {
            if (err) throw err;
            console.log(feed.title);
            feed.items.forEach(function(entry) {
                console.log(entry);
            })
        })
    </script>
</head>
</html>
}}}


This is quite popular thing that a lot of peoples tries to do:
https://www.google.com/search?q=wordpress+feed+cors

That's one of the main reasons why most browser JS RSS readers requires to use a dedicated proxy server that will make a server to sever call to retrieve the RSS:

* https://github.com/sdepold/jquery-rss proxies RSS fetch via Feedr.
* https://github.com/enginkizil/FeedEk proxies RSS fetch via Feed API
* https://github.com/rbren/rss-parser uses https://cors-anywhere.herokuapp.com

The fix is easy:
{{{
add_action( 'pre_get_posts', 'add_header_origin' );

function add_header_origin() {
	if (is_feed()){
		header( 'Access-Control-Allow-Origin: *' );
	}
}   
}}}

But I wan't the fix to be added into WP trunk because my reader will mostly consume RSS from wordpress.com or many other WP blogs.

It should be fine to allow CORS requests to feed. The only one problem is a security concern. Hacker can make a DDoS by pasting on some popular site an <img> tag with src to WP feed and this will produce a big load to WP instance.
But here we can add a simple check: when browser requests an image it sends the header `Accept: image/webp,image/apng,image/*,*/*;q=0.8` while JS RSS headers can set the `Accept` header manually to `application/rss+xml`.

Actually the rss-parser already sends the `Accept: application/rss+xml`. So on the server side we can just check that client requested exactly the feed and only then try to generate it.

As far I see this is something really important (because already used workarounds) and it should be easy to implement and safe to enable by default. So I'll set Major severity.
"	stokito		
Enhancements Awaiting Review	48414	Enhancement: feed_links_extra needs filter to remove a feed from pages		Feeds	normal	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		
Enhancements Awaiting Review	43604	Add option to completely disable syndication feeds		Feeds	normal	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		
Enhancements Awaiting Review	41905	Only loop over enclosure meta keys in rss_enclosure() and atom_enclosure()		Feeds	normal	enhancement	new	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	2.2	has-patch
Reporter Feedback / Close	64323	fetch_rss() uses incorrect function signature for XML `start_element_handler`		Feeds	minor	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	6425	Support for RTL in feeds		Feeds	normal	enhancement	assigned	2008-03-27T20:56:51Z	2023-02-02T13:42:09Z	"In the current state of most Feed readers, the only surefire way to make RTL content display properly is to have directionality enforced inside the content - that is, either with {{<div dir=""rtl"">}}} tags inside CDATA or with Unicode directionality characters (for e.g., RLE and PDF, or &#8235; and &#8236;, or U+202B and U+202C.) for excerpts or titles.

While we currently have pretty good support for RTL languages, there is no support for RTL in feeds - all is left up up to the feed reader.

I suggest adding a mechanism to automatically insert these tags/characters for blogs that have text_direction set to RTL - much in the same way RTL css style sheets are loaded for these blogs.

I have attached a patch that modifies the feed templates to insert these tags/characters. Note that there is no checking of blog directionality here - this is just an example of how to enforce RTL in feeds, not how to enforce it conditionally.

This relate to a previous ticket I submitted (#5517), regarding adding an option to set the feed language - which currently just defaults to EN. Certain feed readers know to display RTL text in proper directionality according to feed language (for e.g., feeds that have their feed language set to HE (Hebrew), will get displayed from Right to Left). While setting feed language is not a comprehensive solution, it is a step in the right direction."	RanYanivHartstein		close
Defects Awaiting Review, reported against no version	35517	Work around PHP7 php-ssh2 breakage		Filesystem API	normal	defect (bug)	new	2016-01-18T20:46:22Z	2023-06-27T06:41:29Z	"There is an updated php-ssh2 package available for PHP7, but it currently breaks the WordPress updater functionality for `class-wp-filesystem-ssh2.php`. The root cause seems to be that it has not correctly implemented the PHP stream wrappers for the `stat()` call, and any dependent functions such as `is_file()`, `is_dir()`, `file_exists()`, etc.

However, the `ssh2_sftp_stat()` function does work, and we can deduce the other information from it.

I've filed a bug against the php-ssh2 extension (https://bugs.php.net/bug.php?id=71376), but I wondered if using `ssh2_sftp_stat()` might be better, in general, than depending on the PHP stream wrapper functionality.

"	dougal		dev-feedback
Defects Awaiting Review	64519	WP_Filesystem_FTP and WP_Filesystem_FTPext classes create orphaned temp/noise files		Filesystem API	normal	defect (bug)	new	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	6.9	has-patch
Defects Awaiting Review	59729	By setting int to the parameter of the function path_is_absolute(), a Notice will always be output.		Filesystem API	trivial	defect (bug)	new	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	2.5	has-patch
Defects Awaiting Review	65150	Issue with copy_dir() function  t does not skips folders.		Filesystem API	normal	defect (bug)	new	2026-04-29T08:30:43Z	2026-05-19T20:55:14Z	"I have a issue with the copy_dir() function.  If i want to skip a folder called 'languages' it does not skip it and the files within that folder are still copied.

$skip_list = array('languages');
$result = copy_dir($from, $to, $skip_list);

However if i revert copy_dir to the version which was in WordPress 3.2.1  it works just fine. Below is the code from WordPress version 3.2.1. The languages and its content folder is skipped.


{{{
	function copy_dir($from, $to, $skip_list = array() ) {
		global $wp_filesystem;

		$dirlist = $wp_filesystem->dirlist($from);

		$from = trailingslashit($from);
		$to = trailingslashit($to);

		$skip_regex = '';
		foreach ( (array)$skip_list as $key => $skip_file )
			$skip_regex .= preg_quote($skip_file, '!') . '|';

		if ( !empty($skip_regex) )
			$skip_regex = '!(' . rtrim($skip_regex, '|') . ')$!i';

		foreach ( (array) $dirlist as $filename => $fileinfo ) {
			if ( !empty($skip_regex) )
				if ( preg_match($skip_regex, $from . $filename) )
					continue;

			if ( 'f' == $fileinfo['type'] ) {
				if ( ! $wp_filesystem->copy($from . $filename, $to . $filename, true, FS_CHMOD_FILE) ) {
					// If copy failed, chmod file to 0644 and try again.
					$wp_filesystem->chmod($to . $filename, 0644);
					if ( ! $wp_filesystem->copy($from . $filename, $to . $filename, true, FS_CHMOD_FILE) )
						return new WP_Error('copy_failed', __('Could not copy file.'), $to . $filename);
				}
			} elseif ( 'd' == $fileinfo['type'] ) {
				if ( !$wp_filesystem->is_dir($to . $filename) ) {
					if ( !$wp_filesystem->mkdir($to . $filename, FS_CHMOD_DIR) )
						return new WP_Error('mkdir_failed', __('Could not create directory.'), $to . $filename);
				}
				$result = copy_dir($from . $filename, $to . $filename, $skip_list);
				if ( is_wp_error($result) )
					return $result;
			}
		}
		return true;
	}
}}}


The current dir_copy() function does not skip folders and its content.

Can you please provide a fix for this as the description of dir_copy states it skips files/folders by the skip list.

Or am i doing something wrong?  Do i have to provide the complete path to the languages folder?  In v3.2.1 we did not have todo this.

Please advice"	neo2k23		has-patch
Defects Awaiting Review	63173	FS_Method with ftpext and Core Updates		Filesystem API	major	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	63197	Sanity Checks in mkdir and delete for FTPext Filesystem		Filesystem API	major	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	62294	Automatic updates no longer work with via SSH2 from WP 6.6		Filesystem API	normal	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	6.6	
Defects Awaiting Review	51340	Stop chmodding files and folders		Filesystem API	major	defect (bug)	new	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	5.3	dev-feedback
Defects Awaiting Review	55328	PHP warning on rename() inside download_url() in /wp-admin/includes/file.php		Filesystem API	normal	defect (bug)	new	2022-03-07T12:34:54Z	2023-03-17T19:11:01Z	"Hi, I struggle with the following warning on my WordPress site (version 5.9.0 and currently 5.9.1) whenever I update the plugins:


{{{
PHP Warning: rename(/tmp/plugin-name.tmp,plugin-name.plugin-version.zip): Permission denied in /wp-admin/includes/file.php on line 1201, referer: siteURL/wp-admin/plugins.php
}}}


The warning is triggered by rename() function inside download_url()in /wp-admin/includes/file.php on line 1201. It's been logged on the site since support for Content-Disposition filename was added in WP 5.9: developer.wordpress.org/reference/functions/download_url/ The warning is also getting logged in WP 5.9.1.

My site uses ftpext filesystem and I believe this is why 'permission denied' warning is triggered. The plugins update successfully, with no other issues, however, the above warning is logged every single time. Would it be possible to exclude Content-Disposition filename support if website uses ftpext filesystem method? 




"	devbd	5.9	dev-feedback
Defects Awaiting Review	50287	FS_METHOD=ssh2 breaks some plugins		Filesystem API	minor	defect (bug)	new	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	5.4.1	has-patch
Defects Awaiting Review	33332	Default ACL entries are not set correctly when file is uploaded to WP		Filesystem API	major	defect (bug)	new	2015-08-10T22:21:08Z	2019-02-07T07:30:14Z	"Hello there!

We are using ACL permissions on our server in order to isolate all websites from each other. Both nginx and php-fpm has it's own users. Actually, each website has it's own php-fpm user.

The ACL permissions are set for new files via default permission set:

{{{
getfacl -a ./sitename/wp-content/uploads

# file: sitename/wp-content/uploads
# owner: www-data
# group: www-data
user::rwx
user:nginx:r-x
user:fpm-sitename:rwx
group::rwx
mask::rwx
other::---
default:user::rwx
default:user:nginx:r-x
default:user:fpm-sitename:rwx
default:group::rwx
default:mask::rwx
default:other::---
}}}

So, when I manually create a file, the correct ACL permissions will be set for it by the filesystem itself:


{{{
$ sudo -u fpm-sitename touch test
$ getfacl ./test

# file: test
# owner: fpm-sitename
# group: fpm-sitename
user::rw-
user:nginx:r-x			#effective:r--
user:fpm-sitename:rwx		#effective:rw-
group::rwx			#effective:rw-
mask::rw-
other::---
}}}

And nginx will be able to read and serve it.

However, when I upload a file through the WordPress it has no ACL entries at all.

I've looked through the code and the following part of the '''_wp_handle_upload()''' seems to be the culprit:

{{{
	// Set correct file permissions.
	$stat = stat( dirname( $new_file ));
	$perms = $stat['mode'] & 0000666;
	@ chmod( $new_file, $perms );
}}}

After commenting it out uploading works like a charm and proper ACL entries are set as expected.

We're using Ubuntu Server 14.04.3 LTS.

Cheers!"	slavafomin	4.1.1	
Defects Awaiting Review	40195	No provision to set paths for sftp (ssh2)		Filesystem API	normal	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	4.7.2	
Enhancements Awaiting Review	66390	WP_Filesystem_SSH2 should verify the server's host key		Filesystem API	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	57725	Use of rand() function instead of wp_rand()		Filesystem API	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	56301	Add File Backup Feature in wp_edit_theme_plugin_file()	sajjad67	Filesystem API	normal	feature request	assigned	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		dev-feedback
Enhancements Awaiting Review	46561	Make wp_normalize_path() on Windows resolve drive letter for drive–relative paths		Filesystem API	minor	enhancement	new	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	3.9	dev-feedback
Enhancements Awaiting Review	55469	WP_Filesystem_SSH2::chmod() should use ssh2_sftp_chmod()		Filesystem API	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	24925	Improve no disk space error handling when updating plugins		Filesystem API	minor	enhancement	new	2013-08-02T11:25:24Z	2021-07-20T23:02:17Z	"I received the following uninformative error message when trying to update a plugin (roughly translated from Finnish):

{{{
Error on updating BulletProof Security. Cannot create folder. /[WPDIR]/wp-content/upgrade/bulletproof-security.tmp.
}}}

The error was caused by not having enough disk space. The plugin update should check if that's the reason for the error and then display a more informative error message."	Daedalon		dev-feedback
Reporter Feedback / Close	59917	"On windows host using ftp, Undefined array key ""islink"""		Filesystem API	normal	defect (bug)	new	2023-11-16T18:02:27Z	2026-10-04T19:02:27Z	"Fresh install of wordpress 6.4.1 
On windows host using ftp

steps to recreate:
1. Going to ""sitehealth"" page gives critical warning ftp credentials are missing for updates.

2. Google search suggested adding the following to the user added section of `wp-config.php`
{{{
define('FTP_USER', 'USERNAME');
define('FTP_PASS', 'PASSWORD');
define('FTP_HOST', 'FTP.EXAMPLE.COM');
}}}
3. After this, go back to site health page. It is giving the following warnings repeatedly:
{{{
Warning: Undefined array key 3 in C:\...\wp-admin\includes\class-ftp.php on line 457

Warning: Undefined array key ""islink"" in C:\...\wp-admin\includes\class-wp-filesystem-ftpsockets.php on line 695

Warning: Undefined array key ""perms"" in C:\...\wp-admin\includes\class-wp-filesystem-ftpsockets.php on line 700

Warning: Undefined array key ""islink"" in C:\...\wp-admin\includes\class-wp-filesystem-ftpsockets.php on line 695
}}}"	antonmo		reporter-feedback
Reporter Feedback / Close	47817	Using file editor ignores schema and always uses http		Filesystem API	normal	defect (bug)	new	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	5.2.2	close
Reporter Feedback / Close	49719	PHP warning when updating ro_RO translation to latest version		Filesystem API	minor	defect (bug)	new	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	5.3.2	close
Reporter Feedback / Close	49865	_unzip_file_pclzip attempting to create directories all the way up to /		Filesystem API	normal	defect (bug)	new	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	5.4	close
Reporter Feedback / Close	52575	"get_home_path() returns ""/"" instead of path to WordPress directory"		Filesystem API	major	defect (bug)	new	2021-02-19T12:28:50Z	2023-07-18T01:34:51Z	"Wrong return value from get_home_path() in /wp-admin/includes/file.php
[https://developer.wordpress.org/reference/functions/get_home_path/]

Expected result: Absolute filesystem path to the root of the WordPress installation
Result in situation below: /

**Context**
A WordPress in its own directory installed according method II mentioned here
https://wordpress.org/support/article/giving-wordpress-its-own-directory/

**Settings** (Example)
Wordpress: https://pixellogik.de/wp
Website: https://pixellogik.de

Plugin WP-SCSS installed

**Reproduce**
Open https://pixellogik.de in a browser

The plugin calls get_home_path()  in enqueue_files() in line 213 
/www/htdocs/w012345/pixellogik.de/wp/wp-content/plugins/wp-scss/class/class-wp-scss.php

Due to the unexpected value ""/"" of get_home_path() the URL of the generated CSS file does not point to a file.
The CSS won't be loaded, the site looks scrambled.

**What went wrong?**
If SCRIPT_FILENAME is outside the installation directory, the directory can't be found. This case is not handled, hence value ""/"" is returned

**Possible fix:**
return ABSPATH in that case"	pixellogik	5.6.1	dev-feedback
Reporter Feedback / Close	55688	Update size function in WP_Filesystem_Direct		Filesystem API	normal	defect (bug)	new	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	2.5	close
Defects Awaiting Review, reported against no version	40552	Calling wp_parse_args() early, with $args as empty string, may cause fatal error		Formatting	normal	defect (bug)	new	2017-04-24T15:41:28Z	2024-11-01T07:41:12Z	"When running the unit test suite while working on #31245, I ran into an edge-case fatal error:

{{{
Fatal error: Uncaught Error: Call to undefined function wp_parse_str() in /srv/www/wordpress-develop/public_html/src/wp-includes/functions.php on line 3487

Error: Call to undefined function wp_parse_str() in /srv/www/wordpress-develop/public_html/src/wp-includes/functions.php on line 3487
}}}

Anytime between `functions.php` being loaded and `formatting.php` being loaded, calling `wp_parse_args()` with an empty string as the first parameter will trigger it, and I was doing this in the `wp_load_alloptions()` stack with my test code.

It happens because `wp_parse_args()` calls `wp_parse_str()` when `$args` is an empty string, and because `formatting.php` is loaded well after `functions.php`, the above fatal happens.

----

It's not a bug in core today, but it could be a problem later.

In my research, one place of relatively high risk is `register_setting()`. You'd need to pass an empty string as the third parameter, and it would need to be early in the stack, but it calls `wp_parse_args()` and is in `functions.php`.

----

One potential solution is to move `wp_parse_str()` out of `formatting.php` and into `functions.php`, alongside it's other `wp_parse_` siblings. Another would be to load `formatting.php` sooner."	johnjamesjacoby		dev-feedback
Defects Awaiting Review, reported against no version	39190	RSS feed not valid: U+001A or 0x1a		Formatting	normal	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		
Defects Awaiting Review, reported against no version	43313	wptexturise uses the wrong curly quote after a closing link tag		Formatting	normal	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		
Defects Awaiting Review, reported against no version	40191	Multiline post content with `<` as first character becomes malformed		Formatting	normal	defect (bug)	new	2017-03-17T18:44:07Z	2018-03-02T07:58:24Z	"Create a page/post with the following content:

{{{
< Hello
< Hello
< Hello
}}}

View the post, and `post_content` becomes:

{{{
< Hello < Hello < Hello
}}}"	johnjamesjacoby		
Defects Awaiting Review, reported against latest stable branch	66335	"sanitize_text_field() HTML-escapes & ' "" after a lone <, beyond the documented entity conversion"		Formatting	minor	defect (bug)	new	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	7.1.3	has-patch
Defects Awaiting Review	60391	links_add_base_url will encode all attribut in null passed in		Formatting	normal	defect (bug)	new	2024-01-30T23:23:31Z	2026-11-09T10:07:44Z		pbearne		has-patch
Defects Awaiting Review	41304	Bad protocol sanitization in KSES for URLs NOT RFC 3986 compliant		Formatting	normal	defect (bug)	new	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	4.8	has-patch
Defects Awaiting Review	63997	wptexturize incorrectly escapes attribute quotes after encountering greater-than sign		Formatting	normal	defect (bug)	new	2025-09-18T00:25:53Z	2026-10-30T20:25:39Z	"This appears to be a more generalized version of ticket https://core.trac.wordpress.org/ticket/63426.

The following examples could be run on the the 'init' action hook.

Using the greater-than character within attribute values causes the wptexturize function to incorrectly convert all proceeding quotation marks to decimal code.

{{{
<?php
$div_string = '<div data-template=""Label <% value %>"" data-label=""{A \'message\' string}"">Content</div>'
echo wptexturize( $div_string );
// Output: 
//    <div data-template=""Label <% value %>&#8221; data-label=&#8221;{A &#8216;message&#8217; string}&#8221;>Content</div>
// Expected output:
//    <div data-template=""Label <% value %>""; data-label=""{A &#8216;message&#8217; string}"">Content</div>
}}}

This attribute quote escaping ""resets"" when a less-than symbol is encountered.

{{{
$div_string = '<div data-break=""3>2"" data-broken=""b"" data-fixer=""<"" data-working=""1"">Content</div>';
echo wptexturize( $div_string );
// Output: 
//    <div data-break=""3>2&#8243; data-broken=&#8221;b&#8221; data-fixer=&#8221;<"" data-working=""1"">Content</div>
}}}



"	icmcnamara	6.8.2	has-patch
Defects Awaiting Review	50863	[playlist] + text = </p> error		Formatting	normal	defect (bug)	new	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	5.4.2	has-patch
Defects Awaiting Review	66320	kses filter silently strips allowfullscreen from Vimeo and YouTube iframe embeds on every post save, breaking video playback sitewide		Formatting	normal	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		
Defects Awaiting Review	53160	PHP 7.4 map_deep compatibility issue		Formatting	normal	defect (bug)	new	2021-05-05T12:34:50Z	2026-10-25T19:59:12Z	"[https://www.php.net/manual/en/migration74.incompatible.php#migration74.incompatible.spl PHP 7.4 Backward Incompatible Changes] mention the following change of behavior.

> Calling get_object_vars() on an ArrayObject instance will now always return the properties of the ArrayObject itself (or a subclass). Previously it returned the values of the wrapped array/object unless the ArrayObject::STD_PROP_LIST flag was specified.

Code that depend on `map_deep` and pass instances of ArrayObject to this function doesn't work the same way when running it with PHP 7.4. We detected this while migrating code from PHP 7.3 to 7.4:

See the following simple example:
https://3v4l.org/g3Xkj"	xknown		has-patch
Defects Awaiting Review	63148	wpautop() formatting function generate invalid HTML if the text end with an empty <p> tag		Formatting	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	43810	Apostrophe issue		Formatting	normal	defect (bug)	new	2018-04-19T13:31:05Z	2026-10-19T16:29:56Z	"Take a look. Instead of to have normal apostrophe, we have open and close if is between tags

[[Image(https://i.imgur.com/c6QDmR5.png)]]

[[Image(https://i.imgur.com/1F1zfWj.png)]]"	colomet	4.9.5	has-patch
Defects Awaiting Review	30495	Unicode character U+000B is not removed by sanitize_file_name		Formatting	normal	defect (bug)	new	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	4.0.1	has-patch
Defects Awaiting Review	40676	wpautop adds opening & closing p tags around the opening a tag and around the closing a tag when the link contains certain flow content elements like div, h1, h2...		Formatting	normal	defect (bug)	new	2017-05-05T10:55:47Z	2026-10-13T10:28:43Z	"Hi,

== Description ==
wpautop leaves {{{<a href="""">}}} (opening tag of the link) in between {{{<p></p>}}} tags and {{{</a>}}} (closing tag of the link) in between {{{<p></p>}}} tags when the link contains certain flow content elements like div, h1, h2...

== Example 1 ==

If I add this to the HTML editor:
{{{
<a href=""https://example.com/""><div>DIV inside link</div></a>
}}}

The output source code is:
{{{
<p><a href=""https://example.com/""></p>
<div>DIV inside link</div>
<p></a></p>
}}}

----

== Example 2 ==

If I add this to the HTML editor:
{{{
<a href=""https://example.com/""><h1>H1 inside link</h1></a>
}}}

The output source code is:
{{{
<p><a href=""https://example.com/""></p>
<h1>H1 inside link</h1>
<p></a></p>
}}}

----

== Note 1 ==
I would like to point out that html '''''flow content'' elements such as {{{<div>}}} or headings ({{{<h1>, <h2>, <h3>}}} ,...) belong to the category of permitted content for the {{{<a>}}} element'''.  References:
[https://html.spec.whatwg.org/multipage/semantics.html#the-a-element WHATWG HTML Living Standard |The definition of a]
[http://www.w3.org/TR/html5/text-level-semantics.html#the-a-element HTML5 | The definition of a]
[https://developer.mozilla.org/en/docs/Web/HTML/Element/a MDN | The definition of a.]

----

== Note 2 ==
This issue might be related to ticket #34722"	diegocanal	4.8	dev-feedback
Defects Awaiting Review	60191	Ampersand in non-entities such as &a; is not escaped		Formatting	normal	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		
Defects Awaiting Review	65871	KSES: the filter property is allowlisted but every filter function value is dropped by safecss_filter_attr()		Formatting	normal	defect (bug)	new	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	5.9	has-patch
Defects Awaiting Review	65838	Formatting: CSS function name matching in safecss_filter_attr() is case-sensitive		Formatting	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	55821	`is_email()` does not follow PHP FILTER_VALIDATE_EMAIL rules, when an email has double period (..)		Formatting	normal	defect (bug)	new	2022-05-25T10:44:30Z	2026-06-17T18:56:42Z	"If there has a typo in an email address like there has double period .. in an email address ( abc..def@xyz.com ). `is_email()` function return valid email when we have use like -

{{{
is_email( 'abc..def@xyz.com' )
}}}

Where it should not return as valid email address. Which is working with PHP `FILTER_VALIDATE_EMAIL` checking. When we are checking the same kind of email with below code it return `boolean false`.

{{{
filter_var( 'abc..def@xyz.com', FILTER_VALIDATE_EMAIL )
}}}

Expected behaviour should be like this. When use `is_email()` function it should respect like what PHP does.

== Related

 - #31992 where the change in email address parsing was introduced"	khokansardar	5.9.3	has-patch
Defects Awaiting Review	55563	The function get_allowed_mime_types should check wp_get_current_user		Formatting	normal	defect (bug)	new	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	5.9.3	dev-feedback
Defects Awaiting Review	64709	Stretchy Heading inside Media & Text block don't render correct in Firefox browser.		Formatting	normal	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	6.9.1	needs-patch
Defects Awaiting Review	37672	wpautop adds a closing p-tag without an opening p-tag		Formatting	normal	defect (bug)	new	2016-08-15T19:06:03Z	2026-01-28T06:42:37Z	"Following code result in ill-formed HTML.

{{{#!php
<?php
$pee = <<<EOT
<div>
This is a paragraph.

This is another paragraph.
</div>
EOT;

echo wpautop($pee);
}}}


This is the output:


{{{
<div>
This is a paragraph.</p>
<p>This is another paragraph.
</p></div>
}}}

As you can see, the first paragraph lacks an opening <p>.


"	TBarregren	4.5.3	has-patch
Defects Awaiting Review	34722	Open P Tag in shortcode related to h tag		Formatting	normal	defect (bug)	new	2015-11-18T07:32:04Z	2026-01-27T14:48:42Z	"Hi Wordpress core Team

There is a bug in wordpress.

When you add a simple text in the editor  like this


{{{
<h3>Integer in ex vel urna tempor ultrices.</h3> Morbi vehicula a orci nec dignissim.
}}}


In the front of the website and in the page source code this text is changed by wordpress to this and there are no issues or open or extra p-tags.


{{{
<h3><p>Integer in ex vel urna tempor ultrices.</h3> <p>Morbi vehicula a orci nec dignissim.</p>
}}}


[[Image(http://i.imgur.com/9TCF7gi.png)]]

However this does not happen in a shortcode

F.e. if you create a simple shortcode to add a div with a class around your text. The result is open and or extra p-tags and break tags,

{{{#!php
<?php
function theme_shortcode_div($atts, $content = null, $code) {

	$content = $content;
	

	return '<div class=""theme-div"">' . $content .'</div>';
}

add_shortcode('theme_div', 'theme_shortcode_div');
}}}

And add the text within a sshortcode 

{{{
[theme_div]<h3>Integer in ex vel urna tempor ultrices.</h3> Morbi vehicula a orci nec dignissim. [/theme_div]
}}}



The same text is rendered like this.



{{{
<div class=""theme-div""><br />
<h3>Integer in ex vel urna tempor ultrices.</h3>
<p> Morbi vehicula a orci nec dignissim. </div>
}}}


The p tag is never closed and before the h-tag there is suddenly a break tag. I tested this in any of the default themes and i dont know how many commercial themes and all with same results.

The p tag is left open and there is a extra break tag.

[[Image(http://i.imgur.com/52p291S.png)]]

It can even gets worse if you add it like this and embed your text in a  p-tag.



{{{
[theme_div]<h3><p>Integer in ex vel urna tempor ultrices.</h3> Morbi vehicula a orci nec dignissim.</p> [/theme_div]
}}}


Now the end result is this


{{{
<div class=""theme-div""><br />
<h3>
<p>Integer in ex vel urna tempor ultrices.</h3>
<p> Morbi vehicula a orci nec dignissim.</p>
<p> </div>
}}}


There is suddenly a extra br tag before the h-tag a extra p tag suddenly in the h-tag and a extra p tag at the end of the div.

[[Image(http://i.imgur.com/J3597aM.png)]]


Note: All code has been added in text mode of the editor. The text was added as shown. H-tag and normal text without any break tag all on one line

Note: used theme in my images twenty sixteen.

Note: Shortcode added to the functions.php exactly as shown above.

Note: You can only see the p-tags missing in the source of the page. If you inspect the page in firebug or chrome it shows the closing p-tags as that is what browsers do. They try to close the p-tags by default even if it is missing.


[[Image(http://i.imgur.com/aTwn2Wg.png)]]

Please resolve as this is a really annoying bug.

"	BackuPs	4.4	dev-feedback
Defects Awaiting Review	62785	wp_kses_no_null() should be modified to handle $content having a null value		Formatting	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	64463	XML Escape Codes Applied to RSS and Changes Post Content		Formatting	normal	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		
Defects Awaiting Review	62417	Excerpts don't include content from list-item blocks.		Formatting	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	57235	'excerpt_remove_blocks' removes list blocks		Formatting	normal	defect (bug)	new	2022-11-30T12:59:08Z	2025-12-01T02:45:58Z	"As reported here: https://github.com/WordPress/gutenberg/issues/46167

When an excerpt of a block containing a listing is output, the listing is removed.
This seems to be caused by the fact that list items became blocks in WordPress 6.1."	wildworks		has-patch
Defects Awaiting Review	46966	urlencode query string parameters		Formatting	major	defect (bug)	new	2019-04-17T22:09:07Z	2025-12-01T02:28:44Z	"When adding query string arguments to a URL through add_query_arg() the arguments are not being URL encoded.

An example of this

{{{#!php
add_query_arg( 'autofocus[panel]', 'themes', admin_url( 'customize.php' ) )
}}}

The [ ] characters should URL encoded

Output:
/wp-admin/customize.php?autofocus[panel]=themes

Expected:
/wp-admin/customize.php?autofocus%5Bpanel%5D=themes
"	developernichemarketing		has-patch
Defects Awaiting Review	40528	Title with ascii paragraph separator is not being filtered on post save		Formatting	normal	defect (bug)	new	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	4.7.4	has-patch
Defects Awaiting Review	63379	Fix for deprecated rtrim passing null to parameter		Formatting	normal	defect (bug)	new	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	6.8	dev-feedback
Defects Awaiting Review	63149	safecss_filter_attr does not support base64 SVG image in background-image.		Formatting	normal	defect (bug)	new	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	6.7.2	dev-feedback
Defects Awaiting Review	63131	Possible bug (not strict) use of preg_split in formatting.php		Formatting	minor	defect (bug)	new	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		has-patch
Defects Awaiting Review	53019	The _sanitize_text_fields function removing the octets that incorrectly work with Arabic RTL languages.		Formatting	normal	defect (bug)	new	2021-04-12T10:08:05Z	2024-11-19T13:44:32Z	"`%10` - `%99` are valid percents for the Arabic languages. [https://ar.wikipedia.org/wiki/%D9%86%D8%B3%D8%A8%D8%A9_%D9%85%D8%A6%D9%88%D9%8A%D8%A9 The Arabic percentage usage].

As I can see [here]https://core.trac.wordpress.org/browser/tags/5.7/src/wp-includes/formatting.php#L5409, removing all octets, but I'm not sure that it's really for security reasons. Anyone could approve that this code really important here?"	wppunk		
Defects Awaiting Review	53023	_wp_json_convert_string type mismatch: returns string on success; false on failure		Formatting	normal	defect (bug)	new	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	4.1.4	has-patch
Defects Awaiting Review	62156	Defining custom colors in styles color palette removes other colors from palette in several block editor places		Formatting	major	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	6.7	
Defects Awaiting Review	62038	Issue with is_email() and sanitize_email()		Formatting	normal	defect (bug)	new	2024-09-11T22:00:30Z	2024-09-24T17:22:23Z	"It has been observed that certain email addresses are passing through the validation and sanitization processes with trailing numbers appended to them, such as:

`example@example.com1234`
`example@example.com1234567812345678`

Also, `example@204.32.222.14` is validated as a valid email by `is_email`

Currently, the `is_email` and `sanitize_email` functions are not handling these cases as expected. Importantly, according to `RFC 5321`, email validation rules dictate that only IP addresses enclosed in square brackets are considered valid domains. This RFC standard is currently not enforced correctly, leading to cases where email addresses like `abc@204.32.222.14` are improperly validated as valid. 
"	debarghyabanerjee		has-patch
Defects Awaiting Review	39847	force_balance_tags not properly balancing < with <strong> and </strong>		Formatting	normal	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	4.7.2	
Defects Awaiting Review	61817	wptexturize(): Hyphen may be replaced with ndash		Formatting	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	54721	wptexturize caches the result of run_wptexturize preventing themes from using this if a plugin has already called get_plugin_data		Formatting	normal	defect (bug)	reopened	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	5.8.2	dev-feedback
Defects Awaiting Review	60793	wp_trigger error has a wrong wp_kses $allowed_html arguement.		Formatting	normal	defect (bug)	new	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	6.4	has-patch
Defects Awaiting Review	60138	make_clickable() processing emails start with www.  incorrectly.		Formatting	trivial	defect (bug)	new	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		has-patch
Defects Awaiting Review	59691	WordPress doesn't sanitize character ʼ (unicode U+02BC) when converting post title to slug		Formatting	normal	defect (bug)	new	2023-10-20T07:13:47Z	2023-10-20T13:44:46Z	"WordPress doesn't sanitize character `ʼ` (unicode U+02BC) when converting post title to slug

**How to reproduce:**

1. Create a post with title ""Phʼnglui mglwʼnafh Cthulhu Rʼlyeh wgahʼnagl fhtagn""
2. Publish the post
3. The post gets slug ""phʼnglui-mglwʼnafh-cthulhu-rʼlyeh-wgahʼnagl-fhtagn"" instead of ""phnglui-mglwnafh-cthulhu-rlyeh-wgahnagl-fhtagn"""	ivanzhuck	1.0	has-patch
Defects Awaiting Review	58406	Post/Page Content Renders Empty		Formatting	normal	defect (bug)	new	2023-05-25T12:29:50Z	2023-09-26T13:12:04Z	"- using php version 7.3.19, wp version 6.2.2
- function convert_smilies in formatting.php file
- when adding texts longer than 1,001,318 preg_split fails and content renders empty
- warning shown: Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/wp-includes/formatting.php on line 3444 Notice: Trying to access array offset on value of type bool in /var/www/html/wp-includes/formatting.php on line 3451

"	svgator	6.2.2	
Defects Awaiting Review	59056	LOST Formatting/Settings when Live Site is copied to Staging or Cloned		Formatting	normal	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	6.3	
Defects Awaiting Review	59158	Altering Details block styles doubling .wp-block-details class in the output		Formatting	normal	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	6.3	needs-patch
Defects Awaiting Review	58872	wpautop not disabled when blocks are inserted dynamically		Formatting	minor	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	6.1.1	
Defects Awaiting Review	58666	added HTML tags in HTML block		Formatting	major	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	6.2.2	
Defects Awaiting Review	58616	Replace apostrophe with hyphen for slugs		Formatting	major	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		
Defects Awaiting Review	52517	Shortcodes inside AMP tags do not work		Formatting	normal	defect (bug)	new	2021-02-13T14:39:20Z	2023-06-02T12:10:51Z	"Example code to demonstrate shortcode not working inside AMP tag:
{{{
add_shortcode ( 'test', '__return_false' );
echo do_shortcode('<amp-ad width=320 height=100 [test]>');
}}}
displays
{{{
<amp-ad width=320 height=100 [test]>
}}}

Example code to demonstrate shortcode working inside regular tag:
{{{
add_shortcode ( 'test', '__return_false' );
echo do_shortcode('<img width=320 height=100 [test]>');exit;
}}}
displays
{{{
<img width=320 height=100 >
}}}

The reason is wp_kses_attr_parse function not supporting tags with hyphens. All AMP tags contain hyphen, e.g. ""amp-ad"":
https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/?format=websites#html-tags


{{{
var_dump(wp_kses_attr_parse( '<amp-ad width=320 height=100>' ))
}}}
displays
{{{
bool(false)
}}}
instead of
{{{
array(4) {
  [0]=>
  string(7) ""<amp-ad ""
  [1]=>
  string(10) ""width=320 ""
  [2]=>
  string(10) ""height=100""
  [3]=>
  string(1) "">""
}
}}}

The fix is to change function wp_kses_attr_parse( $element ) in wp-includes/kses.php from:
{{{
$valid = preg_match( '%^(<\s*)(/\s*)?([a-zA-Z0-9]+\s*)([^>]*)(>?)$%', $element, $matches );
}}}
to
{{{
$valid = preg_match( '%^(<\s*)(/\s*)?([a-zA-Z0-9\-]+\s*)([^>]*)(>?)$%', $element, $matches );
}}}

"	Krstarica	4.7	has-patch
Defects Awaiting Review	56656	Move accent removal from `sanitize_title_with_dashes()` to `remove_accents()`		Formatting	major	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		
Defects Awaiting Review	56531	Aiming to “kill” entities, `sanitize_title_with_dashes()` happens to eat content		Formatting	major	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		
Defects Awaiting Review	56530	Combining tilde passes `sanitize_title_with_dashes()` and so do most other diacritics		Formatting	major	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		
Defects Awaiting Review	55949	Prevent trailingslashit from removing backslash for valid filenames on linux systems		Formatting	normal	defect (bug)	assigned	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	6.0	has-patch
Defects Awaiting Review	54138	wp_strip_all_tags should remove scripts/styles content recursively		Formatting	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	53815	safecss_filter_attr removes styles with min() max() and minmax()		Formatting	normal	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		
Defects Awaiting Review	53041	colors.css is using the old blue.		Formatting	minor	defect (bug)	new	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	5.7.1	dev-feedback
Defects Awaiting Review	52463	Inline SVG - foreignObject support		Formatting	normal	defect (bug)	new	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	5.6.1	dev-feedback
Defects Awaiting Review	50514	make_clickable nested links bug		Formatting	normal	defect (bug)	new	2020-06-30T09:29:29Z	2020-10-12T17:15:58Z	"If you look at the source of [`make_clickable`](https://core.trac.wordpress.org/browser/tags/5.4/src/wp-includes/formatting.php#L2985) there's one last regex call to replace potentially nested links:


{{{#!php
// Cleanup of accidental links within links.
return preg_replace( '#(<a([ \r\n\t]+[^>]+?>|>))<a [^>]+?>([^>]+?)</a></a>#i', '$1$3</a>', $r );
}}}

From the looks of the expression, this is meant to remove accidental nested links only if the parent link wrapping them does not have any non-link text at the edges. Let me provide a few examples:

1. This works as intended:

{{{#!php
<?php

$text = '<a href=""https://w.org"">https://w.org</a>';
$click = make_clickable($text);
# <a href=""https://w.org"">https://w.org</a>
}}}

2. Let's introduce more content inside the link, either prepend or append it to the hyperlink's inner URL:

{{{#!php
<?php

$text = '<a href=""https://w.org""> https://w.org</a>';
$click = make_clickable($text); # <a href=""https://w.org"">https://w.org</a>
# <a href=""https://w.org""> <a href=""https://w.org"" rel=""nofollow"">https://w.org</a></a>

$text = '<a href=""https://w.org"">https://w.org </a>';
$click = make_clickable($text); # <a href=""https://w.org"">https://w.org</a>
# <a href=""https://w.org""><a href=""https://w.org"" rel=""nofollow"">https://w.org</a> </a>
}}}

There, I used a simple whitespace for the sake of an example.

**Suggested Patch**

I am suggesting a simple fix with the cleanup regex expression, although however if you managed to understand the root problem you'd be able to come up with something much better.

{{{#!php
<?php

// Cleanup of accidental links within links.
return preg_replace( '#(<a([ \r\n\t]+[^>]+?>|>))(.+)?<a [^>]+?>([^>]+?)</a>(.+)?</a>#is', '$1$3$4$5</a>', $r );
}}}

In my patch you'll see the following changes:

1. Added `(.+)?` for capturing any leading characters before any nested links
2. Added `(.+)?` for capturing any trailing characters before any nested links
3. Added `s` modifier so as to have the previous capturers work with newlines
4. `'$1$3$4$5</a>'` restoring the captured leading or trailing characters back into the cleaned up HTML.

Also worth noting I am running WordPress 5.4.2, PHP 7.4.4, nginx/1.17.10 on an Alpine Linux docker container (Linux 4.19.76-linuxkit x86_64)."	anonymized_13749270	5.5	needs-unit-tests
Defects Awaiting Review	51287	Administrators & Editors can't create localfile links in a multisite installation		Formatting	major	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		
Defects Awaiting Review	47973	Invalid HTML output from image_caption + wpautop combination		Formatting	normal	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		
Defects Awaiting Review	43394	wpautop inserts extraneous line breaks if hard return around commented content		Formatting	normal	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	4.9.4	
Defects Awaiting Review	49965	wptexturize should also work when using before hook after_theme_setup		Formatting	normal	defect (bug)	new	2020-04-21T06:41:39Z	2020-04-21T06:41:39Z	"Hi!

**Context**: When using [https://developer.wordpress.org/reference/functions/get_plugin_data/ get_plugin_data] before the hook `after_theme_setup` got fired, [https://developer.wordpress.org/reference/functions/wptexturize/ wptexturize] does no longer work (`de_DE`). We are using a boilerplate [https://github.com/devowlio/wp-react-starter/ WP React Starter] and in the following line it uses the above function at plugin construction: 

- https://github.com/devowlio/wp-react-starter/blob/e25ca4aa7b743bed3aa09fda180429142b87204f/plugins/wp-reactjs-starter/src/inc/base/Core.php#L25
- https://github.com/devowlio/wp-react-starter/blob/e25ca4aa7b743bed3aa09fda180429142b87204f/packages/utils/src/Core.php#L129

I could fix the issue with the following workaround, but I think this is not ideal:

{{{#!php
<?php
/**
 * `get_plugin_data` uses `wptexturize` a bit too early and due to the fact,
 * that it saves `static` state in the function itself, it never get's reset
 * correctly. Fix it, by resetting manually in the earliest possible hook (`setup_theme` does not work).
 */
add_action('after_setup_theme', function() {
    if (function_exists('wptexturize')) {
        wptexturize(' ', true);
    }
}, 0);
}}}

Now, I think about to fix the issue by using [https://developer.wordpress.org/reference/functions/did_action/ did_action]:

https://github.com/WordPress/WordPress/blob/589666abc3b21242c28dcea9f5e94b57032692e7/wp-includes/formatting.php#L80

{{{#!php
<?php
// [...]
- if ( $reset || ! isset( $static_characters ) ) {
+ if ( $reset || ! isset( $static_characters ) || ! did_action( 'after_setup_theme' ) ) {
}}}


What do you think?"	mguenter	5.4	
Defects Awaiting Review	49492	wpautop inserted p tags inconsistently alter visual space		Formatting	normal	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	5.3.2	
Defects Awaiting Review	49217	HTML error with the multi-level list in Classic Editor		Formatting	normal	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	5.3.2	
Defects Awaiting Review	48261	"""noopener noreferrer"" mis-parses links with ""rel="" parameters"		Formatting	normal	defect (bug)	new	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	5.2.3	has-patch
Defects Awaiting Review	46886	"wp_targeted_link_rel adds the rel attribute when the link has data-target="""""		Formatting	normal	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	5.1	
Defects Awaiting Review	39188	Wrapping paragraph tags around 'Read More' link stripped out of custom post type		Formatting	normal	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	4.7	
Defects Awaiting Review	39153	Bug in wp_html_split with unclosed PHP tag (or HTML tag <)		Formatting	normal	defect (bug)	new	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	4.6.1	needs-unit-tests
Defects Awaiting Review	43155	Formatting bug with ampasands - WooCommerce Layered Nav		Formatting	normal	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	4.7.5	
Defects Awaiting Review	42182	esc_js must escape U+2028 and U+2029		Formatting	normal	defect (bug)	new	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	4.8	has-patch
Defects Awaiting Review	40324	make_clickable doesn't work if url stands after an even number off spaces		Formatting	normal	defect (bug)	new	2017-03-31T11:49:56Z	2017-03-31T16:22:07Z	"The function '''make_clickable''' doesn't work, if an even number of spaces is written before an url

Examples:
{{{
Test post http://de.wordpress.org    -> 1 space  = works
Test post  http://de.wordpress.org   -> 2 spaces = doesn't work
Test post   http://de.wordpress.org  -> 3 spaces = works
Test post    http://de.wordpress.org -> 4 spaces = doesn't work
}}}

I tested it in WP 4.7 and 4.7.3
"	wordpressrene	4.7	
Defects Awaiting Review	40045	"HTML code entered using ""Text"" mode gets garbled"		Formatting	normal	defect (bug)	new	2017-03-06T14:44:10Z	2017-03-06T14:44:10Z	"Entered this:
{{{
 <area shape=""poly"" coords=""77,57,276"" data-content=""<a href=//google.com>link</a> some other content. Be careful with using the right quotes here!"" title=""Some title""> 
}}}
converted to this:
{{{
<area shape=""poly"" coords=""77,57,276"" data-content=""<a href=//google.com>link</a> some other content. Be careful with using the right quotes here!&#8221; title=&#8221;Some title&#8221;></p>
}}}



Is it really so difficult to leave the content of the ""Text"" mode as it is? 

Just to remind you, that W3C says ""attributes on HTML elements may have any string value"".
"	s0what	4.7.2	
Enhancements Awaiting Review	66621	Tests: Add unit test coverage for _split_str_by_whitespace()		Formatting	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66620	Tests: Add unit test coverage for _make_clickable_rel_attr()		Formatting	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66611	Tests: Add unit test coverage for translate_smiley()		Formatting	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66610	Tests: Add unit test coverage for wp_rel_callback()		Formatting	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66612	Tests: Add unit test coverage for _navigation_markup()		Formatting	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66609	Tests: Add unit test coverage for wptexturize_primes()		Formatting	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66492	Tests: Add unit coverage for the helper functions in kses.php		Formatting	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	60301	PHPunit test for print_emoji_detection_script		Formatting	normal	enhancement	new	2024-01-19T19:05:55Z	2026-10-31T21:27:31Z		pbearne		has-patch
Enhancements Awaiting Review	43010	Attribute Name Escape		Formatting	normal	enhancement	new	2018-01-02T17:03:09Z	2026-10-01T19:14:49Z	"The HTML5 spec allows us to arbitrarily named attributes for tags, e.g. '''''data-my-arb-attr-name'''=""attr value""''. This allows for generated attribute names and thus, a need to escape to avoid potential security implications.

I have seen several occasions of developers using `esc_attr` to resolve this case, however this is far from correct - the requirements of the name of an attribute are very different to that of the value, the best example of this simply being whitespace.

The requirements of an attribute name can be found here: https://html.spec.whatwg.org/multipage/syntax.html#attributes-2

There is a need for an `esc_attr_name` function to avoid compromises in html.

I have provided a simple addition patch to wp-includes/formatting.php which should resolve this issue."	joe_bopper		needs-unit-tests
Enhancements Awaiting Review	65885	Formal Accessibility Complaint — Dyslexia, Cognitive Accessibility and WordPress Editor Usability		Formatting	major	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		
Enhancements Awaiting Review	22402	Stripping non-alphanumeric multi-byte characters from slugs		Formatting	normal	enhancement	new	2012-11-10T05:07:10Z	2025-09-02T07:24:24Z	"`sanitize_title_with_dashes()` strips non-alphanumeric characters from a title to create a slug. Unfortunately it only strips ASCII non-alphanumeric characters. Apart from a few exceptions, all multi-byte characters are preserved. This means all non-Western (and plenty of Western) non-alphanumeric characters end up in the slug as they're treated just like any other multi-byte character.

As an example, here are some common non-alphanumeric Chinese characters which would ideally be stripped from slugs, but are not:

 * 。 (U+3002, Ideographic Full Stop, %E3%80%82)
 * ， (U+FF0C, Fullwidth Comma, %EF%BC%8C)
 * ！ (U+FF01, Fullwidth Exclamation Mark, %EF%BC%81)
 * ： (U+FF1A, Fullwidth Colon, %EF%BC%9A)
 * 《 (U+300A, Left Double Angle Bracket, %E3%80%8A)
 * 》 (U+300B, Right Double Angle Bracket, %E3%80%8B)

Obviously it would be impractical to make a list of ''all'' the non-ASCII characters we want to strip from slugs. The list would be gigantic.

So the question is, would it be possible to use Unicode ranges to blacklist (or whitelist) whole ranges of characters to be stripped from (or preserved in) slugs? Is this practical or even desirable?

Or would it make more sense to continue using a list of just the most common multi-byte characters to be stripped?

The latter makes a whole lot more sense, but the former is a more complete solution.

Thoughts?"	johnbillion		dev-feedback
Enhancements Awaiting Review	63804	Proposal of wp_trim(): JavaScript-compatible alternative for trim()		Formatting	normal	enhancement	new	2025-08-09T09:07:51Z	2025-08-22T09:32:43Z	"PHP's [https://www.php.net/manual/en/function.trim.php trim()] function, by default, only strips limited ASCII characters of whitespace. On the other hand, JavaScript's [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim String.prototype.trim()] method strips all Unicode white space characters and line terminators. This difference often confuses.

PHP 8.4 introduced [https://www.php.net/manual/en/function.mb-trim.php mb_trim()], the multi-byte safe alternative for `trim()`. Unfortunately, though, `String.prototype.trim()` and `mb_trim()` do not perform identically. There are slight differences: `String.prototype.trim()` strips `U+FEFF` (Zero-width no-break space); `mb_trim()` doesn't.

For safe coding, I propose introducing `wp_trim()`, a PHP function that performs identically to `String.prototype.trim()`. The following is a simple implementation example of `wp_trim()`:

{{{#!php
function wp_trim( string $string ): string {
	$whitespaces = '\x09-\x0D\x20\x85\xA0\x{1680}\x{2000}-\x{200A}\x{2028}\x{2029}\x{202F}\x{205F}\x{3000}\x{FEFF}';

	$string = preg_replace(
		sprintf( '/[%s]+$/u', $whitespaces ),
		'',
		$string
	);

	$string = preg_replace(
		sprintf( '/^[%s]+/u', $whitespaces ),
		'',
		$string
	);

	return $string;
}
}}}


Among the white space characters that `wp_trim()` strips, `U+3000` (Ideographic space) is one especially often used in Japanese user-generated content. It is also called ""full-width space"", which is the character input when you hit the space bar in the Japanese input mode. I think we should replace `trim()` with `wp_trim()` anywhere you use it for trimming user input text."	takayukister		has-patch
Enhancements Awaiting Review	63192	wptexturize add filter for disable some replacement		Formatting	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	63156	Formatting: Expand sanitize_html_class() to support the full range of CDATA that a class attribute can contain		Formatting	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	63046	Add background-clip to the safe_style_css filter		Formatting	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	63036	Additional unit tests kses color-mix		Formatting	trivial	enhancement	new	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		has-patch
Enhancements Awaiting Review	46188	esc_html does not have support for multiline output. esc_br_html or line-breaking parameter for esc_html is missing		Formatting	normal	enhancement	new	2019-02-05T12:40:02Z	2025-02-27T15:28:35Z	"Let's say that we want to save not a title, but a block of text in the database. So we have to support multiline escaping.

Now I have to do this:

{{{#!php
<?php
$escapedMultilineItemDescriptionArray = array_map('esc_html', explode(""\n"", $data['item_description']));
$printItemDescription = implode(""\n"", $escapedMultilineItemDescriptionArray );

$objView = new View();
$objView->itemDescription = $printItemDescription;
}}}

But then the reviewers at Envato and other coding standards fans are not happy that at the template file I use:

{{{
<div class=""item-description""><?=nl2br($itemDescription);?></div>
}}}

While following the concept of of 'escaping at the template' would could be instead 'esc_br_html':
{{{
<div class=""item-description""><?=esc_br_html($itemDescription);?></div>
}}}
or with `fuction esc_html($text, $escapeLineBreaks = FALSE) {...}`
{{{
<div class=""item-description""><?=nl2br(esc_html($itemDescription, TRUE));?></div>
}}}

I just see a lot of confusion and misinterpreation of escaping of text that has multiple lines, and there is NO function. And we should not do explode, implode, array_map things inside the template code, as the template is for designers, and ever CSS developer has to be able easily understand the template, so there so be no explodings, implodings.
"	KestutisIT	5.0.3	has-patch
Enhancements Awaiting Review	60842	PHPunit tests for wp_check_invalid_utf8		Formatting	normal	enhancement	new	2024-03-25T20:25:12Z	2025-02-12T15:55:57Z		pbearne		has-patch
Enhancements Awaiting Review	62738	Proposal for format_atts()		Formatting	normal	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		
Enhancements Awaiting Review	60544	Allow individual blocks to be excluded from `excerpt_remove_blocks()`		Formatting	normal	enhancement	new	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	6.5	has-patch
Enhancements Awaiting Review	47557	Sanitize Email Suggestion		Formatting	minor	enhancement	new	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	5.2.1	has-patch
Enhancements Awaiting Review	57517	Expose MutationObserver instance in wpEmoji		Formatting	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	57434	Extending the list of supported inline CSS properties allowed by safe_style_css		Formatting	normal	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		
Enhancements Awaiting Review	56774	Need more options on pre-existing blocks.		Formatting	normal	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	6.0.2	
Enhancements Awaiting Review	56663	`tag_escape()` does not follow naming convention.		Formatting	normal	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		
Enhancements Awaiting Review	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	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	55326	Conditional classes directives in formatting		Formatting	normal	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	5.9.1	
Enhancements Awaiting Review	54604	Allow for nestable superscript tags		Formatting	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	54322	Add Logical Properties to safecss_filter_attr		Formatting	normal	enhancement	new	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	5.8.1	dev-feedback
Enhancements Awaiting Review	53709	Spaces as <br> in RSS Excerpts		Formatting	normal	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	5.8	
Enhancements Awaiting Review	53096	Color Settings include alpha channel for transparency		Formatting	normal	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		
Enhancements Awaiting Review	52100	Include highlight.js in core for syntax highlighting for codeblocks in markdown		Formatting	major	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		
Enhancements Awaiting Review	49129	Incorrect German Umlaut substitutions		Formatting	minor	enhancement	new	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	5.4	dev-feedback
Enhancements Awaiting Review	46329	sanitize_text_field after 5.1 update should account for __toString() methods		Formatting	normal	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	5.1	
Enhancements Awaiting Review	43147	Introduce `esc_html_comment` and translation related functions		Formatting	normal	enhancement	new	2018-01-23T15:27:17Z	2019-01-16T06:50:09Z	"Triggered by the following PR on Yoast SEO [https://github.com/Yoast/wordpress-seo/pull/8687 #8687] I saw the need for `esc_html_comment` functionality in WordPress.

This patch is based on the current API for formatting and escaping functions.
The implementation is based on the specifications found on the  [https://www.w3.org/TR/html51/syntax.html#sec-comments HTML specifications page].

I've added unit tests to cover the situations that I could come up with."	jipmoors		dev-feedback
Enhancements Awaiting Review	43205	Allow filtering the list of characters to be replaced by wptexturize		Formatting	normal	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		
Enhancements Awaiting Review	33204	kses $allowedposttags should support microdata		Formatting	normal	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		
Enhancements Awaiting Review	44906	"Include greek accent characters on ""remove_accents"" function"		Formatting	minor	enhancement	new	2018-09-06T19:53:57Z	2018-09-13T01:19:43Z	"Hi,

I extended the ""remove_accents"" function to support greek accents.
If you wish you can add it in core.

I have just added greek characters after:
{{{#!php
elseif ( 'el' == $locale ) {
}}}


Thanks

{{{#!php
<?php
function remove_accents( $string ) {

	if ( !preg_match('/[\x80-\xff]/', $string) )
        return $string;

    if (seems_utf8($string)) {
        $chars = array(
        // Decompositions for Latin-1 Supplement
        'ª' => 'a', 'º' => 'o',
        'À' => 'A', 'Á' => 'A',
        'Â' => 'A', 'Ã' => 'A',
        'Ä' => 'A', 'Å' => 'A',
        'Æ' => 'AE','Ç' => 'C',
        'È' => 'E', 'É' => 'E',
        'Ê' => 'E', 'Ë' => 'E',
        'Ì' => 'I', 'Í' => 'I',
        'Î' => 'I', 'Ï' => 'I',
        'Ð' => 'D', 'Ñ' => 'N',
        'Ò' => 'O', 'Ó' => 'O',
        'Ô' => 'O', 'Õ' => 'O',
        'Ö' => 'O', 'Ù' => 'U',
        'Ú' => 'U', 'Û' => 'U',
        'Ü' => 'U', 'Ý' => 'Y',
        'Þ' => 'TH','ß' => 's',
        'à' => 'a', 'á' => 'a',
        'â' => 'a', 'ã' => 'a',
        'ä' => 'a', 'å' => 'a',
        'æ' => 'ae','ç' => 'c',
        'è' => 'e', 'é' => 'e',
        'ê' => 'e', 'ë' => 'e',
        'ì' => 'i', 'í' => 'i',
        'î' => 'i', 'ï' => 'i',
        'ð' => 'd', 'ñ' => 'n',
        'ò' => 'o', 'ó' => 'o',
        'ô' => 'o', 'õ' => 'o',
        'ö' => 'o', 'ø' => 'o',
        'ù' => 'u', 'ú' => 'u',
        'û' => 'u', 'ü' => 'u',
        'ý' => 'y', 'þ' => 'th',
        'ÿ' => 'y', 'Ø' => 'O',
        // Decompositions for Latin Extended-A
        'Ā' => 'A', 'ā' => 'a',
        'Ă' => 'A', 'ă' => 'a',
        'Ą' => 'A', 'ą' => 'a',
        'Ć' => 'C', 'ć' => 'c',
        'Ĉ' => 'C', 'ĉ' => 'c',
        'Ċ' => 'C', 'ċ' => 'c',
        'Č' => 'C', 'č' => 'c',
        'Ď' => 'D', 'ď' => 'd',
        'Đ' => 'D', 'đ' => 'd',
        'Ē' => 'E', 'ē' => 'e',
        'Ĕ' => 'E', 'ĕ' => 'e',
        'Ė' => 'E', 'ė' => 'e',
        'Ę' => 'E', 'ę' => 'e',
        'Ě' => 'E', 'ě' => 'e',
        'Ĝ' => 'G', 'ĝ' => 'g',
        'Ğ' => 'G', 'ğ' => 'g',
        'Ġ' => 'G', 'ġ' => 'g',
        'Ģ' => 'G', 'ģ' => 'g',
        'Ĥ' => 'H', 'ĥ' => 'h',
        'Ħ' => 'H', 'ħ' => 'h',
        'Ĩ' => 'I', 'ĩ' => 'i',
        'Ī' => 'I', 'ī' => 'i',
        'Ĭ' => 'I', 'ĭ' => 'i',
        'Į' => 'I', 'į' => 'i',
        'İ' => 'I', 'ı' => 'i',
        'Ĳ' => 'IJ','ĳ' => 'ij',
        'Ĵ' => 'J', 'ĵ' => 'j',
        'Ķ' => 'K', 'ķ' => 'k',
        'ĸ' => 'k', 'Ĺ' => 'L',
        'ĺ' => 'l', 'Ļ' => 'L',
        'ļ' => 'l', 'Ľ' => 'L',
        'ľ' => 'l', 'Ŀ' => 'L',
        'ŀ' => 'l', 'Ł' => 'L',
        'ł' => 'l', 'Ń' => 'N',
        'ń' => 'n', 'Ņ' => 'N',
        'ņ' => 'n', 'Ň' => 'N',
        'ň' => 'n', 'ŉ' => 'n',
        'Ŋ' => 'N', 'ŋ' => 'n',
        'Ō' => 'O', 'ō' => 'o',
        'Ŏ' => 'O', 'ŏ' => 'o',
        'Ő' => 'O', 'ő' => 'o',
        'Œ' => 'OE','œ' => 'oe',
        'Ŕ' => 'R','ŕ' => 'r',
        'Ŗ' => 'R','ŗ' => 'r',
        'Ř' => 'R','ř' => 'r',
        'Ś' => 'S','ś' => 's',
        'Ŝ' => 'S','ŝ' => 's',
        'Ş' => 'S','ş' => 's',
        'Š' => 'S', 'š' => 's',
        'Ţ' => 'T', 'ţ' => 't',
        'Ť' => 'T', 'ť' => 't',
        'Ŧ' => 'T', 'ŧ' => 't',
        'Ũ' => 'U', 'ũ' => 'u',
        'Ū' => 'U', 'ū' => 'u',
        'Ŭ' => 'U', 'ŭ' => 'u',
        'Ů' => 'U', 'ů' => 'u',
        'Ű' => 'U', 'ű' => 'u',
        'Ų' => 'U', 'ų' => 'u',
        'Ŵ' => 'W', 'ŵ' => 'w',
        'Ŷ' => 'Y', 'ŷ' => 'y',
        'Ÿ' => 'Y', 'Ź' => 'Z',
        'ź' => 'z', 'Ż' => 'Z',
        'ż' => 'z', 'Ž' => 'Z',
        'ž' => 'z', 'ſ' => 's',
        // Decompositions for Latin Extended-B
        'Ș' => 'S', 'ș' => 's',
        'Ț' => 'T', 'ț' => 't',
        // Euro Sign
        '€' => 'E',
        // GBP (Pound) Sign
        '£' => '',
        // Vowels with diacritic (Vietnamese)
        // unmarked
        'Ơ' => 'O', 'ơ' => 'o',
        'Ư' => 'U', 'ư' => 'u',
        // grave accent
        'Ầ' => 'A', 'ầ' => 'a',
        'Ằ' => 'A', 'ằ' => 'a',
        'Ề' => 'E', 'ề' => 'e',
        'Ồ' => 'O', 'ồ' => 'o',
        'Ờ' => 'O', 'ờ' => 'o',
        'Ừ' => 'U', 'ừ' => 'u',
        'Ỳ' => 'Y', 'ỳ' => 'y',
        // hook
        'Ả' => 'A', 'ả' => 'a',
        'Ẩ' => 'A', 'ẩ' => 'a',
        'Ẳ' => 'A', 'ẳ' => 'a',
        'Ẻ' => 'E', 'ẻ' => 'e',
        'Ể' => 'E', 'ể' => 'e',
        'Ỉ' => 'I', 'ỉ' => 'i',
        'Ỏ' => 'O', 'ỏ' => 'o',
        'Ổ' => 'O', 'ổ' => 'o',
        'Ở' => 'O', 'ở' => 'o',
        'Ủ' => 'U', 'ủ' => 'u',
        'Ử' => 'U', 'ử' => 'u',
        'Ỷ' => 'Y', 'ỷ' => 'y',
        // tilde
        'Ẫ' => 'A', 'ẫ' => 'a',
        'Ẵ' => 'A', 'ẵ' => 'a',
        'Ẽ' => 'E', 'ẽ' => 'e',
        'Ễ' => 'E', 'ễ' => 'e',
        'Ỗ' => 'O', 'ỗ' => 'o',
        'Ỡ' => 'O', 'ỡ' => 'o',
        'Ữ' => 'U', 'ữ' => 'u',
        'Ỹ' => 'Y', 'ỹ' => 'y',
        // acute accent
        'Ấ' => 'A', 'ấ' => 'a',
        'Ắ' => 'A', 'ắ' => 'a',
        'Ế' => 'E', 'ế' => 'e',
        'Ố' => 'O', 'ố' => 'o',
        'Ớ' => 'O', 'ớ' => 'o',
        'Ứ' => 'U', 'ứ' => 'u',
        // dot below
        'Ạ' => 'A', 'ạ' => 'a',
        'Ậ' => 'A', 'ậ' => 'a',
        'Ặ' => 'A', 'ặ' => 'a',
        'Ẹ' => 'E', 'ẹ' => 'e',
        'Ệ' => 'E', 'ệ' => 'e',
        'Ị' => 'I', 'ị' => 'i',
        'Ọ' => 'O', 'ọ' => 'o',
        'Ộ' => 'O', 'ộ' => 'o',
        'Ợ' => 'O', 'ợ' => 'o',
        'Ụ' => 'U', 'ụ' => 'u',
        'Ự' => 'U', 'ự' => 'u',
        'Ỵ' => 'Y', 'ỵ' => 'y',
        // Vowels with diacritic (Chinese, Hanyu Pinyin)
        'ɑ' => 'a',
        // macron
        'Ǖ' => 'U', 'ǖ' => 'u',
        // acute accent
        'Ǘ' => 'U', 'ǘ' => 'u',
        // caron
        'Ǎ' => 'A', 'ǎ' => 'a',
        'Ǐ' => 'I', 'ǐ' => 'i',
        'Ǒ' => 'O', 'ǒ' => 'o',
        'Ǔ' => 'U', 'ǔ' => 'u',
        'Ǚ' => 'U', 'ǚ' => 'u',
        // grave accent
        'Ǜ' => 'U', 'ǜ' => 'u',
        );

        // Used for locale-specific rules
        $locale = get_locale();

        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';
        } elseif ( 'da_DK' === $locale ) {
            $chars[ 'Æ' ] = 'Ae';
            $chars[ 'æ' ] = 'ae';
            $chars[ 'Ø' ] = 'Oe';
            $chars[ 'ø' ] = 'oe';
            $chars[ 'Å' ] = 'Aa';
            $chars[ 'å' ] = 'aa';
        } elseif ( 'ca' === $locale ) {
            $chars[ 'l·l' ] = 'll';
        } elseif ( 'sr_RS' === $locale || 'bs_BA' === $locale ) {
            $chars[ 'Đ' ] = 'DJ';
            $chars[ 'đ' ] = 'dj';
        } elseif ( 'el' == $locale ) {
            $chars[ 'Ά' ] = 'Α';
	    $chars[ 'ά' ] = 'α';
	    $chars[ 'Έ' ] = 'Ε';
	    $chars[ 'έ' ] = 'α';
	    $chars[ 'Ί' ] = 'Ι';
	    $chars[ 'ί' ] = 'ι';
	    $chars[ 'ΐ' ] = 'ϊ';
	    $chars[ 'Ύ' ] = 'Υ';
	    $chars[ 'ύ' ] = 'υ';
	    $chars[ 'ΰ' ] = 'ϋ';
	    $chars[ 'Ή' ] = 'Η';
	    $chars[ 'ή' ] = 'η';
	    $chars[ 'Ό' ] = 'Ο';
	    $chars[ 'ό' ] = 'ο';
	    $chars[ 'Ώ' ] = 'Ω';
	    $chars[ 'ώ' ] = 'ω';
	}

        $string = strtr($string, $chars);
    } else {
        $chars = array();
        // Assume ISO-8859-1 if not UTF-8
        $chars['in'] = ""\x80\x83\x8a\x8e\x9a\x9e""
            .""\x9f\xa2\xa5\xb5\xc0\xc1\xc2""
            .""\xc3\xc4\xc5\xc7\xc8\xc9\xca""
            .""\xcb\xcc\xcd\xce\xcf\xd1\xd2""
            .""\xd3\xd4\xd5\xd6\xd8\xd9\xda""
            .""\xdb\xdc\xdd\xe0\xe1\xe2\xe3""
            .""\xe4\xe5\xe7\xe8\xe9\xea\xeb""
            .""\xec\xed\xee\xef\xf1\xf2\xf3""
            .""\xf4\xf5\xf6\xf8\xf9\xfa\xfb""
            .""\xfc\xfd\xff"";

        $chars['out'] = ""EfSZszYcYuAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy"";

        $string = strtr($string, $chars['in'], $chars['out']);
        $double_chars = array();
        $double_chars['in'] = array(""\x8c"", ""\x9c"", ""\xc6"", ""\xd0"", ""\xde"", ""\xdf"", ""\xe6"", ""\xf0"", ""\xfe"");
        $double_chars['out'] = array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th');
        $string = str_replace($double_chars['in'], $double_chars['out'], $string);
    }

    return $string;

}
}}}
"	papazetis	4.9.8	dev-feedback
Enhancements Awaiting Review	43156	_walk_bookmarks(): please add the link id as HTML id attribute.		Formatting	normal	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	4.9.2	
Enhancements Awaiting Review	41422	Need replace_filter() function for improved Just In Time filter adjusment		Formatting	normal	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	4.9	
Enhancements Awaiting Review	41458	Class gets stripped out when inserting a link in author biography box		Formatting	normal	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	3.5	
Enhancements Awaiting Review	40933	Improvements for get_file_data() function		Formatting	normal	enhancement	new	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	4.7.5	has-patch
Enhancements Awaiting Review	39724	Defining custom validation callbacks for tag/attribute values in wp_kses()		Formatting	normal	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	4.8	
Enhancements Awaiting Review	29910	esc_attr does not properly deal with json_encode		Formatting	normal	enhancement	new	2014-10-09T17:54:32Z	2017-05-07T03:11:39Z	"Current doing something like esc_attr( json_encode( $data ) ); doesn't work properly. 

Since the input to json_encode() above can contain '&quot;'. And for calls to json_encode() lacking the JSON_HEX_AMP option, that '&quot;' is left unaltered.  Running '&quot;' through esc_attr() also leaves it unaltered since esc_attr() does not double-encode. 

This means we end up with an attribute like 


{{{
data-gallery=""{&quot;foo&quot;:&quot;&quot;&quot;}
}}}


which is interpreted by the browser as 

{{{
{""foo"":""""""}
}}}
 

which results in a JSON decoded error. 

The preferred workaround is to include the JSON_HEX_AMP (and friends) 
options, but these are not available until 5.3.0. 

Alternatively, we can use _wp_specialchars( , , , true ) instead of 
esc_attr(), which will double-encode. 

Since we can't rely on JSON_HEX_AMP, we do both. 

I would like to see a function like 


{{{
esc_json_encode( $data )
}}}

That you can use to encode json data and pass it to the html. I have included a file that includes a functions that does just that. 

"	enej		
Enhancements Awaiting Review	40569	next_post_link parameters $format and $link, have default values that produce awkward to use output		Formatting	normal	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	4.7.4	
Enhancements Awaiting Review	35201	Mobile email validation		Formatting	normal	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	4.4	
Enhancements Awaiting Review	39674	Special characters are encoded in the database, for site settings options		Formatting	normal	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	4.7.1	
Reporter Feedback / Close	57381	Filter wptexturize brokes tailwindcss brackets		Formatting	normal	defect (bug)	new	2022-12-23T12:36:11Z	2026-10-29T01:08:36Z	"Hi there. I am developing WordPress Theme with TailwindCss frontend and gutenberg blocks.

My gutenberg block HTML was partially broken by `wptexturize` filter of `the_content` function.

Affected code:

{{{
<div class=""swiper [&>.swiper-pagination]:static"">...</div>
}}}

Result:

{{{
<div class=""swiper [&#038;>.swiper-pagination]:static&#187;>...</div>
}}}

TailwindCss docs: https://tailwindcss.com/docs/hover-focus-and-other-states#using-arbitrary-variants

My current solution is remove this filter before calling the_content for my gutenberg page template:
{{{
<?php
$content = get_post_field( 'post_content', get_the_ID() );
remove_filter('the_content', 'wptexturize');
the_content();
?>
}}}"	ArtZ91		reporter-feedback
Reporter Feedback / Close	63720	Image Caption Should Not Show In Excerpts (of plugins) via WP Core		Formatting	normal	defect (bug)	new	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	6.8.2	reporter-feedback
Reporter Feedback / Close	62651	Reverse order of menu items in default theme		Formatting	normal	defect (bug)	new	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	6.7.1	reporter-feedback
Reporter Feedback / Close	41711	Remove hAtom from core		Formatting	normal	defect (bug)	new	2017-08-23T08:11:50Z	2025-09-25T16:37:56Z	"We output hAtom in core and well, it's just not really needed anymore, so I'd like to get rid of it.

Here, amongst other places:

https://core.trac.wordpress.org/browser/tags/4.8.1/src/wp-includes/post-template.php?marks=505,506#L496"	joostdevalk		close
Reporter Feedback / Close	63867	error in admin page		Formatting	normal	defect (bug)	new	2025-08-23T15:13:43Z	2025-08-23T17:23:36Z	"Warning: Array to string conversion in /*/wp-includes/formatting.php on line 5292
"	guestcn		reporter-feedback
Reporter Feedback / Close	50197	PHP 7.4 Compatibility with WP 5.4.1 – problem with seems_utf8()		Formatting	normal	defect (bug)	new	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	5.4.1	close
Reporter Feedback / Close	28607	Make wpautop()'s $allblocks variable filterable		Formatting	normal	enhancement	new	2014-06-21T04:51:59Z	2025-06-05T15:20:07Z	"'''The problem''': I'd like <img> tags to ''not'' be wrapped by <p> in the_content().

I used to use a regex filter on the_content to achieve this, but looking at the source for wpautop(), I think it would be much cleaner to ''prevent'' <img>s from being wrapped in the first place by making $allblocks filterable. 

The <p><img /></p> issue commonly causes formatting issues, and making the block list filterable would let theme/plugin authors change this without and other blocks without breaking stylesheets configured for images in paragraphs. 

Additionally, I think it's semantically cleaner for a standalone image, since ""The HTML <p> element (or HTML Paragraph Element) represents a paragraph of text.""  https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p"	walkinonwat3r		close
Reporter Feedback / Close	56433	invalid regex used in preg_replace		Formatting	normal	defect (bug)	new	2022-08-24T20:34:43Z	2025-01-08T16:43:21Z	"Found in /wp-includes/formatting.php line 5385
{{{
$string = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string );
}}}
I tried this exactly as it is and it does nothing"	chocofc1		reporter-feedback
Reporter Feedback / Close	61595	Hyphenation problem in Dutch language		Formatting	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	57021	Sanitize should accept broader types		Formatting	normal	defect (bug)	new	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	6.2	close
Reporter Feedback / Close	51040	How about having a native BR to Newline method, i.e. br2nl		Formatting	normal	feature request	new	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		dev-feedback
Reporter Feedback / Close	56709	Encountered a problem that no one has ever met Please help me		Formatting	normal	defect (bug)	new	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		dev-feedback
Reporter Feedback / Close	57909	"It's not logical that the ""Read more""-button disappears when you create a manual excerpt"		Formatting	normal	feature request	new	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.5	close
Reporter Feedback / Close	56119	`wp_unslash()` and `wp_slash()` do not (un)slash the same data.		Formatting	normal	defect (bug)	new	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		dev-feedback
Reporter Feedback / Close	52444	Add support for Telegram Messenger Protocol		Formatting	normal	enhancement	new	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	3.3	close
Reporter Feedback / Close	51353	Smart Quote Bug		Formatting	normal	defect (bug)	new	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	5.5.1	reporter-feedback
Defects Awaiting Review	65155	wrong aspect-ratio of pictures in the galerie with Firefox 150		Gallery	normal	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	6.9.4	
Defects Awaiting Review	52171	Featured image error in media library, detached.		Gallery	normal	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	5.6	
Defects Awaiting Review	53263	Media galery new libraries		Gallery	normal	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	5.7.2	
Defects Awaiting Review	61012	The mobile layout displays incorrectly when infinite scrolling is activated in the Media Gallery Modal.		Gallery	normal	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	6.5	
Defects Awaiting Review	60492	Gallery crashes if images have caption.		Gallery	normal	defect (bug)	new	2024-02-10T14:39:43Z	2024-02-10T20:55:45Z	"Every time I try to add a gallery in the post with images that has the caption field filled up, the gallery crashes. If I try to create a gallery without the caption field it works as expected.

After the gallery is created and added to the post, I can use the caption field normally."	newtonu	6.4.3	
Defects Awaiting Review	60436	Cannot create large Tiled Albums - causes crash		Gallery	blocker	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	6.4.3	
Defects Awaiting Review	59799	Post editor Galley size preview images select size default		Gallery	normal	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	6.3.3	
Defects Awaiting Review	56568	Some Cases Image Metadata is not editable.		Gallery	normal	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		
Defects Awaiting Review	51840	Single Image not loading after upgrade to 5.3.3		Gallery	major	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	5.5.3	
Defects Awaiting Review	40692	Filter default image size in gallery		Gallery	normal	defect (bug)	new	2017-05-08T13:39:43Z	2020-09-21T11:10:24Z	"Using the `media_view_settings` filter, I can specify default `link` and `column` settings for new galleries but the `size` parameter is not filterable. For example:

{{{
function me_filter_gallery_settings( $settings ) {
	// This will successfully set the default number of columns to 5
	$settings['galleryDefaults']['columns'] = 5;
	// This does nothing
	$settings['galleryDefaults']['size'] = 'large';
	return $settings;
}
add_filter( 'media_view_settings', 'me_filter_gallery_settings' );
}}}

I know that it’s possible to override these defaults when outputting the gallery via the `gallery_shortcode`. However, this may be confusing to the user who would expect to see the same value for the image size appear when the gallery is generated on the front end as they have seen in the admin. To clarify: at the moment, I can set a default size for gallery images to ‘medium’, for example, although in the Gallery Settings panel in the page editor, the size will still display as ‘Thumbnail’. Indeed, the user could change the value of the size field without actually affecting the image size on the front end.

[[Image(https://catapultthemes.com/wp-content/uploads/2017/05/gallery-admin-default-size.jpeg)]]

In wp-includes/media-template.php replace lines 775 - 779 with:

{{{
foreach ( $size_names as $size => $label ) : ?>
	<option value=""<?php echo esc_attr( $size ); ?>"" <#
		if ( '<?php echo $size ?>' == wp.media.galleryDefaults.size ) { #>selected=""selected""<# }
					#>>
		<?php echo esc_html( $label ); ?>
	</option>
<?php endforeach; ?>
}}}

This will allow:

{{{
function me_filter_gallery_settings( $settings ) {
	$settings['galleryDefaults']['size'] = 'large';
	return $settings;
}
add_filter( 'media_view_settings', 'me_filter_gallery_settings' );
}}}

Thereby allowing plugin and theme developers to set a default value for the image size in galleries."	Catapult_Themes	4.8	
Defects Awaiting Review	47922	src attribute in Image Gallery Block is inconsistent with image inserted outside of gallery.		Gallery	normal	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	5.2.2	
Defects Awaiting Review	47744	WordPress default galleries do not display properly on Safari 10.1 and possibly other older browsers		Gallery	minor	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	5.2.2	
Enhancements Awaiting Review	66089	Disable sizes=”auto” for galleries with cropped images		Gallery	minor	enhancement	new	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	6.7	has-patch
Enhancements Awaiting Review	38100	Gallery Caption Filter		Gallery	normal	feature request	new	2016-09-19T20:03:19Z	2026-01-18T13:33:04Z	In media.php on line 1767: https://core.trac.wordpress.org/browser/tags/4.6.1/src/wp-includes/media.php#L1767 there is no way to filter a gallery's caption. A filter here would be really helpful to include attachment meta data within a gallery's caption.	darrenshea	4.6.1	has-patch
Enhancements Awaiting Review	41328	lightbox plugins cannot get image address to open except from image link		Gallery	normal	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	4.8	
Enhancements Awaiting Review	40524	Filter hook for max image columns in gallery settings		Gallery	normal	enhancement	new	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	4.7.4	has-patch
Reporter Feedback / Close	44394	Error when trying to get the columns of a three-columns gallery.		Gallery	normal	defect (bug)	new	2018-06-18T12:19:40Z	2026-01-19T11:39:11Z	"It seems the `get_post_gallery` function fails to retrieve the column count if it's 3.

First, create a gallery. Then, insert 2 or 3 or any number of images and set its column to 3.

Then, run this code in the context of a post (content.php / single.php will do):

{{{#!php
<?php
$gallery = get_post_gallery( $post->ID, False );
$gallery_images = explode( ',', $gallery['ids'] );
var_dump( $gallery['columns'] );
}}}

It will come out as:


{{{
<b>Notice</b>:  Undefined index: columns in <b>C:\file.php</b> on line <b>45</b>
}}}


"	virginthumb	4.9.6	reporter-feedback
Reporter Feedback / Close	43642	Gallery titles and labels erasing		Gallery	normal	enhancement	new	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	4.9.5	reporter-feedback
Defects Awaiting Review, reported against no version	40007	update_option function does not work if the $value argument is false on a nonexistent option		General	normal	defect (bug)	reopened	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		has-patch
Defects Awaiting Review, reported against no version	37249	Missing url escapes and 'author' link relation in wp_list_authors()		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review, reported against no version	39197	Page not found error on posts in different alphabets		General	normal	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		
Defects Awaiting Review, reported against no version	43665	XHR requests disregard the WP_DEBUG_DISPLAY flag		General	normal	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		
Defects Awaiting Review, reported against no version	33141	Search form clear button is clipped in Safari (OS X)		General	minor	defect (bug)	new	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		has-patch
Defects Awaiting Review, reported against latest stable branch	65968	Hidden check box (checkbox) column in the `WP_List_Table` is not hide.		General	normal	defect (bug)	new	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	7.1	has-patch
Defects Awaiting Review	63522	Warnings related to get_queried_object returning null		General	minor	defect (bug)	new	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		has-patch
Defects Awaiting Review	61910	register_block_type_from_metadata fails to register style attribute when using $args		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62828	Array should not be passed to get_page_by_path()		General	normal	defect (bug)	new	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	6.7.2	has-patch
Defects Awaiting Review	65957	missing tests for bookmark-template.php		General	normal	defect (bug)	new	2026-08-24T19:37:36Z	2026-10-31T19:29:57Z		pbearne		has-patch
Defects Awaiting Review	66354	render_block_core_template_part / get_404_template is called when in any admin area		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	66376	Regression: Poetry block swapped with paragraphs on paste. Verse didn't have this behavior.		General	normal	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		
Defects Awaiting Review	59126	first class callable syntax support in _wp_filter_build_unique_id() / remove_filter()		General	normal	defect (bug)	new	2023-08-16T22:57:52Z	2026-10-23T07:53:15Z	"PHP 8.1 introduced something called ""First class callable"" or First-class Callable Syntax - [https://www.php.net/releases/8.1/en.php#first_class_callable_syntax]

Which basically means much easier way to reference any function, especially class methods - both dynamic and static like so:

{{{
$this->myDynamicCallback(...);
self::myStaticCallback(...);
}}}
''**The 3 dots ""..."" are not omission - it is the syntax**''

Now this syntax actually works for `add_filter` however, it can fail (and I've encountered cases where it fails) for `remove_filter` which leads to very unexpected results.

Temporary bypass can be done using `remove_all_filters` or the old-school syntax `[__CLASS__, 'myStaticCallback']`.

The core issue is in the function `_wp_filter_build_unique_id` which generates the key under which the callback is stored, more specifically, in the way how the PHP's `spl_object_hash` work - this sentence from docs ""This id can be used as a hash key for storing objects, or for identifying an object, **as long as the object is not destroyed**.""

Now this is an educated wild guess, but I would guess that the callable objects created by the First-class callable syntax may not live that long and garbage collector can destroy them if it sees fit.

Anyways... the core is - `spl_object_hash` is NOT the right tool to cache ALL callables, but can only be used where the callable is passed around (e.g. stored in a variable) and therefore it is ensured it's still the same object (I would hope).

**Solution**
...for such cases is to create a `\ReflectionFunction` instance and check for `getClosureScopeClass()` and `getName()` :-)

https://www.php.net/manual/en/class.reflectionfunction.php
https://www.php.net/manual/en/reflectionfunctionabstract.getclosurescopeclass.php
https://www.php.net/manual/en/reflectionfunctionabstract.getname.php"	jave.web	6.3	has-patch
Defects Awaiting Review	66358	wp_json_encode() fallback ignores JsonSerializable::jsonSerialize()		General	normal	defect (bug)	new	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	4.1	has-patch
Defects Awaiting Review	62249	Investigate Theme JSON Data Caching Inconsistencies		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	66261	AVIF uploads get JPEG sub-sizes when Imagick (ImageMagick 6) reports the file as HEIC		General	minor	defect (bug)	new	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		has-patch
Defects Awaiting Review	66119	WP_Font_Face drops a font src URL that has a query string		General	normal	defect (bug)	new	2026-09-16T16:10:58Z	2026-10-07T19:48:57Z	"`WP_Font_Face::order_src()` picks each URL's format from its file extension:

{{{
$format         = pathinfo( $url, PATHINFO_EXTENSION );
$src[ $format ] = $url;
}}}

For `https://example.org/f/a.woff2?ver=abc123`, `pathinfo()` returns `woff2?ver=abc123`. The method then only keeps the `woff2`, `woff`, `ttf`, `eot` and `otf` keys, so the URL is dropped and the `@font-face` rule is printed without a `src`. There is no notice.

To reproduce (WordPress 7.1, no plugins):

{{{
wp_print_font_faces( array( array( array(
	'font-family' => 'T',
	'src'         => array( 'https://example.org/f/a.woff2?ver=abc123' ),
) ) ) );
}}}

Output:

{{{
@font-face{font-family:T;font-style:normal;font-weight:400;font-display:fallback;}
}}}

Without `?ver=abc123` the same call prints `src:url('https://example.org/f/a.woff2') format('woff2');`.

Fonts from `theme.json` use `file:./` paths with no query string, which may be why this has not shown up. It does affect a plugin that adds a version to its font URLs for cache busting, the usual practice for assets; such a plugin has to print its own `@font-face` rules instead of using `wp_print_font_faces()`.

A possible fix is to read the extension from the URL path only:

{{{
$format = pathinfo( (string) wp_parse_url( $url, PHP_URL_PATH ), PATHINFO_EXTENSION );
}}}

with a dataset case in `tests/phpunit/tests/fonts/font-face/wp-font-face-tests-dataset.php` for a URL with a query string.

Found while building an emoji font fallback; wider context in [https://github.com/WordPress/gutenberg/discussions/83032 Gutenberg discussion #83032]. Related, same class: #66103."	kimjiwoon	6.4	has-patch
Defects Awaiting Review	66262	GD image editor saves resized indexed PNGs as truecolor (regression since 3.5)		General	normal	defect (bug)	new	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	3.5	has-patch
Defects Awaiting Review	64550	wp_update_plugins function (possibly wp_update_themes) breaks when the transient setting fails		General	major	defect (bug)	new	2026-01-23T13:48:34Z	2026-10-06T05:19:14Z	"Because the result of updating the `update_plugins` transient is never checked at the end of the function (`set_site_transient()`), if the setting fails (e.g. because a plugin such as GravityView decided to use fancy emojis in their changelog) then the site becomes stuck with old versions of plugins, never displaying any updates.


To reproduce, try to make `$dpdb->strip_invalid_text()` return a different data array (`/wp-includes/class-wpdb.php::2827`). I managed to get this with [GravityView](https://www.gravitykit.com/products/gravityview/changelog), which has some new UTF emojis in the description."	madhazelnut	6.8.3	has-patch
Defects Awaiting Review	66234	Plug in issues		General	normal	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		
Defects Awaiting Review	66084	Zoomed-out images can't be zoomed back in.		General	normal	defect (bug)	new	2026-09-10T00:47:06Z	2026-09-28T04:39:32Z	"In my blog posts I let users zoom out (amplify) the images so they can see the details, however, once they zoom out the images they can't be zoomed back in, the X button does not respond at all.

This used to work just fine, but after a wordpress version upgrade this stated happening."	raven92	7.0	
Defects Awaiting Review	63949	wp-cron.php should use SNI		General	major	defect (bug)	new	2025-09-09T16:58:50Z	2026-09-25T12:14:30Z	"
{{{
> grep ""SNI was provided"" /var/log/apache2/error.log | tail -n 1
[Tue Sep 09 12:42:40.051340 2025] [ssl:error] [pid 605:tid 687] [client REDACTED_LOCAL_IP:44088] AH02032: Hostname REDACTED_DOMAIN_1 (default host as no SNI was provided) and hostname REDACTED_DOMAIN_2 provided via HTTP have no compatible SSL setup

> grep ""09/Sep/2025:12:42:40"" /var/log/apache2/other_vhosts_access.log
REDACTED_DOMAIN_2:443 REDACTED_LOCAL_IP - - [09/Sep/2025:12:42:40 -0400] ""POST /wordpress/wp-cron.php?doing_wp_cron=1757436160.0413179397583007812500 HTTP/1.1"" 421 3908 ""-"" ""WordPress/6.8.2; https://REDACTED_DOMAIN_2""

}}}
"	dmole	6.8.2	has-patch
Defects Awaiting Review	57136	wp_list_pluck's key argument not working correctly when its zero		General	normal	defect (bug)	new	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	4.7	has-patch
Defects Awaiting Review	46058	Extra database calls when use get_the_excerpt() and posts have images		General	major	defect (bug)	new	2019-01-21T23:49:51Z	2026-09-21T10:23:43Z	"**To reproduce this issue:**
1. Install clear wordpress (5.0.3)
2. Create post with image in post content. Assign it to one category (e.g. ""uncategorized"").
3. Open this category page and check database calls in it (with get_num_queries()).
4. Add one more post with image in it - and database calls will increase with every additional post (+2 queries for 1 additional post).


**Info:**
1. This issue dissapear when you delete get_the_excerpt() from the category template.
2. This issue does not exist when posts have no image in it.


**The reason of this issue is in function get_the_excerpt():**
1. function get_the_excerpt() applies filter 'get_the_excerpt' in wp-includes/post-template.php:397
{{{#!php
<?php
return apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
}}}

2. we have 'wp_trim_excerpt' by default for 'get_the_excerpt' in ""wp-includes/default-filters.php:172"":
{{{#!php
<?php
add_filter( 'get_the_excerpt', 'wp_trim_excerpt'  );
}}}
 
3. function wp_trim_excerpt() applies filter 'the_content' in wp-includes/formatting.php:3314
{{{#!php
<?php
$text = apply_filters( 'the_content', $text );
}}}

4. we have 'wp_make_content_images_responsive' by default for 'the_content' in ""wp-includes/default-filters.php:165"":
{{{#!php
<?php
add_filter( 'the_content', 'wp_make_content_images_responsive' );
}}}

5. and lastly function wp_make_content_images_responsive() produce 2 extra database calls on every post in category-page (guess with wp_get_attachment_metadata) in wp-includes/media.php:1344
{{{#!php
<?php
foreach ( $selected_images as $image => $attachment_id ) {
  $image_meta = wp_get_attachment_metadata( $attachment_id );
  $content = str_replace( $image, wp_image_add_srcset_and_sizes( $image, $image_meta, $attachment_id ), $content );
}
}}}
"	kg69design	5.0.3	needs-patch
Defects Awaiting Review	60002	maybe_convert_table_to_utf8mb4() not work with new version of MySQL/MariaDB.		General	normal	defect (bug)	new	2023-12-02T08:00:36Z	2026-09-09T12:46:32Z	"From [this document](https://mariadb.com/kb/en/unicode/). They said:
''From MariaDB 10.6, utf8 is by default an alias for utf8mb3''

And from [this document](https://dev.mysql.com/doc/refman/8.0/en/charset-unicode-utf8mb3.html) in MySQL. They said:
''Historically, MySQL has used utf8 as an alias for utf8mb3; beginning with MySQL 8.0.28, utf8mb3 is used exclusively in the output of SHOW statements and in Information Schema tables when this character set is meant.''

It can be refer to [this issue](https://core.trac.wordpress.org/changeset/53918).

So, from this simple MySQL code:

{{{
CREATE TABLE testing (
    id bigint(20) NOT NULL AUTO_INCREMENT,
    name varchar(50) DEFAULT NULL,
    PRIMARY KEY (id)
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1
}}}

If you run on MariaDB 10.6 or newer (for me it is 10.6.7) the `utf8` column will be automatically changed to `utf8mb3_general_ci`.

But, WordPress function `maybe_convert_table_to_utf8mb4()` contain this condition:
{{{#!php
<?php
if ( 'utf8' !== $charset && 'utf8mb4' !== $charset ) {
    // Don't upgrade tables that have non-utf8 columns.
    return false;
}
}}}
Which will be result in no change from `utf8mb3_general_ci` to `utf8mb4_unicode_ci`."	okvee		has-patch
Defects Awaiting Review	65675	Toggletip Screen Reader Accessibility (wp-includes/general-template.php)		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65986	wp-config-sample.php is not usable as a live config without filling placeholders		General	normal	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		
Defects Awaiting Review	65617	Search button is missing an accessible name		General	normal	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	6.9.4	
Defects Awaiting Review	66011	tests for trackback_response		General	normal	defect (bug)	new	2026-08-31T20:50:10Z	2026-08-31T21:09:54Z		pbearne		has-patch
Defects Awaiting Review	66010	tests for _get_cron_lock		General	normal	defect (bug)	new	2026-08-31T20:25:15Z	2026-08-31T20:35:59Z		pbearne		has-patch
Defects Awaiting Review	65955	tests for cache-compat.php		General	normal	defect (bug)	new	2026-08-24T18:38:16Z	2026-08-24T19:33:45Z		pbearne		has-patch
Defects Awaiting Review	65925	After 7.1 update images not rendering		General	normal	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		
Defects Awaiting Review	55524	Menus listing alphabetized bug, Upload pages cleanup, and Hide the browsers.		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	38052	wp-utility.js misses function argument null		General	major	defect (bug)	new	2016-09-14T09:26:29Z	2026-08-21T09:50:27Z	"Since 4.6 the wp-utility is updated. The null parameter has been removed here:


{{{
 compiled = compiled || _.template( $( '#tmpl-' + id ).html(), null, options );
}}}

to

{{{
 compiled = compiled || _.template( $( '#tmpl-' + id ).html(), options );
}}}


Which can give the following error:


{{{
wp-util.min.js:1 Uncaught TypeError: (intermediate value)(intermediate value) is not a function
}}}

This is fixed by adding that null value again like this:

{{{
 compiled = compiled || _.template( $( '#tmpl-' + id ).html(), null, options );
}}}


Affects version 4.6 and 4.6.1"	wiardvanrij	4.6	has-patch
Defects Awaiting Review	44070	Avoid flickering of admin notices		General	normal	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		
Defects Awaiting Review	64105	TinyMCE in classic editor does not support modern video formats		General	normal	defect (bug)	new	2025-10-16T13:32:23Z	2026-08-17T10:56:23Z	"[[Image(https://i.ibb.co/Sw1793Xr/1m.jpg)]]
[[Image(https://i.ibb.co/35vKpfjh/2m.jpg)]]
WP does not support webp, avi formats for the classic editor. Can someone help and make them uwaliable like in Block Templates ?"	blackstar1991	6.8.3	needs-patch
Defects Awaiting Review	65789	window.wp is vulnerable to DOM clobbering		General	normal	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		
Defects Awaiting Review	65702	wp_lostpassword_url() duplicates the base path on a Multisite network installed in a subdirectory		General	normal	defect (bug)	new	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	7.0.2	has-patch
Defects Awaiting Review	65603	Additional CSS cleared in multisite setup when user is admin on single site		General	normal	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		
Defects Awaiting Review	57130	unittest for wp_upload_bits		General	normal	defect (bug)	closed	2022-11-16T22:11:05Z	2026-06-28T18:36:26Z		pbearne		has-patch
Defects Awaiting Review	65498	After Upgrading to 7 the admin panel colors changed to purple		General	normal	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		
Defects Awaiting Review	65475	Fonts API: Replace _doing_it_wrong() with wp_trigger_error() in WP_Font_Face		General	minor	defect (bug)	new	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	6.4	has-patch
Defects Awaiting Review	65490	Community feedback on the new interface design		General	major	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		
Defects Awaiting Review	65431	URL generation fails when page/post titles contain emoji or unsupported special Unicode characters		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65217	Admin Dashboard Activity section alignment issue.		General	normal	defect (bug)	new	2026-05-11T06:21:55Z	2026-05-25T21:54:06Z	"I upgraded to **WordPress RC3**, and while testing the admin panel, I noticed a UI glitch in the **Activity section of the Admin Dashboard**.

The WordPress RC3 version was upgraded using the following CLI command: 

{{{
wp core update --version=7.0-RC3
}}}

I tried debugging the UI issue and noticed that when I commented out the following CSS rule (**margin: 0 -12px;**), the layout appeared correctly.

File path: **/wp-admin/css/dashboard.css(line no: 1085)**

**Before:**
{{{
#latest-comments #the-comment-list {
    position: relative;
    margin: 0 -12px;
}
}}}

**After:**

{{{
#latest-comments #the-comment-list {
    position: relative;
}
}}}
}}}
"	gaurangsondagar		has-patch
Defects Awaiting Review	65257	Theme title alignment/layout issue in Appearance → Themes screen when active theme label is displayed		General	normal	defect (bug)	new	2026-05-18T05:09:27Z	2026-05-18T08:36:55Z	"In the Appearance → Themes admin screen, the active theme card layout breaks because the theme title container has a fixed height and overflow hidden.

When the 'Active:' label is prepended before the theme name, the title area becomes vertically misaligned compared to inactive theme cards.

== **Steps to Reproduce**
- Install WordPress 7.0 RC-4
- Go to Appearance → Themes
- Activate any theme
- Compare the active theme card with inactive theme cards"	hardipparmar		has-patch
Defects Awaiting Review	65144	Passwords: trim() asymmetry between wp_hash_password() and wp_check_password() introduced in 6.8		General	normal	defect (bug)	new	2026-04-28T18:37:22Z	2026-05-03T12:11:30Z	"wp_hash_password() and wp_check_password() handle whitespace 
inconsistently in the bcrypt path introduced in 6.8.

wp_hash_password() (pluggable.php line 2809):
hash_hmac('sha384', trim($password), 'wp-sha384', true)

wp_check_password() (pluggable.php line 2858):
hash_hmac('sha384', $password, 'wp-sha384', true)

The hashing function trims leading and trailing whitespace before 
hashing. The verification function does not. This means a password 
set with leading or trailing whitespace will hash as the trimmed 
value but verify against the untrimmed value, producing a mismatch 
and locking the user out.

The default login path (wp_authenticate) trims upstream, so normal 
logins are not affected. However any code that calls wp_check_password() 
directly without prior trimming is broken — this includes plugins, 
REST API handlers, and custom authentication flows.

A similar issue was fixed in ticket #34889 but did not carry forward 
to the new bcrypt code path added in 6.8.

Expected behavior: wp_check_password() should trim the password before 
hashing for verification, mirroring wp_hash_password().

Suggested fix: change line 2858 in pluggable.php from:
hash_hmac('sha384', $password, 'wp-sha384', true)
to:
hash_hmac('sha384', trim($password), 'wp-sha384', true)"	mkultraware	6.8	has-patch
Defects Awaiting Review	64911	Incorrectly documented hooks	johnbillion	General	trivial	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		
Defects Awaiting Review	58505	Using WORDPRESS_DB_HOST variable Cannot connect to the database, must be configu		General	major	defect (bug)	new	2023-06-10T07:07:08Z	2026-04-22T07:35:55Z	"I use kubernetes to run wordpress, and configure the WORDPRESS_DB_HOST variable, but it can not connect to the database, manually configure the database IP can be, mast have i to manually configure?
I also tried using docker and 'WORDPRESS_DB_HOST' didn't work either.
The image I used is wordpress:php8.2"	chentc	6.2.2	needs-patch
Defects Awaiting Review	58751	Add noindex to 404 template		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65090	Missing escaping for dynamic link text		General	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	64956	Unnecessary horizontal scrollbar on theme-editor.php in WordPress 7.0 RC1		General	normal	defect (bug)	new	2026-03-26T10:45:30Z	2026-04-17T05:38:37Z	"On the theme editor page (theme-editor.php) in the WordPress admin dashboard, a horizontal scrollbar is visible even when there is no content overflowing the container.

Steps to reproduce:

Install WordPress 7.0 RC1
Go to Admin Dashboard
Navigate to Appearance → Theme File Editor
Observe the horizontal scrollbar at the bottom

Expected result:
No horizontal scrollbar should appear when content fits within the viewport.

Actual result:
A horizontal scrollbar is displayed unnecessarily, even when there is no overflow content.

Suggested Fix Idea
#templateside>ul {
overflow-x: hidden;
}"	hardik2812		has-patch
Defects Awaiting Review	64853	Inconsistent Post Count in Category Taxonomy		General	normal	defect (bug)	new	2026-03-12T17:55:24Z	2026-04-09T10:23:44Z	"Description

There is a discrepancy between the post count displayed in the Category List (edit-tags.php) and the actual number of posts displayed when clicking through to the Post List (edit.php?category_name=...).
Environment

    Platform: WordPress Admin Dashboard

    Affected Pages: * /wp-admin/edit-tags.php?taxonomy=category

        /wp-admin/edit.php?category_name=history

Steps to Reproduce

    Create a category named ""History"".

    Publish 1 post assigned to the ""History"" category.

    Create a 2nd post assigned to the ""History"" category, but set its status to ""Scheduled"" (Future).

    Navigate to Posts > Categories (edit-tags.php). Observe the Count column for ""History"".

    Click the count number (1) to view the posts in that category.

Expected Result

The count in the Category List should reflect the total number of items managed within that category (2), or the Post List should filter by ""Published"" by default to match the count.
Actual Result

    Category List: Displays a count of 1 (only counting Published posts).

    Post List: Displays 2 items (1 Published + 1 Scheduled).

    Note: There are no active filters applied in the Post List, yet the numbers do not align.

Suggested Fix/Reasoning

The internal function _update_post_term_count() currently only includes the publish post status. To improve UX and consistency for site administrators, the update_post_term_count_statuses filter should be utilized to include the future status in the count calculation.
A Quick Technical Note

Since you mentioned earlier that you don't have a ""Published"" filter active, WordPress's default behavior is to show all statuses you have permission to see (Draft, Scheduled, Published) on the edit.php screen, which is why the ""2"" appears there while the ""1"" stays on the category summary.

Would you like me to provide the specific PHP code snippet to fix this so your ""Scheduled"" posts are always included in that count?"	phunsanit	6.9.4	dev-feedback
Defects Awaiting Review	63066	Warning when array passed to wp_check_invalid_utf8()		General	normal	defect (bug)	new	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	6.7.2	has-patch
Defects Awaiting Review	65040	"WordPress Paragraph block throwing ""Block contains unexpected or invalid content"" error inconsistently on brand new blocks in WordPress 6.9.4"		General	major	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	6.9.4	
Defects Awaiting Review	60674	Reducing WordPress archive weight		General	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	64767	Some PHP Warnings appears with PHP 8.5		General	normal	defect (bug)	new	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	6.9.1	has-patch
Defects Awaiting Review	63141	Getting Detected usage of a non-sanitized input variable error into the WordPress core files.		General	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	55113	category widget block		General	normal	defect (bug)	new	2022-02-08T13:40:35Z	2026-02-03T17:21:55Z	The dropdown category widget block doesn't fill out on a Samsung smartphone. There are no problems on a Samsung tablet s6 and also not on a windows pC. I use twenty twelve theme on www.razenberg.nl	willem 2	5.9	dev-feedback
Defects Awaiting Review	44082	settings_errors() wraps all notices in p and strong tags		General	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	64560	Function get_stylesheet_directory_uri() can expose server path when using a theme directory outside the document root		General	normal	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		
Defects Awaiting Review	61826	Inline Padding Issue with Full-Width (alignfull) child Group in WordPress 6.6		General	normal	defect (bug)	new	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	6.6	dev-feedback
Defects Awaiting Review	63071	Getting All output should be run through an escaping function error into the WordPress core files.		General	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	56098	Post Excerpt style in query loop not able to override if paragraph color is set in the global style.		General	minor	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	6.0	
Defects Awaiting Review	64551	Fix: Escaped shortcodes are no longer expanded in get_the_excerpt()		General	normal	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		
Defects Awaiting Review	64523	_do_query needs exception processing in class-wpdb.php		General	normal	defect (bug)	new	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	6.9	needs-unit-tests
Defects Awaiting Review	53885	Inconsistent output of Site title with special characters on email		General	normal	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	5.8	
Defects Awaiting Review	62777	Force a 404 when no sitemap provider is found		General	normal	defect (bug)	new	2025-01-03T13:45:10Z	2026-01-17T10:16:40Z	"Currently WordPress does not force a 404 when no sitemap provider is found and instead continues down the regular template hierarchy.

This can be tested with:
- /wp-sitemap-foo-1.xml
- ?sitemap=foo

Where `foo` is not a registered provider.

I would expect a 404 when the url matches the sitemap url patterns but no provider is gound."	romainmrhenry		has-patch
Defects Awaiting Review	64464	Does Not Escape the Ampersand when It Appears in Something that Looks Like Escape Codes		General	normal	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		
Defects Awaiting Review	64364	There has been a critical error on this website.		General	normal	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		
Defects Awaiting Review	63726	On the Plugins page, the search box is not in line with the menu entries		General	minor	defect (bug)	new	2025-07-19T22:00:18Z	2025-12-01T03:38:08Z	see screenshots	Presskopp	6.6	dev-feedback
Defects Awaiting Review	63361	Remove unnecessary semicolon form switch case in atomlib.php file		General	normal	defect (bug)	new	2025-04-27T17:34:21Z	2025-12-01T02:43:23Z	Remove unnecessary semicolon form switch case in atomlib.php file	harishtewari		has-patch
Defects Awaiting Review	63214	The View Version Details Link in Theme Updates Doesn't Show Version Details		General	normal	defect (bug)	new	2025-04-01T19:21:14Z	2025-12-01T02:41:23Z	"When an update for a theme is available and a user browses to wp-admin/themes.php and clicks the Theme Details button, an Update Available notice is displayed such as the one in the screenshot below. 

[[Image()]]

The URL says View Version# Details. However, when clicking on it, it loads the theme's page from the WordPress.theme directory. Or, if the theme is distributed via Easy Digitial Downloads, a Download: Archives page is displayed instead. No details related to the new version are displayed. 

As a user, I expect the link to show a changelog inline or within an iframe of what's changed in the theme, similar to plugins. This is an issue that potentially affects ALL Theme Authors. The way it currently works is a terrible user experience. 


I was hopeful that [https://core.trac.wordpress.org/ticket/31074] from 10 years ago would have inspired the creation of displaying changelogs in themes similar to plugins, but that hasn't been the case. 

If the View Version Details link does not display a changelog, the link text should be changed to reflect that. Maybe something like View Theme Details or something that's not tied to a new release. 

Ultimately, displaying a theme's changelog inline or in an iframe is the best possible outcome. "	jeffr0		dev-feedback
Defects Awaiting Review	60371	get_home_path fails in headless mode.		General	normal	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	6.4.2	
Defects Awaiting Review	62593	Condition for doing_it_wrong for conditional tags is too generic		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	64219	My Patterns (and others) not loading		General	critical	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	6.8.3	
Defects Awaiting Review	57742	Post date time not updating after Timezone change		General	major	defect (bug)	new	2023-02-17T04:05:31Z	2025-11-06T06:17:17Z	"Please create a post first and check the date time from Dashboard post list view. Assume, it's 1:30pm.
Now, change the Timezone from the settings and check the previous post date time again and you will see the time is not updated.

I would expect that the published date would reflect the timezone change"	nazmulhudadev	6.1.1	dev-feedback
Defects Awaiting Review	64121	Video media file is not aligned correctly in the classic editor TinyMCE		General	normal	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	6.8.3	
Defects Awaiting Review	64094	Button variation element styling in theme.json overridden by outline default style		General	normal	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	6.8.3	
Defects Awaiting Review	64118	`WP_Block_Type::render` doesn’t pass block instance argument to render_callback		General	normal	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		
Defects Awaiting Review	64009	wp_die() status code global updates (parent ticket)		General	normal	defect (bug)	new	2025-09-19T17:09:43Z	2025-10-17T12:57:21Z	"Just detailing an issue that was originally raised back in [https://core.trac.wordpress.org/ticket/12529 #12529] where across the code base there are multiple instances of the `wp_die()` function not including a status code. This causes all of these function calls to be logged as a `500` error. However as this is not always the case, this ticket aims to resolve this historical issue within the codebase by suggesting updated status codes for each request. As there are multiple areas that this will cover, I have broken this down into multiple tickets covering the various components here on trac. As of such I will create tickets covering each of the following areas:

- **Media**: 4 files - 12 changes
- **Menus**: 3 files - 4 changes
- **Network and Sites**: 15 files - 42 changes
- **Options**: 9 files - 10 changes
- **Plugins**: 4 files - 14 changes
- **Posts, Post Types**: 6 files - 20 changes
- **REST API**: 2 files - 133 changes
- **Themes**: 3 files - 5 changes
- **Upgrade/Install**: 3 files - 26 changes
- **Users**: 4 files - 8 changes

There are also other files I have taken a look through, and I have not categorised into components yet, so will update this ticket once I have them ready. 

In regards to each of the tickets created I will be going into a more thorough breakdown of the function usage across each of the files. Also please note this work does not try to change every instance of `wp_die()`, but those that could benefit from a more apprioriate response code.

Historical tickets related to this issue:

- [https://core.trac.wordpress.org/ticket/12529 #12529] - (16 years) Specify a response for more `wp_die` calls
- [https://core.trac.wordpress.org/ticket/47393 #47393] - (6 years) Comment form submission with invalid fields incorrectly returns `200 OK response`
- [https://core.trac.wordpress.org/ticket/63836 #63836] - (4 weeks) Use more appropriate HTTP status codes for `wp_die()` calls in `wp-admin/post.php`
"	callumbw95		dev-feedback
Defects Awaiting Review	56025	wp_validate_boolean() not doing what it describes, causes issues with [video] shortcode		General	normal	defect (bug)	new	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	6.0	dev-feedback
Defects Awaiting Review	53390	Unfreeze the code of is_serialized()		General	normal	defect (bug)	new	2021-06-12T17:14:18Z	2025-09-12T20:55:04Z	"The code of [https://github.com/WordPress/wordpress-develop/blob/24a70204db8d9ca5c6ddfc2c22247418fa0af5a1/src/wp-includes/functions.php#L642 `is_serialized()`] is frozen [https://core.trac.wordpress.org/ticket/17375#comment:37 since 2016] as a security measure to protect WordPress and its plugins against PHP Object Injection vulnerabilities, linking to the [https://www.owasp.org/index.php/PHP_Object_Injection OWASP website] as a reference.

The initial idea was that the `is_serialized()` function should return `true` only for safe serialized strings, and `false` for unsafe ones to prevent their deserialization by the caller.

However, the current implementation completely fails to achieve that and does not bring any protection at all against the aforementioned threat.

Not only it doesn't add any security, but the fact that the code has been flagged as ""frozen in time"" is nefarious as it blocks any further developments (both [https://core.trac.wordpress.org/ticket/53299 functionally] and [https://core.trac.wordpress.org/ticket/53295 security] wise).


== Standard objects ==

Let's take all three examples from the [https://owasp.org/www-community/vulnerabilities/PHP_Object_Injection#examples OWASP page] used to support and document this choice.

The input string being malicious, `is_serialized()` is expected to return `false` for each of the following examples, as per documented in the original [https://core.trac.wordpress.org/ticket/17375#comment:37 ticket 17375].

**''I highlight that these are the exact examples used to support and document the choice of freezing `is_serialized()`''**, nothing has been changed.


=== Example 1 ===

Malicious payload:

{{{
http://testsite.com/vuln.php?data=O:8:""Example1"":1:{s:10:""cache_file"";s:15:""../../index.php"";}
}}}

Returned value:

{{{
var_dump(is_serialized('O:8:""Example1"":1:{s:10:""cache_file"";s:15:""../../index.php"";}'));
# Output: bool(true)
}}}

The function **failed** to properly detect and block the malicious serialized object.


=== Example 2 ===

Malicious payload:

{{{
Cookie: data=O%3A8%3A%22Example2%22%3A1%3A%7Bs%3A14%3A%22%00Example2%00hook%22%3Bs%3A10%3A%22phpinfo%28%29%3B%22%3B%7D
}}}

Returned value:

{{{
var_dump(is_serialized(urldecode('O%3A8%3A%22Example2%22%3A1%3A%7Bs%3A14%3A%22%00Example2%00hook%22%3Bs%3A10%3A%22phpinfo%28%29%3B%22%3B%7D')));
# Output: bool(true)
}}}

The function **failed** to properly detect and block the malicious serialized object.


=== Example 3 ===

Malicious payload generation:

{{{
class SQL_Row_Value
{
   private $_table = ""SQL Injection"";
}

class Example3
{
   protected $obj;

   function __construct()
   {
      $this->obj = new SQL_Row_Value;
   }
}

print urlencode(serialize(new Example3));
# Output: O%3A8%3A%22Example3%22%3A1%3A%7Bs%3A6%3A%22%00%2A%00obj%22%3BO%3A13%3A%22SQL_Row_Value%22%3A1%3A%7Bs%3A21%3A%22%00SQL_Row_Value%00_table%22%3Bs%3A13%3A%22SQL+Injection%22%3B%7D%7D
}}}

Returned value:

{{{
var_dump(is_serialized(urldecode('O%3A8%3A%22Example3%22%3A1%3A%7Bs%3A6%3A%22%00%2A%00obj%22%3BO%3A13%3A%22SQL_Row_Value%22%3A1%3A%7Bs%3A21%3A%22%00SQL_Row_Value%00_table%22%
3Bs%3A13%3A%22SQL+Injection%22%3B%7D%7D')));
# Output: bool(true)
}}}

The function **failed** to properly detect and block the malicious serialized object.


== Serializable classes ==

In addition to the standard serialized objects seen above, PHP also offers [https://www.php.net/manual/en/class.serializable.php an alternate mechanism] which basically replaces the call to the magic function `_wakeup()` by a call to the Serializable interface function `deserialize()`.

A specific attention has been given to prevent the deserialization of such objects, notably by the addition of a [https://github.com/WordPress/wordpress-develop/blob/376840b83cb11167d5fe545e929b37d41ce58d6e/tests/phpunit/tests/functions.php#L367 dedicated test case]. In particular, `is_serialized()` ensures that the first character of the serialized string must not be a 'C'.

Nevertheless, here again, if we take all OWASP examples and replace the standard objects by a Serializable object embedded within an array, `is_serialized()` systematically fails to detect and block the malicious payload:

- Example 1:

{{{
var_dump(is_serialized('a:1:{i:0;C:8:""Example1"":23:{s:15:""../../index.php"";}}'));
# Output: bool(true)
}}}

- Example 2:

{{{
var_dump(is_serialized(urldecode('a%3A1%3A%7Bi%3A0%3BC%3A8%3A%22Example2%22%3A18%3A%7Bs%3A10%3A%22phpinfo%28%29%3B%22%3B%7D%7D')));
# Output: bool(true)
}}}

- Example 3:

{{{
var_dump(is_serialized(urldecode('a%3A1%3A%7Bi%3A0%3BC%3A8%3A%22Example3%22%3A72%3A%7BO%3A13%3A%22SQL_Row_Value%22%3A1%3A%7Bs%3A21%3A%22SQL_Row_Value_table%22%3Bs%3A13%3A%22S
QL+Injection%22%3B%7D%7D%7D')));
# Output: bool(true)
}}}


== Conclusion ==

Freezing `is_serialized()` code as a security measure to block malicious payloads proves to be a totally ineffective measure as it fails to block any single one of the examples linked when this decision was taken and did not prevent WordPress from being vulnerable to any Insecure Deserialization vulnerabilities since then (a very quick search shows CVE-2020-36326, CVE-2020-28032, CVE-2019-12240, CVE-2018-20148, etc.).

This freeze should therefore be lifted to allow further developments, notably the implementation of more efficient protections against such threats."	whitewinterwolf		
Defects Awaiting Review	50279	add_query_arg() removes equal sign from assigned value		General	normal	defect (bug)	new	2020-05-29T16:29:09Z	2025-09-10T09:32:37Z	"If you add a query array like this:
{{{#!php
<?php
$data =[
    'api_id'		=> 'xxxxx==',
    'to'		=> 123456,
    'text'		=> ""Prueba"",
];
$url    = add_query_arg( $data , 'https://xxx.com' );
}}}
The $url you get is this: https://xxx.com?api_id=xxxxx=&to=123456&text=Prueba

The line 1142:
{{{#!php
<?php
$ret = preg_replace( '#=(&|$)#', '$1', $ret );
}}}

Gets ""xxxxx=="" and return ""xxxxx="".

Please fix it.

Kind regards.
"	artprojectgroup	5.4.1	has-patch
Defects Awaiting Review	63900	Improve PHPDoc for wp_parse_id_list() in functions.php		General	normal	defect (bug)	new	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		needs-docs
Defects Awaiting Review	63859	Ugly modal showing up after the session expires		General	normal	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		
Defects Awaiting Review	47420	Block markup containing HTML in block attributes is corrupted when using wp_insert_post		General	normal	defect (bug)	new	2019-05-28T17:12:15Z	2025-08-19T13:22:49Z	"**Issue**
Some blocks allow HTML in their block attributes, which display correctly in the editor and the front end. An example is the Pricing block in Atomic Blocks: https://wordpress.org/plugins/atomic-blocks/

If block content copied from the block editor as raw code contains HTML in its block attributes, inserting that content with wp_insert_post() results in corrupt blocks.

This appears to be due to the way block attributes like this:

{{{
{""price"":""<strong>49</strong>"",""currency"":""$"",""term"":""/mo""}
}}}

Are encoded like this when saved:

{{{
{""price"":""\u003cstrong\u003e49\u003c/strong\u003e"",""currency"":""$"",""term"":""/mo""}
}}}


**To reproduce**
1. Install Atomic Blocks and activate Twenty Nineteen.
2. Add this code to your theme's functions.php, refresh any page to trigger the code, then remove the code:

{{{#!php
<?php
$post_content = <<<CONTENT
<!-- wp:atomic-blocks/ab-pricing -->
<div class=""wp-block-atomic-blocks-ab-pricing ab-pricing-columns-2""><div class=""ab-pricing-table-wrap ab-block-pricing-table-gap-2""><!-- wp:atomic-blocks/ab-pricing-table -->
<div class=""wp-block-atomic-blocks-ab-pricing-table ab-block-pricing-table-center ab-block-pricing-table"" itemscope itemtype=""http://schema.org/Product""><div class=""ab-block-pricing-table-inside"" style=""border-width:2px;border-style:solid""><!-- wp:atomic-blocks/ab-pricing-table-title {""title"":""\u003cstrong\u003ePrice Title\u003c/strong\u003e"",""fontSize"":""medium"",""paddingTop"":30} -->
<div itemprop=""name"" style=""padding-top:30px;padding-right:20px;padding-bottom:10px;padding-left:20px"" class=""wp-block-atomic-blocks-ab-pricing-table-title ab-pricing-table-title has-medium-font-size""><strong>Price Title</strong></div>
<!-- /wp:atomic-blocks/ab-pricing-table-title -->

<!-- wp:atomic-blocks/ab-pricing-table-subtitle {""subtitle"":""Price Subtitle Description"",""customFontSize"":20} -->
<div class=""wp-block-atomic-blocks-ab-pricing-table-subtitle ab-pricing-table-subtitle"" style=""font-size:20px;padding-top:10px;padding-right:20px;padding-bottom:10px;padding-left:20px"">Price Subtitle Description</div>
<!-- /wp:atomic-blocks/ab-pricing-table-subtitle -->

<!-- wp:atomic-blocks/ab-pricing-table-price {""price"":""\u003cstrong\u003e49\u003c/strong\u003e"",""currency"":""$"",""term"":""/mo""} -->
<div class=""wp-block-atomic-blocks-ab-pricing-table-price ab-pricing-table-price-wrap ab-pricing-has-currency"" style=""padding-top:10px;padding-right:20px;padding-bottom:10px;padding-left:20px""><div itemprop=""offers"" itemscope itemtype=""http://schema.org/Offer""><span itemprop=""priceCurrency"" class=""ab-pricing-table-currency"" style=""font-size:24px"">$</span><div itemprop=""price"" class=""ab-pricing-table-price"" style=""font-size:60px""><strong>49</strong></div><span class=""ab-pricing-table-term"" style=""font-size:24px"">/mo</span></div></div>
<!-- /wp:atomic-blocks/ab-pricing-table-price -->

<!-- wp:atomic-blocks/ab-pricing-table-features {""customFontSize"":20,""paddingTop"":15,""paddingBottom"":15} -->
<ul itemprop=""description"" class=""wp-block-atomic-blocks-ab-pricing-table-features ab-pricing-table-features ab-list-border-none ab-list-border-width-1"" style=""font-size:20px;padding-top:15px;padding-right:20px;padding-bottom:15px;padding-left:20px""><li>Product Feature One</li><li>Product Feature Two</li><li>Product Feature Three</li></ul>
<!-- /wp:atomic-blocks/ab-pricing-table-features -->

<!-- wp:atomic-blocks/ab-pricing-table-button {""buttonText"":""Buy Now"",""buttonBackgroundColor"":""#272c30"",""paddingTop"":15,""paddingBottom"":35} -->
<div class=""wp-block-atomic-blocks-ab-pricing-table-button ab-pricing-table-button"" style=""padding-top:15px;padding-right:20px;padding-bottom:35px;padding-left:20px""><div class=""ab-block-button""><a class=""ab-button ab-button-shape-rounded ab-button-size-medium"" style=""color:#ffffff;background-color:#272c30"">Buy Now</a></div></div>
<!-- /wp:atomic-blocks/ab-pricing-table-button --></div></div>
<!-- /wp:atomic-blocks/ab-pricing-table -->

<!-- wp:atomic-blocks/ab-pricing-table -->
<div class=""wp-block-atomic-blocks-ab-pricing-table ab-block-pricing-table-center ab-block-pricing-table"" itemscope itemtype=""http://schema.org/Product""><div class=""ab-block-pricing-table-inside"" style=""border-width:2px;border-style:solid""><!-- wp:atomic-blocks/ab-pricing-table-title {""title"":""\u003cstrong\u003ePrice Title\u003c/strong\u003e"",""fontSize"":""medium"",""paddingTop"":30} -->
<div itemprop=""name"" style=""padding-top:30px;padding-right:20px;padding-bottom:10px;padding-left:20px"" class=""wp-block-atomic-blocks-ab-pricing-table-title ab-pricing-table-title has-medium-font-size""><strong>Price Title</strong></div>
<!-- /wp:atomic-blocks/ab-pricing-table-title -->

<!-- wp:atomic-blocks/ab-pricing-table-subtitle {""subtitle"":""Price Subtitle Description"",""customFontSize"":20} -->
<div class=""wp-block-atomic-blocks-ab-pricing-table-subtitle ab-pricing-table-subtitle"" style=""font-size:20px;padding-top:10px;padding-right:20px;padding-bottom:10px;padding-left:20px"">Price Subtitle Description</div>
<!-- /wp:atomic-blocks/ab-pricing-table-subtitle -->

<!-- wp:atomic-blocks/ab-pricing-table-price {""price"":""\u003cstrong\u003e49\u003c/strong\u003e"",""currency"":""$"",""term"":""/mo""} -->
<div class=""wp-block-atomic-blocks-ab-pricing-table-price ab-pricing-table-price-wrap ab-pricing-has-currency"" style=""padding-top:10px;padding-right:20px;padding-bottom:10px;padding-left:20px""><div itemprop=""offers"" itemscope itemtype=""http://schema.org/Offer""><span itemprop=""priceCurrency"" class=""ab-pricing-table-currency"" style=""font-size:24px"">$</span><div itemprop=""price"" class=""ab-pricing-table-price"" style=""font-size:60px""><strong>49</strong></div><span class=""ab-pricing-table-term"" style=""font-size:24px"">/mo</span></div></div>
<!-- /wp:atomic-blocks/ab-pricing-table-price -->

<!-- wp:atomic-blocks/ab-pricing-table-features {""customFontSize"":20,""paddingTop"":15,""paddingBottom"":15} -->
<ul itemprop=""description"" class=""wp-block-atomic-blocks-ab-pricing-table-features ab-pricing-table-features ab-list-border-none ab-list-border-width-1"" style=""font-size:20px;padding-top:15px;padding-right:20px;padding-bottom:15px;padding-left:20px""><li>Product Feature One</li><li>Product Feature Two</li><li>Product Feature Three</li></ul>
<!-- /wp:atomic-blocks/ab-pricing-table-features -->

<!-- wp:atomic-blocks/ab-pricing-table-button {""buttonText"":""Buy Now"",""buttonBackgroundColor"":""#272c30"",""paddingTop"":15,""paddingBottom"":35} -->
<div class=""wp-block-atomic-blocks-ab-pricing-table-button ab-pricing-table-button"" style=""padding-top:15px;padding-right:20px;padding-bottom:35px;padding-left:20px""><div class=""ab-block-button""><a class=""ab-button ab-button-shape-rounded ab-button-size-medium"" style=""color:#ffffff;background-color:#272c30"">Buy Now</a></div></div>
<!-- /wp:atomic-blocks/ab-pricing-table-button --></div></div>
<!-- /wp:atomic-blocks/ab-pricing-table --></div></div>
<!-- /wp:atomic-blocks/ab-pricing -->
CONTENT;

wp_insert_post([
	'post_title' => 'Test block import with HTML in attributes',
	'post_content' => $post_content
]);
}}}

3. View the newly imported post. You'll see “this block contains unexpected or invalid content” where you expect to see blocks.

If you repeat the above steps but use unencoded attributes as follows (find and replace '\u003c' with '<' and '\u003e' with '>'), the blocks import as expected:

{{{
{""price"":""<strong>49</strong>"",""currency"":""$"",""term"":""/mo""}
}}}


**Environment**
WordPress 5.2.1, Twenty Nineteen, no plugins active except for Atomic Blocks.
macOS/Chrome.

**Further info**
This isn't limited to Atomic Blocks, as other blocks use HTML in block attributes. This issue was originally reported against the Gutenberg repo by another user who encountered the same, but it was suggested the issue belongs in Trac. I couldn't find a corresponding ticket here.

https://github.com/WordPress/gutenberg/issues/14068"	modernnerd		dev-feedback
Defects Awaiting Review	63783	Fix: uncaught exception error from wp-includes folder files		General	critical	defect (bug)	new	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	6.8.2	has-patch
Defects Awaiting Review	63776	RTL font family issue with server side render block component		General	normal	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		
Defects Awaiting Review	51768	In documentation, replace references to 'list' with 'array'		General	trivial	defect (bug)	new	2020-11-13T11:28:48Z	2025-07-04T11:35:38Z	"In ticket #39049, a patch was submitted to replace the word 'list' with 'array' in one function.

On that ticket, there was a [https://core.trac.wordpress.org/ticket/39049#comment:2/ comment] saying that ""the terms array and list are often used interchangeably in documentation throughout WordPress core. In fact, searching for ""a list of"" in core returns almost 150 results."" 

For this ticket, replace all occurrences of 'list' in function documentation with 'array'.

"	johannadevos		has-patch
Defects Awaiting Review	61162	Internal WordPress Plug-in Search dont show relevant results		General	normal	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	6.5	
Defects Awaiting Review	63599	Scheduled Posts Occasionally Miss Schedule with Real Cron Setup		General	normal	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		
Defects Awaiting Review	60052	Error when deleting media if default taxonomies have been removed	adamsilverstein	General	normal	defect (bug)	assigned	2023-12-12T07:44:20Z	2025-06-13T05:26:21Z	"Hello,

I recently had a problem with deleting media from the media library.

I received the following error message:

2151#0: *203114 FastCGI sent in stderr: ""PHP message: UM_TEST_ERROR_LOG
PHP message: 63870
PHP message: ""category""
PHP message: UM_TEST_ERROR_LOG
PHP message: 63870
PHP message: ""post_tag""
PHP message: PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, WP_Error given in /var/www/vhosts/fis-gmbh.de/stage.fis-gmbh.de/wp-includes/taxonomy.php:1964
Stack trace:
#0 /var/www/vhosts/fis-gmbh.de/stage.fis-gmbh.de/wp-includes/taxonomy.php(1964): array_map()
#1 /var/www/vhosts/fis-gmbh.de/stage.fis-gmbh.de/wp-includes/post.php(6304): wp_delete_object_term_relationships()
#2 /var/www/vhosts/fis-gmbh.de/stage.fis-gmbh.de/wp-includes/post.php(3416): wp_delete_attachment()
#3 /var/www/vhosts/fis-gmbh.de/stage.fis-gmbh.de/wp-admin/includes/ajax-actions.php(886): wp_delete_post()
#4 /var/www/vhosts/fis-gmbh.de/stage.fis-gmbh.de/wp-includes/class-wp-hook.php(324): wp_ajax_delete_post()
#5 /var/www/vhosts/fis-gmbh.de/stage.fis-gmbh.de/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /var/www/vhosts/fis-gmbh.de/stage.fis-gmbh.de/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /var/www/vhosts/fis-gmbh.de/stage.fis-gmbh.de/wp-admin/admin-ajax.php(1"" while reading response header from upstream


This happened because we had used the following code elsewhere:
add_action( 'init', 'deregister_tag' );
function deregister_tag() {
global $wp_taxonomies;
$tax = 'post_tag';
if ( taxonomy_exists( $tax ) ) {
unset( $wp_taxonomies[ $tax ] );
}
}

This code ensures that the standard WordPress taxonomy 'post_tag' is no longer present (this was not necessary for this project).

In wp-includes/post.php there is the following call:
wp_delete_object_term_relationships( $post_id, array( 'category', 'post_tag' ) );
This call causes an error to occur if the taxonomy 'post_tag' is not present.

I am of the opinion that this error should be caught in the WordPress core.

This issue is also being discussed here at WPML:
https://wpml.org/forums/topic/fatal-error-when-deleting-a-media/

Thank you."	imatoni	6.4.2	dev-feedback
Defects Awaiting Review	63563	Allow `int` type for version in `_WP_Dependency` chain		General	normal	defect (bug)	new	2025-06-12T21:48:10Z	2025-06-13T05:11:25Z	"`_WP_Dependency()->ver`, `WP_Dependencies()->add()`, `wp_enqueue_style()`, `wp_register_style()`, `wp_enqueue_script()`, and `wp_register_script()` all have a dependency's version type set as `string|bool|null`.

A common pattern for providing a script or style's version **number** is to use `filemtime()`, which returns an `int`. This can then be flagged by phpstan during static analysis as incorrect.

Because this is a valid way to generate a version number, and there is no part of the implementation that prevents the output of the number as a string, we should update these to support `string|bool|int|null`."	jeremyfelt		has-patch
Defects Awaiting Review	63554	Are we sensitive about direct accessed URL fatal errors?		General	normal	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		
Defects Awaiting Review	63528	Mouse scroll wheel scrolls whole Post while editing when attempting to scroll through autocomplete pop-up of internal Posts		General	trivial	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	6.8	
Defects Awaiting Review	63507	Loopback tests should run on admin-ajax again		General	normal	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		
Defects Awaiting Review	52539	callable typehint thows static analysis errors		General	normal	defect (bug)	new	2021-02-16T13:01:43Z	2025-05-28T15:55:08Z	"While working on client projects I tend to use a lot of automated tools to make my code better. One such tool is PHPStan.

In a project I have this call

{{{#!php
<?php
\add_menu_page(
	\esc_html__('Blocks', 'eightshift-libs'),
	\esc_html__('Blocks', 'eightshift-libs'),
	self::REUSABLE_BLOCKS_CAPABILITY,
	'edit.php?post_type=wp_block',
	'',
	'dashicons-editor-table',
	4
);
}}}

Lo and behold PHPStan threw an error


{{{
  79     Parameter #5 $function of function add_menu_page expects callable(): mixed, '' given.
}}}

I was a bit confused. I know that you can pass a callback to that function. But also, you can pass a string that will be the name of the callback. So I went to the documentation and to the trac, and I found the problem:

https://core.trac.wordpress.org/browser/tags/5.6/src/wp-admin/includes/plugin.php#L1325

The documentation is marked as 


{{{
* @param callable $function   The function to be called to output the content for this page.
}}}

But that's not true. Sure, you can provide a callback here. But you can also provide a string. So I got to thinking. Wait, don't `add_action` and `add_filter` suffer from the same issue?

Sure they do. I reckon there are a lot of such cases to be found thought the core. In #42509, John Blackbourn mentions around 80 such occurrences in the core I found 78 matches across 23 files.


== So what can we do about it?

Simple, just mention that the `callable` can also be a `string` denoting the callback that will be added in places where this can be done (like in the examples above). Some of those cannot be replaced with a string, because they have `is_callable` check.

So in the case of adding menu page we'd have

{{{
* @param callable|string $function   The function to be called to output the content for this page or the string denoting the callback that will output the content for this page.
}}}

Since in the case of `add_menu_page` the default is already set as empty string, that seems like it would solve all the static analysis issues of this kind."	dingo_d		has-patch
Defects Awaiting Review	63462	add_query_arg() should handle encoded input URLs		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63154	Fatal error when moderation hash is given as array		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62779	WordPress pattern module in file selection in same images visible in all the pages.		General	normal	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		
Defects Awaiting Review	62656	"Customize > Manu > Reorder random shuffle after ""done"" and ""save changes"""		General	normal	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		
Defects Awaiting Review	61934	ctrl+shift+v - does not work in the editor		General	critical	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	6.6.1	
Defects Awaiting Review	61776	Background color is not getting updated in block editor which we are setting through theme customization through templates		General	critical	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	6.5.5	
Defects Awaiting Review	60839	WordPress issue > WordPress 6.5 RC3 and 6.4.3, crop feature not working: Invalid Paramter		General	normal	defect (bug)	new	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	6.4.3	dev-feedback
Defects Awaiting Review	60418	Unwanted commented code		General	normal	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	6.4.3	
Defects Awaiting Review	55336	Query strings with reserved characters get wrongly redirected to encoded variant at the root level.		General	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	63099	wp_rand() function returns only 0 or 1 when called without parameters on 32-bit PHP systems		General	normal	defect (bug)	new	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	6.7.2	has-patch
Defects Awaiting Review	63384	Content-Disposition 'inline' filenames not respected by download_url()		General	normal	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	5.9	
Defects Awaiting Review	63365	Sticky Posts Appear at the Top of Every Page in the Query Loop Block		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62477	Do not use $_POST['action'] in the sanitize function.		General	normal	defect (bug)	new	2024-11-19T13:04:49Z	2025-04-21T18:44:30Z	"https://prnt.sc/1LYAES3IjYj0

wp-admin\includes\ajax-actions.php"	nikitasolanki1812		has-patch
Defects Awaiting Review	63296	array_intersect_key() fatal error in wp_render_layout_support_flag() due to invalid string parentLayout in core/social-links block		General	normal	defect (bug)	new	2025-04-16T17:00:13Z	2025-04-18T07:57:41Z	"When using the core/social-links block, WordPress core may crash with a fatal error:

PHP Fatal error: Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, string given in wp-includes/block-supports/layout.php

This occurs because parentLayout is being passed as a string (""flex"") instead of an array, likely during automatic layout injection in block rendering. Since wp_render_layout_support_flag() assumes both $block['attrs']['style']['layout'] and $block['parentLayout'] are arrays, it causes array_intersect_key() to throw a fatal.

Steps to reproduce:
1. Use a block template or block theme with core/social-links

2. Enable full site editing or a block-based page layout

3. Attempt to render the template or page

4. Fatal error occurs on line 600+ in layout.php

Proposed fix:
Core layout support logic should include:

php
Copy
Edit
if ( is_array( $block['parentLayout'] ) ) {
    // only process layout
}
Or handle invalid structures more gracefully (e.g. log + fallback).

Workaround:
We patched layout.php by validating both layout and parentLayout as arrays before calling array_intersect_key().

Impact:
Breaks front-end rendering for many sites using block-based layouts.

Likely triggered by changes in layout-aware blocks like core/social-links or reusable block wrappers."	devksec	6.8	
Defects Awaiting Review	63284	_prime_post_caches is getting called unchunked	joemcgill	General	major	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	6.7.2	
Defects Awaiting Review	63223	6.7.2 fresh install		General	normal	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	6.7.2	
Defects Awaiting Review	63188	"Getting Header ""REMOTE_ADDR"" is user-controlled and should be properly validated before use errors into the core files."		General	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	63162	Sanitizing styles doesn't work as expected in presence of semi-colon(;) in CSS value		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63159	load_textdomain tries to load the current working directory as a file		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63137	Getting Use isset() or empty() to check the index exists before using it error into the WordPress core files.	audrasjb	General	normal	defect (bug)	reviewing	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		has-patch
Defects Awaiting Review	63065	Reject nonce if presented as array		General	normal	defect (bug)	new	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	6.7.2	has-patch
Defects Awaiting Review	62324	uncaught syntaxerror		General	normal	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		
Defects Awaiting Review	62920	301 redirect of query URLs		General	normal	defect (bug)	new	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	6.7.1	has-patch
Defects Awaiting Review	62984	"Find some ""global variables"" are missing to define into the WordPress core files."		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62923	Cover with fixed background bug on chromium mobile		General	normal	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	6.7.1	
Defects Awaiting Review	62877	Inconsistent behaviour of redirect guess when page is private		General	normal	defect (bug)	new	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	6.7.1	has-patch
Defects Awaiting Review	62873	unable to install plugins		General	major	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		
Defects Awaiting Review	60752	Fatal error: Uncaught Error: Class 'WpOrg\Requests\Hooks' not found		General	normal	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		
Defects Awaiting Review	61903	Unable to save draft when tab is open for a long time		General	normal	defect (bug)	new	2024-08-21T10:29:19Z	2025-01-23T17:34:35Z	"I've encountered an issue while writing longer articles with many links in WordPress. After a while, the ""Save"" button becomes unresponsive, as if there's no connection, and I can't save the draft.

When I try to access /wp-admin in another tab, it fails to load, even though other websites work fine. To continue editing, I have to open an incognito window, log into /wp-admin, and close the original draft tab—something seems to be locked.

I'm unsure whether this is a WordPress or web server issue and would appreciate any guidance on how to debug it. I've saved the console log, which might be useful: https://piks.nl/upload/upload/janvandenberg.blog-1724222179856.log"	janvandenberg	6.6.1	
Defects Awaiting Review	58837	Horizontal Scroll Issue in theme/plugin Editor Page File Navigation Section		General	minor	defect (bug)	new	2023-07-18T09:45:04Z	2025-01-17T22:50:45Z	"The bug pertains to the horizontal scroll behavior of the file navigation section on the theme/plugin editor page when the display width is below 780 pixels.

**Expected Behavior:**
The file navigation section should adapt its layout and display the necessary elements within the available width, without requiring horizontal scrolling.

**Current Behavior:**
When the display width falls below 780 pixels, the file navigation section in the theme/plugin editor page fails to adjust its layout properly. As a result, some elements within the file navigation section extend beyond the visible area, causing a horizontal scroll to appear.

**Steps to Reproduce:**
1. Open the theme/plugin editor page.
2. Reduce the width of the display to below 780 pixels.
3. Navigate to the file navigation section on the editor page.

Video Link: https://www.awesomescreenshot.com/video/19213200?key=de8384bcde8ae4bd0a80d87836612609

"	mikinc860	4.9	has-patch
Defects Awaiting Review	58954	php 8.1 preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated		General	normal	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	6.2.2	
Defects Awaiting Review	62763	get_calendar(): IDs may be duplicated		General	normal	defect (bug)	new	2025-01-02T01:34:05Z	2025-01-06T12:08:22Z	"I discovered this while looking into the following Gutenberg issue: https://github.com/WordPress/gutenberg/issues/68451

The `get_calendar()` function applies the following two IDs to the generated HTML:

- table element: `wp-calendar`
- Today's date cell: `today`

These IDs cannot be changed, so the IDs will be duplicated if multiple calendars are output.

Using the `wp_unique_id()` function will help us avoid duplicate IDs, but there are themes or plugins that rely on existing IDs, so we may need to use a different approach."	wildworks		
Defects Awaiting Review	62761	Database error logged on re-install with custom LOGGED_IN_COOKIE name		General	normal	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		
Defects Awaiting Review	62355	WP sets REQUEST_URI to an invalid value if it's not set		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62727	Duplicating a pattern and changing to non-synced but images on copies of pattern are still synced		General	normal	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		
Defects Awaiting Review	62684	With WordPress Editor - an empty comment is possible - It should show error		General	normal	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	6.7.1	
Defects Awaiting Review	56251	Use dominant color in media library		General	normal	defect (bug)	new	2022-07-19T18:19:41Z	2024-11-28T23:10:05Z	"This is a follow-up on ticket from https://core.trac.wordpress.org/ticket/56151

Now we have Dominant color in core we should start to us it
This patch adds it to the Media library module in core "	pbearne		has-patch
Defects Awaiting Review	62497	core-js not up to date even with latest wordpress version 6.7		General	major	defect (bug)	new	2024-11-21T08:35:05Z	2024-11-21T08:50:10Z	"Immuniweb scanner has highlighted that core-js is not up to date for wordpress website.
We have updated wordpress to latest version but still core-js is on 3.35.1 
Latest version is 3.39.

Developer tools showing it is included in wp-polyphill which is part of WordPress.

As per the comment mentioned in old post submitting request here

https://wordpress.org/support/topic/cms-outdated-on-live-site-but-not-on-stage/"	kbapat		needs-patch
Defects Awaiting Review	62286	Trying to access array offset on null		General	trivial	defect (bug)	new	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		has-patch
Defects Awaiting Review	62340	UI Overflow Issue on New Application Password Page		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	61879	Deprecation Warning		General	minor	defect (bug)	reopened	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	6.7	has-patch
Defects Awaiting Review	62276	class-wp-user.php can throw a warning for trim() when $value is null	heuptasje	General	normal	defect (bug)	assigned	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	6.7	has-patch
Defects Awaiting Review	62247	Allow Query block to ignore sticky posts		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62207	Designing issue occur in patterns filter list		General	normal	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	6.6.2	
Defects Awaiting Review	61427	Consistent use of placement of button and link to continue installer or login		General	minor	defect (bug)	new	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		has-patch
Defects Awaiting Review	58102	Check PHPcs Coding standard into the wp-includes folder		General	normal	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		
Defects Awaiting Review	62084	Line Breaks not displayed in emails		General	normal	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		
Defects Awaiting Review	55027	force_balance_tags function breaks nested G tabs in SVG		General	normal	defect (bug)	new	2022-02-01T12:35:52Z	2024-09-22T04:37:15Z	"How to re-create: 

1. Enable 'WordPress should correct invalidly nested XHTML automatically' option.
2. Save this svg code (in a Custom HTML block, for an example)


{{{
<svg viewBox=""0 0 46.3 62.73"" class=""chicken-maxi-svg__10""><g stroke-width=""2"" stroke-linejoin=""round"" stroke=""var(--maxi-light-icon-line,rgba(var(--maxi-light-color-7,8,18,25),1))"" data-stroke=""""><path fill=""var(--maxi-light-icon-fill,rgba(var(--maxi-light-color-4,255,74,23),1))"" data-fill="""" d=""M25.9 35.93c.3-.7.9-2.9-3-2.9s-3.2 2.1-2.9 2.9 2.3 3.6 3.1 3.6 2.2-2.3 2.8-3.6z""></path><g fill=""none""><path stroke-linecap=""round"" d=""M2.2 36.53v-5.1a18.82 18.82 0 0 1 .7-5.3 20 20 0 0 1 1.9-4.8 15.64 15.64 0 0 1 1.7-2.5 20.84 20.84 0 0 1 4.5-4.4 19.89 19.89 0 0 1 5.6-2.9l1-.3m26.2 43.8a.9.9 0 0 0-.1.5 4.13 4.13 0 0 1-.7 1.1 5.17 5.17 0 0 1-3.8 1.7c-.7 0-30.2.6-33.9-.3-1.2-.3-2.1-1.6-2.8-2.5a.76.76 0 0 0-.2-.4M28 11.03l1.6.4a21.91 21.91 0 0 1 5.7 2.9 20.84 20.84 0 0 1 4.5 4.4 22 22 0 0 1 1.7 2.5 20 20 0 0 1 1.9 4.8 23.28 23.28 0 0 1 .6 5.3v5""></path><path d=""M18.8 48.83h1.8m1.6 0H24m1.8 0h1.7""></path></g><g stroke-linecap=""round"" fill=""var(--maxi-light-icon-fill,rgba(var(--maxi-light-color-4,255,74,23),1))"" data-fill=""""><use xlink:href=""#chicken_B""></use><use x=""16.5"" xlink:href=""#chicken_B""></use><path d=""M2.2 36.53H1v19a5.78 5.78 0 0 0 1.4-.5c1.8-1 3.3-3.2 4.5-6.5a40.92 40.92 0 0 0 2.1-9.8l.2-2.8-7 .6m43.1 0c0-.3-8.2-.5-8.2-.5.1.7.1 1.6.2 2.8a40.92 40.92 0 0 0 2.1 9.8c1.1 3.3 2.6 5.4 4.4 6.4a4.42 4.42 0 0 0 1.5.5v-19M30.6 6.03c.2-1.3-.8-4.8-1.3-5-1.1-.4-4.9 3.5-5.9 3.4-.2 0-2.6-3.7-3.2-3.3-1.7.9-2.8 3.6-3.2 4.8a7.51 7.51 0 0 0 .5 5.2c.4.7 8.9 1.6 10.2.3a10.3 10.3 0 0 0 2.9-5.4""></path></g><g fill=""none""><circle r=""3.7"" cy=""26.23"" cx=""15.8""></circle><circle r="".9"" cy=""27.93"" cx=""17.7""></circle><circle r=""3.7"" cy=""26.23"" cx=""30.2""></circle><circle r="".9"" cy=""27.93"" cx=""32.2""></circle></g></g><defs><path d=""M16 54.53a2 2 0 0 0-.8.1c-.6.1-4.1 4.3-3.5 5.3.1.2 1.9-1 2.5-.6s.7 2.4 1.4 2.4c.2 0 1.2-1.6 1.5-1.9.8-.2 2.6.8 2.7.6.7-1.9-3.1-5.9-3.8-5.9"" id=""chicken_B""></path></defs></svg>
}}}

The svg code that force_balance_tags() returns:


{{{
<svg viewBox=""0 0 46.3 62.73"" class=""chicken-maxi-svg__10""><g stroke-width=""2"" stroke-linejoin=""round"" stroke=""var(--maxi-light-icon-line,rgba(var(--maxi-light-color-7,8,18,25),1))"" data-stroke=""""><path fill=""var(--maxi-light-icon-fill,rgba(var(--maxi-light-color-4,255,74,23),1))"" data-fill="""" d=""M25.9 35.93c.3-.7.9-2.9-3-2.9s-3.2 2.1-2.9 2.9 2.3 3.6 3.1 3.6 2.2-2.3 2.8-3.6z""></path></g><g fill=""none""><path stroke-linecap=""round"" d=""M2.2 36.53v-5.1a18.82 18.82 0 0 1 .7-5.3 20 20 0 0 1 1.9-4.8 15.64 15.64 0 0 1 1.7-2.5 20.84 20.84 0 0 1 4.5-4.4 19.89 19.89 0 0 1 5.6-2.9l1-.3m26.2 43.8a.9.9 0 0 0-.1.5 4.13 4.13 0 0 1-.7 1.1 5.17 5.17 0 0 1-3.8 1.7c-.7 0-30.2.6-33.9-.3-1.2-.3-2.1-1.6-2.8-2.5a.76.76 0 0 0-.2-.4M28 11.03l1.6.4a21.91 21.91 0 0 1 5.7 2.9 20.84 20.84 0 0 1 4.5 4.4 22 22 0 0 1 1.7 2.5 20 20 0 0 1 1.9 4.8 23.28 23.28 0 0 1 .6 5.3v5""></path><path d=""M18.8 48.83h1.8m1.6 0H24m1.8 0h1.7""></path></g><g stroke-linecap=""round"" fill=""var(--maxi-light-icon-fill,rgba(var(--maxi-light-color-4,255,74,23),1))"" data-fill=""""><use xlink:href=""#chicken_B""></use><use x=""16.5"" xlink:href=""#chicken_B""></use><path d=""M2.2 36.53H1v19a5.78 5.78 0 0 0 1.4-.5c1.8-1 3.3-3.2 4.5-6.5a40.92 40.92 0 0 0 2.1-9.8l.2-2.8-7 .6m43.1 0c0-.3-8.2-.5-8.2-.5.1.7.1 1.6.2 2.8a40.92 40.92 0 0 0 2.1 9.8c1.1 3.3 2.6 5.4 4.4 6.4a4.42 4.42 0 0 0 1.5.5v-19M30.6 6.03c.2-1.3-.8-4.8-1.3-5-1.1-.4-4.9 3.5-5.9 3.4-.2 0-2.6-3.7-3.2-3.3-1.7.9-2.8 3.6-3.2 4.8a7.51 7.51 0 0 0 .5 5.2c.4.7 8.9 1.6 10.2.3a10.3 10.3 0 0 0 2.9-5.4""></path></g><g fill=""none""><circle r=""3.7"" cy=""26.23"" cx=""15.8""></circle><circle r="".9"" cy=""27.93"" cx=""17.7""></circle><circle r=""3.7"" cy=""26.23"" cx=""30.2""></circle><circle r="".9"" cy=""27.93"" cx=""32.2""></circle></g><defs><path d=""M16 54.53a2 2 0 0 0-.8.1c-.6.1-4.1 4.3-3.5 5.3.1.2 1.9-1 2.5-.6s.7 2.4 1.4 2.4c.2 0 1.2-1.6 1.5-1.9.8-.2 2.6.8 2.7.6.7-1.9-3.1-5.9-3.8-5.9"" id=""chicken_B""></path></defs></svg>
}}}

And the image is broken because of the <g> tags. Here is a video of the bug if you want to see it https://drive.google.com/file/d/1ojdWZsy8oHxuVTAtwms7l6K9xBhPIYvv/view?usp=sharing 

So, can you please add the <g> tag to $nestable_tags here? https://core.trac.wordpress.org/changeset/52188

Thanks!
"	svitlana41319	5.9	has-patch
Defects Awaiting Review	61991	Inconsistent file name after cropping from Site Icon		General	normal	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		
Defects Awaiting Review	61935	Image block zoom on touch (But only happens on Plesk preview page)		General	minor	defect (bug)	new	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	6.6.1	dev-feedback
Defects Awaiting Review	61912	"Uncaught exception 'Error' with message 'Undefined constant ""ABSPATH""' in /var/www/wp-settings.php:33"		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	61870	PHPCS Error found in bookmark.php		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	61613	Bug: Image attributes don't propogate to posts, pages, products, etc		General	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	60958	How to put older order to a created new registration account		General	normal	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		
Defects Awaiting Review	61779	block.json - custom block style asset is loaded unconditionally to all pages with a non block-based theme		General	normal	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	6.6.1	
Defects Awaiting Review	42683	widgets cannot be edited		General	normal	defect (bug)	new	2017-11-23T18:38:01Z	2024-07-26T16:32:41Z	"after upgrading to 4.9, my widgets cannot be edited. All i see is just the buttons after each widget (save etc)

"	fovos	4.9	
Defects Awaiting Review	61744	"preg_match fails when className when $block['attrs']['className'] is an array *which is case when ""extraClasses"" is set*"		General	normal	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	6.6.1	
Defects Awaiting Review	61461	The  pagination results in the Popular Plugins screen is broken		General	normal	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		
Defects Awaiting Review	60579	Notice: Undefined index: name in /wp-includes/class-wp-roles.php  on line 293		General	minor	defect (bug)	new	2024-02-20T09:56:44Z	2024-07-04T15:58:40Z	"[[Image(http://servtest.ovh/notice-wp.jpg)]]

I have some notices on my dashboard, and fix the bug by modifying the function in core file, line 279 :

{{{#!php
<?php
	/**
	 * Initializes all of the available roles.
	 *
	 * @since 4.9.0
	 */
	public function init_roles() {
    if ( empty( $this->roles ) ) {
        return;
    }

    $this->role_objects = array();
    $this->role_names   = array();
    foreach ( array_keys( $this->roles ) as $role ) {
        // Vérifier si 'name' est défini pour le rôle actuel
        if ( isset( $this->roles[ $role ]['name'] ) ) {
            $this->role_objects[ $role ] = new WP_Role( $role, $this->roles[ $role ]['capabilities'] );
            $this->role_names[ $role ]   = $this->roles[ $role ]['name'];
        } else {
            // Gérer le cas où 'name' n'est pas défini (éventuellement définir une valeur par défaut)
            $this->role_objects[ $role ] = new WP_Role( $role, $this->roles[ $role ]['capabilities'] );
            $this->role_names[ $role ]   = 'Nom par défaut';
        }
    }

    /**
     * Fires after the roles have been initialized, allowing plugins to add their own roles.
     *
     * @since 4.7.0
     *
     * @param WP_Roles $wp_roles A reference to the WP_Roles object.
     */
    do_action( 'wp_roles_init', $this );
}
}}}
"	mrsize	6.4.3	has-patch
Defects Awaiting Review	61566	Wrong Dates on Release Archive Page		General	minor	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		
Defects Awaiting Review	61513	Attention points in Pentest		General	normal	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		
Defects Awaiting Review	60423	Correct documentation for WP_Block_Parser_Frame class		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	61286	"PHP message: PHP Fatal error:  Uncaught Error: Undefined constant ""ABSPATH"" in  wp-includes/cache.php"	deepakrohilla	General	major	defect (bug)	assigned	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	6.5.3	has-patch
Defects Awaiting Review	61277	"PHP message: PHP Fatal error:  Uncaught Error: Undefined constant ""ABSPATH direct access to wp-includes/rss.php on line 19"	deepakrohilla	General	major	defect (bug)	assigned	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		has-patch
Defects Awaiting Review	61263	Nested hook removal removes remaining hooks with higher priority		General	normal	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		
Defects Awaiting Review	60855	wp_mkdir_p can error when simultaneous requests attempt to create the same directory		General	normal	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		
Defects Awaiting Review	61237	When Editor becomes an iframe, relative path content is not displayed correctly		General	normal	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		
Defects Awaiting Review	61107	'Change role to...' field on wp-admin/network/site-users.php?id=xxx is populated by wrong site roles		General	normal	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		
Defects Awaiting Review	40687	pre_option_upload_url_path filter no longer working		General	normal	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	4.7.4	
Defects Awaiting Review	61067	WordPress Categories and Tags pages are not loading 500 internal server error		General	normal	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	6.5	
Defects Awaiting Review	61017	page_for_posts is automatically reset		General	normal	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	6.5	
Defects Awaiting Review	61016	Menu Vanishing On Save		General	normal	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		
Defects Awaiting Review	57525	Incorrect home link		General	normal	defect (bug)	new	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	6.1	has-patch
Defects Awaiting Review	54568	WordPress admin overwrite JS history.state		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	60858	Getting Error While updating page which was implemented by Gutenberg		General	critical	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	6.4.3	needs-patch
Defects Awaiting Review	60849	Meta is saved twice in auto-draft mode		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	60626	Font Files do not export/import properly via XML/WXR exporter.		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	60572	block_core_navigation_render_inner_blocks loses caret for parent items		General	minor	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	6.4.3	
Defects Awaiting Review	60452	@category tag is considered deprecated by phpDocumentor		General	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	60583	Custom Fields: Two options are displayed by default		General	normal	defect (bug)	new	2024-02-20T15:26:09Z	2024-02-20T15:26:09Z	"In WordPress 6.5, whether you are using the Classic Editor or Block Editor, you will see two options in the custom field select box:

- footnotes
- origin

In WP6.4, these two options are not displayed.

My guess is that these two should be used internally and do not appear to be user-editable fields."	wildworks		
Defects Awaiting Review	59297	Remove unused variables		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	60502	remove_function method removing next priority action too while removing current priority		General	normal	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	6.4.3	
Defects Awaiting Review	60556	Link Box Half Off Left Side Of Screen		General	normal	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		
Defects Awaiting Review	60486	Theme Export: Update the way we replace the version number.		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	60451	@subpackage tag is considered deprecated by phpDocumentor		General	normal	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		
Defects Awaiting Review	60450	Button component is missing has-text class when text prop is used		General	normal	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	6.4.3	
Defects Awaiting Review	60328	Deprecated parameter default value of unregister_setting() is not correct type	audrasjb	General	normal	defect (bug)	reviewing	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		has-patch
Defects Awaiting Review	60070	Typo in wp-includes/class-json.php		General	trivial	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	60308	Inconsistent return of urls / get_bloginfo() vs get_template_directory_uri()		General	normal	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	6.4.2	
Defects Awaiting Review	59542	Duplicate default statement in wp_get_attachment_image_src() documentation		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	60206	"Images not showing in ""Latest Posts"" block"		General	normal	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		
Defects Awaiting Review	60212	apply_filters_deprecated() should tell the caller location		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	60172	Incorrect APP1 Exif Identifier Code		General	normal	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		
Defects Awaiting Review	60174	When I press the write button I get an error.		General	normal	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	6.4.2	
Defects Awaiting Review	60086	Picture size changing		General	normal	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		
Defects Awaiting Review	60033	Twenty Fourteen : Quote block Typography option is not working properly		General	normal	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		
Defects Awaiting Review	59992	Document global $locale in wp-admin/options.php		General	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	59984	Need help to find out Paragraph block Deleting text		General	major	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	6.3	
Defects Awaiting Review	58076	Docs: Improve various globals documentation, as per docblock standards.		General	normal	defect (bug)	new	2023-04-04T05:03:47Z	2023-11-18T14:34:24Z	"Function commenting details needs to improve.

File Names:

wp-includes/class-wp-customize-widgets.php
wp-includes/block-editor.php"	upadalavipul	6.3	has-patch
Defects Awaiting Review	59843	Headers of the table on make.wordpress blog breaks after a few second of load ( check the url in description)		General	minor	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		
Defects Awaiting Review	57401	post-template.php fails to check if $elements['page'] is zero causing an array index error		General	normal	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		
Defects Awaiting Review	59787	Control-Z editing HTML erases all changes since last save		General	normal	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	6.3.2	
Defects Awaiting Review	59020	Critical error during database update and patterns directory		General	critical	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	6.3	
Defects Awaiting Review	59625	Pagination. Classes name mistake for item of pagination		General	normal	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	6.3	
Defects Awaiting Review	59546	Gutenberg invalid json due to UTF-8 character E2 80 AF		General	normal	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	6.3.2	needs-patch
Defects Awaiting Review	59332	Can't customize search in header		General	normal	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	6.3.1	
Defects Awaiting Review	59436	"""The response is not a valid JSON response"""		General	normal	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	6.3.1	needs-patch
Defects Awaiting Review	59428	"Incorrect ""Last modified"" date for posts other than publish or future status"		General	normal	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		
Defects Awaiting Review	59376	Shortcodes no longer working		General	normal	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		
Defects Awaiting Review	59317	Error on new pattern preview		General	normal	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	6.3.1	
Defects Awaiting Review	59273	Plugin: Create Block Theme Bug		General	minor	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	6.3	
Defects Awaiting Review	59266	Fatal error: Uncaught Error: Call to undefined function list_files()		General	normal	defect (bug)	new	2023-09-01T17:37:05Z	2023-09-04T06:14:12Z	Fatal error: Uncaught Error: Call to undefined function list_files()	brunobird		
Defects Awaiting Review	59265	Reset password form is not sending recovery email		General	normal	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	6.3.1	
Defects Awaiting Review	59117	The WORST of ALL Bugs (Version 6.3)		General	normal	defect (bug)	new	2023-08-15T21:47:15Z	2023-08-28T20:26:35Z	"Dear friends, good afternoon. I know that, at 1st. Vista may believe that, this is not the right place to write this. But give me a few minutes and I will (de)show you that it is.
To gain time, below is the link to the ticket in which the subject was discussed;
https://wordpress.org/support/topic/huge-error-for-my-site-when-upgrading-to-6-3/page/2/#post-16969028
If they READ it all (That is, the 2 flaps that said ticket includes), they will realize (I hope) that…
1) It is a problem that you generated ONLY in the latest version 6.3
2) NONE of the solutions provided by v/collaborator WORKED.
3) They caused me (and they cause me) MANY inconveniences (even LEGAL)

To summarize (and in case you don't feel like reading so much, heh:)…
a) I have been designing my site on v/platform for +3 years. Ergo…
b) There is NO way for ME to implement the suggested fixes.
And that is why…
c) I am NOT going to update WordPress to its latest version (6.3) until this is resolved.

So, for finishing…
- Why do I say that it is a problem generated by you? Simple.
Because until version 6.2 I DID NOT have it.
- Why do I think they should fix it as soon as possible?
Because if you look, in the same forum, there are MANY similar claims in THAT sense.
And finally…
Why do I think this is the WORST security bug WordPress can have? Easy.
Because if it is not solved (FAST) I (and probably MANY more), will leave our installation with the previous version (6.2.2).
And – if so – as I'm sure you know, I'll be left open to whatever attacks you guys have sought to address with your latest version (6.3).
And then? So, if my hosting does not suspend me (Potential Legal Problem that I mentioned before), it could even affect other sites that are within my hosting (which is obviously shared, so I can NOT afford the ""luxury"" of anything else ).
Ergo. If many sites (like mine) do NOT update to 6.3 and like me, they share their hostings, a problem that is generated in one, could affect ALL of them.

Having said that…
If you keep track of these tickets, you'll see that in the +3 years I've been using WordPress, there was NEVER an entry to this section, which is said to be for…
…”suggest improvements and report bugs in WordPress”…

But it seemed necessary to me because, from what I see, SEVERAL days have passed since I created the ticket whose link I attached and, we did NOT find the solution.
And, what is worse, I do NOT think you will find them in the forums. Why? Simple.
Because if you READ the ticket in question in detail, you will see that the ONLY one in a position to provide a solution is WordPress itself!

That's all for now (I hope you understand).

I await your comments.

Thanks in advance.

Greetings.
PS: As I already mentioned in the ticket mentioned above, what will NOT happen is that…
I have to rewrite my ENTIRE site (+120 thousand words) for a problem that I did NOT create! 
"	atutrabajo	6.3	
Defects Awaiting Review	58707	Page looks fine, but after clicking to edit page, some text disappears, even after deactivating all plug-ins		General	normal	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	6.2.2	
Defects Awaiting Review	59096	Hyperlink Search Non-Functional		General	normal	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	6.3	
Defects Awaiting Review	59088	WordPress6.3 has a cookie		General	normal	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	6.3	
Defects Awaiting Review	59060	php-fpm7.4: time limit exceeded `Operation canceled' @ fatal/cache.c/GetImagePixelCache/1868.		General	normal	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	6.3	
Defects Awaiting Review	59055	WP-Exposher Admin page cannot be found		General	normal	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	6.3	
Defects Awaiting Review	59016	Able to login successfully .. but I'm unable to open wordpress dashboard..		General	normal	defect (bug)	new	2023-08-09T07:06:53Z	2023-08-09T14:53:49Z		skylerfashion	6.3	
Defects Awaiting Review	58951	Meta and Link tags contain trailing slashes		General	normal	defect (bug)	new	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	6.2.2	has-patch
Defects Awaiting Review	58941	I have found a lot of bugs in fact		General	normal	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		
Defects Awaiting Review	58822	Gutenberg - releases must work with the latest react version		General	blocker	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	6.3	
Defects Awaiting Review	58817	Edit page in wordpress default editor cousing overload on 3 diffrent servers.		General	normal	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		
Defects Awaiting Review	58630	"When custom taxonomy assigned to ""Media"" post type and multiple images assigned to that taxonomy, then count only displaying 1"		General	normal	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	6.3	
Defects Awaiting Review	58688	Posts get unlinked from our site's taxonomy when being converted to Block Editor		General	normal	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		
Defects Awaiting Review	58659	Bullet points		General	normal	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		
Defects Awaiting Review	58668	"wrong ""domain"" returned by wpmu_validate_blog_signup when using on subsite in subdomain multisite"		General	minor	defect (bug)	new	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	3.0	has-patch
Defects Awaiting Review	58507	GitHub actions are failing		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	58398	"Unable to add blocks on WP 6.1 - ""+"" button does not work (it seems disabled)"		General	normal	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	6.1	
Defects Awaiting Review	55486	register_block_type_from_metadata does NOT work within a theme but as a plugin		General	minor	defect (bug)	new	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	5.9.2	
Defects Awaiting Review	58350	Media Attachment Details - text fields are too small. Need to redesign them for better compatibility with large screen resolutions		General	normal	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		
Defects Awaiting Review	58325	Resolving Persistent Memory Exhaustion Error During WordPress Theme Update		General	normal	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		
Defects Awaiting Review	58263	REQUEST_METHOD Warning with server cron		General	normal	defect (bug)	new	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	6.2	
Defects Awaiting Review	57340	Questions about about the pathlength of WP5.8-6.1 is affected by themes		General	normal	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		
Defects Awaiting Review	57797	WP_Block_Type_Registry::register issues incorrect error message when block.json folder doesn't exist		General	normal	defect (bug)	new	2023-02-23T16:19:42Z	2023-03-07T16:18:54Z	"I called 
{{{#!php
<?php
register_block_type( path_to_block.json );
}}}

but the path does not exist.

I get error message:

{{{
Notice: Function WP_Block_Type_Registry::register was called incorrectly. 
}}}
{{{
Block type names must not contain uppercase characters.
}}}

This error message does not reflect the problem.


Stepping through the code in wp-includes/blocks.php:
{{{#!php
<?php
function register_block_type( $block_type, $args = array() ) {
	if ( is_string( $block_type ) && file_exists( $block_type ) ) {
		return register_block_type_from_metadata( $block_type, $args );
	}

	return WP_Block_Type_Registry::get_instance()->register( $block_type, $args );
}
}}}
I see ->register is still called even though the call to file_exists() fails


"	Tonygirling	6.1.1	dev-feedback
Defects Awaiting Review	57825	Something's wrong with the way the 'admin_init' hook and/or the wp_update_post function works		General	normal	defect (bug)	new	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	6.1.1	dev-feedback
Defects Awaiting Review	57755	How to Show Tenplate Content on another page		General	normal	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		
Defects Awaiting Review	57476	hash characters at start of wp post titles are stripped upon pasting		General	normal	defect (bug)	new	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	6.1.1	dev-feedback
Defects Awaiting Review	57592	Hebrew sort problem come from a core		General	normal	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		
Defects Awaiting Review	55930	Provide comment syntax for templates and template parts		General	minor	defect (bug)	new	2022-06-06T05:59:02Z	2023-01-17T21:16:31Z	"''Thanks to all of you for working on this great Free Software project! ''

I'm trying to add copyright and license information to my theme. I do so using SPDX headers using REUSE tool [https://reuse.software]. This adds information to the `.html` files using HTML comments (`<!--` ... `-->`).

The **Site Editor** in **WordPress 6.0** doesn't seem able to handle with regular HTML comments in templates and template parts.

On a new theme created using `new-empty-theme.php` this results in the following `index.html` page for example:

{{{
<!--
SPDX-FileCopyrightText: 2019-2022 WordPress Theme Experiments contributors

SPDX-License-Identifier: GPL-2.0-or-later
-->

<!-- wp:template-part {""slug"":""header"",""tagName"":""header""} /-->

<!-- wp:query {""queryId"":1,""query"":{""offset"":0,""postType"":""post"",""categoryIds"":[],""tagIds"":[],""order"":""desc"",""orderBy"":""date"",""author"":"""",""search"":"""",""sticky"":""""}} -->
<!-- wp:post-template -->
<!-- wp:post-title {""isLink"":true} /-->

<!-- wp:post-excerpt /-->
<!-- /wp:post-template -->
<!-- /wp:query -->
}}}

It renders just fine, but in the Site Editor these comments of templates and template parts get treated as blocks. This results in an error for each template and page template that has the HTML annotations: ""**This block has encountered an error and cannot be previewed.**''''""

[[Image(https://user-images.githubusercontent.com/7458098/172100897-8fdc7d30-13c1-443d-b951-d9d004c73118.png)]]

Copying the block contents (source code) the resulting output is as follows:

{{{
<p><!--
SPDX-FileCopyrightText: 2019-2022 WordPress Theme Experiments contributors

SPDX-License-Identifier: GPL-2.0-or-later
--></p>
}}}

So it seems that the comment is treated as a paragraph.

Besides this being valid HTML, I couldn't find anything about a separate comment syntax in the [https://developer.wordpress.org/themes/block-themes/templates-and-template-parts/] documentation.

**I expect the Site Editor to ignore non-wp comments rather than trying to parse them as blocks.**

''I documented some other experiences with using REUSE on WordPress themes in an issue at the REUSE project: [https://github.com/fsfe/reuse-tool/issues/537]'' "	wprediscovered	6.0	
Defects Awaiting Review	57294	CodeMirror: Text disappears when candidate is confirmed in IME composition		General	normal	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		
Defects Awaiting Review	51141	URL parameters are altered on static homepage after unneeded 301 redirect		General	normal	defect (bug)	reopened	2020-08-25T16:39:39Z	2022-12-13T14:04:51Z	"It seems as though all WordPress sites that I’m supporting for various clients has this same functionality — if the site is using a static homepage, and you visit the homepage with a query string containing `+` signs — the page is redirected (301) and the plus signs are turned into `%20` — Interior pages and posts do NOT suffer this same effect.

For example (I am not supporting this site, just using it as an example):
https://wpengine.com/?test=test+test (redirect occurs)
https://wpengine.com/plans/?test=test+test (no redirect occurs)

Another example:
https://wordpress.org/support/?test=test+test (redirect occurs)
https://wordpress.org/support/article/overview-of-wordpress/?test=test+test (no redirect)

Our site analyst (SEO, tracking, etc) uses plus signs in his query string data and this can be problematic. It seems that the homepage should not be doing this.

This also does not seem to affect sites that don’t use the “static homepage” option."	kevindeleon	5.5	
Defects Awaiting Review	57266	wp_suspend_cache_invalidation can be set to no Boolean value which break usage		General	normal	defect (bug)	new	2022-12-03T00:14:02Z	2022-12-05T22:20:21Z		pbearne		has-patch
Defects Awaiting Review	57104	The Default Border color in the Code block is different in backend and frontend.		General	critical	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		
Defects Awaiting Review	56996	Getting error Uncaught exception 'TypeError' with message 'Cannot access offset of type string on string' in /var/www/wp-includes/media.php:2147		General	blocker	defect (bug)	new	2022-11-04T10:10:45Z	2022-11-04T22:45:47Z	"WordPress 6.1 and PHP8.
Getting this error on the page with the old caption shortcodes. if regex does not find 2nd offset. giving below error

Uncaught exception 'TypeError' with message 'Cannot access offset of type string on string' in /var/www/wp-includes/media.php:2147"	umesh.nevase	6.1	has-patch
Defects Awaiting Review	56854	I cannot edit comments thru admin menu		General	normal	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		needs-patch
Defects Awaiting Review	50893	wp_send_json_success is nothing, no error for any inf/nan		General	normal	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	5.2.5	
Defects Awaiting Review	56749	Special characters break ability to view a page.		General	normal	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	5.5.1	
Defects Awaiting Review	56724	unexpected sudden change in the site without any intervention from my side		General	blocker	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		
Defects Awaiting Review	56679	"get_post_gallery_images() Does not return images if the gallery shortcode has type=""slideshow"""		General	normal	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	6.0.2	
Defects Awaiting Review	56640	Notice error in WP_List_Util::pluck method at line 169		General	normal	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	6.0.1	
Defects Awaiting Review	56555	wp_insert_post does not save the post_date for pending posts		General	normal	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	6.0.2	
Defects Awaiting Review	56446	Query loop next page button not working as expected.		General	normal	defect (bug)	assigned	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		needs-patch
Defects Awaiting Review	56094	Allow the style property of block.json to be an array		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	56178	Links got invisible in responsive devices.		General	normal	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		needs-patch
Defects Awaiting Review	56024	Removing a caption's contents removes the image alignment		General	normal	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	6.0	
Defects Awaiting Review	55971	saving settings returns 404 - WP_SITEURL not used?		General	normal	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	6.0	
Defects Awaiting Review	55923	Search by month can be changed to search invalid month		General	normal	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		
Defects Awaiting Review	55924	Search by category can be changed to search invalid month		General	normal	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	6.0	
Defects Awaiting Review	54991	Site problem		General	critical	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	5.9	
Defects Awaiting Review	31350	size_format() Displaying Incorrect Unit		General	normal	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	4.1	
Defects Awaiting Review	55265	Setting colour in 5.9.1		General	major	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	5.9.1	needs-patch
Defects Awaiting Review	55534	Remaining image files after deleting them		General	critical	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	5.9.2	
Defects Awaiting Review	54435	admin-ajax.php : 404 Error		General	normal	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		
Defects Awaiting Review	54954	--wp--preset-- variables defaults not being updated by add_theme_support() 'editor-font-sizes' or 'editor-color-palette'		General	normal	defect (bug)	new	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	5.9	has-patch
Defects Awaiting Review	55110	In WordPress 5.9 Edit site navigation toggle tooltip issue		General	normal	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	5.9	
Defects Awaiting Review	55083	Link alternativa title		General	normal	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	5.9	
Defects Awaiting Review	54898	Strange behavior with (Page-) Templates		General	normal	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		
Defects Awaiting Review	54893	wp_set_script_translations() accepts and evaluates <script> tag included in JSON		General	normal	defect (bug)	new	2022-01-24T16:01:50Z	2022-01-25T08:08:48Z	"**NOTE**

> This ticket is **already posted at May 22nd 2020 to hackerone.com** `#880749` and reviewed by the security team.
> I've created this ticket for public hardening under their instruction.

== Description:

`wp_set_script_translations` is a function that provides translation strings for [@wordpress/i18n](https://developer.wordpress.org/block-editor/packages/packages-i18n/) library. The JSON will be output just before the targeted script without checking the string `<script>` in JSON file. As a result, a cracker can inject and execute any JavaScript.

== Steps To Reproduce:

1. Create a small plugin or theme which uses `my-script.js` and using domain `my-theme`.
1. Create `my-theme.pot` and translate it in `ja.po` which includes string like `</script><script>alert('Hacked!')<script>` .
1. Convert `ja.po` to JSON `my-theme-ja-my-script.json` via jed https://www.npmjs.com/package/jed
1. Execute `wp_set_script_translations( 'my-script', 'my-theme', get_template_directory() . '/languages' )`
1. Enqueue `my-script.js` in anywhere in the site.

=== my-theme/functions.php

{{{
<?php
/**
 * Theme's bootstrap file.
 */

// Enqueue script.
add_action( 'wp_enqueue_script', function() {
    wp_enqueue_script( 'my-script', get_theme_file( 'my-script.js' ), [ 'jquery',  'wp-i18n' ], '1.0.0', true );
    wp_set_script_translation( 'my-script', ''my-theme', get_template_directory() . '/languages' );
} );
}}}

=== my-theme/my-script.js

{{{
/**
 * JavaScript utility for the theme.
 */
const { __ } = wp.i18n;
const $ = jQuery;

$( '.button' ).click( function() {
    $.doSomething().then( () => {
        display( __( 'Thank you so much!', 'my-theme' ) );
    } );
} );
}}}

=== my-theme/languages/my-theme-ja-my-script.json

{{{
{
  ""domain"":""messages"",
  ""locale_data"":{
    ""messages"":{
      """":{
        ""domain"":""messages"",
        ""plural_forms"":""nplurals=1; plural=0;"",
        ""lang"":""ja""
      },
      ""Thank you so much!"":[""ありがとうございます！</script><script>alert('You are hacked!')</script>""],
    }
  }
}
}}}

== Recommendations

Escape JSON string `</script>`

== Impact

* Attackers can inject any JavaScript code they like.
* Translation files can be provided from 3rd party(e.g. voluntary contributors), but hard to detect it's correct or not because they are written in foreign languages for the original authors."	Takahashi_Fumiki		needs-patch
Defects Awaiting Review	54851	Prevent unnecessary code comments from being output to the front end		General	minor	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		
Defects Awaiting Review	54355	Serialization of 'Closure' is not allowed		General	normal	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	5.8.1	
Defects Awaiting Review	54114	paginate_links() ajax		General	normal	defect (bug)	new	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	5.8.1	has-patch
Defects Awaiting Review	18565	Scheduled or Published. Still confuses us.		General	critical	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	3.2.1	
Defects Awaiting Review	53295	Serialized data should be handled as an opaque value		General	normal	defect (bug)	new	2021-05-29T14:20:15Z	2021-06-12T20:31:05Z	"The [[https://github.com/WordPress/wordpress-develop/blob/24a70204db8d9ca5c6ddfc2c22247418fa0af5a1/src/wp-includes/functions.php#L642|`is_serialized()`]] function makes strong assumptions on the serialized data format and layout.

- This seems wrong and unreliable as there is no commitment in PHP documentation over this formatting: serialized data should be handled as an opaque binary string instead.
- This breaks third-party software customizing serialized data format, for instance [[https://github.com/jvoisin/snuffleupagus/issues/384|Snuffleupagus]], a security software which adds an HMAC to serialized data to prevent malicious injections.

The correct way provided by the PHP language to determine whether a string contains a valid serialized data is to simply check the return value of the [[https://www.php.net/manual/en/function.unserialize.php|`unserialize()`]] function instead of relying on a dozen of various comparisons to implement a self-made heuristic."	whitewinterwolf		has-patch
Defects Awaiting Review	53368	Auto-generated skip-link gets added in classic templates and not just in block templates		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	53243	X-WP-DoingItWrong has limited usefulness		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	53066	Trigger errors when non-existent methods are called on objects.		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	52838	forms not sending after 5.7 install		General	normal	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		
Defects Awaiting Review	51307	"Document title broken when ""Homepage"" isn't set in Settings > Reading"		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	52235	wp_extract_urls doesn't match localhost		General	normal	defect (bug)	new	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	5.6	has-patch
Defects Awaiting Review	52359	Links in Gutenberg Continue to be Built When Typing		General	minor	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		
Defects Awaiting Review	51855	wp_dropdown_categories allows multiple classes		General	normal	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	2.8	
Defects Awaiting Review	51773	wp_guess_url() calls strpos() incorrectly if $_SERVER['SCRIPT_FILENAME'] is empty		General	normal	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	3.7	
Defects Awaiting Review	51582	Post type archive is loaded when post type does not allow		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	40899	'&' Is always escaped in the JavaScript template.		General	normal	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	4.7.5	
Defects Awaiting Review	49069	Multisite: 404 template isn't used in network installs when a file extension is used in the URL		General	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	46457	Embed Block to a Reusable Block		General	normal	defect (bug)	new	2019-03-09T22:09:06Z	2020-03-20T11:34:21Z	"If I add an Embed Block to a Reusable Block, only the URL is output.

Add on functions.php

{{{#!php

global $wp_embed;
add_filter( 'the_content', array( $wp_embed, 'autoembed' ), 9

}}}
"	ryoraspp	5.1	
Defects Awaiting Review	48535	Incompatibility with PHP 7.3.11		General	critical	defect (bug)	new	2019-11-08T08:34:27Z	2019-11-09T09:39:42Z	"I set up totally new env with WordPress 5.2.4 on PHP 7.3.11 and I found a couple of problems. In the main opinion, these problems are critical. 

1. Ajax response always contains '0' on the end of the response - default code wp_die('0') is always execute. Below is an example response for install the new plugin (chosen randomly)

{{{
{""success"":true,""data"":{""install"":""plugin"",""slug"":""health-check"",""pluginName"":""Health Check &amp; Troubleshooting"",""activateUrl"":""http:\/\/woocommerce.local\/wp-admin\/plugins.php?_wpnonce=6a458d9d59&action=activate&plugin=health-check\/health-check.php""}}0
}}}

And message displayed in the admin panel informs that installation failed, but module is installed correctly. 

2. After clicking on the Activate button, after installation module from the zip file, redirect to page like

{{{
<url>/wp-admin/plugins.php?action=activate&plugin=wp-serverinfo%2Fwp-serverinfo.php&_wpnonce=2740398a2b
}}}

but on the page is error message: **The link you followed has expired.** but module is activated correctly. 

3. The next one is related to admin wizard setup for WooCommerce plugin, but in my opinion, this is problem with core code, because setup form is loaded correctly, but code is not dying, and try to load this as a normal plugin. I'm attaching a screenshot with this. 
"	szymon.nosal	5.2.4	
Defects Awaiting Review	48425	`wp_is_mobile()` doesn't detect iPad Safari anymore		General	normal	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		
Defects Awaiting Review	44795	WordPress Heartbeat Interval stuck on 15 secs		General	normal	defect (bug)	new	2018-08-14T21:14:44Z	2019-06-12T13:57:09Z	"Hi!

I think I've found a bug with the WordPress Heartbeat API, in short, on some installs ( Only some ) I am unable to alter the interval.

On some of our installs ( we manage 200+ ) we are finding admin-ajax.php hitting our servers pretty hard and on occasion will cause a 503 error. 

To try and resolve this ourselves, we have tried:

- Deactivating all plugins, switched to the twenty fifteen theme.
- Tried using specific plugins to alter this value ( 3 in total and all didn't alter this value ).
- Tried using the code from the codex - this doesn't correct the issue on an affected install.
- Tried asking WordPress Stack Exchange here:  https://wordpress.stackexchange.com/questions/311123/unable-to-change-the-wordpress-heartbeat-interval-on-some-installs-others-allow
- Tried the WordPress support forum here: https://wordpress.org/support/topic/wordpress-heartbeat-interval-problems-stuck-on-15-secs/
- Tried asking two hosting companies ( Still investigating ).
- Tried asking Advanced WordPress Facebook group - no luck with anything here yet.

As you can see, we've made significant effort to try and resolve this problem on our own without any luck. 

**Function causing the issue**

Locating where this is coming from, I've tracked it to the heartbeat.js file.
The function is interval on line 612 of the non minified version.  

If I alter the same function in heartbeat.min.js ( Altering 15e3 to 60e3 ), the interval will now be set to 60 and admin-ajax.php requests drop dramatically.

With all the effort I've put in to fix this and failing, I can only assume this is a bug of some kind.

**Other info**

- This is not every website we have, on different hosting platforms.
- Some websites are completely fine, others are not.
- Doesn't seem to make a difference which browser ( Firefox and Chrome tested ).
- All websites are updated often with the latest core version.

**Expected Result**

We expected to be able to adjust to heartbeat interval to a slower rate.

Hopefully this covers everything needed, please let me know if not!

Thanks
Steven"	Nicksws	4.9.8	
Defects Awaiting Review	47419	If emojis or embeds JavaScript is not loaded, variable wp is undefined in the front-end.		General	normal	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		
Defects Awaiting Review	46780	wpColorPicker() close() method uses iris 'toggle' instead of 'hide' which can unexpectedly open the color pane		General	minor	defect (bug)	new	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	5.1	has-patch
Defects Awaiting Review	37665	Font Natively: Google maps can change the active font		General	normal	defect (bug)	new	2016-08-15T06:09:47Z	2019-04-18T21:46:27Z	"Because of the font stack ordering, Roboto has a high priority.

This is also the font used by Google Maps, so adding google maps embeds will change the font in use in the admin when viewing post pages.

Reported at https://wordpress.org/support/topic/system-fonts-easily-overridden-by-google-maps-api?replies=3&view=all"	Clorith	4.6	has-patch
Defects Awaiting Review	43306	Creating site using wpmu_create_blog() without / prefixed with $path causes get_id_from_blogname() to fail.		General	normal	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	4.9.4	
Defects Awaiting Review	46481	Empty response if page template return zero		General	normal	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	5.1	
Defects Awaiting Review	39977	"Search results for custom post type = ""ANY"""		General	normal	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	4.7.2	
Defects Awaiting Review	46342	Error messages in the Dashboard for Editor Role		General	normal	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		
Defects Awaiting Review	46315	Block editor columns left margin issue on reduced screen width		General	normal	defect (bug)	new	2019-02-22T11:51:18Z	2019-02-24T23:02:42Z	"Hi,

I noticed a problem when using columns and reducing the screen width below about 768px the child columns still have a left margin (32px) included which means they are offset from the first instance. This has been evident in all versions of the block editor so far and is still there in 5.1.

See image attached.

Steve"	ScalarEnt	5.0	
Defects Awaiting Review	46321	"rel=""noopener noreferrer"""		General	normal	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		
Defects Awaiting Review	46281	WP Query breaks if there are term_ids in tax_query are more than 192		General	normal	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	5.0.3	
Defects Awaiting Review	43100	Unexpected results from wpautop		General	normal	defect (bug)	new	2018-01-16T19:01:25Z	2019-01-17T01:25:57Z	"An empty paragraph will result in invalid HTML

To reproduce using default theme add `echo wpautop(  '<p></p>'  );` into a template file.

Expected result `<p></p>`

Actual result `</p>`"	pross		
Defects Awaiting Review	41933	Undefined offset -1 in $pages array when post without pages is requested		General	normal	defect (bug)	new	2017-09-20T17:14:36Z	2018-10-15T15:42:22Z	This patch fixes an undefined index -1 notice generated in post-template.php when a request is made without a page number.	ComputerGuru	4.8.2	has-patch
Defects Awaiting Review	44406	Mismatch in the default value of the optional replacement argument in do_action_deprecated(), apply_filters_deprecated() and _deprecated_hook()		General	normal	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	4.6	
Defects Awaiting Review	41388	Insert Media window does not remember state for custom tabs, iframe bug		General	critical	defect (bug)	new	2017-07-20T16:13:27Z	2018-08-14T12:33:54Z	"Hi! I use Edd plugin (easy digital downloads) and Amazon S3 plugin (https://easydigitaldownloads.com/downloads/amazon-s3/). After WordPress update to 4.8, I have encounted problem with filling my downloadable files.
I upload them via cyberduck and then create 5 instances of “add new price” – push “upload to file”, then – “Amazon S3 Library”. Before update I had to do so for first price – but next 4 prices pulled the path from the previous price – that was much easier and time-saving. Now – I need to enter whole path each time for each price. When I rollback to wordpress 4.7.5 – problem gone. Here is video that will describe my problem more clear – https://www.youtube.com/watch?v=GeaJrLYtMZI&authuser=0
I asked for help EDD team, but they say “'''''Unfortunately that issue is caused by a change in WordPress itself so is not something we can affect, sorry. It’s possible it was an accidental change with WordPress that will be resolved in a new update by the core WordPress team'''''.”"	angel8888	4.8	needs-patch
Defects Awaiting Review	44429	WP-CLI incompatibility with wp_redirect( https://... )		General	major	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	44595	wp_insert_post() inserts wrong GUID (adds http:// prefix)		General	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	44277	Post type rewrite breaks page url's		General	normal	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	4.9.6	
Defects Awaiting Review	44259	wp_query: Post & Page Parameters doc section incorrect		General	normal	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		
Defects Awaiting Review	44212	Add a new helper function for comma- or space-separated lists		General	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	44251	Wrong way of getting website root url when site is rewritten		General	normal	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		
Defects Awaiting Review	43778	Spamming via Contact Form 7 (even Contact Form 7 was deleted)		General	critical	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	4.9.5	
Defects Awaiting Review	43535	wp-mediaelement.min.js?ver=4.9.4:1 crashes, making the Widgets in customize.php unusable		General	normal	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	4.9.4	
Defects Awaiting Review	43025	wp_list_filter should filter all iterable objects		General	normal	defect (bug)	new	2018-01-04T23:09:38Z	2018-02-11T17:49:28Z	"#16499 introduced an issue which requires that data sent to `wp_list_filter` is an array. What it really means is the data sent to `wp_list_filter` should be iterable _like_ an array. By permitting both arrays and objects that are Transverable we can allow for anything that decends from the `\ArrayObject` class.

While there is an `is_iterable` method we _could_ use, it's only availabile in PHP 7.1 so the attached is friendly to PHP v4.2 and above

"	jarednova	4.9.1	needs-patch
Defects Awaiting Review	43140	WordPress does not allow HTML tags in the Name field of Links (blogroll)		General	normal	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	4.9.2	
Defects Awaiting Review	42642	Displayin page WP 4.9		General	normal	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	4.9	
Defects Awaiting Review	42150	Cannot edit links with visual editor on chromium-based browser		General	normal	defect (bug)	new	2017-10-08T13:40:22Z	2017-10-10T21:06:31Z	"Hi,
When I'm trying to edit links with visual editor on any chromium-based browser (Opera, Vivaldi and Google Chrome), the editor doesn't respond at all
[[Image(https://thumbs.gfycat.com/InfamousContentArchaeocete-size_restricted.gif)]]
But at the same time the link editor works perfectly on Microsoft Edge and Mozilla Firefox"	3liwa	4.8.2	
Defects Awaiting Review	39894	JS heartbeat can run before ready causing exception		General	normal	defect (bug)	new	2017-02-16T19:29:05Z	2017-07-03T21:29:52Z	Sometimes where my page is loading slowly I can get the error attached, where the element isn't yet available.	programmin	3.6	
Defects Awaiting Review	40685	/wp-includes/class-wp-hook.php function resort_active_iterations not working correct		General	normal	defect (bug)	new	2017-05-06T19:23:26Z	2017-06-08T00:02:14Z	"if you have current priority of 5, whose only hook is cancelling itself (remove_filter) and the new priority list is for example (2,7,12), then this part
{{{#!php

while ( current( $iteration ) < $current ) {
           if ( false === next( $iteration ) ) {
					break;
           }
}
}}}
sets the current pointer to 7, so the next priority worked on is the 12 in apply_filters function, while it should be 7.
"	tim2017	4.7.4	
Defects Awaiting Review	40716	WordPress's magic quotes emulation doesn't slash keys like PHP's built-in magic quotes		General	normal	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	0.71	
Defects Awaiting Review	40870	Using underscore in meta box id field metabox is not working correctly		General	normal	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	4.7.5	
Defects Awaiting Review	40487	GUID contains more than 255 characters		General	normal	defect (bug)	new	2017-04-19T20:05:53Z	2017-04-19T20:35:13Z	"My website had a strange problem: it couldn't save page edit's anymore. After saving a page, it said: your page is successfully saved (some Dutch translation) but it wasn't. I described everything in this post: http://stackoverflow.com/questions/42099222/wordpress-cant-edit-some-pages-anymore

I found a solution: increase the length of the GUID column in the post table to 500 characters."	martenbiesheuvel	4.7.3	
Defects Awaiting Review	39496	Can't view page preview.		General	normal	defect (bug)	new	2017-01-05T23:55:18Z	2017-04-15T20:19:15Z	"Clicking any Edit link on the list of published pages (wp-admin/edit.php?post_status=publish&post_type=page), and then clicking the Preview Changes button on the edit page, I'm unable to preview the page. Instead I'm presented with the error message ""Sorry, you are not allowed to preview drafts.""

Expected result: Clicking the Preview Changes button shows me the page, including the WP Admin bar.
Actual result: Clicking the Preview Changes button shows me the error message ""Sorry, you are not allowed to preview drafts.""

Problem occurs when we use WP Core 4.7. Problem does not occur on WP Core 4.6.

Problem occurs when all plugins are deactivated and uninstalled.

Problem occurs on more than one theme."	davidmlentz	4.7	
Defects Awaiting Review	40334	Trim siteurl and homeurl		General	normal	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	4.7.3	
Enhancements Awaiting Review	61752	Plugin and theme editors should show files in alpha order		General	normal	enhancement	new	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		needs-unit-tests
Enhancements Awaiting Review	66618	Tests: Add unit test coverage for wp_get_tooltip_helper()		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66615	Tests: Add unit test coverage for add_thickbox()		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66614	Tests: Add unit test coverage for wp_heartbeat_settings()		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66613	Tests: Add unit test coverage for wp_dependencies_unique_hosts()		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	49408	Why is the action wp_ajax_wp_link_ajax not using wp_send_json()		General	normal	enhancement	new	2020-02-11T16:09:10Z	2026-11-07T00:51:04Z	"The action now returns an array with results with the header content-type text/html
Should this not be application/json as achieved by the wp_send_json() function?

[https://core.trac.wordpress.org/browser/tags/5.3.2/src/wp-admin/includes/ajax-actions.php#L1863]
"	stephanh	5.3.2	has-patch
Enhancements Awaiting Review	66350	Hide admin notices during update procedure		General	minor	enhancement	new	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	7.1.3	has-patch
Enhancements Awaiting Review	64494	Bump minimum PHP version to 8.*		General	normal	enhancement	new	2026-01-10T13:39:23Z	2026-11-01T22:49:57Z	"This ticket tracks discussion and work on the next bump to the minimum PHP version to v8.0 or higher.


== Policy / Criteria for Version Bumps (by @justlevine)

There is **no official policy or criteria** [[https://core.trac.wordpress.org/ticket/58719#comment:30|(ref)]] for handling PHP Version bumps. Pending [[https://core.trac.wordpress.org/ticket/58719#comment:1|that discussion]], the following is based on the processes used until now:

1. Matt is the ultimate decision maker on whether to bump the minimum PHP version.
2. That discussion is initiated by the release/project leads based on several (public and private) factors.
3. A **general** litmus test to gauge whether a version should be bumped is if the % of users (via https://wordpress.org/about/stats/) left behind by the bump is `< 5%`.
4. However, usage stats alone are not reason to bump the minimum PHP Version but also have a positive impact on the project/codebase/tooling/etc.

**Important:** Bumping the minimum PHP version (this ticket) is not the same as changing the [[https://wordpress.org/about/requirements/|minimum ''recommended'' version]] (v8.3 as of 10 Jan 2026).

Background: #62622, #58719, #51043, #57345


== Data Points
Since many years @samiamnot has monthly put the stats updates in comments of the old tickets - see backgroound above. We can continue on this ticket with tracking the appropriate data.

The Stats projection page of @johnbillion [[https://johnbillion.github.io/wp-stats/php.html|can be found here]].

**Note**: .org Stats do not offer a cross-reference between WP/PHP versions. As such these percentages include sites that may already be (colloquially) abandoned on a previous WordPress release,but could theoretically upgrade if their plugin/theme stack supports recent WP versions.

Bumping the minimum version to v8.0 would allow us to remove a lot PHP 7.* compatibility code. The work for this release could be bigger then usual so we should communicate early for when this is planned to be set.


== Projection
This could take quite some time to get below the 5% threshold. Currently as of January 2026 it sits on 22.1%. We'll see how fast it can come down.

An important comment in my view from @jrf about the big effort in maintaining WP running PHP cross-version see #58719. Hopefully we can find some other supportive measures to make users more aware that an upgrade is needed - but thats for another ticket. For the moment lets keep discussions here on how to get to 8.0 and have a space to track usage by @samiamnot 


== Previously
#62622 Bumping the minimum PHP version to 7.4 in WordPress 7.0
#58719 Bumping the minimum PHP version to 7.2 in WordPress 6.6
#57345 Bumping the minimum PHP version to 7.0 in WordPress 6.3
#46594 Bumping the minimum PHP version to 5.6 in WordPress 5.2
#16917 Bumping the minimum PHP version to 5.2 in WordPress 3.2
"	masteradhoc		has-patch
Enhancements Awaiting Review	66416	register_block_type_from_metadata performs unneccesary file system operations for blocks resolved from metadata registry		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65288	Use the semantic HTML <search> element in core search markup		General	normal	enhancement	new	2026-05-21T01:29:12Z	2026-10-26T22:48:52Z	"== Summary ==

The HTML [https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/search <search>] element is now part of [https://web.dev/baseline Baseline] and is supported in all evergreen browsers (Chrome 118+, Firefox 118+, Safari 17+, Edge 118+). It is a semantic landmark element that represents a group of search/filtering controls and has an implicit ARIA role of search.

WordPress currently produces search markup by adding `role=""search""` to the surrounding `<form>` in several places:

- `get_search_form()` in `wp-includes/general-template.php` (both the `html5` and `xhtml` formats).
- The `core/search` block render callback in `wp-includes/blocks/search.php`.
- Bundled classic themes that override `searchform.php` (Twenty Sixteen, Twenty Seventeen, Twenty Twenty, Twenty Twenty-One).

This ticket proposes updating core search markup and bundled themes to use the native `<search>` element, which removes the need for the explicit `role=""search""` attribute and brings WordPress in line with current HTML semantics.

== Background ==

The `<search>` element was added to the HTML Living Standard to provide a dedicated semantic container for search functionality, similar to how `<nav>` covers navigation and `<main>` covers primary content. Per the HTML spec:

> The search element represents a part of a document or application that contains a set of form controls or other content related to performing a search or filtering operation.

Today, the equivalent semantics are conveyed by adding `role=""search""` to the surrounding `<form>`. With the new element widely available, the `role` attribute can be dropped in favor of native markup.

== Current state in core ==

`wp-includes/general-template.php` (`get_search_form()`, `html5` format):

{{{
<form role=""search"" aria-label=""optional ARIA label"" method=""get"" class=""search-form"" action=""https://example.org/"">
	<label>
		<span class=""screen-reader-text"">Search for:</span>
		<input type=""search"" class=""search-field"" placeholder=""Search &hellip;"" value=""search query"" name=""s"" />
	</label>
	<input type=""submit"" class=""search-submit"" value=""Search"" />
</form>
}}}

`wp-includes/blocks/search.php` (`render_block_core_search()`):

{{{#!php
return sprintf(
	'<form role=""search"" method=""get"" action=""%1s"" %2s %3s>%4s</form>',
	esc_url( home_url( '/' ) ),
	$wrapper_attributes,
	$form_directives,
	$label . $field_markup
);
}}}

Bundled themes with their own `searchform.php` follow the same `<form role=""search"">` pattern:

- `src/wp-content/themes/twentysixteen/searchform.php`
- `src/wp-content/themes/twentyseventeen/searchform.php`
- `src/wp-content/themes/twentytwenty/searchform.php`
- `src/wp-content/themes/twentytwentyone/searchform.php`
- Newer block themes (Twenty Twenty-Two through Twenty Twenty-Five) inherit markup from the `core/search` block and need no theme-level change.

== Proposal ==

Wrap each search form in a `<search>` element and drop the now-redundant `role=""search""` attribute on the inner `<form>`:

{{{
<search aria-label=""optional ARIA label""><form method=""get"" class=""search-form"" action=""https://example.org/"">
	<label>
		<span class=""screen-reader-text"">Search for:</span>
		<input type=""search"" class=""search-field"" placeholder=""Search &hellip;"" value=""search query"" name=""s"" />
	</label>
	<input type=""submit"" class=""search-submit"" value=""Search"" />
</form></search>
}}}

For `get_search_form()`, the optional `aria_label` argument moves from the `<form>` to the new `<search>` landmark element, since the landmark is what assistive technology exposes.

The `xhtml` fallback in `get_search_form()` is left unchanged because XHTML 1.x does not include the `<search>` element.

Why drop `role=""search""`? Keeping it on the inner `<form>` while the `<search>` wrapper also carries the implicit search role would produce nested search landmarks, which assistive technology may announce twice or report as a structural error. The HTML spec's intent is that `<search>` replaces the manual role.

== Patch ==

Patch and full test plan in the linked GitHub PR:

[https://github.com/WordPress/wordpress-develop/pull/11913 wordpress-develop#11913] — General: Use the semantic `<search>` element in core search markup

Two atomic commits:

General: `get_search_form()` (html5) + `core/search` block.
Bundled Themes: Twenty Sixteen, Twenty Seventeen, Twenty Twenty, Twenty Twenty-One `searchform.php`.

== Backward compatibility ==

- The `<form>` element, its `class=""search-form""`, and all input markup are unchanged. Theme CSS targeting `form.search-form` or `.wp-block-search` continues to work.
- For the `core/search` block, block wrapper attributes (block class names, user-added classes) and Interactivity API directives remain on the `<form>` to preserve block CSS, hydration boundaries, and event handling.
- Browsers that pre-date `<search>` support treat it as a generic inline container with no landmark role. Forms still function and remain accessible via the `<form>` itself; the only loss is the explicit landmark announcement, which is no worse than the current state where `role=""search""` is unsupported.
- Custom themes that override `searchform.php` are unaffected; this change only touches core defaults and bundled classic themes.
- The `get_search_form` and `search_form_format` filters continue to operate on the final HTML.

== Accessibility ==

- `<search>` has the implicit ARIA role search, replacing the manual `role=""search""`.
- Screen readers that already announce the search landmark will continue to do so via the native element on supporting UAs.
- The `aria_label` argument now labels the `<search>` landmark directly, which is the standard pattern for distinguishing multiple search landmarks on the same page.

== Tasks ==

- Patch `get_search_form()` (`html5` format).
- Patch `render_block_core_search()`.
- Patch bundled classic themes (Sixteen, Seventeen, Twenty, Twenty-One).
- Audit Twenty Twenty-Two through Twenty Twenty-Five for any inline search markup outside `core/search`.
- Update unit and E2E tests if any assert on `role=""search""` markup (initial scan found none).
- Update developer documentation referencing `<form role=""search"">`.
- Confirm screen reader behavior across VoiceOver, NVDA, JAWS, and TalkBack on the patched markup.

== Open questions ==

- Should we keep an explicit `role=""search""` attribute on the `<search>` element for assistive technology that doesn't yet map `<search>` to the search landmark role? It would be redundant for compliant UAs but defensive for older AT during a transition period.
- Should the `core/search` block bump its `apiVersion` or expose a version flag so theme/block consumers can detect the markup change?
- Should the `searchform.php` change also be backported to Twenty Sixteen / Seventeen, given their long support tail, or limited to Twenty Twenty and later?

== References ==

MDN: [https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/search HTML <search> element]
HTML spec: [https://html.spec.whatwg.org/multipage/grouping-content.html#the-search-element 4.4.14 The search element]
Baseline: [https://web.dev/baseline <search> is widely available]
GitHub PR: [https://github.com/WordPress/wordpress-develop/pull/11913 wordpress-develop#11913]"	adamsilverstein		has-patch
Enhancements Awaiting Review	63548	Don't allow empty Blog Name /  Site Title		General	normal	enhancement	new	2025-06-09T08:05:44Z	2026-10-24T07:50:27Z	"There should be at least a warning when the Site Title aka Blog Name is empty. Why? Because it's bad for SEO, themes and Screen Readers could fail and so on.

For the Tagline we present a description ""In a few words, explain what this site is about. Example: “Just another WordPress site.”, but not for the Site Title, which is far more important."	Presskopp		has-patch
Enhancements Awaiting Review	66186	"After uploading a plugin zip, link to the Plugin settings instead of the ""Plugin Installer"""		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	51227	Update paginate_links dots to account for total pages		General	trivial	enhancement	new	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	5.5.1	dev-feedback
Enhancements Awaiting Review	65459	Show a filter for all already installed plugin authors on the plugins install page		General	normal	enhancement	new	2026-06-14T10:44:43Z	2026-08-30T15:50:30Z	"Lately there are more discussions about finding new plugins on the official directory. The featured tab is now being curated to show new and upcoming plugins.

Inspired by #65359 (Filter plugins by author) and my own #65455 (Add ""multisite"" tagged plugins on a multisite installation) we could also have a new tab showing all plugins from the already trusted authors.

The tab would check all plugin authors installed at the moment, deduplicate them and query all the authors and output every plugin from those authors together in one list. 

This would help to find more plugins from already trusted authors.

Not sure about the name of the tab/link, but if the idea is worth implementing, we will find a name. :)

''What do you think?''"	zodiac1978		dev-feedback
Enhancements Awaiting Review	63796	Accidentally deleted Entire Menu and there’s no way to restore!!!		General	normal	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		
Enhancements Awaiting Review	65598	Use array_first() to get the first array element		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65610	Replace the two uses of compact() in wpdb::determine_charset() with explicit array literals.		General	normal	enhancement	new	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	7.1	has-patch
Enhancements Awaiting Review	65427	Add filter for WP Ability Permission Error Message		General	normal	feature request	new	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	7.0	has-patch
Enhancements Awaiting Review	56262	WP_List_Util::pluck doesn't support a null $field		General	minor	enhancement	new	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	3.1	has-patch
Enhancements Awaiting Review	64147	Move all @media screen rules to the bottom of common.css		General	normal	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		
Enhancements Awaiting Review	65374	"Clarify the ""invalid_filetype"" upload error message"		General	minor	enhancement	new	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	7.1	has-patch
Enhancements Awaiting Review	65343	Enhancement/Suggestion: Modernize default search relevance and sorting		General	minor	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	65207	Introduce utility class to handle 32px form elements on mobile layouts		General	normal	enhancement	new	2026-05-08T14:00:44Z	2026-05-08T14:32:48Z	"Form element sizes are basically `40px`, but `32px` is used in some places.

{{{
#!css
// CSS specificity: 0,2,1
.selector input[type=""search""] {
	min-height: 32px;
}
}}}

On mobile layouts, the following style expects all form elements to be `40px`:

{{{
#!css
// CSS specificity: 0,1,1 
@media screen and (max-width: 782px) {
	input[type=""search""] {
		min-height: 40px;
	}
}
}}}

However, this has lower specificity than the CSS above, so it doesn't apply. As a result, an individual override style like the following is required for mobile layouts:

{{{
#!css
@media screen and (max-width: 782px) {
	.selector input[type=""search""] {
		min-height: 40px;
	}
}
}}}

This is very easy to overlook, and as reported in #64999, mobile layout styles are sometimes missing.

To solve these issues, I propose adding a new utility class, like `form-compact`, for cases where `32px` form elements are needed. For example:

{{{
#!css
.form-compact {
	min-height: 32px;
}
@media screen and (max-width: 782px) {
	.form-compact {
		min-height: 40px;
	}
}
}}}

A similar utility class `.button-compact` exists for buttons.

cc @sabernhardt @fabiankaegy @joedolson"	wildworks		
Enhancements Awaiting Review	64988	Enhancement: Add support for displaying child categories in Navigation “Category Link” block (dropdown support)		General	normal	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	6.9.4	
Enhancements Awaiting Review	65033	Suggestion for commenting the format of DB_HOST in wp-config-sample.php		General	normal	enhancement	new	2026-04-07T12:50:14Z	2026-04-11T16:50:48Z	"in wp-config-sample.php the entry for DB_HOST is simply:

/** Database hostname */
define( ‘DB_HOST’, ‘localhost’ );

I would suggest adding something similar to the following comment:
/** the format for DB_HOST can also contain either a port or socket or both **/
/** the format for both is: ‘{hostname}:{port}:/path/to/socket’ **/

"	ralatalo	6.9.4	has-patch
Enhancements Awaiting Review	58824	Add a filter to change the classes in posts list table in admin		General	normal	enhancement	new	2023-07-17T19:26:57Z	2026-04-09T05:24:03Z	"Currently, there is no way to change the classes in the posts list table, and the posts list table template is hardcoded. So there is no way to add any classes, for example, specific classes for custom post types there.

**Proposal:**

Add a filter to ""WP_List_Table::get_table_classes()"" function, like this:


{{{#!php
<?php
return apply_filters( 'post_list_table_classes', array( 'widefat', 'fixed', 'striped', $mode_class, $this->_args['plural'] ), $this );
}}}


"	zahardoc		has-patch
Enhancements Awaiting Review	65034	More help for trouble shooting initial Database problems		General	normal	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	6.9.4	
Enhancements Awaiting Review	65036	List more helpful suggestions than check username and password for database issues		General	normal	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	6.9.4	
Enhancements Awaiting Review	64939	Add opt-out mechanism for global admin CSS on individual elements		General	normal	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		
Enhancements Awaiting Review	53465	PHP 8.1.: the default value of the flags parameter for htmlentities() et all needs to be explicitly set		General	normal	task (blessed)	assigned	2021-06-20T18:19:22Z	2026-03-10T15:40:23Z	"From the PHP 8.1 changelog:

> `htmlspecialchars()`, `htmlentities()`, `htmlspecialchars_decode()`,
> `html_entity_decode()` and `get_html_translation_table()` now use
> `ENT_QUOTES | ENT_SUBSTITUTE` rather than `ENT_COMPAT` by default. This means
> that `'` is escaped to `&#039;` while previously it was left alone.
> Additionally, malformed UTF-8 will be replaced by a Unicode substitution
> character, instead of resulting in an empty string.

Ref: https://github.com/php/php-src/blob/28a1a6be0873a109cb02ba32784bf046b87a02e4/UPGRADING#L149-L154

If effect this means that the output of the above mentioned functions may be different depending on the PHP version and the passed text string, unless the `$flags` parameter is explicitly passed.

I've run an initial scan over WordPress core with a new (not yet published) sniff for PHPCompatibility and this flags 33 issues.

* 1 issue in GetID3 which should be fixed upstream and the copy of GetID3 used in WP should be updated once the issue is fixed.
* 1 issue in PHPMailer which should be fixed upstream and the copy of PHPMailer used in WP should be updated once the issue is fixed.
* 1 issue in SimplePie which should be fixed upstream and the copy of SimplePie used in WP should be updated once the issue is fixed.
* And 30 issues in WP Core native code or code from external dependencies which are no longer maintained externally.

Detailed issue list: https://gist.github.com/jrfnl/9d56b4053faa62a0fe91dea1b14839bf

To fix this issue, the `$flags` parameter should be explicitly passed in each of these function calls.

Some investigation will be needed for each of these instances to determine what will be the optimal value for `$flags`.

Take note that the ""old"" parameter default in the function signature is documented as `ENT_COMPAT`, while in the parameter detail documentation, it states that the default, in actual fact, is ` ENT_COMPAT | ENT_HTML401`.

However, by the looks of it, the full range of flag constants is available to us, which is at least one less problem.
There is no mention of any of the flags being added since PHP 5.6.
Ref: https://php-legacy-docs.zend.com/manual/php5/en/string.constants

It is **strongly** recommended to make sure that for each of these at least one unit test exists which exposes the difference in output between PHP < 8.1 and PHP 8.1 to safeguard the fixes which will be added for the future.

Also see:
* https://www.php.net/manual/en/function.htmlentities.php
* https://www.php.net/manual/en/function.html-entity-decode.php
* https://www.php.net/manual/en/function.htmlspecialchars.php
* https://www.php.net/manual/en/function.htmlspecialchars-decode.php
* https://www.php.net/manual/en/function.get-html-translation-table.php"	jrf		dev-feedback
Enhancements Awaiting Review	64830	"Introduce a helper function to extract the major.minor ""branch"" version"		General	normal	enhancement	new	2026-03-09T07:19:41Z	2026-03-10T07:31:50Z	"In PR https://github.com/WordPress/wordpress-develop/pull/11206 we ran into the issue that getting a patchless WP version is cluttered throughout core and sparked a discussion about introducing a proper helper function for extracting the major.minor (x.y) ""branch"" version.


== The original problem

PHPStan flags `(float) get_bloginfo('version')` in `admin-header.php:194` because `str_replace()` receives a float instead of a string. The PR author initially proposed changing the cast to `(string)`, but this broke the existing behavior (the branch- CSS class would include the full version instead of just major.minor).

=== Key feedback

1. @apermo caught the behavior regression and pointed out that the `(float)` cast is intentional — it strips the patch version (e.g., 6.9.1 → 6.9). He proposed get_bloginfo('branch_version') or a helper function.
2. @siliconforks identified a genuine bug: the `(float)` cast is not reliably defined. If PHP's precision ini setting is non-default (e.g., 50), version 6.9.1 produces branch-6-9000000000000003552713678800500929355621337890625. This affects any version where the major.minor isn't exactly representable as a float (i.e., most versions except x.0).
3. @westonruter noted the `(float)` approach is ""abuse of a float"" and proposed a string-based replacement using strtok/explode/array_slice. He also noted that for 7.0, the existing behavior produces branch-7 (not branch-7-0), and this should be preserved.
4. @apermo cataloged 4 different approaches used across core to extract the `x.y` version, and proposed a single helper function using the robust implode/preg_split approach from class-core-upgrader.php that all locations could use.


=== Consensus direction

- A helper function for extracting the branch version would benefit core, since at least 10 locations use varied (and sometimes fragile) approaches — some of which will break at version 10.0 (substr($ver, 0, 3))
- The helper function should be a separate enhancement ticket from the immediate PHPStan fix


----


== Affected locations

  - (float) cast: admin-header.php, class-wp-site-health-auto-updates.php, tests/basic.php
  - substr($ver, 0, 3): theme.php, plugin-install.php, block-template-utils.php, tests/basic.php
  - explode('.') with index: class-wp-site-health.php
  - implode/preg_split: class-core-upgrader.php (most robust)


{{{#!php
<?php
 /**                                                                                                                                                                                                                                                              
   * Returns the major.minor ""branch"" version for a given WordPress version string.                                                                                                                                                                                
   *                                                                                                                                                                                                                                                               
   * Extracts the first two version components (major and minor) from a WordPress                                                                                                                                                                                  
   * version string, stripping any patch level and pre-release suffix.
   *
   * @since 7.1.0
   *
   * @param string $version Optional. A WordPress version string. Defaults to the
   *                        current WordPress version from wp_get_wp_version().
   * @return string The branch version string in ""major.minor"" format (e.g. ""6.9"").
   */
  function wp_get_branch_version( $version = '' ) {
        if ( '' === $version ) {
                $version = wp_get_wp_version();
        }

        $parts = preg_split( '/[.-]/', $version, 3 );

        return $parts[0] . '.' . ( $parts[1] ?? '0' );
  }
}}}


=== Decisions:

  - Reuses the `preg_split('/[.-]/')` approach from `class-core-upgrader.php:282` — already proven in core and handles both . and - separators in one pass.
  - Accepts an optional $version parameter so callers like class-core-upgrader.php (which compares two versions) and class-wp-site-health.php can use it too, not just the current WP version.
  - Limit of 3 on `preg_split()` avoids unnecessary splits.
  - Always returns ""major.minor"" — e.g. ""7.0"" for ""7.0-beta3"", ""6.9"" for ""6.9.1"", ""10.1"" for ""10.1.2-RC1"".

Note: The existing `admin-header.php` behavior drops the .0 in the CSS class (producing branch-7 instead of branch-7-0). That's a quirk of the (float) cast. This is the main decision that needs to be taken which is the correct/expected behavior here."	apermo	3.2	has-patch
Enhancements Awaiting Review	64679	Add option in dashboard font management screen to include external font libraries/apis		General	normal	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		
Enhancements Awaiting Review	63558	Proposal: Add `: void` return types to existing method signatures		General	normal	enhancement	new	2025-06-11T18:07:51Z	2026-02-20T22:04:57Z	"This ticket proposes implementing explicit `: void` return type declarations to existing WordPress method and functions. 


=== Background === 

> Type declaration usage has the following restrictions based on the minimum required PHP version of an application, whether it is WordPress Core, a plugin or a theme:
> [...]
> - The iterable and void type declarations cannot be used until the minimum PHP version is PHP 7.1 or higher. The void type can only be used as a return type.

    - https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/

> `@return`: Should contain all possible return types and a description for each. Use a period at the end. Note: `@return void` should not be used outside the default bundled themes and the PHP compatibility shims included in WordPress Core.

    - https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/

> Code refactoring should not be done just because we can.

    - https://make.wordpress.org/core/handbook/contribute/code-refactoring/

=== Justifications for refactor ===

1. Minimum Requirements surpassed: WP's current minimum is 7.2+ (with 7.4 slated for 6.9)
2. Improved Documentation: Unlike other return types, we don't note this in the doc-block. Adding it to the method both documents the `@void` with no extra lines. Plus, unlike a PHPDoc block, method signatures can't be mistaken or fall out of date 
3. Improved Developer Experience:
  - IDEs and tooling (including AI) can provide better autocomplete, error detection, and most-importantly type-safety guarantees - benefiting both extenders and core contributors.
  - Helps us with work on Codebase modernization and implementing PHPStan
4. Negligible risk of invalidating other work: Since we don't refactor unnecessarily and generally avoid breaking changes, there isn't really much that can cause a diff conflict on a method signature - especially if we follow some guidelines.

=== Proposed scope/strategy ===

1. Only target: `private` and `final` methods, and global functions - since the signature change won't break compatibility.
2. Only update the signature to add a `: void` return type. While many of the arguments made in this ticket can be used to justify updating other return types, due to current lack of codebase type-safety these are much harder to verify. 
3. Only implement on methods that should actually return `void`. There's a lot of preexisting null/void coercion that will easier to untangle once our type safety efforts are further along.
4. Don't update the method contents. Same reasons as the previous point.
5. Make the changes across multiple PRs. This is more about making sure the PRs get merged quickly, than potential conflicts from other PRs. The longer it takes between creation and merge for a particular file or class, the more likely new methods may be added to that file that should also have a `void` return signature, but if a contributor sees other methods using return types, they'll be more likely to add them to their new code, saving some work down the line.

=== Next Steps ===
1. I'm going to make a PR targeting a Class or two based on the above, that can serve as proof of concept - and assuming this proposal is accepted hopefully get it merged both for here and as part of our PHPStan efforts. Will wait for that acceptance before spending time updating other classes and encouraging others to join on the refactor effort.
2. While we shouldn't ""enforce it"" yet on new code (iirc WPCS doesn't let you allow-list tech-debt, just manually ignore), we should write a Make post to encourage contributors/reviewers encouraging them to start using `void` return types.
3. A future conversation about updating WPCS to enforce the use of `: void` when appropriate can happen at any point. It can be enforced on new code alone with PHPStan once merge (baselining methods we haven't updated yet), and PHPCS can autofix on once the existing codebase has been audited/updated. (PHPCS relies on the phpdoc type which as noted above isnt accurate in many places).

=== Related ===
- #61175
- #63268
- #63166
"	justlevine		has-patch
Enhancements Awaiting Review	53998	Use network_home_url() instead of $_SERVER['HTTP_HOST'] for added safety.		General	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	63436	PHPCS for Class FTP files		General	trivial	enhancement	assigned	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		dev-feedback
Enhancements Awaiting Review	63206	WP_Filesystem and request_filesystem_credentials		General	normal	enhancement	reviewing	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		needs-unit-tests
Enhancements Awaiting Review	40178	Menus that contain post types in Draft status should be hidden from logged out users		General	normal	enhancement	new	2017-03-16T23:39:44Z	2026-02-01T11:48:43Z	"I recently added 2 pages to my site. I published them, and moved them into a Menu on my site.

Then realized, I don't want them public, but I also don't want to lose their positioning where I put them in the menu. I moved them to draft.


When I go to my site logged out, I still see the links and goes to a 404.

I'm proposing that when an item in the Menu moves to a non-published state that isn't the Trash (Draft or Pending), it should remain in the nav, but be hidden from any logged out users."	jdingman	4.7.3	dev-feedback
Enhancements Awaiting Review	58935	White page on admin.php in WordPress Dashboard		General	normal	enhancement	new	2023-07-29T18:09:08Z	2026-01-30T15:17:01Z	"Hello there, 

As we all know, plugins (e.g. WooCommerce, etc.) are using `wp-admin/admin.php` to handle their option pages. 

e.g. `http://localhost/wp-admin/admin.php?page=wc-admin`

The problem is, when we navigate to `admin.php` without any query string, it shows a white screen. I believe we can improve it by showing a message or redirecting to the main page of the dashboard. 

e.g. `http://localhost/wp-admin/admin.php`"	masoudin		dev-feedback
Enhancements Awaiting Review	63393	Native “Maintenance Mode” with Custom Message and Access Rules		General	normal	enhancement	new	2025-05-05T09:47:01Z	2025-12-17T20:31:18Z	"Currently, WordPress only has a basic maintenance mode when performing updates, which displays a simple English message:

""Briefly unavailable for scheduled maintenance. Check back in a minute.""

There is no control, customization, or management UI for this mode. Everything is handled at the file system level, without any user interface or flexibility.

🔥 Proposed Solution:
We propose adding a native ""Maintenance Mode"" feature with the following functionality:

Built-in Maintenance Mode UI in the WordPress admin dashboard.

Ability to set a custom message, HTML content, custom CSS, and a contact button.

Rules to allow access only to specific users (e.g., admin, logged-in users, etc.).

Scheduling options for starting and ending the maintenance mode.

A “coming soon” page or customizable message for general visitors.

🔧 Why Not Just a Plugin?
Plugins are not always available when the WordPress core is being updated or in cases of failure.

Plugins may not provide precise control over the load order during updates or maintenance.

Customizing the maintenance page and setting precise rules should be handled in the core, ensuring reliability and performance.

✅ Conclusion:
The maintenance mode in WordPress should go beyond a basic message. We need a fully-featured, secure, and customizable Maintenance Mode directly in the core that is easy to use, reliable, and useful for all types of websites.

Thanks to @audrasjb for reminding me about the Decision, not Option principle."	smahjoob		
Enhancements Awaiting Review	56606	PHP Warning in /wp-includes/blocks/index.php		General	normal	enhancement	reopened	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		dev-feedback
Enhancements Awaiting Review	34116	"Rethink default install content like ""Sample Page"", etc."		General	normal	enhancement	new	2015-10-01T14:30:09Z	2025-11-01T17:57:07Z	"New installs of WordPress come built in with ""Sample Page"", a default blog post, and a built in comment.

I would like to propose that we rethink this content. In its current state, all it means is that any site owner needs to make some changes to their website, including either trashing or changing the sample page, editing the information in it and the sample blog post, and deleting the sample content.

IMO, there are a variety of steps I'd prefer to take, but I'll rank a few in terms of what I think have few consequences to options that may be more of a difficult sell.

1. Change the name of Sample page to ""About"". Nearly every website has an about page. It's a much better option in my opinion. It's even the recommendation of the current sample page.
2. Delete the sample comment on Hello World altogether. People get web comments, this just has to be trashed on all new installs.
3. Change the status of ""Hello World"" to draft. It's not ready to publish, so let's not make it published.
4. Change ""uncategorized"" to ""general"" or something that's not so awful. (I know this has been discussed elsewhere a good bit but I'd be sad to not mention it)

Currently the sample content is used as a defacto new user walkthrough. I would rather see proper new user onboarding, personally. But even if that's a step too far, I'd like to make some of these changes to the default content. Numbers 1 and 2 feel particularly doable to me, and 3 and 4 would be really nice additions."	krogsgard		dev-feedback
Enhancements Awaiting Review	64154	Add $x_redirect_by in all places used wp_redirect() and wp_safe_redirect() - in the core, themes and plugins		General	normal	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		
Enhancements Awaiting Review	46635	Improve identifying of non–trivial callbacks in hooks		General	normal	enhancement	new	2019-03-25T09:41:35Z	2025-10-22T14:49:21Z	"The API for hooks provides comprehensive support for adding any kind of valid PHP callback.

However there are currently no easy way to identify non–trivial (non–string) callbacks in any other operations, such as `has_*` or `remove_*`.

Rather than discouraging use of complex callbacks, I would like to suggest API is improved to better support them.

In my experience the best take I had seen is to identify complex callbacks with a string representation in [https://brain-wp.github.io/BrainMonkey/docs/wordpress-hooks-added.html Brain Monkey] testing library.

Tentatively I would imagine support for following expressions (up for discussion and refinement):

- `ClassName()` object instance (such as invokable object)
- `ClassName->foo()` concrete method callback
- `ClassName->*` any concrete method callback
- `class()` verbatim, anonymous class instance
- `function()` a closure instance
- `function( $argument )` a closure instance with specific signature

E.g. `remove_action( 'init', 'ClassName->*' )` should remove all method callbacks belonging to instances of that class."	Rarst		has-patch
Enhancements Awaiting Review	64113	Missing unit tests for wp-duotone class		General	minor	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	6.9	
Enhancements Awaiting Review	63759	Replace event.keyCode with event.key		General	minor	enhancement	new	2025-07-28T00:05:29Z	2025-10-02T03:20:35Z	"Much of the scripting across non-React JS WordPress codebase uses `event.keyCode` to manage keyboard events. `keyCode` has been deprecated for many years, and we really only need to maintain backwards compatibility with this as long as we supported Internet Explorer, since IE11 continued to have buggy support for `event.key`.

`event.code` still has unreliable support, which makes this harder to implement, but `event.key` is widely supported.

In many cases, using `event.key` is more predictable, as is is less dependent on physical keyboard layout."	joedolson		has-patch
Enhancements Awaiting Review	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	normal	enhancement	new	2025-09-23T10:40:34Z	2025-09-23T10:58:03Z		yash12344	6.9	needs-docs
Enhancements Awaiting Review	63881	KSES: Deprecate wp_kses_stripslashes		General	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	63880	Remove and rounding borders and minor improve login and dashboard page		General	normal	enhancement	new	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	6.9	has-patch
Enhancements Awaiting Review	57842	Add a new independent WP_Exception class, compatible with WP_Error		General	normal	enhancement	new	2023-03-01T22:05:19Z	2025-08-05T22:58:30Z	"Exceptions offer a better way of working with errors. Whilst we all appreciate WP_Error and how deeply integrated into WordPress it is, we should at least start to think about introducing an independent and official `WP_Exception` class.

I don't think I will need to elaborate the benefits Exceptions bring into modern development on this ticket.

Instead, perhaps we could use this ticket to discuss a way to officially introduce an Exception as a starting point.

Once this is accepted, we could then discuss the pros and cons of updating existing code to use this new exception in other tickets. But we should, at the very least, offer a standard Exception for developers to start implementing in their custom code bases and plugins.

I've created a super simple WP_Exception class which is compatible with WP_Error as a starting point. Happy to have a serious discussion on how best to improve this and get something like this merged into core.

Sample usage:

{{{
// Normal Exception.
try {
	throw new WP_Exception( 'error_code', 'Error message', $error_data );
} catch ( WP_Exception $e ) {
	$e->get_error_code();
	$e->get_error_message();
	$e->get_error_data();
}

// To WP Error.
try {
	my_function();
} catch ( WP_Exception $e ) {
	return $e->to_wp_error(); // Returns a WP_Error based on the exception.
}

// From WP Error.
if ( is_wp_error( $thing ) ) {
	$exception = new WP_Exception();
	throw $exception->from_wp_error( $thing );
}
}}}"	junaidbhura		has-patch
Enhancements Awaiting Review	63781	Blogger to wordpress error		General	normal	enhancement	new	2025-08-01T20:16:12Z	2025-08-03T09:09:06Z	"Hello, Unfortunately, when I try to use the tool you created to migrate from Blogger to WordPress, it doesn't work. Blogger no longer outputs XML for the site. Could you update the existing tool to address this issue? The file Blogger provides when backing up the site looks like the one in the image.[[Image()]]

"	ahmetahbahb		
Enhancements Awaiting Review	63745	Suggestion Regarding PHPDoc Usage for $GLOBALS in WordPress Core		General	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	48962	Start using namespaces in Core		General	normal	enhancement	new	2019-12-13T09:39:16Z	2025-07-24T09:58:58Z	"After moving WordPress minimum PHP version to 5.6 with plans for 7.x there was a big reason to upgrade core to modern PHP-development approaches. 

The biggest advantage of namespaces is autoloading. Nowadays many plugin developers using Composer or their own autoloaders in every plugin. Some part of developers just ""include(_once)"" everything. And Composer is more preferable solution.

But it is a big problem. Many plugins are using their local directory autoloader/composer. And that can be easily solved by using Composer in WordPress distibution. Composer can simplify work with dependecies and plugin updates or even WordPress updates.

I don't think that WordPress need own autoloader when in PHP-world exists de-facto standard in face of Composer. But it is just my personal opinion.

There are no extraordinary problems to upgrade code to namespace basis. It can be done by some script. To avoid BC changes we need just use \class_alias() for namespaced classes to make copy in global namespace. Old class-files can be marked as deprecated.
"	taraschr		dev-feedback
Enhancements Awaiting Review	54327	Support wp_die from array print		General	normal	feature request	new	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	5.8.1	has-patch
Enhancements Awaiting Review	60366	add call_for_blog  for easy to switch blog and restore in multisite		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	61710	Introduce a new action hook for ajax requests for both logged-in and non-logged-in users		General	normal	enhancement	new	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	6.6	dev-feedback
Enhancements Awaiting Review	52143	memory_limit not always adhered		General	normal	enhancement	new	2020-12-21T16:36:30Z	2025-06-11T08:59:38Z	"From time to time I notice that WordPress, or it's plugin don't adhere the ""memory_limit"" that's set by it's php.ini or through .htaccess

A simple and quick fix, is adding the following line:

{{{
define('WP_MEMORY_LIMIT', ini_get('memory_limit'));
}}}

I'd suggest adding this line to the default contents of wp-config.php to resolve the issue in the cases it occurs."	danielbareman	5.6	
Enhancements Awaiting Review	62666	Add function to retrieve page ID or permalink based on template		General	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	63458	Proposal: Native support for a humans.txt file in WordPress		General	normal	feature request	new	2025-05-18T11:26:53Z	2025-05-18T16:54:45Z	"Hello,

I would like to propose a discussion about adding native support for the humans.txt file in WordPress.
This file, standardized and documented at humanstxt.org, is intended to include information about the people involved in building a website.

With the recent emergence of other initiatives, such as the llms.txt file, the topic is gaining renewed attention. I don’t have a strong opinion on llms.txt, but I believe humans.txt already made sense at the time it was introduced. Perhaps the time has come for WordPress to consider integrating it?

This file could include, for instance:
	•	The developers of the site or active theme,
	•	The site administrators,
	•	The developers of the plugins in use,
	•	Additional information on best practices or human credits related to the project.

This isn’t described exactly that way on the official site, but it seems to align with the spirit of the initiative.

To help start the discussion, one could imagine this file being generated automatically, or at least a space being provided for customizing it. Could the existing mechanism WordPress uses to dynamically generate files like .htaccess or robots.txt be reused for this purpose?

Thank you."	maxpertici		
Enhancements Awaiting Review	63419	Auto-generate temporary title for new posts without a title		General	major	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		
Enhancements Awaiting Review	63415	Utilize a feature request management platform		General	normal	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		
Enhancements Awaiting Review	63388	Add optional breadcrumb navigation to WordPress admin area		General	major	enhancement	new	2025-05-04T13:01:08Z	2025-05-04T13:01:08Z	"The WordPress admin interface lacks a built-in breadcrumb navigation system. As the admin menu grows more complex with nested pages (especially from plugins and themes), it's increasingly easy for users to lose track of their location or struggle to navigate back efficiently.

This proposal introduces a lightweight, optional breadcrumb trail displayed at the top of admin pages — just beneath the admin bar and above the page title.

Example Display:

For the Permalinks settings page, the breadcrumb could look like:


**Dashboard > Settings > Permalinks
**
Each segment would be a clickable link, except the last item which reflects the current page.

Behavior:

Breadcrumbs are generated dynamically based on the admin menu hierarchy ($menu, $submenu) and current screen.

Default is enabled for all users.

Optional toggle under Users → Profile to disable breadcrumbs for individual users.

Developers can filter or modify breadcrumbs using a new filter: admin_breadcrumbs.

Benefits:

Improved UX, especially for users navigating unfamiliar admin screens (e.g., plugin settings).

Helps users understand admin page hierarchy and find their way back quickly.

Promotes consistency and predictability in admin navigation.

Why it belongs in Core:

No current core support for admin breadcrumbs.

Plugins often reimplement their own breadcrumbs inconsistently.

This is a small, self-contained improvement that significantly improves admin usability with minimal overhead."	anonymized_22016969		
Enhancements Awaiting Review	50422	Prevent Browser Caching From Getting Involved With wp_redirect and wp_safe_redirect (Leaving the Browser to Purely Honor the Redirect Code Used)		General	normal	enhancement	new	2020-06-18T16:51:16Z	2025-03-19T16:22:34Z	"Currently, {{{wp_redirect}}} (and therefore {{{wp_safe_redirect}}} as well since that uses {{{wp_redirect}}}) can be cached by web browsers depending on a site's browser caching rules. For example, W3 Total Cache has browser caching that one would certainly want to utilize for improved site performance, but then doesn't really have the means to prevent this potential problem where a redirect then gets cached by the browser (even if it's a 302 redirect). W3TC is just one example, but browser caching can be implemented in any number of ways which this then can be a problem.

I came across this with a plugin and proposed a patch to the plugin per https://wordpress.org/support/topic/proposed-bugfix-prevent-login-redirect-from-browser-cache-rules/, but I'm wondering why the fix for this isn't part of WordPress' core so that plugins & developers in general don't need to specifically add this to prevent an issue that can come about given the right circumstances (with the fix being rather simple & straightforward, from what I can tell.)

In short, having {{{nocache_headers();}}} before the redirect happens has the redirect still honored as it was set while removing the potential undesired effect of it being cached by the web browser (ex. trying to view a page that needs you logged in to view it has a plugin redirect to the login page, but then that 302 redirect was cached by the browser so the user is still redirected to the login when trying to visit that page even after they've already logged in, and it can really happen with any redirect that should be honored as being temporary that was then cached as the page's result by the browser when it shouldn't be [translation plugins have also encountered this in the past as well when switching between languages for pages via a redirect, and I'm sure there's more instances of this.])

----

Yes, currently developers can prevent this themselves by implementing {{{nocache_headers();}}} before their {{{wp_redirect}}} and/or {{{wp_safe_redirect}}} (I've made sure to document this as such at https://developer.wordpress.org/reference/functions/wp_redirect/#comment-3973 and https://developer.wordpress.org/reference/functions/wp_safe_redirect/#comment-3974, respectively [which I imagine both of these notes should be removed if/when this gets implemented natively]), but I'm wondering why that should be necessary. Would there really be any downside of having {{{wp_redirect}}} trigger {{{nocache_headers();}}} as part of that function natively so it just works more reliably without added code and/or developers potentially not knowing to do this which then results in problematic behavior?

At that point, things like the {{{auth_redirect}}} function (and possibly others) can be cleaned up to not need to include {{{nocache_headers();}}} before their redirect. Meanwhile, {{{wp_get_nocache_headers();}}} (used by {{{nocache_headers();}}}) checks to see if headers have already been sent or not & also honors the existing headers while just enforcing specific ones so those that have this applied twice (ex. after this is included natively as part of {{{wp_redirect}}} while they still have it in their own implementation before this was done) shouldn't have any negative effects.

----

**- The Proposed Patch -**
This simply has {{{nocache_headers(); // Prevent browser caching of page with the redirect header (browser should still honor the redirect status code)}}} before the {{{header( ""Location: $location"", true, $status );}}} snippet in the {{{wp_redirect}}} function within ''wp-includes/pluggable.php'', and then has a minor optimization of removing {{{nocache_headers();}}} from the {{{auth_redirect}}} function in that same file since that's no longer needed (the {{{wp_redirect}}} later in the function now takes care of this. I've attached a patched version of pluggable.php from WP 5.4.2 with these 2 changes.

I filed this as an enhancement since it's not really a bug within the code being fixed as much as it is preventing bugs made by plugin & other developers (so it still is fixing bugs within the WordPress ecosystem [just going to the core of the problem rather than having to fix the issue with each instance where this came up as a result of the core code not taking care of this itself yet.])"	KZeni	5.4.2	has-patch
Enhancements Awaiting Review	63103	Add 'orderby'=>'rand' option for get_users() function		General	trivial	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	6.7.2	
Enhancements Awaiting Review	63015	Handle more content-disposition format on dowload_url		General	normal	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		
Enhancements Awaiting Review	61569	Content-Security-Policy (CSP) add support for trusted types (centralized input validation of text inserted into DOM XSS sinks)		General	normal	enhancement	new	2024-07-03T20:48:28Z	2025-02-18T15:05:55Z	"The HTTP Security Header ""Content-Security-Policy"" (CSP) allows to make browsing a website more secure for its users by providing directives to the browser how to protect it (see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy).

While there are already various features of CSPs supported by WordPress  (cf. e.g. https://jornfranke.codeberg.page/technology-tutorials/wordpress-csp/) there can be support for an additional directive relevant for Gutenberg: Trusted Types (https://w3c.github.io/trusted-types/dist/spec/) (see also https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/trusted-types). These allow essentially to define in the WordPress/Guteberg javascript code a central function that validates any text inserted by users/other scripts into the website (for instance, one could insert malicious HTML or Script code into a block that is then later displayed by another user).

Other frameworks, such as Angular, also support this (see https://angular.io/guide/security#enforcing-trusted-types).


I can add to my CSP the trusted-type policy ""wordpress"", e.g.

Content-Security-Policy: trusted-types wordpress; require-trusted-types-for 'script';
Then automatically a function (provided by WordPress) is triggered to sanitize any input before it is added to the DOM. Here a simple untested example using DOMPurify based on this webpage:


{{{
if (window.trustedTypes && trustedTypes.createPolicy) { 
  trustedTypes.createPolicy('wordpress', {
    createHTML: (string, sink) => DOMPurify.sanitize(string, {RETURN_TRUSTED_TYPE: true})
  });
}
}}}



I recommend though to use the standard sanitization function already available in WordPress.

See also this article on how to implement a trusted-type policy: https://web.dev/articles/trusted-types#trusted-type-policy

The advantage of a central policy would be that I can also cover for plugins with issues in securely sanitizing inputs.

See also the complementary issue for Gutenberg: https://github.com/WordPress/gutenberg/issues/60736"	jornfranke		
Enhancements Awaiting Review	62683	Keyword Density Checker		General	normal	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		
Enhancements Awaiting Review	62848	Continuous requests for apple-touch-icon-precomposed.png returning 404		General	minor	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	6.7.1	
Enhancements Awaiting Review	62837	Filter to change the labels and placeholders of inputs		General	normal	enhancement	new	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	6.7.1	has-patch
Enhancements Awaiting Review	62510	Add links to Learn WordPress in the wp-admin Help box and the default comment		General	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	62544	Consolidate repetitive CSS rules in list-tables.css		General	trivial	feature request	new	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		has-patch
Enhancements Awaiting Review	62662	Ability to rename wp-admin and wp-login in wp-config.php		General	major	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	6.7.1	
Enhancements Awaiting Review	62300	WordPress functionality usage outside wordpress itself		General	critical	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		
Enhancements Awaiting Review	57398	"User roles are reset to ""All"" tabs when performing bulk actions on certain user roles."		General	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	59432	Compliant with W3C coding standards		General	minor	enhancement	new	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	6.3.1	has-patch
Enhancements Awaiting Review	40153	Filter for wp_safe_remote_get in download_url		General	normal	enhancement	new	2017-03-14T11:51:03Z	2024-10-06T11:07:04Z	I had to deal with images on a server that has basic authentication active. There is no filter in ''download_url'' that would give me the chance to add the header authentication that I needed in this case.	realloc	4.8	has-patch
Enhancements Awaiting Review	61125	Many strings or URLs lack proper escaping.	audrasjb	General	minor	enhancement	reviewing	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		has-patch
Enhancements Awaiting Review	62151	Allow Ignoring Patch Version in version_compare() for PHP Compatibility		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	62087	Add `inline` support to the new `wp_get_admin_notice()` function		General	normal	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	6.4	
Enhancements Awaiting Review	62067	Remove Unnecessary array_flip Function in VALID_TOP_LEVEL_KEYS Filter		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	62006	License adaptable text (e.g., suggested Privacy Policy) under liberal license		General	normal	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		
Enhancements Awaiting Review	58346	A way for adding inline dynamic data		General	normal	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		
Enhancements Awaiting Review	61626	Settings > Reading: add a connection to the home template for block themes		General	normal	enhancement	new	2024-07-10T22:09:15Z	2024-08-27T17:19:29Z	Right now, when you're using a block theme, there's not a clear connection between the Settings > Reading screen and editing the template powering your homepage. Because this connection isn't there, I've seen users note that they aren't sure where to make changes or how changes made to Settings > Reading impact what's in their template. To help make a connection between the two and to encourage folks to edit visually, I think we need to explore a way to connect the experiences. This definitely needs design thinking that I don't have but opening this to start the conversation. 	annezazu		
Enhancements Awaiting Review	61899	Custom query args for `search_box` form in `WP_List_Table`		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	61750	Spacing issues since 6.6 (Gutenberg with Block- or Hybrid Themes)		General	normal	enhancement	new	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	6.6.1	dev-feedback
Enhancements Awaiting Review	61647	Catch ArgumentCountError in apply_filters, and prompt developers to check accepted_args		General	normal	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	6.6	
Enhancements Awaiting Review	60769	Block Hooks: Consolidate approach to get the list of hooked blocks.		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	61542	Reading Settings static front page dropdown field alignment issue		General	normal	enhancement	new	2024-06-30T07:05:09Z	2024-07-02T12:39:36Z	Reading Settings static front page dropdown fields alignment issue found 	fahem		has-patch
Enhancements Awaiting Review	60782	The method parameter is never used.		General	normal	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		
Enhancements Awaiting Review	61445	Synced patterns can not be used on site if pages are copied		General	normal	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	6.5.4	needs-patch
Enhancements Awaiting Review	60430	Spell enqueueing or enqueuing consistently		General	trivial	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	56691	Function suggestion: get_excerpt_length()		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	61141	Request new function add_sites_page(...)		General	minor	enhancement	new	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		has-patch
Enhancements Awaiting Review	60953	Need new hook at paginate_links		General	minor	enhancement	new	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		has-patch
Enhancements Awaiting Review	61038	Image Edit Option on the Media Library Should Support the Image Compression Option		General	normal	feature request	new	2024-04-18T11:57:54Z	2024-04-18T11:57:54Z	Right now, we're reliant on an additional plugin for image compression, which not only consumes time but also introduces technical errors, and it also kills the storage, which also slows down the site loading time. It's high time WordPress incorporated this fundamental feature by default. Conversely, Shopify already supports this feature within their dashboard.	premaanjum		
Enhancements Awaiting Review	59510	Add filter for the block-template viewport meta tag		General	normal	enhancement	new	2023-09-30T20:43:31Z	2024-04-13T04:50:40Z	"The base block-template.php used for full site editing does not provide a hook for modifying the viewport meta tag. Despite being inserted into wp_head by the `_block_template_viewport_meta_tag` action hook, the actual tag is basically hard coded and untouchable: https://github.com/WordPress/wordpress-develop/blob/00ed25e2c9b20607418cbe8a6103c336d1bf92bd/src/wp-includes/block-template.php#L273-L275. 

This ticket introduces a new filter which allows for customization of this meta tag. "	joemaller	6.4	has-patch
Enhancements Awaiting Review	60906	Block Hooks: Allow adding toggle without injecting hooked block		General	normal	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		
Enhancements Awaiting Review	36335	Next generation: core autoloader proposal		General	normal	feature request	new	2016-03-25T19:21:43Z	2024-03-27T15:17:24Z	"Hello WordPress community. With this ticket I would like to get the debate of the last days about how to attract WordPress to developers (or the other way around?) to a concrete discussion on how a class autoloader could look like in WordPress core.

So when we start to think about some major improvements like in #36292, we should also take some time and talking about autoloading.

== Abstract ==

A class autoloader is a basic tool to separate code writing form code organization. It takes care about providing class declaration at the point they are needed. The fact that WordPress lacks of a core autoloader was one point mentioned in the debate on what developers [https://www.alainschlesser.com/attracting-developers-wordpress/ missing most with WordPress]. 

== Why we need an autoloader ==

Plugin authors using autoloaders these days. They even use composer for dependency management and ship their plugins with this dependencies. This practice [https://github.com/composer/composer/issues/3852 leads to trouble right now]. I'm convinced that in a long-range plan we even have to talk about how to deal with proper dependency management to overcome collisions. Having an autoloader in core is a precondition for this. 

== How an implementation could look like ==

The following proposal follows a concept of separating the file locating and file loading process to avoid a violation of the single responsibility principle and to gain flexibility. All classes and interfaces are prefixed with `WP_Autoload_` to apply a pseudo namespace.

The main instance of this concept is the interface `WP_Autoload_Rule`. An autoload rule is against the client responsible for locating and loading a given class. The class is provided by its full qualified name. This leads to this interface signature:

{{{#!php
<?php
interface WP_Autoload_Rule {

    /**
     * @param string $class (A full qualified class name)
     *
     * @return bool
     */
    public function load_class( $class );
}
}}}

Implementations could be `WP_Autoload_Psr4Rule`, `WP_Autoload_Psr0Rule` or `WP_Autoload_ClassMapRule` or what ever plugin and theme authors want to implement for their requirements. Here's a quick example:

{{{#!php
<?php
class WP_Autoload_Psr4Rule implements WP_Autoload_Rule {

    /**
     * @var string
     */
    private $base_namespace;

    /**
     * @var string
     */
    private $base_directory;

    /**
     * @var WP_Autoload_FileLoader
     */
    private $file_loader;

    /**
     * @param $base_namespace
     * @param $base_directory
     */
    public function __construct( $base_namespace, $base_directory, $file_loader = NULL ) {

        $this->base_directory = (string) $base_directory;
        $this->base_namespace = (string) $base_namespace;
        $this->file_loader    = $file_loader && is_a( $file_loader, 'WP_Autoload_Fileloader' )
            ? $file_loader
            : new WP_Autoload_IsReadableFileLoader;
    }

    /**
     * @param string $class (A full qualified class name)
     *
     * @return bool
     */
    public function load_class( $class ) {

        // performing the psr4 mapping here to get a $file
        $file = '/whatever';

        return $this->file_loader->load_file( $file );
    }

}
}}}

Autoloading rules should depend on a file loader. The file loader receives a file name and loads it, if it is present.

{{{#!php
<?php
interface WP_Autoload_FileLoader {

    /**
     * @param string $file
     *
     * @return bool
     */
    public function load_file( $file );
}
}}}

A very simple implementation can just ask for `is_readable()`. Looking on performance, another implementation could `glob()`-ing a given directory once to read in all PHP-files and matching the given file against this list. Even persistent caches are thinkable.

Last but not least `WP_Autoload_Autoload` acts as a repository for all possible rules:

{{{#!php
<?php
interface WP_Autoload_Autoload {

    /**
     * @param WP_Autoload_Rule $autoload_rule
     *
     * @return void
     */
    public function add_rule( $autoload_rule );
}
}}}

The main implementation should be `WP_Autoload_SplAutoload` which connects to PHP standard library autoload:

{{{#!php
<?php
class WP_Autoload_SplAutoload implements WP_Autoload_Autoload {

    /**
     * @var WP_Autoload_Rule[]
     */
    private $rules = array();

    /**
     * @param WP_Autoload_Rule $autoload_rule
     *
     * @return void
     */
    public function add_rule( $autoload_rule ) {

        if ( ! in_array( $autoload_rule, $this->rules, TRUE ) )
            $this->rules[] = $autoload_rule;
    }

    /**
     * @param string $fqcn (full qualified class name)
     */
    public function load_class( $fqcn ) {

        foreach ( $this->rules as $rule ) {
            if ( $rule->load_class( $fqcn ) )
                break;
        }
    }
}
}}}

== Instantiate and propagate the autoloader ==

{{{#!php
<?php
function wp_setup_autoloader() {

    $autoloader = new WP_Autoload_SplAutoload;
    spl_autoload_register( array( $autoloader, 'load_class' ) );

    /**
     * Use the WordPress core autoloader to
     * bootstrap your plugin and theme
     *
     * @param WP_Autoload_Autoload $autoloader
     */
    do_action( 'wp_autoload', $autoloader );
}
}}}

`wp_setup_autoloader()` should then be called early in the WP loading process.

{{{#!php
<?php
add_action( 'wp_autoload', function( $autoloader ) {

    $autoloader->addRule(
        new WP_Autoload_Psr4Rule(
            'MyPlugin\\'
            __DIR__ . '/src'
        )
    );
} );
}}}

== Things to discuss ==

 * The proposal uses [http://verraes.net/2013/09/sensible-interfaces/ sensible interface names] which I prefer over naming interfaces like `WhateverInterfaces`. As WordPress does not provide interfaces right now, this is just a suggestion.
 * PHP class identifiers are case insensitive. That means `new MySql` and `new MySQL` will both work, if a class `mysql` is declared. The autoloader should respect this. Now, Psr4 is very wide-spread and encourage developers to use case sensitive autoloaders and [https://r.je/php-autoloaders-should-not-be-case-sensitive.html this is a problem]. How can we deal with this in a performant way?
 * How should the WordPress core files be organized to work with the autoloader? Is it realistic to rearrange them, if not how could a corresponding `WP_Autoload_Rule` look like?
 * What about compatibility with PHP 5.2.? The proposal uses `spl_autoload_register`. But before PHP 5.3.0 it is theoretically possible to deactivate the spl extension. In this case another implementation of `WP_Autolad_Autoload` would be necessary and maybe some adaptions to the other interfaces. But is this really the intention?

== Finally ==
Thanks for reading. Feel free to add your concerns, your opinions or even if I'm on a completely wrong train. In fact
I'm really interested in critic. To be clear, I don't want to push this proposal but I would like to see a proper
autoloader in core some day :)"	dnaber-de		has-patch
Enhancements Awaiting Review	54628	Third-Party API Integrations		General	normal	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		
Enhancements Awaiting Review	60656	Add Linktree icon to social icons options		General	normal	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	6.4.3	
Enhancements Awaiting Review	60546	Posts link management in post editor sidebar		General	normal	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		
Enhancements Awaiting Review	51139	"Allow ""tested up to"" PHP version statement for plugins & themes"		General	normal	enhancement	new	2020-08-25T13:30:57Z	2024-01-09T21:25:02Z	"Minimum PHP Version support for plugins and themes was added in #40934 (see also #meta2952 and #meta3718 for support added to the plugin and theme directories). At that time a ""tested up to"" PHP version was talked about but seemed like it needed it's own ticket. This is that ticket :)

I'm proposing to allow plugins and themes to have a ""tested up to"" PHP version statement (Not a maximum). This version statement should not mean that plugins should not be shown in the new plugins screen, etc, but can be used for warnings for users like we do with ""tested up to"" WordPress versions.

Considering the new [https://make.wordpress.org/core/2020/08/24/proposal-dropping-support-for-old-php-versions-via-a-fixed-schedule/ PHP version support proposal], this will help to better equip both users and hosts to make intelligent, informed decisions around upgrading PHP. Host would be able to scan sites and proactively update PHP without relying on slow linting tools.

One of the biggest hurdles will be the time it takes to get enough plugin developers using this header for the data to be useful. The biggest, most popular plugins will adopt it quickly which will help immediately. Also, for those plugins hosted on the .org directory, we could use a threshold to fill in the data for plugins that haven't yet specified it. If some number of sites, say 100 for this example, with somePlugin version X.Y.Z say they're on PHP A.B.C when checking to see if there are updates available, we could reasonably say that X.Y.Z is compatible up to PHP A.B.C. We could only do this for plugins with enough installs to meet that threshold, but it would certainly make the information immediately useful for anything needing to automate PHP version support checks.

To do this, the following work would have to be done:
'''Core'''
- Plugin header parser changes for ""tested up to"" PHP version statement.
- Warnings added that use this header (mockups needed)

'''Meta'''
- Plugin readme parser changes for ""tested up to"" PHP version statement. Source location: https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme
- Plugins API changes. Source location: https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone
- Logic added to track ""tested up to PHP"" for plugins/themes not specifying it

'''Plugin directory'''
- Show tested up to PHP version on plugins page. Source location: https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin.php (Simple mockup attached)
"	aaroncampbell		
Enhancements Awaiting Review	60084	Modify default value for x_redirected_by parameters		General	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	59916	API Docs: update comment endpoint does't have example request	gavande1	General	minor	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		needs-patch
Enhancements Awaiting Review	59605	activate, deactivate items in menue		General	normal	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		
Enhancements Awaiting Review	59586	Missing Features for FSE / Block Themes		General	normal	enhancement	new	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	6.4	dev-feedback
Enhancements Awaiting Review	59519	Reconsider including Google branding and product in WordPress core (Google Fonts)		General	normal	feature request	new	2023-10-02T18:49:44Z	2023-10-05T16:09:55Z	"In this [https://github.com/WordPress/gutenberg/issues/53307 Gutenberg Github issue], a Google Fonts integration is being added directly to WordPress core. 

I know the great work being done is with the best of intentions: to help streamline things for users. 

However, despite copying the font from Google Fonts, including this Google integration in WordPress core has a few problems.

- It is a ""vote of confidence"" in Google by the WordPress project
- It's free advertising for a brand in WordPress core
- It opens up future political problems for WordPress leadership to deal with


Are we willing to say that the WordPress project is giving a ""vote of confidence"" for Google, the brand? Are we willing to provide free marketing for Google in this way?

Furthermore, any other brands we might add to WordPress core in the future would also be getting that same ""vote of confidence"" from the WordPress project. Are we also willing to do it for them?

If so, how are we deciding who gets these ""votes of confidence""? Is there a process a brand should go through to earn this vote of confidence? What steps should they take? When do we/they know it's enough?

If we add this Google integration by default in WordPress core, it opens up a bunch of problems we can avoid. WordPress has a plugin interface for this exact type of thing. Why not use it? This could surely be made into a plugin, right?

So my request here is to reconsider adding a Google Fonts integration to WordPress core itself, and allowing it to be a plugin instead.

While I believe that manually uploading fonts is good enough, if a core integration with an outside font API is required, I would propose that it should use Openverse. This has already been done with the Media Library.


Additionally, (and this is somewhat beside the main point) but Google, specifically, doesn't have a great track record for keeping its products alive. The number of products killed by Google is astounding: https://killedbygoogle.com/

They also **just** sold their domains service to Squarespace, a direct competitor to the WordPress project.

In my opinion, these are reasons enough to be wary of adding Google products and branding directly to WordPress core.





"	johnstonphilip	6.4	
Enhancements Awaiting Review	59384	`wp_create_nonce()` should not have a default parameter		General	normal	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		
Enhancements Awaiting Review	59330	Improvement in wp_parse_args for mutli-dimensional arrays		General	trivial	enhancement	new	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	6.3.1	has-patch
Enhancements Awaiting Review	59148	WordPress CDN/Mirror plugins/themes...		General	normal	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		
Enhancements Awaiting Review	56846	"All test classes that use the ""wp"" prefix should be renamed for consistency"		General	minor	enhancement	new	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		has-patch
Enhancements Awaiting Review	57537	Site editor theme export: remove site specific details		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	58442	Add parameters for the wp_get_archive function that allows to filter the archive for particular years and months.		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	42723	Tag Cloud CSS needed for HTML minification		General	normal	enhancement	new	2017-11-28T05:41:29Z	2023-04-17T10:37:05Z	"The new tag cloud code in Wordpress 4.9 works great except for one issue which can be improved. 

Because it uses


{{{
display: inline-block
}}}

for li elements, it needs whitespace after each ending closing li tag. 

Else HTML minifiers will remove the spacing. It's hard for minifiers to do the job as this is a more general issue. 

An illustration is here: https://codepen.io/anon/pen/pdOPdr

What happens is that after HTML minification, tags appear very close to each other. Undesired. 

The best way to tackle it would be to improve the CSS. Here's a suggestion


{{{
.tagcloud ul li:after, .widget-area .widget.widget_tag_cloud li:after {
	content: '\00A0';
	white-space: pre;
}
}}}

"	superpoincare	4.9	has-patch
Enhancements Awaiting Review	50375	Using post_type_archive_title()  does not return the right laebl		General	normal	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	5.4.2	
Enhancements Awaiting Review	57768	avoid creating tcp connection every time		General	normal	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		
Enhancements Awaiting Review	54846	Add links to actual topics instead of general Debugging for messages only visible when Debug is enabled		General	normal	enhancement	new	2022-01-17T17:52:53Z	2023-02-17T00:28:31Z	"For `_doing_it_wrong()` messages such as:

- `The REST API route definition for %1$s is missing the required %2$s argument. For REST API routes that are intended to be public, use %3$s as the permission callback.`
- `""%1$s"" script should not be enqueued together with the new widgets editor (%2$s or %3$s).`

instead of the general link to https://wordpress.org/support/article/debugging-in-wordpress/ can be provided link better suited for each case.

Right now these are notices, and it means that only people with enabled debug are seeing them and they already knew about debugging and it's possible for them to actually solve the problem, so, more advanced links can better suit these cases. It's also possible that such right answers with a combination of ticket:50493 can reduce the number of questions on Support about 'What to do…' when people see this message. It is supposed to be clear from the message that if this is your own creation - you need to adjust it, if not - address the author.


For the message about REST API:
https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/ - this link can be added instead, but it looks like examples needs to be checked.

And for the second example, can be added something like this: ""If you see this message, probably you need https://wordpress.org/plugins/classic-widgets/ plugin because you are using old widgets. Please contact your theme author or developer/maintainer to update widgets to the new version."" 
"	oglekler		
Enhancements Awaiting Review	56822	Use non-breaking space in required fields message		General	normal	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		
Enhancements Awaiting Review	56916	Look to the current request to get the URL settings.		General	normal	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		
Enhancements Awaiting Review	56879	Add DDEV Page to Install Local Server Docs		General	normal	feature request	new	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		needs-docs
Enhancements Awaiting Review	56582	Decide how to format multi-line comments in global scope.		General	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	30934	Create a new API to standardize application logging		General	normal	enhancement	assigned	2015-01-07T03:30:42Z	2022-08-04T19:35:29Z	"There are moments in WordPress' execution that it would be helpful to have application debug logging.

One that has bitten me hard is [https://github.com/WordPress/WordPress/blob/4.1/wp-includes/ms-settings.php#L162 multisite redirects when the current blog can't be initialized properly]. It would be great to be able to look at a log somewhere that tells me `[error] No site found for ericandrewlewis.com /srv/www/wordpress/wp-includes/ms-settings.php:162`.

This is just one instance, but opens up a discussion of a consistent API that we can use, both internal to core and in plugins / themes for application logs.

#28319 was a similar request (Add hook to WP_Error for logging and report purposes), but missed the point that WP_Error is a standardized error return value from a function, and not necessarily an application error. However, from that ticket [https://core.trac.wordpress.org/ticket/28319#comment:30 dd32 proposed] creating a PSR-3 inspired API for logging errors. Let's consider this."	ericlewis		
Enhancements Awaiting Review	31737	Unique identifier for Heartbeat API calls		General	minor	enhancement	new	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	3.6	has-patch
Enhancements Awaiting Review	56164	Create a way to reference function parameter documentation when complex parameters are passed to hooks		General	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	51585	Make beta & RC releases available in Github		General	normal	feature request	reopened	2020-10-21T07:26:28Z	2022-06-15T20:52:56Z	It would be awesome if WP beta & RC releases/tags would also be available on https://github.com/WordPress/WordPress	malthert		
Enhancements Awaiting Review	55662	Eliminating magic numbers		General	normal	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		
Enhancements Awaiting Review	52998	Add a filter to paginate_links to allow bypassing merging query params		General	normal	enhancement	new	2021-04-08T10:36:11Z	2022-04-05T15:03:15Z	"The [https://core.trac.wordpress.org/browser/tags/5.7/src/wp-includes/general-template.php#L4154 paginate_links] function constructs the HTML markup used in archive pagination.

As part of this, any parameters present in the requesting URL are merged into the pagination links ([https://core.trac.wordpress.org/browser/tags/5.7/src/wp-includes/general-template.php#L4197 ref]).

This is a safeguard to ensure that any logic which relies on `$_GET` parameters in a paginated series still functions as expected as the user navigates through paginated states. E.g., a plugin may use query parameters to describe a date range in an archive; such as `/archive/page/2/?date_from=2001-12-20&date_to=2020-05-14`.

I'd like for theme/plugin authors to be able to disable/bypass this 'merging' process.

**The problem(s)**

The current behaviour makes it possible to request (paginated) archive templates with arbitrary, meaningless query parameters (e.g., https://wordpress.org/support/topic-tag/iframe/page/5/?cats=yes&dogs=no&cake=please&utm_tracking=broken). Those parameters persist through all subsequent paginated requests.

This bypasses caches, breaks digital analytics, and inflates crawling from third party systems (search engines, social media, etc), as it 'creates' many additional URLs.

Furthermore, because WordPress doesn't natively output canonical URL tags on paginated archives, this can be ''extremely'' destructive from an SEO perspective; particularly on large sites, where the 'existence' of many such URLs compounds the problems above. And whilst the presence of a canonical tag would mitigate ''some'' of that damage, it wouldn't address those other problems.

**A potential solution**

I propose that we should introduce a new filter into [https://github.com/WordPress/WordPress/blob/master/wp-includes/general-template.php#L4154 paginate_links] which allows theme/plugin authors to bypass the code block which merges in query parameters.

This could be used by sites/themes/plugins when they're confident that they don't need to persist queries.

The filter should accept a simple boolean value, which acts as a switch to skip the merging logic. 

Alternatively:
- The filter could define a list of allowed/expected query params, or;
- The filter could restrict valid params to only include ''registered'' query vars.

** A note on the existing `paginate_links` filter**

Note that [https://github.com/WordPress/WordPress/blob/master/wp-includes/general-template.php#L4302 a paginate_links filter already exists] at the end of the function, but this only allows for manipulating the `href` attribute of the link. Whilst this could ''technically'' be used to ''strip'' parameters via brute force, this is cumbersome, and requires knowledge of the correct canonical URL (which WordPress doesn't natively/reliably have)."	jonoaldersonwp		
Enhancements Awaiting Review	55330	Set global_styles_svg_filters transient to return true causing symbol `1` to be appeared on the screen in a production mode		General	trivial	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	5.9.1	
Enhancements Awaiting Review	55086	Different URLs according to environment type with filters to work smoothly in all envs without replacement in the database		General	normal	feature request	new	2022-02-05T08:05:53Z	2022-02-05T08:05:53Z	"Add different URLs (WP_HOME, WP_SITEURL) for different environment types and filter query results (the_content etc) according to env type.

It can allow to build the site using production URLs but filter the content according to the current environment - dev or stage and work with the site without a need to replace URLs while moving from env to env.

This will ease regular deployments and help avoid mistakes when on production some links are still pointing to the dev or stage environment."	oglekler		
Enhancements Awaiting Review	54861	cache_javascript_headers() is not call by core		General	normal	enhancement	new	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	5.9	dev-feedback
Enhancements Awaiting Review	53070	Establish a Core CSS deprecation path		General	normal	enhancement	new	2021-04-22T03:31:47Z	2021-12-16T21:18:33Z	"Problem: Core CSS is a public API, and gets used as such by plugins. This means that when a selector is no longer used in wp-admin, deleting any related CSS rules can still break third party code. However, the cautious approach of not deleting any CSS leads to bloated files, with a negative impact on performance.

Solution: define a clear deprecation path for Core CSS, announcing in advance when any selector and related rules are being deprecated. This allows third parties to update their code in a timely manner.

What will this look like in practice? As discussed in the CSS meeting: [https://make.wordpress.org/core/2021/04/13/css-chat-summary-08-april-2021/],

* When a selector is no longer used in Core, move related CSS to a `deprecated.css` file.
* This file can be optionally enqueued by plugins that require any of its CSS.
* Deprecation is announced in the release dev notes.
* Linters and other automated tools can help enforce non-use of deprecated selectors.

"	isabel_brison		
Enhancements Awaiting Review	54626	Custom Objects		General	normal	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		
Enhancements Awaiting Review	54525	URL Object		General	normal	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		
Enhancements Awaiting Review	49072	Move readme.html & license.txt out of project root (maybe into Uploads?)		General	normal	enhancement	new	2019-12-23T23:13:06Z	2021-11-16T00:22:49Z	"On the majority of WordPress installations, it is possible to navigate to 2 files that are outside of the control of PHP:

* https://nacin.com/license.txt
* https://nacin.com/readme.html

One could argue that it is a good thing these files are visible; that the GPL license is something worth sharing at the root, or that the Famous 5 Minute Install is still an idea worth promoting.

However, it is not uncommon to re/move these files, or otherwise obscure them via other means (server configurations, running WordPress in a subdirectory, etc...)

* https://ma.tt/license.txt
* https://wordpress.com/license.txt
* https://wordpress.org/license.txt

All of the immediately above URLs do not work, and result in a 404 page.

----

Some folks recommend removing these files as a security precaution, though I'm not confident this ultimately protects from very much.

Some folks delete these files from their internal WordPress forks simply to reduce their maintenance footprint, particularly when they do not need to distribute their changes.

Ultimately though, I have always considered these files to be assets that belong ''inside'' of WordPress, not ''outside'' of it. `license.txt` is important to the person who downloaded and installed it, not to any visitor of the site, and the same can be said about `readme.html`. That's why, I believe, these assets would be better served as part of the Default Site Content, specifically inside the Media Library.

I'm imagining that, upon a successful installation, these files would be moved out of the root of the installation, and into corresponding Media Attachments, as the very first 2 files in the Media Library.

* This helps promote the ideologies of the GPL to end users, and hopefully forces us to consider how valuable the content inside of `readme.html` really is these days (it still links to Planet, IRC, the Codex, and a number of other deprecated locations.)
* This helps users familiarize themselves with what kinds of files can exist inside the Media Library (`.html` is not an allowed file type, so this would likely need a total rethink, maybe a `.txt` file is sufficient?)

The reason I'm including the proposed solution above, is because I think these files still need to exist in the root as part of the pre-installation experience. Once installed, though, these files become invisibly burdensome on the web server, as they are untracked in PHP and rarely changing in the WordPress project.

This is another one of those far-out JJJ ideas that I'm not expecting much serious traction on, but I do think would be a welcome improvement to the overall WordPress installation process. Other OSS projects do something similar with their own bundled assets (NextCloud, GitLab, etc...) so this is not a completely new idea."	johnjamesjacoby		
Enhancements Awaiting Review	54218	Introduce a way to communicate incoming UI updates to users		General	normal	feature request	new	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		dev-feedback
Enhancements Awaiting Review	54343	set custom name for metadata value in custom-fileds metabox select box		General	normal	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	5.8.1	
Enhancements Awaiting Review	38419	Make beta testing an opt-in feature in core		General	normal	feature request	new	2016-10-20T19:27:42Z	2021-10-05T01:11:32Z	"Currently beta testing of WordPress core (and feature plugins) is something you have to be aware of to take part in. This limits the reach of beta testing feedback to those who are intimately engaged in the day-to-day development of WordPress core and results in feedback that skews heavily in the direction of those who build WordPress as opposed to those who use WordPress.

To increase participation in end-user testing of WordPress core and feature plugins, active participation in such programs should be surfaced more visibly, either through settings during install, a modal pop-up, or an alert. 

To be clear, I'm not talking about testing of bleeding edge nightlies here, but specific features and feature plugins in Beta or RC state.

A simple admin alert saying ""WordPress 4.7 beta is available. Would you like to test it?"" would be a huge improvement. Similar can be done with select feature plugins, especially if the alert is tied to the feature they change/improve (so for a new media feature, the alert would appear when the media functionality is engaged: ""We are working on a new and improved media panel. Would you like to test it?"").

This would of course have to be done sparingly to avoid alert overload.

== Simplified feedback procedure ==
Along with the surfacing of beta testing, there should be a way to provide feedback on features directly from within WordPress admin. Asking for feedback to be posted in a Trac ticket or even a Make blog post limits the number of possible responses significantly. An in-app feedback feature activated only for testers would greatly simplify the process and most likely increase the volume of feedback data significantly. Whether this data is mapped to Trac tickets or something else needs to be addressed."	mor10	4.7	ui/ux
Enhancements Awaiting Review	31387	New core API for adding Meta tags to the header		General	normal	enhancement	assigned	2015-02-19T19:08:23Z	2021-08-11T15:56:09Z	"There is often a conflict between one or more plugins about registering meta tags in the header.  Meta tags that shouldn't be duplicated, it's difficult to know which one should 'win'.  A lightweight framework in core that multiple plugins could use to register meta tags seems like it would be useful.

It would need to handle several different attributes for all use cases -- `name` `property` `http-equiv` `charset` -- possibly generic `data-*` attributes?  Uncertain.

Twitter discussion: https://twitter.com/nacin/status/562109983069061120 (up and down the thread)

My first swing at it:

https://gist.github.com/georgestephanis/0f0cca2c5f1a6cd4aab2"	georgestephanis		dev-feedback
Enhancements Awaiting Review	20194	Add Description meta to General Settings		General	minor	feature request	new	2012-03-07T20:59:05Z	2021-08-10T05:46:44Z	"Add a description field to General Settings b/c these days with themes doing all kinds of kooky things, the automatic excerpt is often not representative of the site content.  All the SEO-lovers will be happy, searchers will get more accurate results, and it's a nice end-user feature without high overhead.

Could have sworn I made a ticket like this once before, but can't find it in search, so if anyone remembers it/is better at searching trac than I just was, go ahead and close this as duplicate."	jane	3.3	needs-patch
Enhancements Awaiting Review	53541	Arguments passed to load_template() should be extracted		General	minor	enhancement	new	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	5.8	dev-feedback
Enhancements Awaiting Review	53057	Added AJAX_DEBUG Constant for better ajax debugging		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	48758	Repurpose 'Hello World' post to also serve as a Gutenberg tutorial		General	normal	enhancement	new	2019-11-21T23:14:42Z	2021-04-10T11:18:28Z	"(This ticket has been migrated from GitHub: https://github.com/WordPress/gutenberg/issues/17874)


On new WordPress installs, users get a 'Hello World' post by default. The post's content is minimal and does not do a great job of explaining users what to do next.

[[Image(https://cldup.com/fI5eLunpwG.png)]]

I'm wondering if we can instead make better use of the 'Hello World' post and maybe have some pre-loaded content that can help new users learn the basics of the Block Editor and maybe serve as a little showcase of the cool things you can do.


----


**The new 'Welcome to WordPress"" demo post**

[[Image(https://cldup.com/MtjDPstIuV.png)]]

☝️ The above is a quick example that hopefully can serve as starter to iterate to something better.

Because the guide is in the block editor, the idea is that the guide itself shows what users can do by using different types of blocks and features. For example, the guide can make use of column blocks, video, group, etc. We can use it as a nice showcase of what can be done with Gutenberg.

We can also probably use better images or even fancy illustrations, to make it more interesting and engaging.

In the example above, which again is just a quick attempt, the guide starts by showing users how to add a block using the Block Inserter in the top toolbar. That right there communicates to the new user that the plus sign icon adds blocks and when/if they find it somewhere else in the interface, they will already know what it does. It also discretely shows that there's more options in the toolbar that the user can then explore.

The guide then moves on to explain that there are different types of blocks and that they can be customized by using the options in the Block Toolbar.

And finally, the guide explains that there's a sidebar with additional settings for the document and the blocks.

Again, this could be improved in so many different ways:

- we can iterate on the contents and topics of the guide,
- we can use better images or illustrations,
- we can be more clever and use different blocks and make the guide more interesting

I'd love to hear your thoughts on this."	nrqsnchz		
Enhancements Awaiting Review	52824	A separate sub-menu to organize the extensions belonging to parent plugins.		General	normal	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		
Enhancements Awaiting Review	52404	Fix get_the_archive_description() to support default blog index		General	normal	enhancement	new	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	5.6	has-patch
Enhancements Awaiting Review	51917	Create a staging environment within Core		General	normal	feature request	new	2020-12-02T14:32:43Z	2021-01-26T06:16:05Z	"A lack of trust and fear of things breaking seems to be the reason why a lot of people do not update their WordPress Core installation or plugins.

It seems like a built-in staging environment (along with the ability to roll back) can go a long way towards improving the adoption of auto-updates without alienating stakeholders.

It seems like a possible way to do this may be to create a staging site (sharing the DB by default, but with the possibility of separate DBs via a constant) under a subfolder."	carike		
Enhancements Awaiting Review	37699	Death to Globals Episode #1: A Registry, A Pattern		General	normal	enhancement	new	2016-08-17T20:49:29Z	2021-01-14T10:48:12Z	"Storing application state in globals is ... bad.
Using global state to store objects is ... bad.
Using globals to avoid writing classes is ... bad.
Using globals to pass data between functions is ... bad.
Training people to assume that globals will always be set to the value they expect is ... bad.

Globals are an artifact of a #dark-er time, think PHP 3. It would be nice if we didn't use globals. We have a backward compatibility strait jacket, but that shouldn't stop us from exploring ways to eradicate them. 

We can start with class instances, because variables hold a reference to the actual instance when set. We can also start with a simple registry that allows us to create a data that can get / set globals for us (or not!). We can also add a few static methods onto `WP` to hide all of this away.

Attached is a POC that removes (every instance of?) `$wpdb` as a global, and instead uses the registry. Take a glance. All unit tests (seem to) pass.

This will evolve before it becomes a reality, but I encourage you to unleash your imagination unto a world where WordPress' codecase resembles something globallessly lovely.

"	wonderboymusic		
Enhancements Awaiting Review	42958	create callers for loop functions to accept post id		General	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	51301	Add class field to wp_nonce_field		General	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	40852	Support Micropub		General	normal	feature request	new	2017-05-24T01:13:06Z	2020-09-09T01:30:15Z	"Micropub is now a W3C Recommendation.

https://www.w3.org/TR/micropub/ 

It is used to create, update and delete posts using third-party apps. 

Micropub uses OAuth 2.0 Bearer Tokens for authentication and uses traditional form posts as well as JSON posts, which is both simpler and more secure than an XMLRPC approach.

The REST API is specific to WordPress, whereas Micropub is platform agnostic, which has its advantages. "	dshanske		
Enhancements Awaiting Review	50400	Update Search Engine Visibility text following XML sitemap launch		General	normal	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		
Enhancements Awaiting Review	34778	A better indication of action happening on buttons.		General	normal	enhancement	new	2015-11-24T15:01:01Z	2020-03-16T18:34:19Z	"It's from UX point of view - every single action button that when clicked the page is being refreshed or loads another has no clear way of showing this. A quick example can be the site setup process.

When you click submit for example, a simple blue shadow appears that show that something is happening, but this blue shadow is not very obvious (on a blue button) and is very similar to ""focus"" outline as default behaviour for buttons. I personally suggest one of two options: 

One - gray out the button but still keep it clickable, that will show that the click has triggered something, but will also allow the user to click a second time which will deal with the case of having connection problems in the middle of request, where you can resend the settings once more without refreshing the whole page.

Two - same as before, but instead of making the button gray (or do) add small rotate dashicon to visually represent action.

The main reason i report this is because many times when i setup the site or work on the dashboard, clicking a button doesn't really show anything and i think for some reason i haven't clicked it or nothing is happening. Its purely for UX and to me it's not a small thing"	xavortm	4.3.1	ui/ux
Enhancements Awaiting Review	38223	Add indicators to off-site links in wp-admin		General	normal	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		
Enhancements Awaiting Review	49032	Introduce __return_value()		General	normal	feature request	new	2019-12-18T18:40:32Z	2019-12-18T19:25:11Z	"WordPress has, since quite long time, helper functions like `__return_true` and [[https://developer.wordpress.org/?s=__return_&post_type%5B%5D=wp-parser-function|others]].

These are useful to be added to filters.

Now that minimum PHP version is 5.6 we could have something like:

{{{#!php
<?php
function __return_value($value) {
    return static function () use ($value) {
        return $value;
    }
}

function __return_value_by_ref($value) {
    return static function () use (&$value) {
        return $value;
    }
}
}}}

which would quite useful in many places, at least as useful as the other mentioned functions that are already there."	giuseppe.mazzapica		
Enhancements Awaiting Review	40790	Ability to filter $post_type in _get_last_post_time		General	normal	enhancement	new	2017-05-17T15:30:09Z	2019-04-25T07:36:14Z	"This function starts on line 5610 of
https://github.com/WordPress/WordPress/blob/4.7.5/wp-includes/post.php

Currently, there is no way to filter the `$post_type` argument of the `_get_last_post_time` function.

This creates situations where it's impossible to filter/modify the default post type when `_get_last_post_time` is called without the `$post_type` argument.

Suggested enhancement is to add a `_get_last_post_time_post_type` filter inside the `_get_last_post_time` function, right after the `$field` is validated or the timezone gets lowercased.

Something like this...

 {{{#!php
$post_type = apply_filters( '_get_last_post_time_post_type', $post_type );
}}}

Thank you for considering this enhancement.
"	toddlevy	4.7.5	dev-feedback
Enhancements Awaiting Review	41249	"Improve the ""collapse menu"" interface"		General	normal	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		
Enhancements Awaiting Review	38618	wp_description() and description-tag		General	normal	feature request	new	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		dev-feedback
Enhancements Awaiting Review	46580	Is there a reason we add noopener noreferrer on all anchor tags with target=?		General	minor	enhancement	new	2019-03-20T22:20:45Z	2019-03-21T14:20:00Z	"{{{#!php
<?php
/**
 * Adds rel noreferrer and noopener to all HTML A elements that have a target.
 *
 * @param string $text Content that may contain HTML A elements.
 * @return string Converted content.
 */
function wp_targeted_link_rel( $text ) {
	// Don't run (more expensive) regex if no links with targets.
	if ( stripos( $text, 'target' ) !== false && stripos( $text, '<a ' ) !== false ) {
		$text = preg_replace_callback( '|<a\s([^>]*target\s*=[^>]*)>|i', 'wp_targeted_link_rel_callback', $text );
	}

	return $text;
}
}}}

I have run into an issue with a Gutenberg block failed to validate because target=""_self"" is getting rel=""noopener noreferrer"" added. Is there a reason we cannot put a strpos conditional for ""_blank"" or something similar?
"	heller_benjamin	5.1	
Enhancements Awaiting Review	39425	sending mails with e-sign certificate  feature request		General	normal	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	4.7	
Enhancements Awaiting Review	46394	Create a Function to Allow the WordPress Search to Only Return Results from a Specified Post Type		General	normal	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		
Enhancements Awaiting Review	46102	Documentation improvement		General	normal	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		
Enhancements Awaiting Review	43830	"Being able to set a page as a homepage under the ""Page Attribute"" meta box"		General	normal	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		
Enhancements Awaiting Review	40834	Introduce a JS module pattern to WordPress		General	normal	enhancement	new	2017-05-22T10:25:33Z	2018-09-04T13:49:44Z	"This is a discussion ticket proposing an approach for implementing module pattern in WordPress core JavaScript.

== Introduction to modules. ==

For anyone reading this and wanting to learn about JS modules, [https://twitter.com/iam_preethi Preethi Kasireddy] wrote an excellent two part introduction. You can find it here:
* Part 1: [https://medium.freecodecamp.com/javascript-modules-a-beginner-s-guide-783f7d7a5fcc about what modules are and why you should use them.]
* Part 2: [https://medium.freecodecamp.com/javascript-modules-part-2-module-bundling-5020383cf306 about module bundling and the different ways in which that can be done.]

== Goals ==

The higher level concerns that I based this on are:

* The need to modularize our JS in order to make it more maintainable, robust and reusable.
* (Backwards) compatibility with current state and {{{wp_register_script}}} / {{{wp_enqueue_script}}}.
* Great developer experience.
* Allowing core to take advantage of the rich npm ecosystem and current day ES standards.
* Lowering the barrier for the greater JS community to participate in WordPress.
* The benefit of aligning ourselves with [https://github.com/Automattic/wp-calypso Calypso] as much as possible.

== Module definition ==

Currently in core modules are only being used in the WP media library, which follows Common JS module definition, [https://core.trac.wordpress.org/ticket/28510 see modularization ticket]. I would however prefer to switch to ES6 module definition as this is where the JS world is moving and [https://caniuse.com/#feat=es6-module most browsers seem to be working on adding support] as well. Another thing to keep in mind is that Calypso is also using ES6 module imports.

I think it should be a priority for us to align with ES standards as much as possible, especially since transpilers like [https://github.com/babel/babel Babel] and different available polyfills have already solved all major browser compatibility problems for us. Embracing the latest (widely adopted) practices will also help open up WordPress as a project to the greater JavaScript community.

== Module bundler ==

The current bundler of choice is [http://browserify.org/ Browserify]. The other options are [https://github.com/webpack/webpack Webpack] and [https://rollupjs.org/ Rollup].

Webpack is currently the weapon of choice in most React projects. I think this is especially because the development experience is very enjoyable due to its hot reloading capabilities and its ability to only recompile the module that has been changed instead of rebuilding the entire build every time. This is especially great for developing single page apps. As developers we could take advantage of these features as well if we add some code that allows the scripts to come from a different server. This would also be very useful for production as I think it makes a lot of sense to serve our JS from a CDN in the future.

The React project itself has [https://github.com/facebook/react/pull/9327 recently switched from Browserify to Rollup]. By using a technique called [https://rollupjs.org/#tree-shaking tree shaking] it's able to dramatically reduce file size of the bundle. It's also possible to include as a [https://github.com/egoist/rollup-loader Webpack plugin] or [https://github.com/nolanlawson/rollupify Browserify transform].

Here's a [https://medium.com/@housecor/browserify-vs-webpack-b3d7ca08a0a9 good article comparing Browserify and Webpack].

I would prefer to switch to Webpack, especially if we can make the developer experience as smooth as not having to reload pages anymore to see changes directly reflected in the browser. The fact that Calypso is also using Webpack is also a big plus.

== How can we go about bundling the JavaScript in core? ==

Taking into account backwards compatibility, once a script has been registered in core, it can not be removed. Plugin and theme authors unregister / replace scripts or enqueue scripts that aren't enqueued by core on certain screens. Therefore I'd say we might have a bundled file for every script that is currently registered in core. Anything that is in a registered script can of course be extracted away into a separate module. This will give us a ton of freedom as modules can be rearranged without having to worry about bc.

== What are the implications on current API's? ==

Anything that needs to be on the global {{{wp}}} object could still be assigned to it. However, using modules should eventually lead to better composition. Modules that don't need to know about global API's shouldn't depend on them or assign themselves to global objects. I believe it's possible to configure Webpack to do these assignments for us. Of course it's always possible to do it in a separate file.

== Do we need to move everything into modules straight away? ==

No, modularizing code is typically something that can be gradually implemented. We just need to agree on the direction so we can build a roadmap and start implementing it. I do think we need to document our decisions well and make sure core is in sync with that. It will be highly beneficial to have good examples in the code itself of how things can be modularized. There might also be a few things which we simply don't want to modularize, like jQuery for instance, since jQuery needs to be globally available anyway for bc reasons. I am curious to see opinions about this since there could be architectural reasons to still do this.

== Do all modules we for core need to reside in core? ==

I would very much like all general purpose modules to be extracted to a separate package on which core depends. We are an open source project. If we can organize our code in a way that makes it more reusable for the greater community of developers, we should do so. Anything core specific should of course reside in core.

Using modules in core will also expose endless new possibilities in terms of depending on third party libraries / modules. This is another great opportunity if you ask me to build stronger ties with the greater JS community.
"	omarreiss		
Enhancements Awaiting Review	32639	A URL Agnostic Wordpress		General	normal	feature request	new	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		dev-feedback
Enhancements Awaiting Review	44425	Add WP_CACHE_KEY_SALT to WordPress.org secret-key service		General	normal	enhancement	new	2018-06-21T16:52:04Z	2018-06-22T17:32:41Z	"Currently, the WordPress.org secret-key service
    https://api.wordpress.org/secret-key/1.1/salt/

generates `AUTH_KEY`, `SECURE_AUTH_KEY`, `LOGGED_IN_KEY`, `NONCE_KEY`, `AUTH_SALT`, `SECURE_AUTH_SALT`, `LOGGED_IN_SALT` and `NONCE_SALT`.

It would be helpful if it also generated `WP_CACHE_KEY_SALT`. That way, people who install the object-cache.php drop-in would be less likely to experience unexpected behaviour.

See also:
https://github.com/Automattic/wp-memcached/issues/31"	paulschreiber		
Enhancements Awaiting Review	44407	Please add page_attributes_meta_box_parent action to meta-boxes.php		General	normal	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	4.9.6	
Enhancements Awaiting Review	44159	feature request: otption for removing save my name in comments		General	normal	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	4.9.6	
Enhancements Awaiting Review	44177	Enhance wp_debug_backtrace_summary() with the optional ability to include arguments		General	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	43884	new is_front() function		General	normal	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		
Enhancements Awaiting Review	43813	Meta API should set `last_changed` cache key internally		General	normal	enhancement	new	2018-04-19T19:06:49Z	2018-04-20T14:18:09Z	"See #40669, r41848, r41849.

Sorry, but I completely missed this work being done for the 4.9 release cycle.

I think the individual post/comment/term/user checks should be moved directly into the appropriate meta API function calls.

I can imagine 2 ways of doing this:

----

Add a `$cache_key` parameter to the following functions:

* `add_metadata()`
* `update_metadata()`
* `delete_metadata()`

When `$cache_key` is not empty, it will internally call:

`wp_cache_set( 'last_changed', microtime(), $cache_key );`

----

Infer the cache-key using `$meta_type` in the following function:

* `update_meta_cache()`

Then call:

`wp_cache_set( 'last_changed', microtime(), $meta_type . 's' );`

(We already use `$meta_type` to infer things like primary keys, so it's not great, but not new.

If we went this route, I believe we'd probably want to do a better job of priming meta-data caches the same way we prime primary object caches (users and posts specifically prime themselves on update, etc...)

cc @boonebgorges @spacedmonkey for consult & discussion"	johnjamesjacoby		
Enhancements Awaiting Review	43334	Include Post/Page status when restoring the previous revision		General	normal	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		
Enhancements Awaiting Review	43319	Bootstrap 4 Card issue in backend		General	normal	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	4.9.1	
Enhancements Awaiting Review	40280	Short-circuit filters can't return common values		General	normal	enhancement	new	2017-03-27T19:09:10Z	2017-12-08T21:47:40Z	"#37930 contemplates adding another short-circuit filter, `pre_option`. This follows a pattern that is already duplicated several times and even somewhat fragmented in its implementations.

The short-circuit filter pattern has this problem: the return value is overloaded. Its meaning is either ""nothing changed"" or ""this is the new value"" and there are collisions between these meanings in cases where you might want to short-circuit-return `false` or `null`, depending on which short-circuit filter is being used. One proposed improvement is to use only `null` as the value meaning ""nothing changed"", as this is less likely than `false` is to be a value in any short-circuit situation.

The pattern using `null` can be formalized in a new function that does not overload the return value. This is accomplished by returning multiple values, which we can do in PHP by reference passing. A simple implementation using `null` and a usage example:

{{{
function apply_filters_pre( $filter, &$value ) {
	$value = apply_filters( $filter, null );
	return !is_null( $value );
}

if ( apply_filters_pre( 'get_option_pre', $value ) ) {
	return $value;
}
}}}

(Other proposed function names include `if_apply_filters` and `apply_filters_short_circuit`.)

This centralizes the pattern and its documentation to a single core function, encapsulates the overloaded parameter as an implementation detail, and simplifies every existing and future call site. The diff would be net red. However, we are still unable to return `null` from a short-circuit position, which becomes a plausible use case if we enshrine this pattern in a core function. The collision space can be minimized by using a special type used nowhere else:

{{{
class WP_Unfiltered_Value {}

function apply_filters_pre( $filter, &$value ) {
	$value = apply_filters( $filter, new WP_Unfiltered_Value );
	return !is_object( $value ) || !is_a( $value, 'WP_Unfiltered_Value' );
}
}}}"	andy	4.8	has-patch
Enhancements Awaiting Review	36034	Change post name permalinks to use ID when inserting links		General	normal	enhancement	new	2016-03-01T21:34:02Z	2017-06-28T14:31:41Z	"When using the visual editor, and your permalink setting is postname, the default behavior when adding an internal link is that the href attribute points to the slug. For example, if I add a link to a page with the permalink/slug of ""my-page"" the HTML link will be created as `<a href=""http://example.com/my-page/>my page</a>`.

This is fine until the slug of the target page (`my-page`) changes. Since WordPress doesn't do any checking when a slug is changed to see if there are any links pointing to it, the link is now dead. I propose that when adding links in the visual editor, that they be added based on the ID of the target, not the slug. This would prevent links from breaking whenever a slug was changed, and not affect the use of the post name in the URL. Even following ID-based links return the prettier post name version in the URL.

The code change is already available as a plugin or addition to functions.php from http://wordpress.stackexchange.com/questions/156032/how-can-i-store-page-id-in-a-post-instead-of-other-selected-permalink:


{{{
function wp_link_query_mod ( $results ){
    if( count( $results ) ){
        for( $i=0; $i<count($results); $i++ ){
            $results[$i]['permalink'] = wp_get_shortlink( $results[$i]['ID'] );
        }
    }
    return $results;
}
add_filter('wp_link_query', 'wp_link_query_mod');
}}}
"	catchmyfame		
Enhancements Awaiting Review	32071	Function to generate safe & trusted URLs		General	normal	enhancement	new	2015-04-22T21:05:18Z	2017-06-13T22:04:26Z	"Recent developments around plugins and themes misusing `add_query_arg()` and `remove_query_arg()` got me to thinking about how WordPress has a responsibility to make generating safe and reliable URLs as easy as possible.

I'm proposing we introduce a new helper function that all URLs in core would be switched over to use, to lead by example and completely eliminate any margin for errors when it comes to the order of operations of manipulating URLs and outputting them to the browser.

Patch imminent."	johnjamesjacoby		has-patch
Enhancements Awaiting Review	40791	paginate_links outputs unnecessary dots		General	normal	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	4.7.5	
Enhancements Awaiting Review	40751	Login form - Consider making Back to {site name} & Lost your password inline.		General	normal	enhancement	new	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	4.7.4	has-patch
Enhancements Awaiting Review	37307	Indicate non-GPL plugins and themes for users		General	normal	enhancement	new	2016-07-07T14:57:55Z	2017-05-03T10:41:46Z	"There are a lot of WordPress plugins in circulation that ship with a non-GPL compatible license. 

The wordpress.org plugin repository, of course, only contains plugins that ship with the GPL license, and we are all well aware that all WordPress plugins are considered derivatives and should thusly be licensed under the GPL. This does not remove the fact that not everyone agrees with this, and still vendors insist on shipping with proprietary software licenses.

For the regular WordPress user installing plugins from outside of the wordpress.org plugin repository, there is practically no way to differentiate a plugin that ships with the GPL license, and a plugin vendor that chooses to ship with a proprietary license. 

The readme.txt already always contains the license field, but currently the licenses aren't shown anywhere in the plugins.php UI.

I propose we add a license indicator in the plugins.php UI. This would help the user make better choices by choosing to use plugins that ship with a free software license. 

It would also be useful to somehow also explain (e.g. in a tooltip perhaps) what it means that a plugin author has decided to ship their plugin with a non-GPL license.

I would love discussion on how the license field could be indicated in plugins.php. 

Ideas:
- Part of the Shiny Updates feature?
- Should clearly indicate when a plugin is NOT using a GPL compatible license
- Colour coding different licenses
- A tooltip that would explain the use of GPL vs. proprietary licenses

Related: #29820"	Zuige	4.4.3	
Enhancements Awaiting Review	39795	WordPress objects are only accessible via global variables		General	normal	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	4.8	
Reporter Feedback / Close	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	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	65921	get_test_opcode_cache() does not detect OPcache file cache		General	normal	defect (bug)	new	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		close
Reporter Feedback / Close	62722	Fix all ABSPATH direct access errors		General	normal	defect (bug)	new	2024-12-20T12:06:32Z	2026-08-20T11:08:04Z	"We host WooCommerce.com, and our logs are flooded with ABSPATH errors due to possibly bots accessing random URLs.

I see that this was already reported in #61314, #61286, #61277, #61912, #55936. The aim of this ticket is to resolve all ""undefined ABSPATH"" related issues.

Here is the easiest way to get all ABSPATH issues:


{{{
$ wp core download
Downloading WordPress 6.7.1 (en_US)...
md5 hash verified: fae7bae13a158496ab884b6cdb0c5c03
Success: WordPress downloaded.
$ wp config create --dbname=wordpress --dbuser=root
Success: Generated 'wp-config.php' file.
$ wp db create
Success: Database created.
$ wp core install --url=localhost:8080 --title=""WordPress"" --admin_user=bor0 --admin_password=asdf --admin_email=boro.sitnikovski@automattic.com
Success: WordPress installed successfully.
$ > ~/dev/log/error_log # empty error log
$ find . -name '*.php' | sed 's|^\./||' | xargs -I {} echo ""http://localhost:8080/{}"" > urls.txt # generate urls
$ xargs -P 10 -n 1 curl -s -o /dev/null < urls.txt # visit each url
$ grep ABSPATH ~/dev/log/error_log | grep -o '/[^ ]*.php' | uniq
/opt/homebrew/var/www/wp-settings.php
/opt/homebrew/var/www/wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php
/opt/homebrew/var/www/wp-admin/includes/class-wp-upgrader.php
/opt/homebrew/var/www/wp-admin/includes/nav-menu.php
/opt/homebrew/var/www/wp-admin/includes/class-wp-privacy-data-removal-requests-list-table.php
/opt/homebrew/var/www/wp-admin/includes/template.php
/opt/homebrew/var/www/wp-includes/functions.php
/opt/homebrew/var/www/wp-includes/blocks/require-dynamic-blocks.php
/opt/homebrew/var/www/wp-includes/class-wp-customize-setting.php
/opt/homebrew/var/www/wp-includes/class-wp-customize-panel.php
/opt/homebrew/var/www/wp-includes/class-simplepie.php
/opt/homebrew/var/www/wp-includes/cache.php
/opt/homebrew/var/www/wp-includes/class-IXR.php
/opt/homebrew/var/www/wp-includes/meta.php
/opt/homebrew/var/www/wp-includes/ms-blogs.php
/opt/homebrew/var/www/wp-includes/Requests/library/Requests.php
/opt/homebrew/var/www/wp-includes/wp-diff.php
/opt/homebrew/var/www/wp-includes/class-wp-customize-section.php
/opt/homebrew/var/www/wp-includes/class-wp-customize-control.php
/opt/homebrew/var/www/wp-includes/nav-menu-template.php
/opt/homebrew/var/www/wp-includes/default-widgets.php
/opt/homebrew/var/www/wp-includes/class-wp-http.php
/opt/homebrew/var/www/wp-includes/ms-settings.php
/opt/homebrew/var/www/wp-includes/script-loader.php
}}}

Props @raicem
"	bor0		close
Reporter Feedback / Close	48497	"If preformatted block contains ""<script>"" tag page would not save"		General	normal	defect (bug)	new	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	5.2.4	close
Reporter Feedback / Close	59052	Deprecated:  html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in wp-includes/widgets.php on line 1626		General	normal	defect (bug)	new	2023-08-10T15:55:11Z	2026-07-30T11:38:49Z	"Since the change to PHP 8.1 (from 8, WP 6.3 is now running, I get once a day, only while opening the dashboard this Warnings (repeating twice):

    
{{{
""PHP Deprecated:  html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in /homepages/xxx/wp-includes/widgets.php on line 1626""
}}}


Only once day I'm logged in. After reloading or new login on the same day, the Warning doesn't show up.
This happens on three different Installations.
On one Installation I deactivated all Plugins and changed the theme to fresh Twenty Twenty Two.

But still once a day the warning just after first login.

The Cron-Jobs running, are only from WP, see below.

Searched Google about this warning, I got no result about this warning in releation with ""html_entity_decode()"" & ""wp-includes/widgets.php on line 1626""

So, I'm not sure this is a known bug in WP Core onto PHP 8.1

Any suggestion would be welcome.


the Cron-Jobs running
""wp_privacy_delete_old_export_files,wp_privacy_delete_old_export_files(),""""once every hour""""
""recovery_mode_clean_expired_keys,WP_Recovery_Mode->clean_expired_keys(),""""once a day""""
""wp_https_detection,wp_update_https_detection_errors(),""""twice a day""""
""wp_version_check,wp_version_check(),""""twice a day""""
""wp_update_plugins,wp_update_plugins(),""""twice a day""""
""wp_update_themes,wp_update_themes(),""""twice a day""""
""wp_scheduled_delete,wp_scheduled_delete(),""""once a day""""
""delete_expired_transients,delete_expired_transients(),""""once a day""""
""wp_scheduled_auto_draft_delete,wp_delete_auto_drafts(),""""once a day""""
""wp_update_user_counts,wp_schedule_update_user_counts(),""""twice a day""""
""wp_site_health_scheduled_check,WP_Site_Health->wp_cron_scheduled_check(),""""once weekly""""
""wp_delete_temp_updater_backups,2023-08-16 16:33:02 6 Tage, wp_delete_all_temp_backups(),""""once weekly""""
publish_future_post,[7],2040-09-03 03:02:56 17 Jahre, check_and_publish_future_post(),one-shot,0"	treibstoff	6.3	reporter-feedback
Reporter Feedback / Close	65681	using wp_is_mobile() with wp_head() does not allow insertion of tags		General	trivial	defect (bug)	new	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	7.0.2	close
Reporter Feedback / Close	55636	Drag and drop video's go to the top of the page.		General	normal	defect (bug)	new	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	5.9.3	reporter-feedback
Reporter Feedback / Close	65364	Can't add an external link after updating to WP 7		General	normal	defect (bug)	new	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	7.0	reporter-feedback
Reporter Feedback / Close	65321	Global --wp--style--border--color Variable Applies Unwanted border-style: solid to Cover Block Background Span		General	major	defect (bug)	new	2026-05-22T09:39:33Z	2026-05-27T06:01:54Z	"The global styles output is applying a default `border-style: solid` rule to the Cover block background element even when no border is defined.

As shown in the screenshot, the following element receives the style:
{{{
<span aria-hidden=""true""
	class=""wp-block-cover__background has-accent-2-background-color has-background-dim-100 has-background-dim"">
</span>
}}}
Because `border-style: solid` is applied globally, browsers render an unwanted border even when only the border color variable exists.

Steps to Reproduce:

- Create a page with a Cover block.
- Apply a background color or dim overlay.
- Do not set any border manually.
- Inspect the `.wp-block-cover__background` element.
- Notice inherited/global `border-style: solid` causing visible border rendering."	vijaysinh9094	7.0	reporter-feedback
Reporter Feedback / Close	65327	WP 7 returns a 403 error when attempting to open a Formidable Forms entry in a new tab		General	major	defect (bug)	assigned	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	7.0	reporter-feedback
Reporter Feedback / Close	65295	Checksum error when trying to upgrade from 6.9.4 to 7.0 with fr_FR package		General	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	65284	Connectors page showing rounded corners		General	normal	defect (bug)	closed	2026-05-20T19:21:43Z	2026-05-21T18:00:06Z	Visiting the connectors page /wp-admin/options-connectors.php shows rounded corners. The rounded corners also get weirdly stuck when scrolling. It looks like it may be incomplete?	nvkc	7.0	close
Reporter Feedback / Close	64663	LiteSpeed server type		General	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	65059	Modal overlapping the content editor		General	normal	defect (bug)	new	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	7.0	reporter-feedback
Reporter Feedback / Close	65084	Update error message for disallowed username characters		General	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	64993	Input Fields Size Styling Issue		General	normal	defect (bug)	new	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		close
Reporter Feedback / Close	53262	"wp_robots() (via wp_die) triggers a ""doing_it_wrong_trigger_error"", but should not."		General	minor	defect (bug)	new	2021-05-23T21:43:29Z	2026-02-02T17:54:17Z	"Hello there.

In my plugin, I need to die early, like, right after the plugins are loaded, imagine this for a shortcut:
`add_action( 'plugins_loaded', 'wp_die' );`
This is the output:
''Notice: 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 /wp-includes/functions.php on line 5313''
{{{
#	Time	Memory	Function				Location
1	0.0002	369912	{main}( )				.../admin.php:0
2	0.0003	370552	require_once( '/wp-load.php' )		.../admin.php:34
3	0.0003	370960	require_once( '/wp-config.php' )	.../wp-load.php:37
4	0.0003	375568	require_once( '/wp-settings.php' )	.../wp-config.php:88
5	0.0410	1735152	do_action( )				.../wp-settings.php:423
6	0.0411	1735528	WP_Hook->do_action( )			.../plugin.php:484
7	0.0411	1735528	WP_Hook->apply_filters( )		.../class-wp-hook.php:316
8	0.0882	3856336	wp_die( )				.../class-wp-hook.php:292
9	0.0882	3874480	_default_wp_die_handler( )		.../common.php:275
10	0.0884	3876304	wp_robots( )				.../functions.php:3497
11	0.0884	3876304	apply_filters( )			.../robots-template.php:32
12	0.0884	3876712	WP_Hook->apply_filters( )		.../plugin.php:212
13	0.0884	3878216	wp_robots_noindex_embeds( )		.../class-wp-hook.php:292
14	0.0884	3878216	is_embed( )				.../robots-template.php:93
15	0.0884	3878216	_doing_it_wrong( )			.../query.php:881
16	0.0885	3879304	trigger_error ( )			.../functions.php:5313
}}}
another notice will be trigger, same thing but line 13 will be `wp_robots_noindex_search`.

Since WP 5.7 the `wp_robots()` function is called in a `wp_die()`, but `wp_die()` can be called before the query is done, this is not too soon to die ''(for once, got it?)''.

A possible patch is to delay these default filters a bit later ''(wp-includes/default-filters.php)'' instead of adding them right away:
{{{
add_action( 'wp', 'wp_late_robots_check' );
function wp_late_robots_check() {
	add_filter( 'wp_robots', 'wp_robots_noindex_embeds' );
	add_filter( 'wp_robots', 'wp_robots_noindex_search' );
}
}}}


Thanks for your attention."	juliobox	5.7	dev-feedback
Reporter Feedback / Close	58015	Text over images not readable in Block: Cover Post		General	normal	defect (bug)	new	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	6.2	reporter-feedback
Reporter Feedback / Close	64386	when I try to click anywhere it keeps clocking and timing out		General	normal	defect (bug)	new	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	6.9	reporter-feedback
Reporter Feedback / Close	64365	Support for Videos and Galleries as Post Thumbnails (Featured Media)		General	normal	feature request	new	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		close
Reporter Feedback / Close	64182	Critical Regression in WordPress 6.8+ Causing WooCommerce Cart Session Loss for Guest Users		General	blocker	defect (bug)	new	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	6.8.3	close
Reporter Feedback / Close	39543	Certain Strings When Pasted Into Title Bar Cause Loss of Styling		General	normal	defect (bug)	new	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	4.7	close
Reporter Feedback / Close	45960	plugin_basename() fails on windows path		General	normal	defect (bug)	new	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		close
Reporter Feedback / Close	57494	An error is coming for data table as Apex Action error: Unable to read SObject		General	normal	defect (bug)	new	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		close
Reporter Feedback / Close	42167	Reading -> Static Page - domain/page/1111 duplicates home page		General	normal	defect (bug)	new	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	4.8.2	close
Reporter Feedback / Close	63922	FontSizePicker incorrectly measures units for selecting elements		General	normal	defect (bug)	new	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	6.8.2	reporter-feedback
Reporter Feedback / Close	63929	WordPress sitemap not indexing correctly when custom post types are used		General	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	63959	WP cron job issue in a custom plugin		General	normal	defect (bug)	new	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		close
Reporter Feedback / Close	63757	The crop function doesn't work with ai generated PNG		General	normal	defect (bug)	new	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	6.8.2	reporter-feedback
Reporter Feedback / Close	63730	get_blogs_of_user running on single install and crashes		General	normal	defect (bug)	new	2025-07-21T12:05:26Z	2025-07-26T08:05:28Z	"Query Monitor crashes on 6.8.2, but works on 6.7.1

pinpointed to get_blogs_of_user() 

I get this messge: [⚠️ WARNING] Blog object has empty blog_id.
Flsh install, no plugins active except query-monitor.

{{{#!php
<?php
add_action('init', function() {
    if ( ! is_admin() || ! current_user_can('administrator') ) return;

    $user_id = get_current_user_id();

    error_log(""[DEBUG] Testing get_blogs_of_user() for user_id $user_id"");

    try {
        $blogs = get_blogs_of_user($user_id);

        // If we get this far, log the result
        error_log(""[DEBUG] get_blogs_of_user() returned: "" . print_r($blogs, true));

        // Extra: Check for empty meta key access
        foreach ( $blogs as $blog ) {
            if ( empty($blog->blog_id) ) {
                error_log(""[⚠️ WARNING] Blog object has empty blog_id: "" . print_r($blog, true));
            }
        }
    } catch (Throwable $e) {
        error_log(""[ERROR] Exception from get_blogs_of_user(): "" . $e->getMessage());
    }
});
}}}

Since your trace ends in a call to abs() → absint() → get_metadata_raw(), that means a non-numeric value is being passed to abs(), likely from malformed metadata.


If one of those keys is non-numeric or weirdly cast, it triggers:


absint( $meta_id ) → abs( $non_number ) → Fatal error
So the error isn't from a specific meta key, but from calling get_metadata() with an empty key, which causes WordPress to do something unsafe under certain plugin/plugin-free conditions."	Keffr3n	6.8.2	reporter-feedback
Reporter Feedback / Close	57176	Table pagination issue		General	normal	enhancement	new	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	6.1.1	close
Reporter Feedback / Close	59678	problem with update		General	critical	defect (bug)	new	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	6.3.2	reporter-feedback
Reporter Feedback / Close	57246	Duotone SVG function does not check for CSS variable color format		General	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	53868	Add option to `paginate_links` to apply format on all pages		General	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	62974	Add a Checkbox to Enable/Disable Author Page Indexing in WordPress Core Setting		General	normal	feature request	new	2025-02-17T04:56:21Z	2025-02-17T08:47:22Z	"Currently, WordPress does not provide a built-in option to control the indexing of Author pages. Many users prefer not to index developer or site designer names.

Feature Request:
- Add a checkbox under ""Settings > Reading"" (or ""Users > Profile"") to enable or disable indexing of Author archive pages.
- Default should be ""Indexed"" (checked), but users can disable indexing if needed.
- This will prevent the need for custom code or SEO plugins.

This feature will help users control author page indexing without relying on third-party SEO plugins."	mahdiali		close
Reporter Feedback / Close	54192	`get_header_image_tag` doesn't add `srcset`/`sizes`		General	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	62675	register new pattern catogory possible docs bug		General	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	62620	Cursor mouse disappear on WordPress since 6.7.1		General	minor	defect (bug)	new	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	6.7.1	reporter-feedback
Reporter Feedback / Close	62554	Front/Home page showing Date and URL on Search Engines now? This is a no-no for SEO		General	normal	defect (bug)	new	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	6.6	reporter-feedback
Reporter Feedback / Close	62490	doing_action wrong in shutdown		General	minor	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	58050	A beacon api for WordPress		General	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	61984	Favicon • multiple of 48x48 and not 512x512 as WP suggests		General	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	61722	JS Error when mouving mouse on pattern archive		General	minor	defect (bug)	new	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	6.6	reporter-feedback
Reporter Feedback / Close	52358	unable to update the price and stock in woocommerce after update		General	major	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	61226	Can't open add new posts page		General	normal	defect (bug)	new	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	6.5.3	reporter-feedback
Reporter Feedback / Close	61713	— no role for this site —		General	normal	defect (bug)	assigned	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	6.5.5	reporter-feedback
Reporter Feedback / Close	61202	Gallery Block Columns Broken		General	normal	defect (bug)	new	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	6.2.2	reporter-feedback
Reporter Feedback / Close	61191	all of my wordpress sites that just updated are missing photos		General	normal	defect (bug)	new	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	6.5.3	reporter-feedback
Reporter Feedback / Close	61015	Having Inline SVG breaks the site		General	normal	defect (bug)	new	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	6.5	reporter-feedback
Reporter Feedback / Close	60735	Problem: Updating failed. The response is not a valid JSON response		General	normal	defect (bug)	new	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	6.4.3	reporter-feedback
Reporter Feedback / Close	60003	PHP error in wp_match_mime_types()	pbearne	General	normal	defect (bug)	assigned	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	6.4	reporter-feedback
Reporter Feedback / Close	59606	move posts per hand in archive		General	normal	feature request	new	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		reporter-feedback
Reporter Feedback / Close	59427	Need to updated image-edit.php file code for Crop.		General	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	58884	"The image size for the Site Logo block is hard coded to ""full"""	audrasjb*	General	normal	enhancement	accepted	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		close
Reporter Feedback / Close	58927	Set featured image missing		General	major	defect (bug)	reopened	2023-07-28T07:13:02Z	2023-08-24T22:53:05Z	"Latest version 6.2.2, php version 8.1
Why it happens - unknown
Happens even if all plugins deactivated, changed theme
Expected set featured image button, this section is missing
Theme support added to the functions.php, but this happens with all twenty themes as well
Server information below

Set featured image is missing, cannot set featured image. Tried all browsers, disabling all plugins, changing theme. Only installing ""disable gutenberg"" plugin helps and ""set featured image"" back again.

Fresh install.
Also this happens with other older websites (v6.1.1)

On some websites it works fine, but there is slight delay before it appears. 


cPanel Version	110.0 (build 7)
Apache Version	2.4.57
MySQL Version	10.3.38-MariaDB-log-cll-lve
Architecture	x86_64
Operating System	linux
Path to Sendmail	/usr/sbin/sendmail
Path to Perl	/usr/bin/perl
Perl Version	5.16.3
Kernel Version	3.10.0-962.3.2.lve1.5.80.el7.x86_64"	ernasx	6.2.2	close
Reporter Feedback / Close	58967	Shortcode block text is not visible		General	normal	defect (bug)	new	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	6.2.2	reporter-feedback
Reporter Feedback / Close	58501	Need to change in docs comment in xmlrpc.php		General	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	58438	Site not Working post Software updates		General	critical	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	58188	is_user_logged_in can cause null pointer exception		General	normal	defect (bug)	new	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	2.0.3	reporter-feedback
Reporter Feedback / Close	57273	Fatal error not trapped in do_action()		General	normal	defect (bug)	new	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	6.1.1	reporter-feedback
Reporter Feedback / Close	56905	css media query issue		General	trivial	defect (bug)	new	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	6.0.3	reporter-feedback
Reporter Feedback / Close	56495	For multi site, The emial content used with sprint and filter wpmu_signup_user_notification_email		General	normal	defect (bug)	assigned	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	6.0.2	reporter-feedback
Reporter Feedback / Close	55043	FSE Classic Block Issue		General	normal	defect (bug)	new	2022-02-02T08:57:22Z	2022-02-05T14:15:46Z	"I was checking FSE and available blocks! Trying to check Classic Block and got an error 

{{{
TypeError: Cannot read properties of undefined (reading 'tinymce')
}}}

Maybe Tinymce is not working somehow or needs to enqueue properly!


[[Image(https://i.ibb.co/sjGDCTH/SCR-20220202-kp1.png)]]


"	mhimon	5.9	reporter-feedback
Reporter Feedback / Close	54182	Use wp_unslash() for $_REQUEST Parameter in wp-admin/admin-post.php file		General	normal	enhancement	new	2021-09-25T11:13:03Z	2021-09-30T20:56:30Z	Need to use the `wp_unslash()` for `$_REQUEST['action']`, you can see screenshot.	yagniksangani	5.8.1	reporter-feedback
Reporter Feedback / Close	54179	Raw JS is prematurely ended with a </script> tag when HTML tags are present within JS strings.		General	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	53743	Double <title> Tag with SEO Plugins in WordPress 5.8		General	major	defect (bug)	new	2021-07-22T15:28:08Z	2021-07-22T17:08:18Z	"Hello,

I updated to WordPress 5.8 and am using RankMath. However I noticed there are two viewport tags as well two <title> tags. I guess the code in `wp-includes/block-template.php:86-88` has something to do with it. I would very like to get rid of the second <title> tag not belonging to the seo plugin.

I am also using the Oxygen Builder (3.8.1) if that helps.

"	katsar0v		reporter-feedback
Reporter Feedback / Close	52397	The function wp_is_mobile should accept also lower case strings as user agents		General	normal	enhancement	new	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	3.4	reporter-feedback
Reporter Feedback / Close	51746	Add a core wrapper function to retrieve $wp->request		General	normal	feature request	new	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		reporter-feedback
Reporter Feedback / Close	42000	Mac Keyboard text shortcuts no longer work		General	normal	defect (bug)	new	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	4.8.2	reporter-feedback
Reporter Feedback / Close	34567	Improve HTML5 support in frontend		General	normal	enhancement	new	2015-11-03T11:52:42Z	2020-09-04T14:28:15Z	"With this ticket I'd like to discuss about HTML5 support in WordPress. While theme authors are able to add support for HTML5, only some parts of WordPress respond to that appropriately. We have several components (like gallery, search form etc) which can be printed in HTML5 if needed, but then there are lots of other areas which are not printed in valid HTML5.

I would like to know if there is any particular reason that this has not been improved yet or if it's simply something that no one has taken a deeper look into yet.

Some areas that could be improved are:
* the `checked()`, `selected()` and `disabled()` functions (boolean attributes don't need values)
* link, style and script tags in `WP_Styles` and `WP_Scripts` (type attributes not needed, CDATA not needed, link tags shouldn't have a self-closing slash at the end)
* meta and link tags hooked into `wp_head` (no self-closing slash)
* all img tags generated (no self-closing slash)

The above are probably just a fraction of what could be adjusted. I've always used some custom mu-plugin to address this issue and have valid HTML5 in more locations, but it would be great if Core supported it out-of-the-box.

Of course all HTML code should only be changed if the theme has declared `'html5'` support. An important thing to think of here would be whether small things like those above actually need to exist as individual arguments in `add_theme_support( 'html5', $arguments )` or if simply adding general support for HTML5 is enough to adjust them.

I'd be glad to work on this enhancement if it was approved for core."	flixos90		close
Reporter Feedback / Close	43742	Add $_wp_admin_css_colors variable to front-end		General	normal	enhancement	new	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	3.0	reporter-feedback
Reporter Feedback / Close	33936	Alignment issue in dashboard update count		General	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	46155	Responsive images (srcset) not working on cropped files.	joemcgill	General	major	defect (bug)	assigned	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		reporter-feedback
Defects Awaiting Review	65214	Refine the help text wording for backend editor		Help/About	normal	defect (bug)	reopened	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	3.3	has-patch
Enhancements Awaiting Review	66378	Help/About: Note why the About page version stays hardcoded		Help/About	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	62650	WordPress 6.8 add a horizontal rule credits page after external libraries		Help/About	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	33993	Add Links for additional props on about.php after updating.		Help/About	normal	enhancement	new	2015-09-24T16:19:33Z	2024-03-27T21:00:06Z	"Upon updating WordPress, a user is presented with the ""Welcome to WordPress X.X"" or the about.php page that has tabs that also link to the credits.php page and the freedoms.php page.  I recently started following development in Slack.  Reading new tickets, watching committed tickets and I've been really amazed by all of the hard work that goes into the project.  I've been sucked into reading trac tickets and comments and looking at the various patches etc and I'm NOT a coder.  I do however run the monthly meetup in my city and I do my best to teach from the middle and share what I learn and what features developers need to be made aware of.  That said, the average person isn't following along in Slack and they have no idea how many tickets have been impacted in a release, how many lines of code were added, how many were deleted, how many new files were created for organization...

I propose that the about.php add an addition tab that has a ""Project Progress"" tab that will then link to the https://core.trac.wordpress.org/ticketgraph showing how many tickets were recently closed and how many are still outstanding.  How many lines of code were actually impacted by being added and deleted, etc.  A lot of times I tell my Meetup attendees that there was ""a ton of things done under the hood"" that made the code base better/faster/etc.  But having numbers I think would help people really get a feel for the progress that is made during a release.

I'd also think it would be neat if trac can give up the info on the ticket that was oldest that was closed during the release.  Just today I saw something that was 6 years old that was closed.  That is pretty cool to see, and a few days ago I saw something that was submitted and then committed all within 2 hours it seemed like.  What is the fastest ticket closed.  Some of those stats would be nice to see ESPECIALLY on releases that don't have a whizbang feature plugin being merged into them.

PS - Thanks to everyone who works tirelessly to make the project better."	scotthack		
Enhancements Awaiting Review	60123	Suggestion for Update text From Privacy to Privacy Policy		Help/About	normal	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	4.9	
Enhancements Awaiting Review	58354	Translate screenshots for the About page		Help/About	normal	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		
Enhancements Awaiting Review	57877	Open About page automatically when the Admin user is opening Dashboard first time after update		Help/About	normal	enhancement	new	2023-03-07T06:11:44Z	2023-03-29T20:14:03Z	"With automatic updates, there will be fewer and fewer people who are visiting About page and still this is the first choose media for us to communicate with users, extenders and developers. A banner on the dashboard requires clicking on it to go and browser About page content. By opening About page one time for each user automatically the first time the user is entering the Dashboard after update, it can help to get the attention of an audience more fully. This flag ""Should the About page be opened or not"" needs to be kept in user's meta because, for example, in case of The Block Editor it's a bit annoying when you are opening The Editor from another browser and have an introductory helper again."	oglekler		
Reporter Feedback / Close	24567	Add help to media modals		Help/About	normal	enhancement	new	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	3.5	close
Defects Awaiting Review	62270	Unable to set bookmark on </body> in WP_HTML_Processor		HTML API	normal	defect (bug)	new	2024-10-21T23:36:18Z	2025-01-31T19:04:06Z	"In the Optimization Detective plugin from the WordPress Core Performance Team, the HTML Tag Processor is currently used to locate the closing `</body>` tag, [https://github.com/WordPress/performance/blob/e95df5fda18a55c7d11c34a23120301272b3b383/plugins/optimization-detective/class-od-html-tag-processor.php#L344-L345 set a bookmark] on it, and then [https://github.com/WordPress/performance/blob/e95df5fda18a55c7d11c34a23120301272b3b383/plugins/optimization-detective/class-od-html-tag-processor.php#L593-L618 inject] [https://github.com/WordPress/performance/blob/e95df5fda18a55c7d11c34a23120301272b3b383/plugins/optimization-detective/class-od-html-tag-processor.php#L567-L569 pending markup] at that point when `get_updated_html()` is called after the document has been iterated over.

This works well with `WP_HTML_Tag_Processor`, but it does not work with `WP_HTML_Processor` because when the processor is located at `</body>` the parser state gets set to `STATE_COMPLETE` and then `set_bookmark()` short-circuits returning `false`. It doesn't seem that `STATE_COMPLETE` should be reached until the end of the document is reached."	westonruter	6.4	
Enhancements Awaiting Review	50867	An API which encourages automatic escaping of HTML		HTML API	normal	enhancement	new	2020-08-06T07:03:09Z	2026-04-30T15:30:28Z	"It's common in WordPress to write PHP code that assembles a large bit of HTML using conditional logic. A good example of this is [https://github.com/WordPress/gutenberg/blob/master/packages/block-library/src/navigation-link/index.php#L106 render_block_core_navigation_link]. Unfortunately this type of code can become difficult to read and error prone. For example, we've had several reported XSS vulnerabilities in code like this.

How do we feel about adding an API for **safely** building large bits of HTML?

Attached is a patch which implements an API inspired by `createElement` in `@wordpress/element` and the external `classnames` JavaScript library.

The primary interface is `wp_el`. It takes three arguments: an HTML tag name, an array of HTML attributes, and an array of child elements. You can nest calls to `wp_el` within each other to cleanly create deeply nested HTML.

{{{#!php
<?php
echo wp_el(
	'figure',
	array( 'class' => 'my-image' ),
	array(
		wp_el( 'img', array( 'src' => 'https://pbs.twimg.com/media/Ed_W9VQXkAAtYQY?format=jpg&name=medium' ) ),
		wp_el(
			'figcaption',
			null,
			'A cold refreshing glass of pilk'
		),
	)
);
}}}

{{{
<figure class=""my-image""><img src=""https://pbs.twimg.com/media/Ed_W9VQXkAAtYQY?format=jpg&amp;name=medium"" /><figcaption>A cold refreshing glass of pilk</figcaption></figure>
}}}

Optional arguments and automatic handling of non associative array values can be used to make usage quite succinct.

{{{#!php
<?php
echo wp_el( 'hr' );
echo wp_el( 'input', 'required' );
}}}

{{{
<hr /><input required />
}}}

**The key design detail is that all strings are automatically escaped**. If you want to output unescaped HTML you have to do it explicitly.

{{{#!php
<?php
echo wp_el(
	'article',
	null,
	wp_dangerous_html( '<marquee>Unescaped HTML</marquee>' )
);
}}}

{{{
<article><marquee>Unescaped HTML</marquee></article>
}}}

Lastly, `wp_classnames` provides a convenient way to assemble HTML `class` attributes.

{{{#!php
<?php
echo wp_el(
	'li',
	array(
		'class' => wp_classnames(
			array(
				'my-link',
				'is-current' => $post->ID === $id,
			)
		),
	),
	array(
		wp_el(
			'a',
			array(
				'href' => $post->guid,
			),
			$post->post_name
		),
	)
);
}}}

{{{
<li class=""my-link""><a href=""http://localhost:8888/?p=215"">navigation-stored-in-old-way</a></li>
}}}

Thoughts? Are there alternative approaches common in the PHP ecosystem? Does such an API belong in Core? What other approaches can we take to prevent unescaped strings from being output?"	noisysocks		needs-unit-tests
Enhancements Awaiting Review	59883	Remove support for HTML4 and XHTML		HTML API	normal	enhancement	new	2023-11-10T19:20:48Z	2026-03-05T18:11:32Z	"== Summary

WordPress still officially supports HTML4 and XHTML, but the browsers it serves and the broader web effectively don't. Let's remove support so that we can modernize the code we write and simplify Core's HTML-handling functionality.

== Background

This came up recently in #58664 and in an exploration [https://github.com/WordPress/wordpress-develop/pull/5337 rewriting esc_attr()].

In various places WordPress maintains the appearance of supporting HTML4, for example:

- `wp_kses_named_entities()` rejects valid named character references like `&DownArrowUpArrow;` and in turn corrupts documents containing these entities.
- script and style tags conditionally add `type` attributes that never need to be printed
- widgets selectively render `<nav>` and strip tags out of the `$title` for a page when TITLE elements can contain no tags anyway. This leads to corruption in the page title for removing what WordPress thinks are tags but aren't.
- various places run `kses` as if serving XHTML, adding needless invalid syntax like the self-closing flag on void elements, e.g. `<img />`, `<br />`, `<meta />`

The //appearance// of serving HTML4 or XHTML stems from the fact that it's very rare to serve actual XHTML content, and perhaps impossible to serve HTML4 content, to any supported browser or environment.

- browsers ignore any `<xml>` or `<!DOCTYPE>` declaration specifying HTML4 or XHTML. They interpret a page as HTML5 regardless. You can confirm this by visiting a page with the `&lang;` named character reference. If interpreted as HTML4 it will transform into the U+2329 `〈` code point, but if interpreted as HTML5 will transform into the U+27E8 codepoint `⟨`.
- the only way to serve a page as XHTML is to send the HTTP header `Content-type: application/xhtml+xml` or to serve the page with the `.xml` file extension in the URL (e.g. serve `index.xml` instead of `index.html` or `index.php` or `/index` or `/`). It's not enough to send a `<meta http-equiv=""content-type"" content=""application/xhtml+xml"">` tag; it //must// come through the HTTP headers.

Because of this behavior in browsers, WordPress sends content that it thinks is one thing but is received as another. Removing official support means that we can start to remove those places that purport to send HTML4 or XHTML content when that assumption is wrong and can lead to data corruption, let alone needless syntax noise.

WordPress still serves XML content in RSS feeds; this proposal does not recommend removing support for generating the XML feeds, but it may extend to the escaping and rendering of embedded HTML within those feeds, since an RSS reader is unlikely to and should not be interpreting embedded HTML as HTML4 and should be supporting embedded HTML5 as any web browser would. As an embedding, the content rendered into the feed remains separate from the surrounding RSS XML container.

== Action plan

Removing support for HTML4 and XHTML doesn't require any immediate action because HTML5 parsers compliantly parse HTML4 and XHTML up to their conflicting rules, such as with the `&lang;` named character reference. Since WordPress is already ""broken"" in this sense today, removing support does not imply that these are new bugs; rather it acknowledges that we missed updating WordPress once HTML4 and XHTML properly disappeared.

In future work it opens up opportunities to modernize WordPress:
- we don't need to handle complicated corner cases where pre-HTML5 renders require special cases.
- we can remove code meant for backwards compatibility which no longer provides that support.
- we can update Core functions such as `_wp_kses_named_entities()` to prevent them from corrupting data based on inaccurate parsing rules from the past.
- we can define a body of support and scope for what WordPress will and won't attempt to clean up. Functions like `force_balance_tags()` and encoding functions attempt to normalize and sanitize HTML but just as often further break that HTML when passing it through to the browser would have a deterministic and safe resolution.
- we can eliminate wrapping script output with CDATA escaping which is only needed for XML compatibility.
- we can use HTML5 form validation by default in more places instead of requiring an opt-in.

The HTML API is providing WordPress the ability to have a smarter Core HTML system that won't be confused by rare or unexpected inputs and leans heavily on a spec-compliant ""garbage-in garbage-out"" approach. This dramatically simplifies HTML processing code without opening unsafe avenues; this is because HTML5 defines how to handle abnormal inputs.

Weston [https://github.com/GoogleChromeLabs/wpp-research/pull/74 queried the HTTP Archive] and found up to potentially two sites among millions that are serving XHTML content through the inclusion of proper HTTP headers.

== Linked Issues

 - #60320 the `CDATA` wrappers around inline JavaScript break non-JavaScript `SCRIPT` contents.
 - [https://github.com/WordPress/wpcs-docs/pull/136 wpcs-docs#136] XHTML and HTML conflicts"	dmsnell	6.5	dev-feedback
Enhancements Awaiting Review	62653	Add CSS selector based tag navigation to HTML and Tag Processors		HTML API	normal	feature request	new	2024-12-05T18:34:50Z	2024-12-12T12:09:59Z	"CSS selectors provide an excellent way to navigate through an HTML document. They are a familiar and interface for many web developers to navigate elements in a page and fit well with the HTML API. They're a core concept in the Block API where attributes may be sourced based on a selector.

[https://github.com/WordPress/wordpress-develop/pull/6388 HTML API: Add attribute sourcing] describes some of the needs based on selectors used in existing Core blocks:

{{{
.blocks-gallery-caption
.blocks-gallery-item
.blocks-gallery-item__caption
.book-author
.message
a
a[download]
audio
blockquote
cite
code
div
figcaption
figure > a
figure a
figure img
figure video,figure img
h1,h2,h3,h4,h5,h6
img
li
ol,ul
p
pre
tbody tr
td,th
tfoot tr
thead tr
video
}}}

Some use cases:

- [https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/ Block attributes] use CSS selectors to access data in HTML.
- The Block Bindings project depends on selectors. It currently has a temporary and limited solution that covers only the most basic selectors. Switching to a more full-featured implementation via HTML API CSS Selectors is [https://github.com/WordPress/gutenberg/issues/67520 part of the roadmap] and is necessary for expanding block bindings to support more blocks.
- [https://github.com/WordPress/gutenberg/issues/41236 Support for sourced block attributes is mentioned in the Block API overview issue.]
- [https://github.com/WordPress/gutenberg/issues/63037 It's part of the HTML API roadmap] - ""Continue developing block attribute sourcing."" in the linked issue
- It's featured on [https://github.com/WordPress/gutenberg/issues/62437 Dennis' list of broad and interesting things.] as ""Add the ability to read block attributes on the server which are ""sourced"" from the block's HTML, as described in a block.json file. [#6388]
- Expose block data directly through REST API endpoints #53603
- That is a step towards having an efficient way to extract on the server sourced attributes from HTML saved for blocks: #53602


Prior work:
- [https://github.com/WordPress/gutenberg/pull/46345 WIP: Introduce class for sourcing block attributes from HTML]
"	jonsurrell		has-patch
Enhancements Awaiting Review	61365	Editor: Introduce XML Tag Processor and XML Processor		HTML API	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	59291	HTML API: Expose raw tag markup to support existing filters		HTML API	normal	enhancement	new	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	6.4	has-patch
Defects Awaiting Review, reported against trunk	66484	WP_Http_Streams writes response headers into streamed files when headers span more than one read		HTTP API	normal	defect (bug)	new	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	trunk	has-patch
Defects Awaiting Review, reported against no version	39687	Request headers sent incorrectly from `WP_Http` to `Requests`		HTTP API	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	57363	WP <= 6.1.1 - Unauthenticated Blind SSRF via DNS Rebinding		HTTP API	normal	defect (bug)	new	2022-12-20T23:25:00Z	2026-11-02T08:35:22Z	"Hi,

Is this issue going to be fixed? No one has really answered this in the forums."	edavis711		needs-patch
Defects Awaiting Review	60564	download_url() always returns error_code 'http_404' for any non-200 responses		HTTP API	normal	defect (bug)	new	2024-02-16T20:45:22Z	2026-09-18T09:25:41Z	"Expected:
Return WP_Error code ""http_406"" if a 406 occurs while downloading the URL.
Return WP_Error code ""http_500"" if a 500 occurs while downloading the URL.
...

Actually doing it wrong:
download_url() always returns WP_Error code ""http_404"" on any non-200 status.
{{{
object(WP_Error)#11262 (3) {
  [""errors""]=>
  array(1) {
    [""http_404""]=>
    array(1) {
      [0]=>
      string(14) ""Not Acceptable""
    }
  }
  [""error_data""]=>
  array(1) {
    [""http_404""]=>
    array(2) {
      [""code""]=>
      int(406)
      [""body""]=>
      string(0) """"
    }
  }
  [""additional_data"":protected]=>
  array(0) {
  }
}
}}}


see https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/file.php#L1214
{{{#!php
<?php
if ( 200 !== $response_code ) {
    // [...]
    return new WP_Error( 'http_404', trim( wp_remote_retrieve_response_message( $response ) ), $data );
}
}}}
"	hinnerk	6.4.3	has-patch
Defects Awaiting Review	65522	get_allowed_http_origins() drops port from allowed CORS origins		HTTP API	normal	defect (bug)	new	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	3.4	has-patch
Defects Awaiting Review	49385	wp_remote_get() cannot retrieve webcal URIs		HTTP API	normal	defect (bug)	new	2020-02-07T18:33:22Z	2026-06-04T08:09:05Z	"In #31666, `webcal` was added to the list of allowed protocols. Unfortunately this does not bubble up into the HTTP API for remote requests, and `wp_remote_get()` on a `webcal://` URI will fail with:

{{{
object(WP_Error)[532]
  public 'errors' => 
    array (size=1)
      'http_request_failed' => 
        array (size=1)
          0 => string 'A valid URL was not provided.' (length=29)
  public 'error_data' => 
    array (size=0)
      empty
}}}

Here is my proof-of-concept to show off the failure:
{{{
add_action( 'plugins_loaded', function() {

	// Public iCloud calendar I created
	$uri = 'webcal://p41-caldav.icloud.com/published/2/AAAAAAAAAAAAAAAAAAAAAF-eqSypTVlehAPwNTiPeHHBkTEvCi1qK6G4LDcU1Fr6AKLM-yaJrbRrhSSGMrjSbAxJZJ6TibzOCKLh0xBSpKI';

	// Regular remote get call
	$get = wp_remote_get( $uri );

	// Dump results
	var_dump( $get ); die;
} );
}}}"	johnjamesjacoby		needs-unit-tests
Defects Awaiting Review	65229	Remove WordPress.org IP from function documentation		HTTP API	trivial	defect (bug)	new	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		has-patch
Defects Awaiting Review	64516	In a test sequence, resources can still be updated after being deleted.		HTTP API	normal	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	6.9	
Defects Awaiting Review	64212	Stream-to-file may fail or overwrite existing temporary file		HTTP API	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	56688	Uncaught Requests_Exception using Requests::request_multiple		HTTP API	normal	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	6.0.2	
Defects Awaiting Review	60788	Content-Disposition support in download_url() seems broken		HTTP API	normal	defect (bug)	new	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	6.4.3	needs-unit-tests
Defects Awaiting Review	53107	HTTPS Detect & Migrate feature breaking existing HTTPS		HTTP API	blocker	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	5.7.1	
Defects Awaiting Review	51767	Broken logic for `https_local_ssl_verify` filter due to missing `local` argument		HTTP API	normal	defect (bug)	new	2020-11-13T09:29:11Z	2025-08-22T12:01:18Z	"When the Requests library was merged in WP 4.6, the `local` element in the `$args` array of an HTTP API request was removed. The logic for the `https_local_ssl_verify` filter relies on this argument being present and therefore doesn't behave properly.

To reproduce, perform an HTTP API request to `home_url()` and verify that the `https_local_ssl_verify` filter does not get triggered.

Introduced in [37428]."	johnbillion	4.6	has-patch
Defects Awaiting Review	41608	Post files using cURL		HTTP API	normal	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	4.6	
Defects Awaiting Review	60934	Internal Subnets are being blocked by wp_parse_url and why?		HTTP API	normal	defect (bug)	new	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		needs-docs
Defects Awaiting Review	56347	Download failed. A valid URL was not provided.		HTTP API	normal	defect (bug)	new	2022-08-07T23:45:10Z	2023-03-14T13:42:34Z	"I found some problem when you configure your wordpress behind an HTTP proxy (Without DNS resolution), the plugins/themes/etc updates (not talking about 3rd party related) are going to fail with:

Download failed. A valid URL was not provided.

I traced back the issue to https://github.com/WordPress/WordPress/blob/90e6f5aed5c897f29ef129808d4dc9db29655cd4/wp-includes/http.php#L549

so, the problem is quite simple, when WordPress calls the function wp_http_validate_url before calling the proxy itself, WP uses a non-proxy DNS function (gethostbyname) to validate the URL hostname, and because I don’t have DNS (for security reasons), it will fail…

the point is, if your internet exit is defined by WP_PROXY_HOST, I would not expect to have any other internet access or protocol (like DNS), so when you try to resolve downloads.wordpress.org from the WP host (not from the proxy), it will fail… but when you ask the http proxy to get some content from there, it should work very well…

using gethostbyname before the http proxy, and dropping the proxy request by the gethostbyname failure, was stopping my wordpress from getting updates in my secure environment…

so, understanding this, I did the following temporary hack, I added this line to /etc/hosts:

1.2.3.4 downloads.wordpress.org

then, when gethostbyname asked for it, the OS libs answered with 1.2.3.4 (a valid fictitious external IP addr), and passed the request to the proxy (who properly handled the download)…

My recommendation to the developers is to consider that when you have configured WP_PROXY_HOST, you should not expect DNS calls to work (try another way), DNS should not be a pre-requisite when you have a proxy.

Regards.

"	unmanarc	6.0	
Defects Awaiting Review	41340	fsockopen HTTP Proxy support is broken for HTTPS URLs		HTTP API	normal	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	4.8	
Defects Awaiting Review	50288	fsockopen request turns off SNI when it shouldn't		HTTP API	normal	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	5.4.1	
Defects Awaiting Review	49203	Requests::request_multiple() does not honor $auth option		HTTP API	normal	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	5.4	needs-patch
Defects Awaiting Review	47549	Http proxy not passing Auth request Basic header		HTTP API	normal	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		
Defects Awaiting Review	34924	Network upgrade fails on tls 1.2 only servers		HTTP API	normal	defect (bug)	new	2015-12-09T01:37:03Z	2018-07-16T19:56:09Z	"Setup:
Nginx 1.9.7 on Centos 7.1 with cURL 7.29
SSL configured with 'ssl_protocols TLSv1.2' only because Firefox does only accept TLS 1.2 for http/2

Symptom:
After upgrading from WordPress 4.3 to 4.4 the network upgrade fails with error message:
'Your server may not be able to connect to sites running on it. Error message: TCP connection reset by peer'

Test:
Setting 'curl_setopt ( $handle, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1 );' in WP_Http_Curl::request solves the issue 

This is definitely an issue with older cURL versions. cURL 7.45 works well as reported by @dd32.

Suggestion:
Conditionally set CURLOPT_SSLVERSION if the first connect over https fails.

Hint:
Since WP_Http_Curl has been introduced in WordPress 2.7.0 I guess all version since 2.7.0 are affected.
"	mensmaximus	2.7	
Defects Awaiting Review	40502	Add the check version and template attributes method for /themes/update-check/1.1/ API		HTTP API	normal	defect (bug)	new	2017-04-20T19:55:09Z	2017-04-20T19:55:09Z	"I created a child theme for work, but WordPress noticed me that new theme has an update. That is so weird. So I traced the code and found that problem is API(api.wordpress.org/themes/update-check/1.1/) did not check the whole theme's info between local and WordPress DB.

Here is my steps:

1. install the base theme named `site`
2. create a child theme named `royal`
3. add theme info in royal/style.css and royal/functions.php

style.css:
/*
Theme Name: Royal
Author: Knockers
Version: 1.0
Template: site
*/

functions.php:
<?php
?>

4. login to wp-admin/themes.php and the update notice shows up!

I think the API must check the `Theme Name`, `Version`, `Author` and `Template` attributes at least and make sure the theme package is current belong to someone."	mxp	4.7.4	
Enhancements Awaiting Review	66507	Add unit tests for WP_Http::is_ip_address(), chunkTransferDecode(), browser_redirect_compatibility() and validate_redirects()		HTTP API	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	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	enhancement	new	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		has-patch
Enhancements Awaiting Review	39695	Add preload headers in redirects		HTTP API	normal	enhancement	new	2017-01-25T22:09:45Z	2026-07-08T02:03:01Z	"http2 push enabled servers can immediately push linked assets or documents for the client. This saves clients from one round-trip.

At the moment at least Cloudflare and h2o web server can http2 server push assets defined in Link headers: https://www.w3.org/TR/preload/#server-push-http-2.

I believe more will follow in the next few years. WordPress powers so much of the web that it's our responsibility to try to make it as fast as we can.

This is usually quite hard topic because we have no idea what is stored in the client browser cache.

We can start implementing the Link preload headers in internal redirects because in that situation it's quite obvious that the client wants to make that request as their next one.

This is what I want to achieve
{{{
$ curl --http2 -i https://wordpress.test/wp-admin/
HTTP/2 302
...
Location: https://laextra.test/wp-login.php?redirect_to=https%3A%2F%2Flaextra.test%2Fwp-admin%2F&reauth=1
Link: </wp-login.php?redirect_to=https%3A%2F%2Flaextra.test%2Fwp-admin%2F&reauth=1>; rel=preload; as=document
}}}

I created a patch which adds these headers automatically in '''wp_redirect()''' function.

Links about http2 server push:
https://blog.cloudflare.com/announcing-support-for-http-2-server-push-2/
https://h2o.examp1e.net/configure/http2_directives.html"	onnimonni		has-patch
Enhancements Awaiting Review	63828	Can't use `CURLFile` with `wp_remote_post`		HTTP API	normal	enhancement	new	2025-08-14T21:56:01Z	2025-08-14T21:56:01Z	"Example code on WordPress plugin:
{{{#!php
<?php
$imageFile = 'image.jpg';
$postFields = [];

$Finfo = new finfo();
$fileMimeType = $Finfo->file($imageFile, FILEINFO_MIME_TYPE);
unset($Finfo);

$CurlFile = new CURLFile($imageFile, $fileMimeType, 'curl-upload-' . basename($imageFile));
$postFields['image'] = $CurlFile;
unset($CurlFile, $fileMimeType);

$args = [
    'body' => $postFields,
    'sslverify' => false, // for self-signed localhost.
];
wp_remote_post('https://localhost/myupload.php', $args);
}}}

And on **myupload.php** file. I use few code to show how it work only.
{{{#!php
<?php
move_uploaded_file($_FILES['image']['tmp_name'], __DIR__.'/new-image.jpg');
$logs = print_r($_POST, true) . PHP_EOL .
    print_r($_FILES, true) . PHP_EOL;
file_put_content(__DIR__ . '/log.txt', $logs);
}}}


The file data will be send as text to destination (myupload.php).

This is because of these lines in [wp-includes/Requests/src/Transport/Curl.php](https://github.com/WordPress/wordpress-develop/blob/c726220a21d13fdb5409372b652c9460c59ce1db/src/wp-includes/Requests/src/Transport/Curl.php#L387C1-L396C4) inside method `setup_handle()` convert POST body to string.  
So, `CURLFile` is dead and not working.

Compare to native PHP cURL functions. It is working fine.
{{{#!php
<?php
$ch = curl_init('https://localhost/myupload.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
// disable SSL verify. this is for test with self signed (local host) only.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);

$response = curl_exec($ch);
curl_close($ch);
}}}

Please add an option, maybe a hook to skip convert POST data to let `CURLFile` works.
"	okvee	6.8.2	
Enhancements Awaiting Review	60658	Set http_build_query as an option to Curl class		HTTP API	normal	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		
Enhancements Awaiting Review	61358	Add Support to HTTP 2 in WP_Http Class		HTTP API	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	59021	Is there a way to monitor active connection initiated by cron and other running script (similar to netstat in windows)		HTTP API	normal	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		
Enhancements Awaiting Review	52631	ability to override http 'connect_timeout'		HTTP API	normal	enhancement	new	2021-02-23T20:29:47Z	2022-06-09T12:07:36Z	The default is 10s which is too long for my usage. Ability to override in the same manner 'timeout' can be overridden.	bdanchilla	5.6.2	
Enhancements Awaiting Review	42839	wp_remote_post should support multipart uploads		HTTP API	normal	feature request	new	2017-12-08T13:49:32Z	2020-01-22T11:05:19Z	Currently `wp_remote_post` doesn't support multipart uploads (file uploads). Because of this many plugin authors need to workaround this by implementing their own way to upload files remotely.	calin		
Reporter Feedback / Close	53938	replace core uses of wp_parse_url() with PHP's native parse_url()		HTTP API	normal	enhancement	new	2021-08-16T20:58:40Z	2026-06-12T09:01:09Z	"[https://developer.wordpress.org/reference/functions/wp_parse_url/ wp_parse_url()] was introduced in #34408 to get around URL parsing failures of PHP's [https://www.php.net/manual/en/function.parse-url parse_url()] in PHP < 5.4.7.

With the minimum supported PHP for core now 5.6.20, `wp_parse_url()` no longer seems necessary and `parse_url()` can be used directly.  For background on this ticket, see the [https://wordpress.slack.com/archives/C02RQBWTW/p1629146151384100 slack thread].
"	pbiron		close
Reporter Feedback / Close	47483	Add filters for included CA bundle path		HTTP API	normal	enhancement	new	2019-06-05T07:31:23Z	2025-03-17T16:51:47Z	"Allow overriding of CA bundle path.

See also #45807"	skithund		close
Reporter Feedback / Close	48124	Cant disable SSL verification when using Requests::request_multiple		HTTP API	normal	defect (bug)	new	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	5.3	reporter-feedback
Defects Awaiting Review	63725	Theme textdomain not loaded, if plugin used the textdomain before	swissspidy	I18N	minor	defect (bug)	assigned	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	6.8	has-patch
Defects Awaiting Review	50040	Localize the jQuery datepicker when enqueued in the footer		I18N	normal	defect (bug)	new	2020-04-30T13:46:24Z	2026-10-05T22:18:40Z	"Since #29420 the jQuery datepicker script is getting localized every time it is enqueued. However, this only happens when it gets enqueued in the frontend header and in the admin header.

Plugins and themes that require and enqueue the datepicker script in the footer do not get the localization loaded. Given that scripts can be enqueued on demand only when the page content requires them this is a penalty for proper resources management.

A simple patch and solution would be to extend the new actions added in the #29420 changeset:
https://core.trac.wordpress.org/changeset/37908
so they get firec also on `wp_print_footer_scripts:9` and `admin_print_footer_scripts:9`."	jadpm		has-patch
Defects Awaiting Review	65429	_site_transient_update_themes not cleared after successful translation update		I18N	major	defect (bug)	new	2026-06-06T15:22:03Z	2026-08-04T22:39:08Z	"Version: 7.0
Component: Upgrade/Install
Description: After updating theme translations, the translations array in _site_transient_update_themes is not cleared, causing the same update to reappear indefinitely. Deleting the transient manually resolves it temporarily.
This is also happening for plugins!
Solution temporarely clearing this record, then perform update again and refresh the screen
DELETE FROM psmitsoptions 
WHERE option_name = '_site_transient_update_themes';
"	psmits1567	7.0	
Defects Awaiting Review	65256	text track strings need context		I18N	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65255	Clear needs context		I18N	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	64979	Align needs gettext		I18N	normal	defect (bug)	new	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	5.7	has-patch
Defects Awaiting Review	45897	Chinese page uri dump fail		I18N	normal	defect (bug)	new	2019-01-10T07:17:56Z	2026-02-03T15:56:47Z	"In theme home page , dump fail when clike message page if uri is chinese. In file wp-includes/class-wp.php,
should modify like this:
{{{
list( $req_uri ) = explode( '?', urldecode( $_SERVER['REQUEST_URI'] ) );
}}}"	zh1995	5.0.2	has-patch
Defects Awaiting Review	11740	Sorting tags and towns does not work well for utf-8	nbachiyski	I18N	normal	defect (bug)	new	2010-01-06T12:42:24Z	2025-08-26T07:00:14Z	"There are problems with sorting special Czech characters:

1) Options - General - Timezone selection.

Evropa (Europe)
First item should be Amsterdam, but instead of it there is ""Řím"" (Rome in Czech). And this is not right, character Ř should be between R and S.

2) Editing posts - Select from most used tags.

You can create tags ""Rome"", ""Amsterdam"" and ""Řím"".
Tags are also sorted in a bad way, first is ""Řím"".
It is very problematic for Czech users when there are many tags, because it does not help them..."	pavelevap	2.9	dev-feedback
Defects Awaiting Review	58284	Add in wp_dropdown_languages en_US as selected value when 'explicit_option_en_us'  is set to true		I18N	normal	defect (bug)	new	2023-05-10T11:57:49Z	2025-08-26T05:54:57Z	"When in the function ""wp_dropdown_languages"" the option ""explicit_option_en_us"" is set to true and the locale-value of the User is ""en_us"" the option is still not selected. The value in the selected function (l10n.php, L. 1591) is empty: 	
{{{#!php
<?php
selected( '', $parsed_args['selected'], false )
}}}

This cause problems when the default language of the WMPU network is set from english to another language.

The bugfix could be the following (l10n.php L. 1586 - L.1593): 
{{{#!php
<?php
if ( $parsed_args['show_option_en_us'] ) {
		$value       = ( $parsed_args['explicit_option_en_us'] ) ? 'en_US' : '';
		$structure[] = sprintf(
			'<option value=""%s"" lang=""en"" data-installed=""1""%s>English (United States)</option>',
			esc_attr( $value ),
			selected( $value, $parsed_args['selected'], false )
		);
	}
}}}

Thank you very much"	ekaliva		has-patch
Defects Awaiting Review	63334	`switch_to_locale()` overwrites custom object types for core taxonomies		I18N	normal	defect (bug)	new	2025-04-22T15:19:57Z	2025-04-22T15:29:47Z	"It's frequent that core taxonomies are registered for custom post types. For example in Jetpack: https://plugins.trac.wordpress.org/browser/jetpack/tags/14.5/jetpack_vendor/automattic/jetpack-classic-theme-helper/src/class-featured-content.php#L157

However after `switch_to_locale()` is called, the custom post type is unregistered for the taxonomy.

This is demonstrated by the following test:
{{{#!php
<?php
register_post_type( 'cpt' );
register_taxonomy_for_object_type( 'category', 'cpt' );

$this->assertEqualsCanonicalizing( array( 'post', 'cpt' ), get_taxonomy( 'category' )->object_type ); // Passes.

switch_to_locale( 'de_DE' );
$this->assertEqualsCanonicalizing( array( 'post', 'cpt' ), get_taxonomy( 'category' )->object_type ); // Fails.
}}}

This is due to `create_initial_taxonomies()` directly hooked to `change_locale` without extra logic. This results in the core taxonomy to be fully re-initialized without its custom object types. See https://core.trac.wordpress.org/browser/tags/6.8/src/wp-includes/default-filters.php#L653"	Chouby	4.7	
Defects Awaiting Review	37611	Ordering of the Site Language entries		I18N	normal	defect (bug)	new	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	4.0	dev-feedback
Defects Awaiting Review	57981	Export .po files error of untranslated strings starting or ending with new lines (\n)		I18N	normal	defect (bug)	new	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	2.8	has-patch
Defects Awaiting Review	59608	[bug] insert_with_markers with a UTF-8 translated marker causing .htaccess file broken with garbled characters		I18N	normal	defect (bug)	new	2023-10-13T03:26:28Z	2024-01-18T14:39:39Z	"We encountered issue when the site language is setting to `Chinese (Hong Kong)`, the `translators: 1: Marker.` have a translation (https://translate.wordpress.org/projects/wp/dev/admin/zh-hk/default/?filters%5Boriginal_id%5D=8431526&filters%5Bstatus%5D=either&filters%5Btranslation_id%5D=91677098) which contains UTF-8 characters. When calling `insert_with_markers(...)` to write values to `.htaccess` file, the `.htaccess` file will contains garbled characters causing Apache cannot parse the file and return HTTP 500.

Sample of the broken .htaccess:
{{{
# BEGIN WP Cloudflare Super Page Cache
# 在含有 BEGIN WP Cloudflare Super Page Cache 及 END WP Cloudflare Super Page Cache 標記的這�
�行間的指示詞�
�容為動�
�產生，
# 且應�
有 WordPress 篩選器能進行修改。對這�
�行間任何指示詞�
�容的變更，
# 都會遭到系統覆寫。
<IfModule mod_expires.c>
...
}}}

The expected output should be:
{{{
# BEGIN WP Cloudflare Super Page Cache
# 在含有 BEGIN WP Cloudflare Super Page Cache 及 END WP Cloudflare Super Page Cache 標記的這兩行間的指示詞內容為動態產生，
# 且應僅有 WordPress 篩選器能進行修改。對這兩行間任何指示詞內容的變更，
# 都會遭到系統覆寫。
<IfModule mod_expires.c>
...
}}}

Ref: https://build.trac.wordpress.org/browser/trunk/wp-admin/includes/misc.php?marks=141#L140"	sammyhk	6.3.2	
Defects Awaiting Review	44844	switch_to_locale does not handle plugins/themes properly in multisite		I18N	normal	defect (bug)	new	2018-08-26T22:17:17Z	2018-11-05T19:26:22Z	"Running the following test script should enable switching of languages in a multisite.

{{{#!php
require_once( dirname( __FILE__ ) . '/wp-load.php' );

switch_to_blog(2);
switch_to_locale('sv_SE');
var_dump(__('my text','my-domain'));

}}}

However do to complexities I am not familiar with in unload_textdomain and get_translations_for_domain it does not work. Breaking it down unload_textdomain flags it as unloaded which _load_textdomain_just_in_time via get_translations_for_domain checks and aborts. the only way I have been able to do this is via some hacky filtering and mangling language globals.

Example:

{{{#!php
switch_to_blog( $object['blog_id'] );
			unset( $GLOBALS['locale'] );
			$locale = get_locale();
			unset( $GLOBALS['locale'] );
			restore_current_blog();
			add_filter( 'locale', [ $this, 'one_time_false' ] );
			add_filter( 'override_unload_textdomain', [ $this, 'unload_textdomain' ], 10, 2 );

			switch_to_locale( $locale );
			remove_filter( 'locale', [ $this, 'one_time_false' ] );
			remove_filter( 'override_unload_textdomain', [ $this, 'unload_textdomain' ] );
			switch_to_blog( $object['blog_id'] );

}}}

$this->unload_textdomain being:

{{{#!php
<?php
public function unload_textdomain( $value, $domain ) {
		if ( isset( $GLOBALS['l10n'][ $domain ] ) ) {
			unset( $GLOBALS['l10n'][ $domain ] );
		}

		return $value;
	}
}}}

and $this->one_time_false being:

{{{#!php
<?php
public function one_time_false() {
		remove_filter( 'locale', [ $this, 'one_time_false' ] );

		return false;
	}
}}}


Not sure how this should be refactored but this so far should really be unnecessary to do.

Thanks."	pcfreak30	4.9.8	
Defects Awaiting Review	40643	Russian post date month translation is incorrect		I18N	normal	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	4.7.4	
Enhancements Awaiting Review	66511	Add unit tests for the Translations and Gettext_Translations methods that merge entries and parse plural forms and headers		I18N	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66240	Show plugin translation completion and allow managing installed language packs		I18N	normal	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		
Enhancements Awaiting Review	66217	Further hardening of MO file parsing		I18N	minor	enhancement	new	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		has-patch
Enhancements Awaiting Review	65314	Make `wp-includes/pomo` the canonical pomo source; retire `svn.glotpress.org/trunk/pomo`		I18N	normal	task (blessed)	new	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		has-patch
Enhancements Awaiting Review	64193	Proposal: Add official support for ltr.css in RTL-based multilingual sites		I18N	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	51039	Enhancement: Show a prompt in dashboard to recruit more translators		I18N	normal	enhancement	new	2020-08-17T07:15:11Z	2026-02-02T09:31:43Z	"Problem: Out of 204 available locales teams, around 130 are behind by more than one major version in releasing their core language pack, and considered to be “inactive.” The common issue among them is that they don't have enough contributors to suggest and approve translations. Also, once the team becomes inactive, it's very hard to find and onboard new contributors.

In the [https://make.wordpress.org/polyglots/handbook/plugin-theme-authors-guide/#generating-community-contributions Polyglots Team handbook], we suggest plugin authors who are looking for translators of their product to show a dismissible message in the dashboard. How about core also adopts that method for core?

* Only show suggestions to users whose browser language is not English AND it matches one of the inactive locales ([https://make.wordpress.org/polyglots/teams/#major-behind-many behind by more than one major version] or no language pack is ever created).
* Link to a polyglots handbook page where the new contributor can get more info (I suggest [https://make.wordpress.org/polyglots/handbook/translating/first-steps/ First Steps] page for now)

The message could look like this:

 **Translate WordPress to LOCALE_NAME:**  It looks like you understand LOCALE_NAME. Did you know you can help translate WordPress in your language? [https://make.wordpress.org/polyglots/handbook/translating/first-steps/ Visit this page] to get started.

After some time, polyglots global mentors can check and promote new contributors based on our [https://make.wordpress.org/polyglots/handbook/translating/expectations/translation-editor-locale-manager-vetting-criteria/ GTE/Locale Manager] vetting criteria and provide mentorship to help them stay active.
"	Nao		dev-feedback
Enhancements Awaiting Review	62643	Prevent errors from `printf()` and `sprintf()` calls		I18N	normal	enhancement	new	2024-12-04T13:49:56Z	2025-11-03T17:17:51Z	"I've just faced a strange issue today. At least it was strange at first. I've just updated a Canadian English site from WP v6.6.2 to v6.7.1 and when the redirect to the `wp-admin/about.php` page happened the page threw a Fatal error:

{{{
Fatal error: Uncaught Error: 3 arguments are required, 2 given
in /home/happyeco/public_html/wp-admin/about.php on line 260
}}}

Looking into it further I've found that the en_CA translated string for the given `printf` call contained two placeholders while the PHP source string only had one and only passed one argument.

So okay, that is an issue with the translation itself, but that is fairly simple to fix and I think I'll just go to the translations site and fix it there. Meanwhile I've monkey patched my `about.php` to pass an extra argument to prevent fatal errors.

But I'm opening this issue to address the problem in a broader sense.

Since PHP v8.0 `fprintf()`, `sprintf()` and similar functions no longer emit a warning but they throw an error if the passed number of arguments are less than the number of placeholders in the format specifier string. E.g.: https://www.php.net/manual/en/function.fprintf.php#refsect1-function.fprintf-changelog

What this means to me is that sites can be crashed by translation mistakes, which seem to be an issue to me. Just think about it how bad it'd look if somehow someone added one extra format specifier to one of a widely used string of a popular language's translations. WordPress sites could suddenly start to crash in masse. I think the whole platform is sitting on a ticking bomb with this PHP change.

For me it seems to be quite obvious that a wrong/missing/incorrect UI string is way better than a crashed site.

And this means to me that WordPress should implement wrapper functions for `fprintf()`, `sprintf()` and similar function (not sure which ones are used in the codebase) that implement proper error handling preventing crashes and instead omitting warnings or log entries. All calls to `fprintf()`, `sprintf()` should be replaced with calls to the wrapper functions and plugin and theme authors should also be encouraged to replace usages in their codebase.

What do you think?

I assume such large scale change should pass several checks to happen, but in theory it is a pretty low risk change in terms of the complexity of the refactoring. Basically it is just adding few new functions and doing search-n-replace on the rest of the codebase."	grapestain		dev-feedback
Enhancements Awaiting Review	63974	.mo file loaded as UTF-8 by default - non-standard and ignoring Content-Type headers		I18N	normal	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		
Enhancements Awaiting Review	62428	The Date Format in Simplified Chinese does not work properly.		I18N	normal	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		
Enhancements Awaiting Review	39295	Prevent infinite loop when calling get_user_locale() in a 'locale' filter		I18N	major	enhancement	new	2016-12-15T11:12:40Z	2024-11-06T15:50:51Z	"Using `get_user_locale()` in a `locale` filter (for `get_locale()`) might sound like a good idea, for example to change the site locale depending on our user. 

{{{#!php
<?php
	if ( $condition) {
		add_filter( 'locale', 'get_user_locale' );
	}
}}}

However, if one does that and a non-logged in user (or a user without a `locale` value) visits the site, a infinite loop will be triggered, since `get_user_locale()` will itself call `get_locale()` when no `user->locale` value exists. 

Since this only affects logged out users, it feels like an easy trap to miss, and we should prevent that.
"	yoavf	4.7	dev-feedback
Enhancements Awaiting Review	50021	"Internationalization of excerpt function in ""Latest Posts"" block"		I18N	normal	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	5.4	
Enhancements Awaiting Review	39756	Extend the jQuery datepicker localization		I18N	normal	enhancement	new	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	4.8	has-patch
Enhancements Awaiting Review	38869	"Change ""Site Default"" in User Profile Options for Language to ""Site Setting"""		I18N	normal	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	4.7	ui/ux
Enhancements Awaiting Review	37057	Creation of an esc_html functions for _n(), _nx(), _ex(), and number_format_i18n()		I18N	normal	enhancement	new	2016-06-09T00:32:50Z	2022-03-25T18:43:48Z	"Using a lot of the translation functions generates an error using the WordPress Coding Standards under PHPCS such as:

 Expected next thing to be an escaping function (see Codex for 'Data Validation'), not '_nx'

Certain functions like `_x()`, `_e()`, `__()` all have equivalent esc_html functions. But there are no esc_html equivalent for these other functions.

Granted one could simply wrap the statements in `esc_html()`, for the sake of consistency and standardization for theme developers, I feel that esc_html versions of these functions should be created. "	zakkath		needs-patch
Enhancements Awaiting Review	42725	Allow gender specific translations		I18N	normal	enhancement	new	2017-11-28T07:50:52Z	2020-08-03T21:34:39Z	"For years, the WordPress translators community has needed to resort to '''painful compromises''' for languages with grammatical gender, where women are often discriminated by default.

From strings like `Lead Developer` to simply `Author` or `Editor`, some languages will always refer to these as males, regardless of the user self-identification.

While modern English grammar is exceptionally capable of being gender neutral, many other languages do not share this trait. Forcing all languages to adopt a gender-neutral grammar, even when they're not capable of it, diminishes the appeal of WordPress to non-English speaking users, especially women - because in almost all languages, pseudo gender-neutral grammar just uses the male form.

This ticket is a tracking ticket for the various tasks needed to allow for gender-specific translations

'''How gender specific translations will work with gettext'''
- We will modify some of the existing translations functions (in a backward compatible way) to accept an optional user gender value.
- When this happens, the POT generation tools will create 3 different strings, differentiated by a specific context.
- On output, the correct translation will be loaded based on the value of the gender property

'''What needs to be done'''
- Introduce a user profile field to store users' gender and a `get_user_gender()` function. See #42900
- Add unit tests to current translation functions
- Add an optional `options` parameter to `__()`, `_x()`, `_n()`, `_nx()` that will be used to pass the gender to the translation functions
- Update documentation 
- Update GlotPress to group translations.

----

'''Notes:'''
- This ticket originally included proof-of-concept patches. It has since been rewritten to reference other tickets to tackle the various tasks.
- The details of the implementation were discussed during contributor day at WCUS 2017. Big thanks to @gregross, @johnbillion, @nullbyte for making this happen, and thanks to @nacin for his input.
- Major props to @glueckpress for being a driving force in creating this with his [https://wordpress.tv/2017/06/27/caspar-hubinger-big-little-shame-a-tale-of-empowered-user-experience-through-localisation/ WC Europe 2017 talk].
"	yoavf		dev-feedback
Enhancements Awaiting Review	49263	Switching blog doesn't switch locale		I18N	normal	enhancement	new	2020-01-21T19:34:15Z	2020-05-22T21:02:25Z	"#26511 introduced `switch_to_locale()`, but didn't take into account the Multisite use case that @rmccue mentioned in ticket:26511#comment:8.

It seems reasonable to expect that switching to a site with a different locale would switch the locale.

You can see that it currently doesn't by setting up a network with the following conditions and code, and then loading each site.

* The locale of site `1` is `en_US`
* The locale of site `2` is `es_MX`
* The locale of site `3` is `fr_FR`

{{{#!php
add_action( 'admin_init', function() {
	echo get_locale() . '<br>'; // loaded site
	_e( 'Howdy, %s' );
	echo '<hr>';

	switch_to_blog( 2 ); // spanish
	echo get_locale() . '<br>';
	_e( 'Howdy, %s' );
	restore_current_blog();
	echo '<hr>';

	switch_to_blog( 3 ); // french
	echo get_locale() . '<br>';
	_e( 'Howdy, %s' );
	restore_current_blog();
	echo '<hr>';

	switch_to_blog( 1 ); // english
	echo get_locale() . '<br>';
	_e( 'Howdy, %s' );
	restore_current_blog();
	echo '<hr>';

	echo get_locale() . '<br>'; // back to loaded site
	_e( 'Howdy, %s' );

	wp_die();
} );
}}}

The strings are always translated using the loaded site's locale, rather than the switched site.

A rudimentary way to see the desired effect would be something like this:

{{{#!php
function switch_to_blog_locale() {
	$locale = get_option( 'WPLANG', 'en_US' ); // bypass get_locale() b/c early return is stuck on the starting site.

	switch_to_locale( $locale );
}
add_action( 'switch_blog', 'switch_to_blog_locale' );
}}}

...although that doesn't take user locales into account, doesn't restore previous locales, etc.


Related: #44844"	iandunn		dev-feedback
Enhancements Awaiting Review	43802	Default timezone for new sites in WP multisite		I18N	normal	feature request	new	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	4.9.5	has-patch
Enhancements Awaiting Review	46305	Update emails w/ placeholders to use sprintf		I18N	normal	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		
Enhancements Awaiting Review	42900	Add gender field to user profile for use in translations		I18N	normal	enhancement	new	2017-12-14T13:14:27Z	2019-01-16T06:50:09Z	"See #42725 for more background.

'''What this solves'''
To be able to properly translate numerous terms across the WP codebase, translators to some languages require knowledge of the gender of the user being referenced in the string.
Adding an optional field to the user profile will enable the extension of WP's translation functions to support gender variations (see #42725)

'''What's included'''
- A new user profile field, and a matching get_user_gender() 
- Unit tests for get_user_gender()

'''Gender/Pronouns - How the field was named'''
The word ''gender'' has a lot of connotations - but it's used here in the grammatical sense - see [https://en.wikipedia.org/wiki/Grammatical_gender Grammatical Gender on Wikipedia].
When presented to the user, we ask what their preferred ''pronoun'' is, since that's probably the easiest way to relate to it. The wording around the field was inspired by Wikipedia's gender user profile field.

'''Screenshot'''
[[Image(https://cldup.com/LAj-feF0TI.png)]]

"	yoavf		has-patch
Reporter Feedback / Close	39587	link problems with language settings		I18N	normal	defect (bug)	new	2017-01-15T01:10:15Z	2026-09-08T14:32:00Z	"Dear Developers!

After WP versiion 4.7 i think i found a bug it is not listed.

In version 4.7 we have the option to have a X site language but with Y language admin dashboard. (clever idea Cheers for it!!)

But if i use the dashboard in Y language >>> it changes the links (after you edit something) language to Y language. (maybe it is related ~only in/with woocommerce)

for example the link changes from ""product"" to ""termek"" or vica-versa...

makes many pages unreachable...

let me know if you need any further information or help!

Very Best regards!!

Ben"	aansel	4.7	close
Reporter Feedback / Close	44548	Email should be encoded with UTF8 and base64		I18N	normal	enhancement	new	2018-07-09T15:20:35Z	2026-01-04T08:01:36Z	"The plugin WP Multibyte Patch included in the Japanese package is changing the Email charset from `UTF-8` to `ISO-2022-JP`.

https://ja.wordpress.org/plugins/wp-multibyte-patch/

Almost all Email clients in Japan can handle UTF-8 now, so I am believing that we don't need to change email charset to `ISO-2022-JP`.

Also, if we activate WP Multibyte Patch and switch language to another language like `FR_fr`, the character in the email body will be broken.

But I guess email should be encoded by `base64` for non-ascii users. I know `8bit` encoding works good, but I guess base64 is reliable for us if we remove the plugin from Japanese package.

Following is an example email header of the Gmail. Gmail is `UTF8` + `base64`.

{{{
Subject: =?UTF-8?B?xxxxxxxxxxxxxxxxxx==?=
Content-Type: text/plain; charset=""UTF-8""
Content-Transfer-Encoding: base64
}}}

Related: #meta3163, #43829, #44296, #44541, #15955, #22363

Following is a list of tickets to improve multibyte enhancement.

https://docs.google.com/spreadsheets/d/13oGbc7AqEN6OUvmze-JDCKXDdruFqsxqSAdI7-b6Lho/edit#gid=0"	miyauchi		reporter-feedback
Reporter Feedback / Close	56234	error logged messages should not be translateable		I18N	normal	defect (bug)	new	2022-07-16T08:19:59Z	2024-12-19T12:38:15Z	"e.g. `_doing_it_wrong`,...

- general consensus for software is that errors in logs should always be in English

- these errors will only show with `WP_DEBUG` enabled, therefore a development errors and developers who work with WP have to speak English, otherwise wouldn't be able to understand the code in the first place

- even if you are not a developer but use `WP_DEBUG`, these are not issues you can fix yourself. You need to get in touch with your hoster, your developer, the plugin developer from where this error is from or even WP core. This is much easier if the error is in English and you can google it easily. Furthermore it's much easier to only receive these errors in English for the support who you contact - rather than in the 50 different supported languages by WP.

- many (most?) plugins do not pass a translatable strings to these, which means you end up with a language mix-mash

- when using a multi-lingual site, we (= the admin) get the error in all kinds of languages, we do not even speak (since the translations were created by contracted agencies). Making it unnecessarily hard to track down the exact English text, so we can check it in code.

In some instances where these may be used translation may not be loaded yet (which is why we have a `function_exists( '__' )` check), which means that in some cases you end up with english errors anyway.

The sensible thing to do is, to remove translations from error logged things all together.
I'm happy to provide a PR.

Related #53125 (and ticket:56198#comment:6 which made me open this ticket finally)"	malthert		close
Reporter Feedback / Close	57588	The picking of plural form #0 is hard-coded for singular strings		I18N	minor	defect (bug)	new	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	6.1	close
Reporter Feedback / Close	39639	Increase cache time on wp_get_available_translations()		I18N	normal	enhancement	new	2017-01-19T15:02:46Z	2024-04-24T09:56:45Z	"Currently there's no nice way of retrieving a full list of supported languages / locale codes from WordPress. The closest seems to be:

{{{
require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
$languages = wp_get_available_translations();
}}}

This calls the WordPress.org API to retrieve the list, making this approach not wholly suitable outside of its original intended use during WordPress install. The results are currently cached for 3 hours so it's not that the API will be called every time this function is called, however it seems that the 3 hours could be extended reasonably safely without causing any detriment.

Patch attached that extends the cache time to 24hrs. "	leewillis77	4.8	close
Reporter Feedback / Close	57405	wp_localize_script() doesn't decode html entities in nested arrays		I18N	normal	enhancement	new	2022-12-30T09:27:39Z	2024-04-24T09:50:29Z	"If we localize a script with an array like this:


{{{
$data = [
    'key1' => 'Value 1',
    'key2' => [
        'subkey1' => 'String contains &#039; single quote encoded',
        'subkey2' => 'String contains &quot; double quote encoded',
    ],
];

// Encoded strings stay encoded.
wp_localize_script( 'myhandle', 'myname', $data );
}}}

Then the outputted values of `$data` on the front end is exactly the same, e.g. encoded strings stay encoded:

{{{
array(2) {
  [""key1""]=>
  string(7) ""Value 1""
  [""key2""]=>
  array(2) {
    [""subkey1""]=>
    string(43) ""String contains &#039; single quote encoded""
    [""subkey2""]=>
    string(43) ""String contains &quot; double quote encoded""
  }
}
}}}

However, `wp_localize_script()` decode strings correctly if the array is not nested. So this code works correctly;

{{{
$data = [
    'key1' => 'Value 1',
    'key2_1' => 'String contains &#039; single quote encoded',
    'key2_2' => 'String contains &quot; double quote encoded',
];

// Encoded strings are decoded.
wp_localize_script( 'myhandle', 'myname', $data );
}}}

Output:

{{{
array(3) {
  [""key1""]=>
  string(7) ""Value 1""
  [""key2_1""]=>
  string(38) ""String contains ' single quote encoded""
  [""key2_2""]=>
  string(38) ""String contains "" double quote encoded""
}
}}}

This inconsistent behavior might cause issues when JS outputs/uses the text directly.

I'd suggest making the `wp_localize_script` function decoded strings in all cases."	rilwis		close
Reporter Feedback / Close	22812	Tweak the media modal styles for longer strings in ru_RU		I18N	normal	defect (bug)	new	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	3.5	close
Reporter Feedback / Close	46059	cyrillic capitalization in tag search		I18N	normal	defect (bug)	new	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		reporter-feedback
Defects Awaiting Review	39802	"Multisite: ""No importers are available"" error message shown to site admins, but not to network admins"		Import	normal	defect (bug)	reopened	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	4.7.2	has-patch
Defects Awaiting Review	42599	Design changes in Tools Categories and Tags Converter box and Tools Import box		Import	normal	defect (bug)	new	2017-11-17T10:27:46Z	2026-01-30T05:40:57Z	"Some Design changes in Categories and Tags Converter box and Import box
Go to wp-admin
1. Tools > Available Tools
2. Tools > Import"	Shital Patel	4.9	has-patch
Defects Awaiting Review	64207	Blogger Importer Tools fails with new Blogger export format (.zip with .atom files)		Import	major	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		
Defects Awaiting Review	47243	Importers aren't being maintained		Import	normal	defect (bug)	new	2019-05-12T08:31:45Z	2025-08-03T09:09:31Z	"There's some discussion about the Tools Menu, like in #46458, #46745 or #47012 etc.

I say the Tools > Import screen is deprecated. We find here some old, not maintained and sometimes even unusable Tools. This needs a cleanup.


Blogger (Blogger Importer) Version: 0.9:
Last Updated: **2 years ago** / Active Installations: 100,000+

Blogroll (OPML Importer) Version: 0.2:
Last Updated: 10 months ago / Active Installations: 20,000+

Categories and Tags Converter (Categories to Tags Converter) Version: 0.5:
Last Updated: **5 years ago** / Active Installations: 80,000+

LiveJournal (LiveJournal Importer) Version: 0.5:
Last Updated: **5 years ago** / Active Installations: 10,000+

Movable Type and TypePad (Movable Type and TypePad Importer) Version: 0.4:
Last Updated: **3 years ago** / Active Installations: 60,000+

RSS (RSS Importer) Version: 0.2:
Last Updated: 10 months ago / Active Installations: 50,000+

Tumblr (Tumblr Importer) Version: 0.8:
Last Updated: 1 year ago / Active Installations: 20,000+

WordPress (WordPress Importer) Version: 0.6.4:
Last Updated: 5 days ago / Active Installations: 4+ Million

"	Presskopp		
Defects Awaiting Review	56685	Remove LiveJournal from importer recommendations		Import	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	62857	WordPress renames images when importing them		Import	major	defect (bug)	new	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	6.7.1	dev-feedback
Defects Awaiting Review	41034	importing users in multisite: should add existing users to the current blog		Import	normal	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	4.8	
Defects Awaiting Review	60586	.xml imports broken		Import	normal	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	6.4.3	
Defects Awaiting Review	38288	Connection Timeout when importing heavy .xml (LiteSpeed)		Import	normal	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	4.6.1	
Defects Awaiting Review	28297	Losing custom nav menu data while importing / exporting XML		Import	normal	defect (bug)	new	2014-05-18T03:19:46Z	2018-02-26T15:52:39Z	"I have added few fields to the menu for mega menu functionality: https://gist.github.com/mharis/150f43e09adf72d7d0bb

This works fine and when I tried to export the site content which did have all the navigation items and the custom fields and its values in the XML file (https://www.dropbox.com/s/7i2l3x2mvpgup58/xml-test.xml) which is perfectly fine.

The problem happens when importing, only the keys are imported for the custom navigation menu fields and not its value. The values are stripped even through the data seems correct in the XML file.

Any thoughts over it?
"	isharis	3.9.1	needs-patch
Defects Awaiting Review	41952	WP import: Bug with import gziped file from web		Import	normal	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	4.8.2	
Defects Awaiting Review	27896	wordpress-importer's lack of understanding of XML Namespaces causing compatibility issues		Import	normal	defect (bug)	new	2014-04-18T15:02:18Z	2017-06-13T21:27:26Z	"This plugin doesn't understand namespaces when parsing XML.

Correct me if I'm wrong but I think the following XML documents are equivalent:

{{{
<rss xmlns:wp=""http://wordpress.org/export/1.2/"">
  <channel>
    <wp:wxr_version>1.2</wp:wxr_version>
  </channel>
</rss>
}}}

{{{
<rss>
  <channel>
    <wxr_version xmlns=""http://wordpress.org/export/1.2/"">1.2</wxr_version>
  </channel>
</rss>
}}}

{{{
<rss>
  <channel>
    <wp:wxr_version xmlns:wp=""http://wordpress.org/export/1.2/"">1.2</wp:wxr_version>
  </channel>
</rss>
}}}

{{{
<rss xmlns:ns1=""http://wordpress.org/export/1.2/"">
  <channel>
    <ns1:wxr_version>1.2</ns1:wxr_version>
  </channel>
</rss>
}}}

Importing the first document leads to the next step with the ""Download and import file attachments"" checkbox and the ""Submit"" button. The other documents produce ""This does not appear to be a WXR file, missing/invalid WXR version number"".

This bug makes it difficult to write tools which generate WXR files (for instance when migrating content from an existing site into a WordPress installation)."	tomdxw	3.9	has-patch
Defects Awaiting Review	39381	Export->Import WordPress menu bug when image is saved as label		Import	normal	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	4.7	
Defects Awaiting Review	35839	Escape backslashes upon export for better import		Import	normal	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	4.4.2	
Defects Awaiting Review	25769	import vs DISALLOW_FILE_MODS		Import	normal	defect (bug)	new	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	3.7.1	has-patch
Enhancements Awaiting Review	60375	Site Transfer Protocol		Import	normal	enhancement	new	2024-01-30T10:16:53Z	2026-03-30T20:53:40Z	"Migrating WordPress sites involves custom, error-prone logic. There are no canonical tools and the guidelines seem lacking.

Let's:

1. Formalize a list of steps involved in transferring a WordPress site between hosts
2. Build a canonical plugin that implements those steps and enables easy site migrations
3. Merge it into WordPress core once its stable

This is relevant for:

* Site migrations
* Creating and restoring site backups
* Staging and development environments
* WordPress Playground imports and exports
* Moving live sites into Playground and vice versa

... probably a lot more.


== ZIP bundle as the export format

The [https://github.com/WordPress/data-liberation/discussions/53 Data Liberation proposal] makes a great argument for a "".zip"" bundle as the export format. I would love to leverage it here. A wordpress.zip file with all the site files and the data in an .sqlite (or plaintext .sql) format sounds like the most natural and convenient way of moving WordPress sites around.

Large sites may seem problematic at the first glance, as 300GB zip archives are difficult to manage. However, the ZIP format was built with streaming, compression, chunking, checksums, and seeking in mind. It is a good fit for handling imports that are many GBs large even on a host with 64 MB of ram allocated and not enough hard drive space to hold the import file itself.

To support that last point – I’ve built a [https://github.com/WordPress/wordpress-playground/pull/880 streaming zip encoder and decoder in JavaScript] for Playground. It can cherry-pick a single file from https://downloads.wordpress.org/plugin/gutenberg.17.5.2.zip by transferring only a few kilobytes and without downloading the entire 10+MB archive. It works with zip files, and it would work with a Synchronization API endpoint where the zipped fragments are generated on demand.

=== Differences with WXR

Unlike WXR imports this is looking to transfer a site in its entirely with the Transfer Protocol. The export bundle should include every database table, every installed plugin, every asset and file in the wp-content directory. It must also include meta information such as the domain from which the site is being exported and all custom wp-config.php settings. This will be necessary in order to automate the transfer.

== Tasks involved in site transfer

* Set IMPORTING constant so things shut down:
    * Stop sending emails
    * Database replication
    * Cleanup jobs/CRON jobs that might filter on post creation
* Communicate source and destination site domains/base URLs
* Rewrite URLs in the database to match new site URL
* Rewrite URLs in all files including wp-config.php, wp-content, sunrise.php, mu-plugins, etc.
* Communicate wp-config.php settings, including things like WP_SITEURL and plugins directory, theme directory, content directory, memory limits, and other settings.
* Let the target site set the database credentials.
* Copy all content from source to destination site, including users, site options, database * tables.
* Bonus if there's no post-processing via tools like `wp search-replace`. The transferred data would rewritten as the transfer happens (e.g. to adjust the site URL).
* Bonus if we can cryptographically secure the conduit through which the transfer takes place to prevent someone intercepting a transfer (e.g. create a private/public keypair, only allow a single transfer at a time, use that certificate to authenticate the transfer.
* Bonus to track transfer state, communicate progress on it, and allow for pausing and resuming a transfer.
* Bonus if we can start a database transaction log via $wpdb or similar system when starting a transfer so that the source site can continue to serve requests and ensure that the destination site gets a full concurrent update to its data.

== Challenges

* This assumes a blank slate on the target site otherwise we risk overwriting ids or mismatching ids.
* The right design could become a foundation for live synchronization between WordPress sites.

== Related efforts

* https://github.com/WordPress/playground-tools/pull/124
* https://github.com/WordPress/data-liberation/discussions/53
* https://github.com/WordPress/wordpress-playground/pull/880

Co-authored with @dmsnell

cc @dufresnesteven @berislavgrgicak @tellyworth @dd32 @barry @payton @peterwilsoncc @swissspidy @miyarakira @matt @youknowriad @mamaduka @aristath"	zieladam		
Enhancements Awaiting Review	57982	Allow users to bulk select a new page author when importing content		Import	normal	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		
Enhancements Awaiting Review	16460	Category/tag converter should support all public taxonomies		Import	normal	feature request	new	2011-02-05T04:56:39Z	2022-07-15T16:27:46Z	The category to tag converter should let you convert terms to custom taxonomies, if any are defined. I'm attaching a rewrite of the plugin based on 1.5.2, which included support for post formats.	sillybean	3.0	needs-patch
Enhancements Awaiting Review	45381	importer should remap attachment IDs when they appear in a block's attributes		Import	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	48227	extend import with preselect of existing or pre-fill to create new users		Import	normal	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		
Enhancements Awaiting Review	44863	Modify the WordPress importer to handle .zip as well as .xml files		Import	normal	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		needs-patch
Enhancements Awaiting Review	41907	WordPress-Importer Assign all entries to one 'local' user		Import	normal	enhancement	new	2017-09-18T10:52:09Z	2018-07-23T17:05:46Z	"I've only recently started using the Import tool so I don't know if this is something that was purposely done this way or mentioned before but here goes.

I had to import some data while working on the HelpHub dev environment and it actually has quite a long list of users so I had to re-assign everyone to my admin to go forth.

That being said and with my poor knowledge of the importer ( i don't know if something exists already ) I didn't find any buttons to being able to assign all Authors into an existing one for starters and then change some fields if needed respectively as well.

So I'd like to propose this as an enhancement as some websites might need to Import with many users and probably there are many people out there who are not comfortable on changing things through their database.

This .gif is a simple mockup of what I thought could be done. As you'll see it's just an extra select box and a little jQuery but it saves a lot of time if the authors are way too many to simply point+click on each of them. This patch was something simple so I can ease my repetitive imports it was not meant to be 100% clean and safe etc."	xkon		ui/ux
Reporter Feedback / Close	52781	WP Export/Import tool		Import	normal	defect (bug)	new	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		close
Reporter Feedback / Close	53126	Blogger Importer		Import	major	feature request	reopened	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	5.7.1	reporter-feedback
Defects Awaiting Review	63899	merge_style_property() truncates style values containing a colon, and warns on segments containing none		Interactivity API	normal	defect (bug)	new	2025-08-30T12:26:08Z	2026-08-11T15:41:48Z	"Hi, I have a question. In my new wordpress project I am getting an error from wordpress interactivity api, and not sure how to resolve this.

I patched up the code with the following adjustments:
{{{
list( $name, $value ) = explode( ':', $style_assignment );
	if ( trim( $name ) !== $style_property_name ) {
		$result[] = ($name ? trim( $name ) : '') . ':' . ($value ? trim( $value ) : '') . ';';
   }
}}}

Will there be an update for the interactivity api,or has it already been resolved somewhere? I could not find a clear answer. But I got it working currently.\


kind regards,


Ted




See error:
`Warning: Undefined array key 1 in /.../wp-includes/interactivity-api/class-wp-interactivity-api.php on line 1014`
`Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /.../wp-includes/interactivity-api/class-wp-interactivity-api.php on line 1016`"	tkay01	6.5	has-patch
Defects Awaiting Review	62628	Server and client directive negation logic should align		Interactivity API	normal	defect (bug)	new	2024-12-02T11:55:16Z	2026-05-12T10:53:09Z	"Interactivity API directives allow for a negation prefix `!`. Values with this prefix should be negated.

[https://github.com/WordPress/wordpress-develop/blob/e89e279e0328eca38cd9cc4baff36e042afe3373/src/wp-includes/interactivity-api/class-wp-interactivity-api.php#L649-L650 The server side] and [https://github.com/WordPress/gutenberg/blob/8d343d155c7577d46aea33e708dceb39c571cc80/packages/interactivity/src/hooks.tsx#L246 client side] negation logic both rely on rudimentary `!` negation. This means that the negation logic depends on PHP and JavaScript behavior which do not always agree and cause differences in server/client rendering of the same data.

For example, with this state:

{{{#!php
<?php
wp_interactivity_state(
	'example',
	array(
		'emptyArray' => array(),
		'stringZero' => '0',
	)
);
}}}

And the following HTML with directives:

{{{#!xml
<div data-wp-interactive=""example"">
	<div data-wp-bind--data-test=""!state.emptyArray""></div>
	<div data-wp-bind--data-test=""!state.stringZero""></div>
</div>
}}}

This is the server render render:

{{{#!xml
<div data-test=""true"" data-wp-bind--data-test=""!state.emptyArray""></div>
<div data-test=""true"" data-wp-bind--data-test=""!state.stringZero""></div>
}}}

While the client renders the following:

{{{#!xml
<div data-test=""false"" data-wp-bind--data-test=""!state.emptyArray""></div>
<div data-test=""false"" data-wp-bind--data-test=""!state.stringZero""></div>
}}}"	jonsurrell	6.5	has-patch
Enhancements Awaiting Review	64093	Interactivity API: Performance bottleneck in `data_wp_each_processor` due to repeated template parsing		Interactivity API	normal	enhancement	new	2025-10-14T09:33:42Z	2025-10-28T17:00:42Z	"== Summary

A performance bottleneck exists in WP_Interactivity_API::data_wp_each_processor when it processes a data-wp-each directive with a large number of items. The current implementation re-scans the entire inner template HTML for every item in the loop, leading to exponential performance degradation as the number of items increases. This ticket proposes an optimized approach using pre-computation and caching to parse the template only once.

== Problem Description

During a high-traffic load test (500 virtual users) on a production endpoint for a major enterprise customer, we identified WP_Interactivity_API::data_wp_each_processor as the primary bottleneck. New Relic traces consistently showed this single function consuming over 60% of the total request time (e.g., 40.89 seconds).

The root cause of the inefficiency lies in its nested-loop-like behavior:

- The function iterates through the array provided to the data-wp-each directive (let's call the number of items N).
- Inside every iteration, it instantiates a new WP_HTML_Tag_Processor for the template and recursively calls $this->process_directives().
- This recursive call forces the WP_HTML_Tag_Processor to scan the template from the beginning to find all directive tags (let's say there are M tags to process).

This results in a time complexity of approximately O(N⋅M), where the expensive work of finding all directive tags within the template is repeated for every single item in the source array. For a list with hundreds of items and a template with several directives, this becomes computationally prohibitive.

== Steps to Reproduce

- Register an interactive block or view script.
- Use the data-wp-each directive on a <template> tag.
- Provide a large array to the directive via wp_interactivity_state(), for example, an array with 500+ items.
- Inside the <template>, include several elements with other interactivity directives (e.g., data-wp-text, data-wp-bind:aria-label, data-wp-class).
- Load the page and profile the server response time. You will observe an extremely high execution time for the data_wp_each_processor method.

== Proposed Solution: Pre-computation and Caching

The proposed solution refactors the processor to adopt a ""pre-compute and cache"" strategy. Instead of re-parsing the template on every iteration, we can build a ""blueprint"" of the template once, cache it, and then use it to efficiently process each item.

The new logic is as follows:

- **Blueprint Creation:** On the first encounter of a given template HTML, create a ""blueprint."": Instantiate a WP_HTML_Tag_Processor for the template. Iterate through it once to find all tags containing data-wp- directives. For each interactive tag found, create a bookmark using $p->set_bookmark().

- **Caching:** Store the array of bookmark names in a static class property (private static $template_blueprints), using an md5 hash of the template's HTML as the cache key.

- **Optimized Loop:** For each item in the data array: Instantiate a new WP_HTML_Tag_Processor with the template HTML. Instead of scanning, iterate through the cached bookmark names. Use $p->seek( $bookmark_name ) to jump directly to the next interactive tag. Finally, call the original process_directives() on that specific tag.

I think this change would fundamentally alter the time complexity to something closer to O(M+N⋅D), where M is the one-time cost of scanning the template to build the blueprint, and D is the number of interactive directives that need processing for each of the N items. This would be a massive performance improvement."	michelleeby	6.9	has-patch
Defects Awaiting Review, reported against no version	38769	Possible password reset loop		Login and Registration	normal	defect (bug)	new	2016-11-12T13:11:48Z	2019-03-25T21:41:17Z	"
== Bug summary ==


After registering (wp-login.php?action=register) you get straight to the '''login screen''' with a small notice to check your email (wp-login.php?checkemail=registered). But logging-in is not even possible because users have to set their password via a link provided in their email in the first place. '''If users nevertheless try to login they get a misleading error message that could lead to an endless loop of password reset and the user will not be able to register.'''

'''Bug 1:'''
There should be no login form where a user cannot log-in.
(attachment 1)

'''Bug 2:'''
There should be the message that the user has to set the password first.
(attachment 2)

'''While these things seems to be tiny the results are severe.'''

== Bug description ==

If users register they see after submitting the register form the login form with the message ""Registration complete. Please check your email."" on top. They often overlook this message and try to log-in even if they didn't set a password yet.

This leads to situations where users are not able to register:

1. When users try to log-in directly after registration they get the message that the password is wrong. (see attachment)
2. Because of the misstated error message they go to the ""Lost your password?"" form and try to get a new password.
3. They now check their email for the first time and open the email from the registering (!) and not the ""lost password"" email.
4. They click on the link for setting the password in the register email.
5. This link is invalid because of step 2.
6. They then try again to get a new password.
7. They go back to their email account and open the email from step 2 (!) and open this link. Because of step 6 the link is again invalid.
8. They try to get a new password.
9. And so on.

Having the impression to be trapped in an endless loop they often think that the website is full of bugs, are not interested to register anymore or contact the support for removing bugs.

'''I could provide dozen if not even hundreds of cases where this happened to my website.'''


== How to reproduce the bugs?==

1. Try to register.
2. Try to log-in even without a password (put your usual password in it).
3. Set you password back after the error message.
4. Go to your email account and open the register email. Click on the link.
5. You get the message that the link is invalid. Set you password back.
6. Open the email from step 3 and so on.


== tl;dr ==

After registration you see the login form even if you don't set a password yet. If you try to log-in (even if you don't set a password yet) you get a misleading error message that could trap you in an endless password reset process. Users than give up to register or contact support. It is not just theory. Every day, I lose angry customers or have to support them. Please have a look to the attachments."	yetAnotherDaniel		needs-patch
Defects Awaiting Review	66193	wpmu_activate_signup() reports a password that was never set when the user already exists		Login and Registration	normal	defect (bug)	new	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	3.0	has-patch
Defects Awaiting Review	28212	determine_current_user filter with priority <10 gets overridden		Login and Registration	normal	defect (bug)	new	2014-05-12T01:35:55Z	2026-07-31T11:26:56Z	"Introduced in #26706.

`wp_validate_auth_cookie` was shoehorned into this filter, and as such, doesn't return what the filter expects. On any error at all, it returns `false`, even if the ""error"" is that the cookie isn't set. If a function hooked into a lower priority (i.e. <10) returns a user ID, this will then be overridden by the built-in auth cookie."	rmccue	3.9	has-patch
Defects Awaiting Review	62996	register_new_user() unintentionally triggering 'profile_update' hook		Login and Registration	normal	defect (bug)	new	2025-02-21T00:38:30Z	2026-07-23T20:59:23Z	"When a new user account is registered, both the `user_register` hook (from 2.0.0) and the `profile_update` hook (from 1.5.0) are being executed (inside of `wp_insert_user()`.)

Between versions 2.0.0 and 5.3.0, these two hooks were frequently used to differentiate between a new user being created and an existing user being updated.

After version 5.3.0, `profile_update` fires on both new & update, breaking the previous expectation of separation.

----

== Replication ==

1. Single site installation
2. Enable debug logging via your preferred method
3. Enable registration in Settings > General
4. Activate this plugin:
{{{
<?php
/*
Plugin Name: Profile Update Logger
Description: Logs a message whenever a user's profile is updated.
Version: 1.0
Author: JJJ
*/

function log_profile_update( $user_id, $old_user_data ) {
    error_log( 'User profile updated. User ID: ' . $user_id );
}
add_action( 'profile_update', 'log_profile_update', 10, 2 );
}}}
5. Manually register a new user account via `wp-login.php?action=register`, or run the following WP-CLI eval:
{{{
wp eval 'register_new_user( ""jjj"", ""jjj@example.com"" );'
}}}

In your debug log, you should see that the user profile was updated for the newly registered user, even though that new user did not actually update their own profile.

----

== Results ==

WordPress core is calling `default_password_nag_edit_user()` on every sign-up, and it isn't useful in that context.

I confirmed that BuddyPress, bbPress, and Easy Digital Downloads use `profile_update` to target user profile updates only, and have quite a bit of extra code unintentionally running on user sign-ups.

----

== Origin ==

r45714 specifically.

#45746, #45845, and tangentially #33587.

In summary, direct database queries were replaced with API equivalents, and hooks were put in place to abstract direct function calls (related to sending notification emails), which generally is good and makes sense, but has resulted in `wp_insert_user()` being called twice in the same request.

Below is an abbreviated call-stack of the relevant functions & hooks:

* `register_new_user()`
  * `wp_insert_user()`
    * `do_action( 'user_register' );`
  * `do_action( 'register_new_user' );`
    * `wp_new_user_notification()`
      * `get_password_reset_key()`
        * `wp_insert_user()`
          * `do_action( 'profile_update' );`

----

== Fix ==

Due to age & limited footprint, I'm not entirely sure.

We can accept this regression as inherited, since it's been multiple years without complaint. I don't love this idea, because it leaves WordPress without a way to hook into user updates & sign-ups for different purposes.

We can revert r45714, making sure to test that caches are behaving. This will technically break the hook behavior in this call-stack for WordPress 5.3.0 to present, so anyone expecting this second call to `wp_insert_user()` would experience breakage.

We can rethink the current order-of-operations and combine both `wp_insert_user()` calls into a single one. I think this is the ideal fix, but I can already imagine some back-compat issues with it, too."	johnjamesjacoby	5.3	dev-feedback
Defects Awaiting Review	44333	Password hint label needs to be re-worded and needs to have a minimum password length check		Login and Registration	major	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	65076	Missing escaping in title tag		Login and Registration	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	57032	Percent sign in site title leads to signing up new users not working		Login and Registration	normal	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	6.0.3	
Defects Awaiting Review	63490	Non secure sudomain site url in site activation email		Login and Registration	normal	defect (bug)	new	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	6.8	dev-feedback
Defects Awaiting Review	49633	Trim cookie paths		Login and Registration	normal	defect (bug)	new	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	5.3.2	has-patch
Defects Awaiting Review	63896	is_login() will trigger on non-login pages		Login and Registration	normal	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	6.8.2	
Defects Awaiting Review	60801	New sessions are created when user authenticates but there already are active sessions		Login and Registration	normal	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	6.4.3	
Defects Awaiting Review	54246	wp_logout sometimes causes 'upstream sent too big header'		Login and Registration	normal	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		
Defects Awaiting Review	63412	Bcrypt - Cannot Verify Password Hashes		Login and Registration	normal	defect (bug)	new	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	6.8	dev-feedback
Defects Awaiting Review	62485	Lost Password form action URL is not using wp_lostpassword_url		Login and Registration	minor	defect (bug)	new	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		has-patch
Defects Awaiting Review	61289	Logout error on Multisite with directories - Login subsites		Login and Registration	critical	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	6.5.3	
Defects Awaiting Review	61155	Maximise compatibility with password managers when resetting password		Login and Registration	normal	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		
Defects Awaiting Review	60748	auth_redirect() login check doesn't exist or doesn't work		Login and Registration	normal	defect (bug)	new	2024-03-11T13:11:38Z	2024-04-19T15:47:17Z	"The `auth_redirect()` documentation states:

""Checks if a user is logged in, if not it redirects them to the login page.""
[https://developer.wordpress.org/reference/functions/auth_redirect/]

However, unless a call to `auth_redirect()` is wrapped inside a `is_user_logged_in()` check, then it always sends people to the login page (even if a user is already logged in).

I don't know if the documentation is incorrect or if there is a bug in the code.

To reproduce, all you need to do is something like this:

{{{#!php
<?php
add_action( 'wp', function() {
	if ( is_page( 2 ) ) {
		auth_redirect();
	}
} );
}}}
"	kratosgemini		
Defects Awaiting Review	60929	Deprecated notice: the_block_template_skip_link()		Login and Registration	normal	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		
Defects Awaiting Review	54685	Admin email verification redirects back to login page		Login and Registration	normal	defect (bug)	new	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	5.8.1	has-patch
Defects Awaiting Review	60529	"Filter to disable ""password reset"""		Login and Registration	normal	defect (bug)	new	2024-02-13T16:58:45Z	2024-02-20T11:39:48Z	"there is existing filter `allow_password_reset` which doesn't work as it might sound..
For example, setting that filter to `false` still allows the ""wp-login.php?action=lostpassword"" url continue to work.

Many people today uses 3rd party authorizations (Google sign in, facebook, etc etc) and want to have disabled internal registration/password reset forms.
It will be good to have a filter to disable ""Lost password"" capability completely.

(Also, I assumed that if users are allowed to be registered on site, then it doesn't have any point to have ""Lost password"" disabled, so, the check includes whether ""registration is disabled"".)"	ttodua		dev-feedback
Defects Awaiting Review	47088	Visting wp-login.php whilst logged in logs you out		Login and Registration	normal	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	3.0	
Defects Awaiting Review	54299	Multisite: The link in the password retrieval email always points to the main-site		Login and Registration	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	53728	no re: definition towards the cloud-friendly environment		Login and Registration	minor	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		
Defects Awaiting Review	51008	Issue with multisite new user registration		Login and Registration	critical	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	5.5	
Defects Awaiting Review	42481	TEST_COOKIE and LOGGED_IN_COOKIE secure flag create issues on non-secure login		Login and Registration	normal	defect (bug)	new	2017-11-09T01:30:29Z	2019-04-29T08:24:10Z	"Once a user has accessed the login form over https (possible without a valid ssl license, ignoring the browser warning) the WordPress TEST_COOKIE will have the secure flag set https://core.trac.wordpress.org/browser/trunk/src/wp-login.php#L433

When that user goes back to login over http, this will no longer be possible. The test cookie will be ignored by the browser because of the secure flag.

Without the test cookie, all login attempts will be redirected back to the login form with a warning about cookies not being set by the browser. Most users will not know why this happens and will no longer be able to log in.

The user will have to go back to https, open the developer toolbar, delete the cookie and then back to http. Only then the test cookie will be set again, this time without the secure flag.

A work-around to prevent users from being locked out like this, is to make the test cookie name ""http/s aware"" with something like this in wp-config.php:

{{{
$secure = ( isset($_SERVER['HTTPS']) && 'on' == $_SERVER['HTTPS'] ) ? '_sec' : '';
define( 'TEST_COOKIE', 'wordpress' . $secure . '_test_cookie' );
}}}
(using wordpress_sec for secure cookie similar to the auth cookie)

But... the real question is:

'''Why does the test cookie need the secure flag at all?'''

There is no sensitive information passed and it's only there to (as the name suggests) test for cookie unaware or blocking browsers. At least as far as I can tell, there would be no possible problem with simply removing this cookies secure flag. This will not affect any sensitive login/session cookies secure flags.

Or am I mistaken? Are there use cases where the browser can be set to accept cookies over https while blocking them over http?

"	RavanH	4.9	
Defects Awaiting Review	46033	Please fix redirect in wp-login.php		Login and Registration	normal	defect (bug)	new	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	5.0.3	has-patch
Defects Awaiting Review	44960	wp-login.php does not allow redirecting 'read' capability (Subscriber) to Dashboard instead of Profile upon login		Login and Registration	normal	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		
Defects Awaiting Review	42610	Admin created account password reset process not reverse proxy friendly		Login and Registration	normal	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	4.9	
Defects Awaiting Review	42377	"login screen empty fields msgs are not in sync with the ""Username or Email Address"" field label"		Login and Registration	normal	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	4.8.2	
Defects Awaiting Review	40595	wp_authenticate_username_password() should respect WP_Error object generated by higher priorities		Login and Registration	normal	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	4.7.4	
Defects Awaiting Review	40249	period as last character in username breaks activation link		Login and Registration	normal	defect (bug)	new	2017-03-24T10:38:43Z	2017-03-24T10:40:31Z	"Many browsers and mail clients are converting text-URLs to clickable links. 

If a user chooses an username with a period at the end, the activation link in the mail could be incorrect, because the mail client thinks, the period is a punctuation character.

See this (non-working) URL for an example:
https://www.domain.de/wp-login.php?action=rp&key=XXXXXX&user=ballspieler96.

The period at the end is part of the username but not part of the URL.

Fix:
Don't use the username as last parameter. Instead use a defined parameter, which won't have periods as value (i.e. 2action"" or ""key"")"	ilikewordpress	4.7.3	
Enhancements Awaiting Review	66616	Tests: Add unit test coverage for wp_login_form()		Login and Registration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66238	"Users with ""same"" email address can be accidentally created"		Login and Registration	normal	enhancement	new	2026-10-03T14:44:37Z	2026-11-04T12:26:26Z	"Wordpress does not permit multiple users with the same email address, using RFC 5321 to define the localpart of the address.
However, several major email service providers (Gmail, Outlook, Yahoo) ignore mixed case in localparts.
This means that WordPress will support 2 users with email addresses abc@gmail.com and ABc@gmail.com - although those 2 addresses represent the same mailbox.
Propose an enhancement:
  1. Warn admins when manually creating a user that the new email address might be a duplicate of...
  2. Highlight email addresses on the admin Users page that are case-insensitive identical. 
"	flymike	2.1	has-patch
Enhancements Awaiting Review	66237	Remove login test cookie.		Login and Registration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	34712	New filter: `reset_password_url`		Login and Registration	normal	enhancement	new	2015-11-17T11:46:06Z	2026-09-17T20:31:36Z	For example if I want make custom reset password page.	sebastian.pisula		has-patch
Enhancements Awaiting Review	65393	custom login page		Login and Registration	normal	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		
Enhancements Awaiting Review	60737	invalid_email or user_email ?		Login and Registration	minor	enhancement	new	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	6.5	dev-feedback
Enhancements Awaiting Review	55950	FIDO passwordless authentication?		Login and Registration	minor	feature request	new	2022-06-08T14:11:20Z	2026-02-26T11:39:40Z	"With the [https://www.apple.com/newsroom/2022/05/apple-google-and-microsoft-commit-to-expanded-support-for-fido-standard/ recent news] that Apple, Google, Microsoft, and more are committing to the [https://fidoalliance.org/ FIDO] standard for passwordless authentication, does it make sense for WordPress core to introduce support for FIDO at some point?
"	johnstonphilip		
Enhancements Awaiting Review	36010	New password reset styling changes are confusing to casual users		Login and Registration	major	enhancement	new	2016-02-29T16:20:53Z	2026-02-02T16:59:51Z	"I've noticed an uptick in how many of my users have been confused by the password reset process recently. In talking a few of them through the process, I realized that there are two spots where they are unsure of what to do:

* On the password reset screen, the ""New password"" input doesn't look like the other inputs they've encountered, like at wp-login.php.
* Once they click ""Reset password,"" they're expecting to receive an email containing the new password (and aren't realizing that the characters in the ""new password"" box are the new password). So, when they're redirected to a standard login screen, they're doubtful.

About the first issue, I'm attaching mockups of the reset password screen with less styling. It's less visually interesting to advanced users, but maybe less is more for less experienced users.

To help with the second issue, adding an instructional banner might help. For instance, if we were to redirect on submission of the ""reset password"" form to `wp-login/?newpass=true` or similar, then we could offer some guidance. See attached images.

Thanks for your consideration. 
"	dcavins	4.4	has-patch
Enhancements Awaiting Review	38750	Split wp_signups into wp_user_signups and wp_blog_signups		Login and Registration	normal	feature request	new	2016-11-10T19:07:00Z	2025-12-11T23:57:41Z	"Right now, `wp_signups` (and the entire related API) does double-duty. It's 1 database table that's used for both users & blogs, but there are a few issues with this approach:

* Open sign-ups may or may not include ability to create sites
* There is no UI for managing sign-ups in WordPress core
* Sign-ups are different between singlesite & multi-site
* Plugins like BuddyPress do their best to include and/or work-around WordPress's core functionality, but end up writing a ton of additional code to manage this
* Other membership plugins are forced to roll their own approach every single time
* It's possible for multisite sign-up race conditions to exist, with users & sites created or activated from underneath each other (documented in `wpmu_activate_signup()`)

I'm adding the multisite focus to this issue, because all of the current code is only relevant to multisite, but I'd like to see single-site inherit whatever future approach we can come up with.

The core sign-ups code, stinks. Yet open registration is part of what makes WordPress & community/membership sites great. I think it would be great to take what we've learned from BuddyPress, WordPress.org, WordPress.com, and the bevy of Membership plugins, and make a great sign-up component/API for WordPress core."	johnjamesjacoby	3.0	needs-unit-tests
Enhancements Awaiting Review	34507	New action `before_login_form`		Login and Registration	normal	enhancement	new	2015-10-30T07:33:57Z	2025-06-05T05:52:44Z	"I can add new fields before default fields form. For example I can add social login :

https://food52.com/users/sign_in?next_url=%2F"	sebastian.pisula		has-patch
Enhancements Awaiting Review	63125	Let hidden if an email address is registered on the website		Login and Registration	normal	enhancement	new	2025-03-19T08:28:33Z	2025-05-26T14:29:53Z	"Hi,
The password recovery method expected for WordPress allows a malicious user to know if an email address is registered on the website.
Infact if you use the password lost feature, if you enter a non existent email address the error is ""Error: There is no account with that username or email address""... so you could tests an amount of email addresses and discover which one is registered on the website.

In my opinion it could be better to have in every condition a generic message like ""If the entered email address is on our database you will recive an email with the instructions to reset your password"".

Eventually I might take care of this enhancement.

Thanks :)

P.S. This is also related to the paragraph ""Why did I get this “Password Reset” email?"" on https://make.wordpress.org/core/handbook/testing/reporting-security-vulnerabilities/"	SGr33n		
Enhancements Awaiting Review	63376	Enhancement: wp_login_form() $redirect params default value fetching update		Login and Registration	normal	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		
Enhancements Awaiting Review	57540	make WordPress password management more “understandable”?	audrasjb*	Login and Registration	normal	enhancement	accepted	2023-01-24T11:04:58Z	2025-04-14T14:34:05Z	"Hey there 👋 
I’m not sure I’m in the right place to suggest something but here I go:
Are there plans to make WordPress password management more “understandable”?

Let me explain :
when my users need to change their password (after a lost password or an expiration), the “Save password” is confusing, most forget to copy/paste this password somewhere and understand that the password has been saved.

https://markuphero.com/share/N8RP1UaE0rIYXih6TxiI

If in addition the user is used to having his browser save his passwords, the confusion is even greater: the user clicks on “Save password”, returns to the login page, the browser automatically fills in the fields (with the old password) and obviously… login failure!

I use cPanel and just had to create a new database, I find the user experience more explicit: I have a “Password generator” button and then a mandatory checkbox “I have copied this password in a safe place.” then finally a “Use password”.

What do you think ? Am I the only one who thinks these steps deserve a better UX? 😬 "	ludovicsclain	6.1.1	needs-patch
Enhancements Awaiting Review	62601	The padding in the login form is not consistent; it varies.		Login and Registration	normal	enhancement	new	2024-11-28T13:19:02Z	2024-12-24T05:24:44Z	In a login form, using the same padding for the top, right, bottom, and left of the input fields ensures a better and more consistent design.	deeppatel8950	5.3	has-patch
Enhancements Awaiting Review	61666	Extra margin in tablet and mobile login button in admin login		Login and Registration	minor	enhancement	new	2024-07-17T04:10:46Z	2024-12-23T11:51:30Z	"I have just found one issue in admin login there is an extra margin of 4px from the bottom-side of the login button on mobile and tablet.

"	trushaamin	3.8	has-patch
Enhancements Awaiting Review	40768	site.com/login should not redirect to login page when user is already logged in		Login and Registration	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	55193	login-form: Use the same id and class value between wp_login_form() and wp-login.php		Login and Registration	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	58311	Validate Username for not to be a email and strip everything after @		Login and Registration	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	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	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		
Enhancements Awaiting Review	57811	Should application password be usable for logins		Login and Registration	normal	enhancement	new	2023-02-26T13:59:44Z	2023-03-06T17:33:01Z	"WordPress has, since version 5.6, bundled the ability to generate Application Passwords.

These have been usable as HTTP Basic Auth tokens for REST API requests, but that is the extent of their use within core.

In traditional use-cases, an Application Password is a specific token, used by one or more applications, to sign in and bypass the needs for other account security, such as for example two-factor authentication.

I'm not sure how SVN interacts with user accounts, but in ''theory'' would this allow for application passwords for things such as commits to plugins/themes/core?
It would also allow older integrations, like the ones relying on XMLRPC still, to continue working without additional plugins out of the box.

I'd like to open the discussion if WordPress should perhaps also allow their use for this case? It is of course possible for a plugin to implement this already, but given how different WordPress is currently treating Application Passwords from what other services do, it seems like a valuable discussion to cover :)"	Clorith	5.6	
Enhancements Awaiting Review	55260	Update Codex Page to Include Password Visibility Button and Language Switcher		Login and Registration	normal	enhancement	new	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	5.9.1	needs-docs
Enhancements Awaiting Review	54716	"""Remember me"" label changed to ""Keep me logged in"""		Login and Registration	trivial	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	2.0	
Enhancements Awaiting Review	38336	Login: Add new action hooks to the top of login type forms		Login and Registration	normal	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	4.6.1	
Enhancements Awaiting Review	41663	Hooks for the back to login link in the footer of wp-login.php		Login and Registration	normal	feature request	new	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	4.8.1	dev-feedback
Enhancements Awaiting Review	52390	Use specific page for postpass		Login and Registration	normal	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		
Enhancements Awaiting Review	43080	Allow access to triggered WP_Error when using login_errors and login_messages filters		Login and Registration	normal	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	4.9.1	
Enhancements Awaiting Review	49328	Add filter/action to append link to the login form footer inside the #login container		Login and Registration	trivial	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		
Enhancements Awaiting Review	48899	Verification admin email again after just changed/updated email?		Login and Registration	normal	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	5.3	
Enhancements Awaiting Review	39927	Add support for CSS class and attributes in wp_login_form input fields		Login and Registration	normal	enhancement	new	2017-02-21T14:23:14Z	2019-04-24T22:05:26Z	"I think adding support for class and a few useful attributes like placeholder and required for default login form (wp_login_form).

In `wp-includes/general-templates.php` (line 402), if we can pass `$args` like this it would be nice:

{{{
$args = array(
  ...
  'placeholder_username' => __('Your login Id'),
  'placeholder_password' => __('Your password (case sensitive)'),
  'username_required' => true,
  'password_required' => true,
  'username_css_class' => 'form_control,
  'password_css_class' => 'form-control
  'username_remove_size' => true,
  'password_remove_size' => true
);
}}}

This will have the following benefits:

1) We can use HTML5 native client side validation
2) We can tell WordPress to use custom class name (if none is supplied, default would be used)
3) Placeholder will help removing labels and save space
4) Size attribute if set to `true` will not be used. This is useful if I don't need it at all.

Based on the above values the `<form>` element also could be modified like this:

{{{
$form = '<form ...>
   <input type=""text"" <?php if($args[""username_required""] == true) echo ""required"" ... ?>
</form>';

if($args['echo']){
   echo $form;
} else {
   return $form;
}
}}}"	subrataemfluence	4.7.2	has-patch
Enhancements Awaiting Review	42053	There should be an option to make wp_login_form() functions's username and password input field required.		Login and Registration	normal	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	4.9	
Enhancements Awaiting Review	37870	Adding hints to login/registration form fields		Login and Registration	normal	enhancement	new	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	4.6	dev-feedback
Enhancements Awaiting Review	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	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	38789	Multisite sign-up improvements (potential roadmap)		Login and Registration	normal	feature request	new	2016-11-14T20:06:03Z	2019-03-25T21:18:22Z	"The `wp_signups` database table has a few things not going for it:

* No `_Query` class
* No `WP_Signup` object class
* No user interface for moderating them
* No query or object caching
* A `meta` database column vs. a `wp_signupmeta` database table
* `wp-signup.php` is a pretty gnarly file, as is `wp-activate.php`

A lack of support for this multisite feature means no one is very likely to use it. Most membership plugins (BuddyPress included) generally wrap around it, but also need to write a bunch of additional code to interface with what's here now.

I took a stab at this last week, and made this plugin for a proof-of-concept:

* https://wordpress.org/plugins/wp-user-signups
* https://github.com/stuttter/wp-user-signups

Pretty much all of the pieces are there, minus the meta-data table (which would not be very hard at all.)"	johnjamesjacoby	3.0	dev-feedback
Enhancements Awaiting Review	45143	"If the ""recover password"" form submit button is double-clicked two emails will be sent"		Login and Registration	minor	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	44517	Allow specifying the WordPress username to be filled in on the login form via a URL parameter.		Login and Registration	normal	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		
Enhancements Awaiting Review	44334	'Invalid username or email' can just be 'Invalid username' in retrieve_password function		Login and Registration	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	43957	check_password_reset_key could use get_user_by instead of direct query		Login and Registration	normal	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	4.9.5	
Enhancements Awaiting Review	40065	Check for invalid user before `lostpassword_post` in `retrieve_password()`		Login and Registration	normal	enhancement	new	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	4.7.3	dev-feedback
Enhancements Awaiting Review	38432	Validate user creation and email change by token		Login and Registration	normal	feature request	new	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	4.9	needs-unit-tests
Enhancements Awaiting Review	41170	Allow the newbloguser screen to be themed		Login and Registration	normal	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	3.0	
Enhancements Awaiting Review	26474	Add Filter to Username/Password Fields on Login Form?		Login and Registration	normal	enhancement	new	2013-12-07T18:06:49Z	2017-05-13T21:39:09Z	"As a state institution, we are required to remain PCI-compliant. One of the areas we've been dinged in scans in the past, albeit an area that they consider ""low risk"", is the fact that the username and password fields allow autocomplete.

I understand that it's probably not preferable for everyone using WordPress to have autocomplete turned off on those fields, but it would be nice if it was simple to at least filter those fields to turn it off (or, at the very least, add that as one of the ""args"" that are used when the form is built).

This should obviously be used both in wp-login.php and in the `wp_login_form` function within wp-includes/general-template.php

I'm happy to work up a patch for this if this is something that might be supported. Thanks."	cgrymala	3.8	dev-feedback
Enhancements Awaiting Review	40705	Unable to login to admin backend from a wordpress login modal window		Login and Registration	normal	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	4.7.3	
Enhancements Awaiting Review	39985	Do action before send email of retrieve password		Login and Registration	normal	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	4.7.2	
Enhancements Awaiting Review	31682	reg_passmail message on login.php needs filter		Login and Registration	normal	enhancement	new	2015-03-18T13:22:43Z	2017-03-01T00:30:22Z	"reg passwords is hardcoded to the login.php:

{{{
<p id=""reg_passmail""><?php _e('A password will be e-mailed to you.') ?></p>
}}}
 
So it appears even if you do some other ways of delivering passwords. E.g. i want to first check the registrating person and then send them the password, not immediately, so i need to change this message that would reflect this, and the only option now is to filter global gettext, what is not optimal.

Proposed solution - replace this row with
{{{
<p id=""reg_passmail""><?php echo apply_filters('reg_passmail',__('A password will be e-mailed to you.')) ?></p>
}}}
"	thomask	4.1.1	has-patch
Enhancements Awaiting Review	34466	wp_register_form, wp_lost_password_form function		Login and Registration	normal	feature request	new	2015-10-27T14:48:11Z	2017-02-22T09:57:13Z	"Hi,

We currently have a wp_login_form function to display the login form, however, we do not currently have an opposite for the registration form.

'''Should look into:'''
wp_register_form
wp_lost_password_form
"	atomicjack	4.4	dev-feedback
Enhancements Awaiting Review	23279	Add templates to style registration, signup, activation, login and password reset pages		Login and Registration	normal	enhancement	new	2013-01-23T22:20:58Z	2017-02-22T09:54:26Z	"As [https://irclogs.wordpress.org/chanlog.php?channel=wordpress-dev&day=2013-01-23&sort=asc#m539267 discussed in IRC], the ability to override the various user-related pages would be a great ability for themes to have. At the moment, it's pretty tedious to style these and there's very little control over the content of the page (some for good reason, others not so much).

Related: #1155, #3123, #22139"	rmccue		has-patch
Enhancements Awaiting Review	39929	"Improve ability to customize ""nav"" links below login form."		Login and Registration	normal	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	4.8	
Enhancements Awaiting Review	30274	"wp-login.php Logo Image Use ""img"" tag rather than CSS background"		Login and Registration	normal	enhancement	reopened	2014-11-06T14:49:32Z	2017-02-19T17:53:28Z	"The fact that the logo image that displays on www.website.com/wp-login.php is a background image rather than an ""img src"" html tag often makes it problematic, because support for resizing CSS backgrounds is more complicated than using ""img src"" tags.  For example, it seems like every time I use a plugin or try to alter the logo image on wp-login.php it in some way, it takes some combination of the perfect image size and css hacks to make it responsive.  

Conversely, if it was an ""img"" tag, I could just apply ""width:100%; height:auto;"" or something like that.

So, in conclusion, I propose switching from a background image to an ""img src"" html tag.

[[Image(http://i.imgur.com/C5qwZtq.png)]]"	themightymo	4.0	
Reporter Feedback / Close	66130	Login language switcher button has no explicit background, unreadable with custom login background		Login and Registration	normal	defect (bug)	new	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	7.0	close
Reporter Feedback / Close	65820	Default first check for is_login()		Login and Registration	normal	enhancement	new	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		close
Reporter Feedback / Close	59084	Spaces in username during login		Login and Registration	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	63317	I caught a bug while trying to regester	Developer of website	Login and Registration	critical	defect (bug)	assigned	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	6.8	reporter-feedback
Reporter Feedback / Close	35817	Force users to set strong passwords		Login and Registration	normal	enhancement	new	2016-02-12T16:31:38Z	2024-02-08T15:55:49Z	"WordPress 4.3 added [https://github.com/dropbox/zxcvbn zxcvbn] for better password strength testing. 

The UI was also modified to push users to set strong passwords in various ways.

* When setting a password, a strong one is generated for the user.
* A user must check off an ""Are You Sure?"" checkbox to set a weak password.

This is great. However, an ""Are You Sure"" checkbox is what stands between an easily hackable WordPress site and an exponentially stronger WordPress site. 

I would like to force users to set strong passwords in the UI. "	ericlewis		close
Reporter Feedback / Close	37857	Strange behaviour for COOKIE_DOMAIN since Wordpress 4.6		Login and Registration	normal	defect (bug)	new	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	4.6	reporter-feedback
Reporter Feedback / Close	50672	Login Mask jerks when  I define Privacy Policy page in Chrome Browser		Login and Registration	normal	defect (bug)	new	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	5.4.2	reporter-feedback
Reporter Feedback / Close	52964	Video On Login Page		Login and Registration	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	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	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	34372	Password reset link invalid for user names containing blanks		Login and Registration	normal	defect (bug)	new	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	4.3.1	reporter-feedback
Reporter Feedback / Close	48260	WordPress beta 5.3 - Unable to type Password when I login....		Login and Registration	normal	defect (bug)	new	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	5.3	reporter-feedback
Defects Awaiting Review	28473	wp_mail incorrectly parses multiline From header		Mail	normal	defect (bug)	new	2014-06-06T19:08:32Z	2025-09-09T16:49:39Z	"`wp_mail` tries to parse `From:` header when it is contained in headers. It fails when the header is multiline. Multiline headers are common when non-ascii characters are used and quoted-printable escaping kicks in.

Example input: 
{{{
From: =?UTF-8?Q?=D0=92=D0=B7=D0=B3=D0=BB=D1=8F=D0=B4=20=D0=BD=D0=B0=20=D0=BE?=
 =?UTF-8?Q?=D0=BA=D1=80=D1=83=D0=B6=D0=B0=D1=8E=D1=89=D0=B8=D0=B9=20=D0=BC?=
 =?UTF-8?Q?=D0=B8=D1=80?= <live-positive@yandex.ru>
}}}

Parsed email in `$from_email`:
{{{
=?UTF-8?Q?=D0=92=D0=B7=D0=B3=D0=BB=D1=8F=D0=B4=20=D0=BD=D0=B0=20=D0=BE?=
}}}"	arty.name	3.9.1	has-patch
Enhancements Awaiting Review	64940	PHP mailer Exception Handler		Mail	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	51717	Emails in WordPress (Templating and Sending methodology)		Mail	normal	feature request	new	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		dev-feedback
Enhancements Awaiting Review	53829	Add unique keywords for wp_mail calls to categorize it		Mail	normal	feature request	new	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		dev-feedback
Enhancements Awaiting Review	40081	Remove wp-admin links from all Core emails		Mail	minor	enhancement	new	2017-03-09T14:56:40Z	2025-07-16T08:27:39Z	"SpamAssassin has an undocumented rule called `URI_WPADMIN`, which is triggered when it sees a wp-admin URL in a message. If the rule is triggered, the message's spam score is bumped by `2.6` points (by default), which gets the message `50%` of the way to being flagged as spam. This can be reproduced easily with [http://spamcheck.postmarkapp.com/ Postmark's spam-checker API].

SpamAssassin also has a `PHP_ORIG_SCRIPT` rule that is assigned to all messages that are sent with the default PHP `mail()` agent. It has a score of `1.5`, which brings the vast majority of Core emails sent by WordPress installations up to a score of `4.1`, which is `80%` of the way to being flagged. That's not counting any other rules that may be triggered based on message content, server configuration, etc.

From a UX perspective, it's very helpful to include links in messages that take the user directly to any actions that we can reasonably assume they'll want to perform on a message. However, from a security perspective, I think the best practice is to not include those links, because doing so trains users to expect and trust them, which makes them vulnerable to phishing attacks.

So, I think we should consider removing all links to wp-admin, and replace them with a message asking users to log in to their site instead. We can give them navigation breadcrumbs like, `To disable these notifications, log in to WordPress at example.org and navigate to: My Sites > Network Admin > Settings.`

Related #39709"	iandunn		dev-feedback
Reporter Feedback / Close	60420	Default wordpress@site.com sender address can be problematic		Mail	normal	feature request	reopened	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.5.1.2	close
Defects Awaiting Review, reported against trunk	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	normal	defect (bug)	new	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	trunk	has-patch
Defects Awaiting Review, reported against no version	43668	Image cropping fails for many PHP locales, if set		Media	normal	defect (bug)	new	2018-03-30T16:12:10Z	2026-10-18T21:29:37Z	"If{{{#!php
<?php
setlocale( LC_NUMERIC /*or LC_ALL */, 'nb_NO' );
}}}

is used then Media image cropping fails and selection input fields show `Infinity`. It works fine with 'en_US', btw.

If #17268 is implemented, I guess it includes use of `setlocale'.

Anyway, image cropping, and other internal passing of numeric data insede an application, should work independently of how numbers are to displayed according to a locale.

I don't know which file or script to look into, to suggest a patch. Any help appreciated."	knutsp		dev-feedback
Defects Awaiting Review, reported against no version	35593	Metadata from wrong file in media_handle_upload		Media	normal	defect (bug)	reviewing	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		has-patch
Defects Awaiting Review, reported against no version	36418	Custom MIME type icons lost in WP Media List view		Media	normal	defect (bug)	new	2016-04-05T01:18:11Z	2026-05-29T20:49:44Z	"The ability to define custom MIME icons has been possible since at least v2.5, by hooking into several filters, one of which is `icons_dir`.

`icons_dir` allows you to specify additional directory/uri pairs for the `wp_mime_type_icon` routine to search, ideally adding icon support for additional MIME types.

However, going through SVN history, it seems that almost from the beginning of the availability of that hook, there has been a loophole where the additional icon directories are ignored!

Specifically:

`wp_get_attachment_image_src` calls `wp_mime_type_icon`, which in theory could select a custom icon directory added by the `icon_dirs` hook. It then attempts to fetch width and height information from the selected icon file, but only checks the default wp-includes/images/media directory.  Of course, this prevents the custom icons from displaying when fetched through `wp_get_attachment_image_src`."	jhorowitz		dev-feedback
Defects Awaiting Review, reported against no version	41349	Media Library insert from URL doesn't give a message when a URL fails check		Media	normal	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		ui/ux
Defects Awaiting Review, reported against no version	37632	Incorrect Image Previews for SVG		Media	normal	defect (bug)	new	2016-08-11T01:52:35Z	2025-12-12T16:33:51Z	"Hi guys,

When using the `upload_mimes` filter to add new mime types for the media uploader, it handles SVG uploads strangely. 

Here is my code to add SVG support

{{{#!php
<?php
function add_file_types_to_uploads($file_types){
				
	$new_filetypes = array();
	$new_filetypes['svg'] = 'image/svg+xml';
	$file_types = array_merge($file_types, $new_filetypes );

	return $file_types;
}
add_filter('upload_mimes', 'add_file_types_to_uploads');
}}}



This works fine and lets me upload SVG images. However when they are uploaded they don't render correctly. When using the new 'grid' layout, the image preview is just the default image which is fine, however when using the older 'list' layout, the image isn't displayed. 

The image itself when inspected is 1px wide by 1px tall. This is set by the following CSS inside of WP styles


{{{
table.media .column-title .media-icon img {
    max-width: 60px;
    height: auto;
    vertical-align: top
}
}}}

'''Solution'''

One way around this could be adding a secondary style that just targets SVG elements, setting their width and height in CSS. This will work in all modern browsers to make the previews viewable (as shown in my attached images)


{{{
.table.media .column-title .media-icon img[src*='.svg']{
width: 100%;
height: auto;
}
}}}

The height and width attributes on the sample image are set to 1 so it could be that when the media uploader loads the image and see it doesn't have a natural height / width (because it's an SVG) it defaults to those values. I'm not sure why those values are needed as restyling by CSS should be fine? 





"	simonrcodrington		
Defects Awaiting Review, reported against no version	30691	Removing a featured image does not remove the 'post_parent' value - reproducible		Media	major	defect (bug)	reopened	2014-12-12T12:38:49Z	2025-06-05T14:27:47Z	"Removing a featured image does not remove the 'post_parent' value in the wp_posts row associated with the attachment. This causes invalid results when using functions like get_children() and get_posts().


1) install a fresh copy of WordPress 4.0.1
2) edit the first post and add a featured image
3) use phpMyAdmin and look at the wp_posts table. You will see an entry for the attachment and the 'post_parent' column will be set to the ID of the first post
4) Edit the first post and remove the featured image
5) again use phpMyAdmin and look at the wp_posts table. You will see the entry for the attachment and the 'post_parent' column WILL STILL BE SET to the ID of the first post.

to see a example of an error with get_children() do the following after doing the above.
1) activate twenty-thirteen and view the site
2) edit twenty-thirteen's 'content.php'. Line 15-19 should be


{{{
		<?php if ( has_post_thumbnail() && ! post_password_required() && ! is_attachment() ) : ?>
		<div class=""entry-thumbnail"">
			<?php the_post_thumbnail(); ?>
		</div>
		<?php endif; ?>

}}}

add the following right after it.


{{{
<?php
	$args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); 
	$attachments = get_posts($args);
 	if (! empty($attachments)) {
 		echo 'attachment ID ='.$attachments[0]->ID.'<br>';
 		echo 'attachment post_parent ='.$attachments[0]->post_parent.'<br>';
	 	echo '$post->ID ='.$post->ID.'<br>';
    	echo '<img src=""' . $attachments[0]->guid . '""/>';
		var_dump($attachments);
	}
?>

}}}

3) view the site and you will see the featured image.
4) use phpMyAdmin edit the entry for the attachment and set the 'post_parent' column to '0'.
5) view the site and you will NOT see the featured image.
"	juggledad		dev-feedback
Defects Awaiting Review, reported against no version	43540	srcset not added when the original image size doesn't exist in the database after regeneration		Media	normal	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		
Defects Awaiting Review, reported against no version	40126	Mobile has two media editing experiences		Media	normal	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		
Defects Awaiting Review, reported against no version	22558	Attachment term counts feels/are inaccurate		Media	normal	defect (bug)	new	2012-11-23T16:21:26Z	2021-03-03T17:04:28Z	"For posts:
* Assign a term to a post, save as draft. Term count returns 0.
* Publish the post. Term count returns 1.
* Change post status back to draft. Term count returns 0.

For attachments:
* Upload an image, assign a term. Term count returns 0.
* Create a new post and insert the image in a published post. Term count returns 0.
* Create a new post, use the insert media modal and upload an image. Then go the the media edit screen and assign a term to the image. Term count returns 1.
* Change the post status back to draft. Term count returns 1.
* Upload an image, assign a term, attach the attachment to a published post. Term count returns 0.

The default term update callback is `_update_post_term_count`. The function includes a special case for attachments, that's the reason why we have the 1 in step 3.

IMO the term count for attachments shouldn't rely on the parent post status. We should just force `_update_generic_term_count`.

Also noted here: comment:ticket:21391:41"	ocean90		dev-feedback
Defects Awaiting Review, reported against no version	42953	Created images have a larger filesize than the original		Media	normal	defect (bug)	new	2017-12-21T12:34:42Z	2020-11-30T03:14:16Z	"Images uploaded in the media library get resized to the defined sizes. However, if the image has been optimized beforehand the result can be that the generated images have a filesize larger than the originally uploaded image.

It can happen due to a very high `jpeg_quality` value for example..

This should not happen under any circumstances. Uploading optimized images is something a lot of people do for SEO purposes, and larger generated images affect that negatively.

Sometimes even if the image-size is smaller, the generated file's filesize is bigger.

One solution would be to save the image in a temp location and have its filesize checked against the original image. If the image is smaller than the original one then move to its final location. If not, then some other solution has to be found."	aristath		
Defects Awaiting Review, reported against no version	42128	PNGs lose color space information when resized		Media	normal	defect (bug)	new	2017-10-06T21:11:46Z	2017-10-06T22:17:56Z	"In cases where a PNG image is RGB but contains no color pixels, ImageMagick is converting the image to a gray color model during resizing, which makes the image look dark and blocky.

I'm uploading a few of original example images, saved as both PNG8 and PNG24 and one without an alpha channel.

Based on these examples, this seems to only affect PNG images and transparency doesn't seem to matter."	joemcgill		needs-patch
Defects Awaiting Review, reported against no version	41468	"Provide contextual info about what ""attached"" and ""detached"" means regarding media objects"		Media	normal	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		
Defects Awaiting Review, reported against no version	35771	Setting Size for Native Video Player Doesn't Work		Media	normal	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		
Defects Awaiting Review, reported against no version	40121	Media edit screen on mobile has visual issues		Media	normal	defect (bug)	new	2017-03-12T12:23:38Z	2017-05-03T21:10:17Z	"This screen unfortunately on an iPhone 7 Plus is pretty unusable.

[[Image(https://cldup.com/ANkhsYmH_F.PNG, 50%)]]

I would at the least suggest we don't have 2 panes and move the right below the left. Then we can iterate."	karmatosed		needs-patch
Defects Awaiting Review, reported against latest stable branch	66284	image scaling is skipped for large images, resulting in huge thumbnails		Media	normal	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	7.1.3	
Defects Awaiting Review, reported against latest stable branch	66076	Media Library: Image title and caption overlap when editing galleries	joedolson*	Media	normal	defect (bug)	accepted	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	7.1	has-patch
Defects Awaiting Review, reported against latest stable branch	66092	Add 8px gap between Media Library search field and button on mobile/tablet		Media	normal	defect (bug)	new	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	7.1	has-patch
Defects Awaiting Review, reported against latest stable branch	66024	Unused closing div tag in wp_print_media_templates method		Media	normal	defect (bug)	new	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	7.1	has-patch
Defects Awaiting Review, reported against latest stable branch	65977	Error in the GD editor when converting from WebP		Media	normal	defect (bug)	new	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	7.1	has-patch
Defects Awaiting Review	57488	"The ""Showing X of Y media items"" area in Media Upload screen gives wrong information."		Media	normal	defect (bug)	new	2023-01-18T05:24:38Z	2026-11-11T03:55:20Z	"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, but the counter showed, ""Showing 20 of 19 media items""

[[Image(https://i.paste.pics/L1SYQ.png)]]

It showed the correct number when I closed it and opened it back up. I know it's a minor issue but thought about informing the experts.

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	6.1.1	has-patch
Defects Awaiting Review	64931	On media grid view, the file name is shown twice if it exceeds the maximum file upload size		Media	normal	defect (bug)	new	2026-03-23T09:18:50Z	2026-11-02T06:45:09Z	Showing it only once will be enough, if you ask me.	Presskopp		has-patch
Defects Awaiting Review	65931	Add tests for get_media_embedded_in_content()		Media	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62312	wp_image_src_get_dimensions() - Warning for SVG with postmeta height and width empty		Media	normal	defect (bug)	new	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	5.5	has-patch
Defects Awaiting Review	57813	wp_get_missing_image_subsizes() can give error if image_meta exists, but not height/width		Media	normal	defect (bug)	new	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	6.1.1	has-patch
Defects Awaiting Review	66357	"Media: ""Showing 1 of 1 media items"" has no plural form, and its translators comment is not extracted"		Media	normal	defect (bug)	new	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	5.8	has-patch
Defects Awaiting Review	64902	wp_save_image() fatal error when wp_save_image_file() returns WP_Error		Media	normal	defect (bug)	new	2026-03-19T14:52:41Z	2026-10-20T05:19:05Z	"[https://developer.wordpress.org/reference/functions/wp_save_image_file/ wp_save_image_file()] has a return type of {{{array|WP_Error|bool}}}.

[https://developer.wordpress.org/reference/functions/wp_save_image/ wp_save_image()] checks the return value of {{{wp_save_image_file()}}} with {{{ if ( ! $saved_image ) }}} [https://github.com/WordPress/wordpress-develop/blob/074792ef21d9160a8fabdda215f8bf48f7a91d43/src/wp-admin/includes/image-edit.php#L1020 (line1020)], but {{{WP_Error}}} is truthy, so it passes through. 

[https://github.com/WordPress/wordpress-develop/blob/074792ef21d9160a8fabdda215f8bf48f7a91d43/src/wp-admin/includes/image-edit.php#L1054 Line 1054] then accesses {{{$saved_image['filesize']}}} which fatals with {{{""Cannot use object of type WP_Error as array""}}}. 

This is reproducible when any image editor's {{{save()}}} returns {{{WP_Error}}} (e.g., unsupported format, disk full, encoder failure)

Affects all editors ([https://github.com/WordPress/wordpress-develop/blob/074792ef21d9160a8fabdda215f8bf48f7a91d43/src/wp-includes/class-wp-image-editor-gd.php#L483 GD], [https://github.com/WordPress/wordpress-develop/blob/074792ef21d9160a8fabdda215f8bf48f7a91d43/src/wp-includes/class-wp-image-editor-imagick.php#L855 Imagick], custom) since {{{save()}}} is documented as {{{@return array|WP_Error}}}

This bug was discovered when building a plugin which extends {{{WP_Image_Editor}}} to take advantage of a different graphics library."	notglossy	6.9.4	has-patch
Defects Awaiting Review	36273	update_attached_file() on Windows will result in invalid image path when using native Windows directory separators		Media	normal	defect (bug)	new	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	4.4.2	needs-unit-tests
Defects Awaiting Review	46390	image_default_link_type is not seen by Gutenberg		Media	normal	defect (bug)	reopened	2019-03-01T12:34:42Z	2026-10-16T12:14:26Z	"I have in option.php the image_default_link_type set to file so that by default the ""link to "" for all media files is by default set to media.

Since upgrading to Gutenberg 5.1, this feature appears to be deactive."	brianjcameron	5.1.1	needs-patch
Defects Awaiting Review	54205	jqxhr is undefined inside of deferred.done() when using wp.media to add a custom image upload		Media	major	defect (bug)	new	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	5.8.1	has-patch
Defects Awaiting Review	58740	Slow load in media page of WordPress admin when having huge posts table		Media	minor	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	6.2.2	needs-patch
Defects Awaiting Review	35959	Functon 'wp_generate_attachment_metadata(...)' silently swallowing errors from 'wp_get_image_editor(...)'.		Media	normal	defect (bug)	new	2016-02-26T05:11:54Z	2026-10-08T15:46:32Z	"So the function {{{wp_generate_attachment_metadata(...)}}} in {{{wp-admin/includes/image.php}}} is silently ignoring / swallowing errors from the function {{{wp_get_image_editor(...)}}}.

The logic is here:
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/image.php?rev=36429#L123

This ignoring of these particular errors prevents user notification in the UI when image thumbnails could not be regenerated due to error ""{{{No editor could be selected}}}"" that is returned from the function {{{wp_get_image_editor(...)}}} when the PHP environment on the server is lacking graphics support.  So the thumbnails are not getting regenerated, and because of this bug, there is notification to the user as to that fact or as to why.

I looked this up in the history, and noticed that this bug is present since this revision:
https://core.trac.wordpress.org/changeset/22192

What's odd is that this revision does add logic to relay these errors in its 1st change (to the function {{{wp_crop_image(...)}}}) in {{{trunk/wp-admin/includes/image.php}}}, but not in the 3rd change in that file (to the function {{{wp_generate_attachment_metadata(...)}}}).  Not sure why the error is not being relayed there as well.



"	maratbn	3.5	has-patch
Defects Awaiting Review	66226	REST API: Attachment title from uploaded filename is not sanitized like media library uploads		Media	normal	defect (bug)	new	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	6.6	has-patch
Defects Awaiting Review	65960	Image Editor don't update thumbnails		Media	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	66050	image auto rotated on upload		Media	normal	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		
Defects Awaiting Review	65896	Media Library: third line of a caption is cut off		Media	minor	defect (bug)	new	2026-08-17T08:57:34Z	2026-08-18T08:47:42Z	"Steps to reproduce:

1. Add an image with a long caption (I started a playground using [https://playground.wordpress.net/?blueprint-url=https://gist.githubusercontent.com/annezazu/b9103c3d1c80449fdd5c6204a8c8aec2/raw/4c701bc47de4d0f9ce503293168f919b31a81bc0/blueprint.json Anne's link] from [https://nomad.blog/2026/08/04/using-wordpress-studio-to-speed-up-testing-7-1/ her post])
2. Visit `/wp-admin/upload.php`, make sure we're in grid view
3. Observe the third line of each caption a little bit cut off. See the screenshot attached.

I would expect that we don't see the third line at all"	nbachiyski	7.0	has-patch
Defects Awaiting Review	42838	Manipulating uploads and images can break when using stream wrappers		Media	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	64617	Media Uploader: Incorrect fallback error message when filename contains special characters (apostrophes)		Media	normal	defect (bug)	new	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	6.9.1	has-patch
Defects Awaiting Review	65879	Infinite scrolling: Explore ways to improve refinding content		Media	normal	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		
Defects Awaiting Review	65873	Media: enable HEIC/HEIF sequence uploads when the server lacks image editor support		Media	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65825	Media: the edit-image content handler is bound twice on the Post and ImageDetails media frames		Media	normal	defect (bug)	new	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	5.3	has-patch
Defects Awaiting Review	61925	subsizes with same dimensions are generated multiple times unnecessarily		Media	normal	defect (bug)	new	2024-08-26T01:37:10Z	2026-07-20T12:52:51Z	"https://github.com/WordPress/wordpress-develop/blob/6.6/src/wp-admin/includes/image.php#L461

`_wp_make_subsizes` will generate the same file with same dimensions multiple times if multiple sizes with the same dimensions/crop are registered.
This unnecessarily slows down the uploads and often is a cause for timeouts too, if there are many sizes registered.

e.g. with WooCommerce where ""woocommerce_gallery_thumbnail"" might be equal to wp ""thumbnail"" size.

I checked trac, but couldn't find a related issue, in case there's one please close this one."	kkmuffme		has-patch
Defects Awaiting Review	65513	Media Library modal shows wrong count on first upload and does not reset after image deletion		Media	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	43070	srcset attribute can be overridden but not prevented		Media	normal	defect (bug)	new	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	4.4	dev-feedback
Defects Awaiting Review	54193	PHP fileinfo extention identifies JSON as text/plain; wp_check_filetype_and_ext then prevents upload		Media	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65447	Heic to JPG conversion not working with newer files		Media	normal	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	7.0	
Defects Awaiting Review	30402	WordPress does not respect the bit-depth of the original image when resizing		Media	normal	defect (bug)	new	2014-11-19T08:15:02Z	2026-06-10T19:48:51Z	"i have uploaded 8 bit depth indexed color png, near 1400x1800 size image in wordpress and inserted it into post , and original image was near 500 kB and the smaller width-height version made by wp is near 1400 kB, because it is 24 or 32 bits per pixel png.
(this is useless. i have edited html code to use full version because it is smaller by weight and it is scaled by size so it is ok)."	qdinar	3.9.2	needs-patch
Defects Awaiting Review	40289	Uploading 2 files with the same name but different casing, overwrites existing files		Media	normal	defect (bug)	reopened	2017-03-28T22:23:44Z	2026-06-10T15:05:20Z	"Problem: Under normal circumstances, if I upload a file to the media library but a file with a similar name was previously uploaded, wordpress would change the name of the new file (by adding a dash and a number). 
However, If I upload 2 files with the same name, BUT WITH DIFFERENT CAPITALIZATION, wordpress won't rename the second file and will just reference the older one.
So if for example, I already had the file cover.jpg in my library and I've created a new post and uploaded the file COVER.JPG, it will show in the post the older image of (cover.jpg)."	quickim	4.7.3	
Defects Awaiting Review	58729	Incorrect Information Displayed in Media Library Window when Uploading Featured Image		Media	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	55345	When uploading image through featured image section, the image item count is wrong.		Media	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	43009	Create Video/Audio Playlist hooks not working as expected		Media	normal	defect (bug)	new	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	4.9.1	has-patch
Defects Awaiting Review	65204	Custom Bulk Actions missing from Grid View	takshil	Media	major	defect (bug)	assigned	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		has-patch
Defects Awaiting Review	64693	Video Block: Unexpected Behavior with Supported and Unsupported Formats		Media	normal	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		
Defects Awaiting Review	64936	Media Library grid view toolbar misalignment		Media	normal	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		
Defects Awaiting Review	64600	"[E_WARNING] Undefined array key ""full"" in wp-includes/media.php on line 4678"		Media	minor	defect (bug)	new	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	6.9.1	has-patch
Defects Awaiting Review	65230	`redirect_canonical()` fails to redirect slug-based attachment URLs when `wp_attachment_pages_enabled` is disabled		Media	normal	defect (bug)	new	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	6.4	has-patch
Defects Awaiting Review	65161	Give an error message when a non-image is uploaded for site icon		Media	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	64927	.media-upload-form .media-item min-height is causing a visual glitch		Media	normal	defect (bug)	new	2026-03-23T08:31:10Z	2026-04-30T06:41:50Z	"uploading a file that exceeds the maximum upload size an error will be shown, but it's height is too large.

The minimum height of 70px has been introduced with
https://github.com/WordPress/wordpress-develop/commit/ba7684417ae86fafde7907fdb78ddb49e89309da

It might serve it's purpose, but not when showing the error message."	Presskopp		has-patch
Defects Awaiting Review	64929	Media edit screen shows file URL under “Permalink” for non-previewable formats		Media	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	31689	Media player not working with 302 redirects		Media	normal	defect (bug)	new	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	4.1.1	has-patch
Defects Awaiting Review	58288	No support for JPG with HDR gain maps		Media	normal	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		
Defects Awaiting Review	64943	WP generates duplicate pictures after Upload		Media	normal	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	6.9.4	
Defects Awaiting Review	55872	wp_image_add_srcset_and_sizes trys to parse images from external pages, fails with error		Media	normal	defect (bug)	closed	2022-05-30T08:08:17Z	2026-03-27T08:59:47Z	"If a user embeds image content from another domain by copy pasting and includes a tag like

{{{
<img class=""wp-image-199052"" srs=""externaldomain..."">
}}}
it seems like wordpress trys to parse the file as it were hosted in its own instance. This won't work of course, because it cannot access the file in the filesystem. It then fails with the following warning:

{{{
PHP Warning:  Undefined array key ""file"" in /wp-includes/media.php on line 1676""
}}}

"	pampfelimetten	6.0	
Defects Awaiting Review	64593	allow PDF preview generation without sizes		Media	normal	defect (bug)	new	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	6.9.1	dev-feedback
Defects Awaiting Review	55492	`Dismiss Errors` button alignment is not centered in Media Library.		Media	normal	defect (bug)	reopened	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	5.9.2	has-patch
Defects Awaiting Review	63553	Administration: Color Schemes are not properly applied on individual attachment within media views		Media	normal	defect (bug)	new	2025-06-10T09:40:40Z	2026-01-17T12:18:59Z	"In the Media Library dialog, where users select from listed attachments, individual attachments do not fully reflect the user's selected color scheme. This is often due to CSS specificity issues, that is, styles in `media-views.css` have higher specificity and override the selected color scheme styles. Ideally, the specificity of styles within `media-views.css` should match that of the color scheme styles to allow proper theming overrides.


Ref:
https://github.com/WordPress/wordpress-develop/blob/20e4872868780fd9246d8a7ec5ae3072b69483ea/src/wp-includes/css/media-views.css#L1128

https://github.com/WordPress/wordpress-develop/blob/20e4872868780fd9246d8a7ec5ae3072b69483ea/src/wp-admin/css/colors/_admin.scss#L572

In the snippets above, notice that the `.wp-core-ui` is omitted from `_admin.scss`, which leads to lower CSS specificity, and the color scheme styles do not get properly applied. Also, notice the extra theme-related styles (example: for the `:focus` pseudo-selector) which are also omitted altogether from `_admin.scss`.

This bug is quite noticeable for users using administration color schemes other than the default within the Gutenberg Editor.

To reproduce, perform the following steps:
1. Set a different administration color scheme (preferably Midnight).
2. Create a new post and insert a `core/file` block.
3. Click on `Media Library` and click on a particular attachment.
4. Notice that the attachment selection styles do not comply with the selected administration color scheme."	yogeshbhutkar		has-patch
Defects Awaiting Review	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	minor	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	6.9	
Defects Awaiting Review	64010	wp_die() status code Media component updates (parent ticket: #64009)		Media	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	63871	Media library does not respect the filter's already selected when coming back to the media library page		Media	normal	defect (bug)	new	2025-08-25T06:53:32Z	2025-12-01T03:46:02Z	"## Issue

1. Open media library in grid mode.
2. Select any date or type filter, for example, Video and June 2025, it would show the media with the selected filter.
3. Open any media, it will show modal box for that media and click edit more details.
4. Now go back to previous URL, it will show you modal box for selected media and close that media modal box.
5. Checkout the filter, the filter are selected which you have set earlier, but it would not respect the filter, it will show all the media despite UI say's filter selected as `Video and June 2025`.
6. Please checkout the screencast for more reference - [https://github.com/user-attachments/assets/dc29cb67-d03c-467f-b081-1089db5cc5ca]

WP version: Latest Trunk
PHP: 8.2.23
No 3rd party plugins or theme activated."	hbhalodia		
Defects Awaiting Review	64215	slimImageObject drops meta fields added to attachments		Media	normal	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		needs-patch
Defects Awaiting Review	63978	Transparent PNG with white image processed empty in Media		Media	normal	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		
Defects Awaiting Review	56728	Can we fix featured image view issue when allowed SVG image type?		Media	normal	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	6.0.2	
Defects Awaiting Review	63707	Grid mode in the Media Library breaks if video metadata contains invalid sizes dimensions		Media	normal	defect (bug)	new	2025-07-16T14:48:12Z	2025-07-22T18:21:18Z	"==== Summary:

When uploading a video file (e.g. .mp4) to the Media Library, WordPress may store invalid image size data in the `_wp_attachment_metadata` field — for example:


{{{
'sizes' => [ '60x60' => false ]
}}}


After switching between List and Grid view modes, especially back to Grid, the Media Library tries to access this data as if it were valid, resulting in:

a JS freeze, empty display (no media shown)

==== Steps to reproduce:

- Upload a .mp4 file via Media Library (in Grid mode).
- Switch to List view.
- Make sure the uploaded video is visible.
- Switch back to Grid mode.

Now WordPress will save `_wp_attachment_metadata`
{{{
['sizes'] = [ '60x60' => false ]
}}}


{{{
s:5:""sizes"";a:0:{}
}}}

.

The Grid mode may hang, freeze, or fail to load media.

==== Technical notes:

This metadata is likely generated by `wp_generate_attachment_metadata()` or related logic, which assumes image processing.

The frontend JS does not expect false values in sizes, which causes unexpected behavior.

I'm reporting this as a WordPress user (not a developer). Please let me know if more context is needed.

==== 🛠️ Temporary workaround:

A filter can be used to prevent Grid mode from breaking when bogus sizes exist for video attachments:

{{{#!php
<?php

add_filter('wp_prepare_attachment_for_js', function($response, $attachment) {
	if ($response['type'] === 'video' && isset($response['sizes'])) {
		$only_bogus = true;
		foreach ($response['sizes'] as $key => $val) {
			if (!empty($val) && is_array($val) && isset($val['width'])) {
				$only_bogus = false;
				break;
			}
		}
		if ($only_bogus) {
			unset($response['sizes']);
		}
	}
	return $response;
}, 10, 2);
}}}


Additionally, I created a simple admin tool (plugin) to preview and optionally fix video metadata records with only invalid sizes:
1. To preview video attachments with invalid `sizes`, visit:
   `/wp-admin/?preview_video_sizes=1`
2. To clean up the detected invalid `sizes`, visit:
   `/wp-admin/?fix_video_sizes=1`


{{{#!php
<?php
add_action('admin_init', function () {
	if (!current_user_can('manage_options')) return;

	require_once ABSPATH . 'wp-admin/includes/file.php';

	$mode_preview = isset($_GET['preview_video_sizes']);
	$mode_fix     = isset($_GET['fix_video_sizes']);

	if (!$mode_preview && !$mode_fix) return;

	global $wpdb;

	$attachments = $wpdb->get_results(""
		SELECT pm.post_id, pm.meta_value
		FROM {$wpdb->postmeta} pm
		JOIN {$wpdb->posts} p ON pm.post_id = p.ID
		WHERE pm.meta_key = '_wp_attachment_metadata'
		  AND p.post_type = 'attachment'
		  AND p.post_mime_type LIKE 'video/%'
	"", ARRAY_A);

	$matched = [];

	foreach ($attachments as $row) {
		$meta = maybe_unserialize($row['meta_value']);
		if (!is_array($meta)) continue;

		if (!isset($meta['sizes']) || !is_array($meta['sizes'])) continue;

		$sizes = $meta['sizes'];

		// умова: всі значення false або порожній масив
		$all_false = empty($sizes) || !array_filter($sizes, function ($v) {
			return $v !== false;
		});

		if ($all_false) {
			$matched[] = [
				'id' => $row['post_id'],
				'meta' => $meta
			];
		}
	}

	if ($mode_preview) {
		echo ""<h2>🔍 Аналіз відео-вкладень з проблемним 'sizes'</h2><ul>"";
		foreach ($matched as $item) {
			$edit_link = admin_url('post.php?post=' . $item['id'] . '&action=edit');
			echo ""<li><strong>ID:</strong> {$item['id']} — <a href='$edit_link' target='_blank'>📝 Редагувати</a><pre>"";
			print_r($item['meta']['sizes']);
			echo ""</pre></li><hr>"";
		}
		echo ""</ul><p><strong>Знайдено: "" . count($matched) . "" запис(ів)</strong></p>"";
		exit;
	}

	if ($mode_fix) {
		$cleaned = 0;

		foreach ($matched as $item) {
			unset($item['meta']['sizes']);
			wp_update_attachment_metadata($item['id'], $item['meta']);
			error_log(""✅ Cleaned attachment #{$item['id']}"");
			$cleaned++;
		}

		exit(""✅ Очищено: $cleaned запис(ів)"");
	}
});
}}}"	magnifin	6.8.2	
Defects Awaiting Review	59339	Conversion to webp causes fatal error when original image is a palette image (as opposed to truecolor)		Media	normal	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	6.3.1	
Defects Awaiting Review	63501	wp_iframe sends output before send_headers hook causing PHP headers sent notice		Media	normal	defect (bug)	new	2025-05-29T07:07:21Z	2025-05-31T04:07:17Z	"/wp-admin/media-upload.php?post_id=1234&type=image&TB_iframe=1&tab=library

{{{#!php
<?php
add_action( 'send_headers', function() { header( 'X-Foo: bar' ); }, 10, 0 );
}}}

will report a PHP notice for headers already sent.

media_upload_library() => wp_iframe() => media_upload_library_form() => wp_edit_attachments_query() executes the main query, which calls the send_headers hook

However wp_iframe has already started output at that point. 

The easy fix is to just ob_start() buffer the whole thing, however, since this is media, this has massive performance drawbacks both on the server (memory consumption, nginx potentially buffering to file if output exceeds buffer size) and the user (loading is delayed until whole page is loaded instead of incrementally)
The correct fix would be to ensure we run the main query early before wp_iframe starts output

Secondly, I think adding a wp doing it wrong in send_headers if headers_sent() would make sense to prevent similar issues in the future and to warn other people of making a similar mistake.
"	kkmuffme		
Defects Awaiting Review	63475	Changes made to the site icon image through media library are not reflected on the site icon		Media	normal	defect (bug)	new	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	4.3	dev-feedback
Defects Awaiting Review	62902	Description of featured image is being deleted		Media	normal	defect (bug)	new	2025-02-03T15:49:59Z	2025-05-12T01:38:46Z	"The description of featured image is being deleted while going to replace from post editor page.
**How to reproduce: **
1. Upload a image with setting values only for ""Alternative Text"" & ""Description"" fields.
   https://i.imgur.com/DGjZBzi.png
2. Create a post & set featured image which uploaded.
3. Save as draft or publish the post.
4. Reload the post editor page & try to replace feature image, then you will notice that the description field is empty.
https://i.imgur.com/gHUBWYY.png
https://i.imgur.com/bEWi1JU.png

My Environment:
PHP: 8.2.4
Wordpress version :6.7.1
Theme: Twenty Twenty-Five
And no plugins were installed.
"	jogashst	6.7.1	has-patch
Defects Awaiting Review	62199	Media attachment date filter dropdown text is not showing correctly		Media	normal	defect (bug)	new	2024-10-10T06:14:13Z	2025-05-12T01:38:41Z	"The text for the dropdown menu is not showing correctly if the media attachment date filter is used to select an image within the admin pages. If it works fine within the  

Steps to replicate:
1) Install a plugin that outputs an option to select an image within any page other than the post editor > say, for eg: Minimal Coming Soon & Maintenance Mode plugin from WebFactory Ltd
2) Navigate to Settings > Maintenance Mode > Design 
3) click on the Select button to select an image
4) You can notice that the date dropdown filter text ""Add dates"" is not showing fully


"	josevarghese	6.6.2	has-patch
Defects Awaiting Review	57821	Media library badly autopopulates image caption if Windows image metadata exists		Media	normal	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	6.1.1	
Defects Awaiting Review	56295	filter wp_content_img_tag runs multiple times		Media	normal	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	6.0	
Defects Awaiting Review	54190	sanitize_file_name disallows acute accents and left smart apostrophe		Media	normal	defect (bug)	new	2021-09-27T14:23:29Z	2025-05-12T01:37:52Z	"The following change to line 1991 of wp-includes/formatting.php will disallow acute accents and left smart apostrophe in file names
{{{
$special_chars = array( '?', '[', ']', '/', '\\', '=', '<', '>', ':', ';', ',', ""'"", '""', '&', '$', '#', '*', '(', ')', '|', '~', '`', '´', '!', '{', '}', '%', '+', 'ʻ','’', '«', '»', '”', '“', chr( 0 ) );
}}}"	jdorner	5.5	dev-feedback
Defects Awaiting Review	63423	Find some Wrong escaping function into the core files		Media	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	57239	Notice undefined array keys width and height when using full svg image		Media	normal	defect (bug)	new	2022-12-01T07:22:49Z	2025-05-05T16:44:11Z	"If you add media like an svg and use it with the ""full size"" option the width and height are not fetched. Currently the `_wp_get_image_size_from_meta()` function ([https://core.trac.wordpress.org/browser/tags/6.1/src/wp-includes/media.php#L1185 wp-includes/media.php line 1185]) expects those array keys."	joeyjanson	6.1.1	has-patch
Defects Awaiting Review	63322	Suggested cropping for media		Media	minor	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	6.8	
Defects Awaiting Review	62634	Error in mediaelement-and-player.js		Media	normal	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	6.7.1	
Defects Awaiting Review	58261	"set_post_thumbnail_size interferes with ""Cover Image Block"""		Media	normal	defect (bug)	new	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	6.2	dev-feedback
Defects Awaiting Review	62695	Styling added causes websites to break		Media	normal	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	6.7.1	
Defects Awaiting Review	36437	wp_delete_attachment causes warning		Media	normal	defect (bug)	new	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	2.0	has-patch
Defects Awaiting Review	55247	SVG logos generate warnings from _wp_get_image_size_from_meta()		Media	minor	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	5.9	
Defects Awaiting Review	62060	Error Message When Using the WordPress Uploader		Media	normal	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		
Defects Awaiting Review	61983	Part of `wp_generate_attachment_metadata` missing `avif` extension		Media	normal	defect (bug)	new	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	6.5	has-patch
Defects Awaiting Review	61949	Do not call getimagesize() against non-existent files		Media	normal	defect (bug)	new	2024-08-28T17:12:59Z	2024-08-28T17:17:00Z	"When you call `wp_get_attachment_image_src()` against an attachment file that is not image but that does have the thumbnail attached to it OR when you call `wp_getimagesize()` directly - the later generates a PHP warning in certain cases because it retrieves image sizes for a file that does not exist.

The problem is indeed that a non-existent file path is passed, but there is no way to hijack it easily in certain cases.
While I'm trying to find a solution how to do all the filtering of `wp_mime_type_icon` and `wp_get_attachment_image_src` that I need, but I still think that a defensive mechanism can be implemented in WordPress itself.

There is no `is_readable()` check anywhere, it just all falls back to `getimagesize( $filename )` with or without silencer (`@`) depending on the `WP_DEBUG` state.

My case is that in `wp_get_attachment_image_src()` from this call: 

{{{#!php
<?php
$src = wp_mime_type_icon( $attachment_id, '.svg' );
}}}


I return an image URL, which is correct and live. It's also used correctly in other areas of WordPress, hence the correct icon URL I filter there.

But then we have these calls:

{{{#!php
<?php
$icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/media' );
$src_file = $icon_dir . '/' . wp_basename( $src );
}}}


As you can see, it drops the path, just uses the file name, and appends it to the `wp-includes` path. Obviously, I can't filter the `icon_dir` filter as it has zero identifiable bits I can use to hijack the path and preserve the data I need.

And then it calls `wp_getimagesize()` without any filters of the src path before calling `getimagesize()`.

It is possible to introduce new filters, rewrite the logic in `wp_get_attachment_image_src()` to fallback correctly, but IMO the easiest solution would be to just add `is_readable()` check like this at the top of the `wp_getimagesize()` function:


{{{#!php
<?php
// We can't read what doesn't exist.
if ( ! is_readable( $filename ) ) {
	return false;
}
}}}

All warnings are gone, default failing `false` value preserved.

All the code and findings are as per WordPress 6.6.1."	slaFFik		has-patch
Defects Awaiting Review	58741	Media Library Popup Showing Blank Popup on Window Resize Below Mobile Viewport		Media	normal	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	6.2.2	needs-patch
Defects Awaiting Review	45913	wp_enqueue_media()  - slow query		Media	normal	defect (bug)	new	2019-01-10T17:11:32Z	2024-07-15T22:15:33Z	"I have sites with very large databases and I've noticed some slow queries since 5.0.3 on new/edit post screens:


{{{
SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month 
FROM wp_posts 
WHERE post_type = 'attachment' 
ORDER BY post_date DESC
}}}

This query is coming from wp_enqueue_media()

I am using php 7.2.1, MySQL 5.7.24"	lubimow	5.0.3	
Defects Awaiting Review	42751	Can we please  enqueue media-views independently ?		Media	normal	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	4.9	
Defects Awaiting Review	23436	Media Gallery - Cropping Image and then Cropping a thumbnail from that crop doesn't work.	joedolson*	Media	normal	defect (bug)	accepted	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	3.5	dev-feedback
Defects Awaiting Review	35887	Adding multiple media to post - selecting image size		Media	normal	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@…	4.4.2	needs-patch
Defects Awaiting Review	44127	editing an image can result in intermediate sized images left over after the image is deleted		Media	normal	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	4.9.5	
Defects Awaiting Review	58743	Featured image Edit  : When clicking on the undo option, the save edits option is disabled.	joedolson*	Media	normal	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	6.3	
Defects Awaiting Review	52509	Error generating Thumbnails of PDF-Files		Media	normal	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	5.6.1	needs-patch
Defects Awaiting Review	58594	Media file changes no longer trigger updated/modified statuses.		Media	normal	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	6.2.2	
Defects Awaiting Review	45982	PDF thumbnails have a default black background		Media	normal	defect (bug)	new	2019-01-14T13:45:47Z	2023-06-13T21:47:43Z	"I wouldn't necessarily call this a bug, but when a PDF is uploaded where the page has no solid background colour its thumbnail image background is rendered black. As most paper used is white ( I would hazard a guess... :) ), it feels like the default background colour of thumbnails should be set to white. I have created a fix within'' /wp-includes/class-wp-image-editor-imagick.php''

{{{#!php
<?php
try {
			$this->image = new Imagick();
			$file_extension = strtolower( pathinfo( $this->file, PATHINFO_EXTENSION ) );
			$filename = $this->file;

			if ( 'pdf' == $file_extension ) {
				$filename = $this->pdf_setup();
			}

			// Reading image after Imagick instantiation because `setResolution`
			// only applies correctly before the image is read.
			$this->image->readImage( $filename );

			if ( ! $this->image->valid() )
				return new WP_Error( 'invalid_image', __('File is not an image.'), $this->file);

			// Select the first frame to handle animated images properly
			if ( is_callable( array( $this->image, 'setIteratorIndex' ) ) )
				$this->image->setIteratorIndex(0);

			$this->mime_type = $this->get_mime_type( $this->image->getImageFormat() );
			
			// !bb modification to default to white backgrounds

			if ( 'pdf' == $file_extension ) {
				
				if ($this->image->getImageAlphaChannel()) {

				    // Remove alpha channel (use 11 if constant does not work... see https://stackoverflow.com/questions/10805122/imagemagick-setimagealphachannel-not-working-php)
				    $this->image->setImageAlphaChannel(Imagick::ALPHACHANNEL_REMOVE);
				
				    // set image background color to white
				    $this->image->setImageBackgroundColor('#ffffff');
				}
			}// !bb end modification to default to white backgrounds
			
			
		}
}}}

"	nebrekab	5.0.3	
Defects Awaiting Review	58483	UI issue in uploasd multiple media in mobile		Media	normal	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	6.2.2	
Defects Awaiting Review	57948	Media toolbar elements height /size is inconsistent across views		Media	normal	defect (bug)	new	2023-03-19T11:01:28Z	2023-05-12T12:29:57Z	"When window.innerWidth is between 782px and 900px we have bigger height for selects the for all other toolbar elements, when window width is less than 782px button is becoming bigger but toggle view buttons are staying the same. I assume all element need to be resized accordingly and margins between adjusted as well.

Related ticket: #43904"	oglekler		has-patch
Defects Awaiting Review	58289	No support for AVIF with HDR gain maps		Media	normal	defect (bug)	new	2023-05-10T17:37:39Z	2023-05-10T20:47:52Z	"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 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).

AVIF gain maps offer an ideal way to share HDR content in a format which is much smaller than a JPG gain map.

This issue depends on getting support for HDR AVIF (ie an HDR image without a gain map): https://core.trac.wordpress.org/ticket/51228

It is also related to concepts involved with JPG gain maps: https://core.trac.wordpress.org/ticket/58288#ticket"	gregbenz		
Defects Awaiting Review	57637	ImageEdit component can be exited with unsaved state		Media	normal	defect (bug)	new	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	6.1.1	has-patch
Defects Awaiting Review	54069	"Media title change in ""Attachment Details"" dialog opened via Media Library Grid View is not informing API/plugins properly"		Media	normal	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		
Defects Awaiting Review	57276	Failing TIFF image uploads to S3 buckets using WP Offload Plugin		Media	major	defect (bug)	new	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	6.1.1	has-patch
Defects Awaiting Review	54433	ALLOW_UNFILTERED_UPLOADS does not work anymore		Media	normal	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	5.8.2	
Defects Awaiting Review	57158	bug for image 2/3 ratio size when max height is 480px		Media	normal	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		
Defects Awaiting Review	53800	Color of WebP image thumbnail changes on media library list and grid view		Media	normal	defect (bug)	new	2021-07-27T15:40:23Z	2022-11-04T12:20:55Z	"Hello friends,
Probably this issue is already being tracked. If so please close the ticket.

WordPress 5.8 supports WebP image upload, which works well. But in media library the original color of the image changes completely to a yellow hue. Please see attached screenshots.

**Development Environment**
OS: Ubuntu 16.04
WordPress version: 5.8
Installed and Active Plugins: Akismet Anti Spam
Installed and Active Themes: 2021"	subrataemfluence	5.8	
Defects Awaiting Review	50667	New attachment size is created even the source is smaller		Media	normal	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	5.4.2	needs-patch
Defects Awaiting Review	56439	Missing Title Attribute at HTML TAG FIGURE		Media	normal	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	6.0.1	
Defects Awaiting Review	54320	There are no more thumbnails for uploaded PDFs		Media	normal	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	5.8.1	
Defects Awaiting Review	55302	Improve media library upload progress indicator		Media	normal	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		
Defects Awaiting Review	49431	Media uploader window leaves behind orphan button element in Block Editor		Media	normal	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	5.0	
Defects Awaiting Review	55465	Fix hiding playlist buttons from Add Media modal dialog		Media	minor	defect (bug)	new	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	5.9.2	has-patch
Defects Awaiting Review	55323	When an image is edited the URL of the image is not updated		Media	normal	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	5.9.1	
Defects Awaiting Review	54818	Some file names are no longer sanitized		Media	normal	defect (bug)	new	2022-01-14T11:16:03Z	2022-01-14T13:03:24Z	"When uploading a file which filename contain accents, those accents are no longer replaced by non-accent letter.
It's specific to JPEG file.
Tested with PDF and PNG: accent are well removed.

See attached screenshot with JPEG, PNG and PDF example.

I can reproduce this with WP 5.9 RC2 and WP 5.8.3."	Chaton666		
Defects Awaiting Review	49086	"The ""site_icon"" option isn't always removed when the site icon is deleted"		Media	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	54714	images deleted from media library still exist in upload directory		Media	normal	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		
Defects Awaiting Review	54605	WP_Image_Editor_Imagick::resize is not behaving according to spec		Media	major	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	3.5	
Defects Awaiting Review	51058	attachment_url_to_postid does not retrieve post ID of really large images		Media	normal	defect (bug)	new	2020-08-19T02:12:58Z	2021-11-14T13:59:45Z	"Since WordPress now sets the `_wp_attached_file` meta value for very large images to use the scaled image:
{{{
amazing-road-in-pure-nature-picjumbo-com.jpg 
}}}
becomes 
{{{
amazing-road-in-pure-nature-picjumbo-com-scaled.jpg
}}}
any function which uses `attachment_url_to_postid` on a large image URL will not properly retrieve the image's post ID.

Use case: I use this function after removing intermediate image size strings to get the post ID of the uploaded image. I'm currently getting around this issue by inserting `-scaled` into the image URL and running the function again if a post ID is not returned, but I would prefer if WP could account for this, please.

Alternatively, if the WordPress function could manage the intermediate size conversion on its own, that would also resolve the issue by removing the need to remove it in the first place."	littler.chicken	5.3	has-patch
Defects Awaiting Review	41816	attachment_url_to_postid() should find post_id for URLs of intermediate size images		Media	normal	defect (bug)	new	2017-09-06T15:40:45Z	2021-09-28T21:06:56Z	"[[https://developer.wordpress.org/reference/functions/attachment_url_to_postid/|attachment_url_to_postid()]] fails to find the post ID when given a URL of an intermediate sized image.

For example,

{{{
$url_of_full_sized_image = 'http://example.com/wp-content/uploads/test.jpg';
$attachment_id = attachment_url_to_postid( $url_of_full_sized_image );
// $attachment_id now equals 3

$url_of_intermediate_sized_image = 'http://example.com/wp-content/uploads/test-150x150.jpg';
$attachment_id = attachment_url_to_postid( $url_of_intermediate_sized_image );
// $attachment_id now equals 0 but should equal 3, the same as for the full-sized image
}}}

This should be fixed."	pbiron	4.9	dev-feedback
Defects Awaiting Review	53981	The 'media_buttons' hook does not work for contributors.		Media	normal	defect (bug)	new	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	2.7	has-patch
Defects Awaiting Review	53944	Video resolution in portrait orientation		Media	normal	defect (bug)	new	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	5.8	has-patch
Defects Awaiting Review	53895	Default Audio Player Bug, mejs-container wp-audio-shortcode mejs-audio		Media	normal	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		
Defects Awaiting Review	53187	wp_filter_content_tags added too early		Media	normal	defect (bug)	new	2021-05-11T19:15:40Z	2021-07-26T16:31:46Z	"Currently wp_filter_content_tags filter is added to the_content filters with default priority, this means that if the iframe is outputted by shortcode it will not get the lazy loading attribute.
I think that it should be added after do_shortcode has run with priority of 12."	maciejmackowiak	5.5	needs-patch
Defects Awaiting Review	51038	Default height when using add_theme_support( 'custom-header') in GD.		Media	normal	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		
Defects Awaiting Review	53193	chmod(): Operation not permitted in class-wp-image-editor-imagick.php		Media	normal	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	5.7.1	
Defects Awaiting Review	53121	wp_get_image_mime() - something weird going on		Media	minor	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	4.8	
Defects Awaiting Review	37311	Site icon thumbnails are lost if wp_generate_attachment_metadata called again later		Media	normal	defect (bug)	reopened	2016-07-07T22:36:48Z	2021-04-14T16:36:05Z	"If image sizes are regenerated with the Regenerate Thumbnails plugin, the custom Site Icon sizes (and possibly other images in the customiser?) are lost.

The question is whether this is something that needs changing in the plugin, or whether the logic for how these sizes work should change in core. (Virtually all core documentation tells people to use this plugin when changing image sizes, so it should be fixed in one of the other).

I'm of the opinion it should be changed in core, where custom sizes like the ones created by Site Icons should be somehow marked as special sizes, with wp_generate_attachment_metadata checking for any existing custom sizes and including them in the output."	smerriman	4.5	needs-patch
Defects Awaiting Review	43736	Audio continues to play in Media Modal after close		Media	normal	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	4.9.5	
Defects Awaiting Review	43114	FLV video - NetworkError: Exception ProgressEvent error		Media	normal	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	4.9.2	
Defects Awaiting Review	42560	mp4 files do not play in Safari		Media	normal	defect (bug)	reopened	2017-11-15T18:54:34Z	2021-03-17T00:26:36Z	"When a user uploads an mp4 file, it will not play in Safari.

We have determined that this is not an issue with our Apache server (seems to happen to some folks that they have disabled range request headers) as the same file uploaded elsewhere on our server but externally from the wordpress site loads fine.

It seems that perhaps the video is attempting to load in byte ranges but that WordPress is returning a 200 response instead of a 206, but that is just a hunch."	cg923	3.0	has-patch
Defects Awaiting Review	28053	Fields with same name added to new media modal using 'attachment_fields_to_edit' do not pass as an array when saving.	joedolson*	Media	normal	defect (bug)	accepted	2014-04-28T11:44:53Z	2021-03-03T17:55:07Z	"If you use the 'attachment_fields_to_edit' to add a set of checkboxes to the media modal attachment details (to implement a better UI for taxonomies for example) the save method of media.view.AttachmentCompat doesn't cater for fields with the same name to be passed as an array, it just passes the last field of that name that is found.

When getting the fields to save, if multiple fields with the same name are found they should be passed as an array.

I have attached a visual of the custom UI with checkboxes and a patch for testing."	husobj	3.5	has-patch
Defects Awaiting Review	49966	Load smaller images when in a gallery		Media	normal	defect (bug)	new	2020-04-21T06:42:48Z	2021-02-18T15:24:16Z	"Originally reported in https://github.com/WordPress/gutenberg/issues/9620. Since `sizes` is set by `wp_calculate_image_sizes`, this issue belongs in Core Trac.

----

I noticed that when creating a gallery block, with the 3 default columns, the images used as thumbnails on the front end are the original, full size version. Not the thumbnail, not medium, not even large size version.  There is the srcset attribute but that does not help much because 100vw is set so it will generally only affect screen sizes smaller than the Large or Medium sizes set on WordPress Settings > Media.

Let's take for a theme that uses a maximum content width of 700px. On Settings > Media the sizes Thumbnail 150px - Medium 300px - Large 1024px are set.

Images in the Media Library are all 1600px wide. Now take a gallery with three columns, which will have a source code like this for each image:
`<img src=""http://localhost/wp-content/uploads/2011/07/img_8399.jpg"" alt=""Boat Barco Texture"" data-id=""771"" data-link=""http://localhost/2010/09/post-format-gallery/img_8399/"" class=""wp-image-771"" srcset=""http://localhost/wp-content/uploads/2011/07/img_8399.jpg 1600w, http://localhost/wp-content/uploads/2011/07/img_8399-300x200.jpg 300w, http://localhost/wp-content/uploads/2011/07/img_8399-1024x682.jpg 1024w"" sizes=""(max-width: 1600px) 100vw, 1600px"">`

Now visit that page on a browser with a screen width of around 1390px. The content width will be 700px which means a max width for each thumbnail of around 220px (due to margins between the images). A source size of 300px would suffice for normal 1x screen resolutions but instead the full 1600px size sources are fetched for each image by the browser.

When instead of `sizes=""(max-width: 1600px) 100vw, 1600px` something more in correspondance with the gallery column size could be set to address this. Like `sizes=""(max-width: 1600px) 30vw, 1600px""` so that a 30% image slot is assumed.

This leaves 50vw for two column galleries, and 100vw for 1 column galleries...

Thoughts ?"	noisysocks		
Defects Awaiting Review	52373	URL returned by get_attachment_link() can 404.		Media	normal	defect (bug)	new	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	4.4	has-patch
Defects Awaiting Review	42922	Image Scaling using get_the_post_thumbnail issue in WordPress		Media	normal	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	4.9.1	
Defects Awaiting Review	45562	drag and drop file upload fails with empty files when dragging from macOS Preview into WP on Safari 12		Media	normal	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	5.0	
Defects Awaiting Review	51584	Publishing a large image post while the image is still uploading allows you to leave and return to a broken image		Media	normal	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		
Defects Awaiting Review	48436	Media: fix the layout of Gallery settings in the media modal dialog		Media	normal	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	3.9	
Defects Awaiting Review	51243	[JS] Exception when setting or trying to upload a featured image in a post		Media	normal	defect (bug)	new	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	5.5.1	has-patch
Defects Awaiting Review	51421	wp_get_missing_image_subsizes returns thumbnail sizes for animated GIFs		Media	normal	defect (bug)	new	2020-09-30T14:27:32Z	2020-10-01T14:36:20Z	"While thumbnails are not created for animated GIFs to avoid the problem of users picking a thumbnail size to insert into their content and unexpectedly getting a static image instead of an animated GIF, they are generated for static GIFs.

The `wp_get_missing_image_subsizes` function however recognizes animated GIFs as an image format that can have subsizes generated, and so returns a list of missing thumbnail sizes that will never be created.

This causes problems for various plugins when checking whether all required thumbnails exist before commencing processing the GIF etc."	ianmjones	5.5.1	needs-patch
Defects Awaiting Review	50681	default-filters.php contains non-tweakable parameters		Media	normal	defect (bug)	new	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	5.3	has-patch
Defects Awaiting Review	50944	wp_calculate_image_srcset can unintentionally include unscaled original image		Media	normal	defect (bug)	new	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	4.4	dev-feedback
Defects Awaiting Review	51115	Scaled Images have larger file size than the original		Media	normal	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	5.5	
Defects Awaiting Review	37581	text overflows, if it has no hyphens on media upload error notices		Media	normal	defect (bug)	new	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	4.5.3	has-patch
Defects Awaiting Review	51003	Photo rotation issue when iPhone photos are uploaded		Media	major	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	5.5	
Defects Awaiting Review	48194	"Unregistered image sizes used for IMG tag ""srcset"""		Media	normal	defect (bug)	new	2019-10-02T02:16:24Z	2020-07-21T06:25:14Z	"Following design changes, previously-generated thumbnails remain on the site, along with matching post meta entries linked to the respective attachment. WordPress then uses those to produce IMG tags.

In fact, these thumbnails are referenced even when the files don't exist on the site anymore, following a cleanup.

I think WordPress should only use thumbnail URLs for registered image sizes.

For bonus points, there can be a way to remove unregistered size references from attachment meta, perhaps in a Media > Audit admin page, which lets the user decide what to remove and what to keep.

For context, I've just cleaned images on a site and found a lot of legacy references to thumbnails of previously registered sizes in IMG tags. Media management and cleanup plugins I used could only detect the redundant meta data when I re-registered the old sizes temporarily."	galbaras		
Defects Awaiting Review	50200	Media library thumbnails broken for certain aspect ratio images in Firefox		Media	normal	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	5.4.1	
Defects Awaiting Review	50011	Edge case in image lazy-loading		Media	normal	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	5.5	
Defects Awaiting Review	49995	WordPress creates unnecessary thumbnails		Media	normal	defect (bug)	new	2020-04-24T11:44:23Z	2020-04-26T12:09:32Z	"Hello,
I think I found a bug in WordPress 5.3 onwards, when **imagick is installed and activated** on the server (PHP 7.3, phpinfo attached).

To reproduce the problem:

1 - in /wp-admin/options-media.php check what sizes are set (defaults are: 1024x1024, 300x300x 150x150)

2 - upload an image with the same size as one of the three, let's say I upload this image https://via.placeholder.com/1024x1024

3 - WordPress uploads the image and generates the following files
1024x1024.png           -> original image
1024x1024-1024x1024.png -> SHOULD NOT BE CREATED
1024x1024-768x768.png   -> medium_large
1024x1024-300x300.png   -> medium
1024x1024-150x150.png   -> thumbnail

1024x1024-1024x1024.png should not be generated, it's also bigger than the original (3.5kB vs 6.3kB).

The same thing happens with the other sizes as long as the image size is the same as one of the sizes set in the options.


It doesn't happen on Wordpress 5.2.x and downwards.

To solve the problem imagick must be deactivated, using GD the problem doesn't happen."	XXVII	5.4	
Defects Awaiting Review	48992	MP3 artwork issue in WordPress 5.3.1		Media	normal	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	5.3.1	
Defects Awaiting Review	45212	mediaelement.js WordPress .mp4 videos not playing/working on certain browsers/devices		Media	normal	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		
Defects Awaiting Review	44456	srcset max-width set to image width		Media	normal	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	4.9.6	
Defects Awaiting Review	48784	Search box in Select / Upload image pop-up not working with cropped images		Media	normal	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	5.3	
Defects Awaiting Review	49640	image_get_intermediate_size returns wrong		Media	normal	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		
Defects Awaiting Review	43560	Entering single quotes in Add Media dialog after recropping causes browser to hang		Media	normal	defect (bug)	new	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	4.9.4	has-patch
Defects Awaiting Review	40638	In attachments taxonomy displays slug instead of name		Media	normal	defect (bug)	new	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	4.7.4	has-patch
Defects Awaiting Review	49183	Width alignment issue in Edit attachment page		Media	normal	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		
Defects Awaiting Review	49071	None of the images with the file name ending -300x250 will work as expected after downloading		Media	minor	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	5.3.2	
Defects Awaiting Review	48026	Always show selected image even if it doesn't match search string		Media	normal	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		
Defects Awaiting Review	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	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		needs-patch
Defects Awaiting Review	47121	Featured image modal: content disappears when changing device orientation		Media	normal	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	5.0	
Defects Awaiting Review	47889	uploading image contains special characters will return a wrong image url		Media	normal	defect (bug)	new	2019-08-17T10:57:02Z	2019-08-18T03:46:56Z	"How to reproduce this bug?
1> ready an image, make sure it contains a special character, such as `^`. In my case, this image file is `test^image.jpg`
2> goto page 'Upload New Media', that is './wp-admin/media-new.php'
3> select your image file and upload it.
4> in the completion list, you will see a thumbnail and the image that you uploaded. (see attachment )
5> the thumbnail is broken, and the URL of the thumbnail is `'.../testimage.jpg'`. actually, it's should be `'.../test^image.jpg'`
"	sockscap64	5.2.2	has-patch
Defects Awaiting Review	47619	i got error in /wp-includes/media.php		Media	normal	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		
Defects Awaiting Review	39521	media_handle_sideload does not initialize the caption/excerpt value		Media	normal	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	2.6	
Defects Awaiting Review	46793	Uploading files that the filename contains LTR and RTL characters cause filename change		Media	major	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	4.9.1	
Defects Awaiting Review	46309	Image upload failures when using Gutenberg gallery block.		Media	major	defect (bug)	reopened	2019-02-22T10:11:29Z	2019-04-10T17:54:51Z	"Transferring a Gutenberg issue from Github over to trac:
https://github.com/WordPress/gutenberg/issues/8935

Many users are experiencing a ""The response is not a valid JSON response"" error when uploading images, usually caused by a timeout on the server.

In response to this, there was a change to the client side code in Gutenberg to upload images serially rather that in parallel. This improved things, but the error still seems to be happening for some users.

In my own testing I had to use multiple huge images to reproduce an error.  Errors happened much more frequently uploading directly to the gallery block than when using the standard media uploader—I'm not sure if there's a chance the REST endpoint might be somehow less optimised than the async-upload endpoint that the media library uses.

Some details of the timeouts I received are here:
https://github.com/WordPress/gutenberg/issues/8935#issuecomment-466306820"	talldanwp	5.1	
Defects Awaiting Review	46470	Image srcset and sizes not output in classic block. Image attachment removed		Media	normal	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	5.1	
Defects Awaiting Review	45980	WordPress 5.0.3 PDF is opening empty page in Chrome and not showing content		Media	normal	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	5.0.3	
Defects Awaiting Review	43641	Media controls in the media grid are too wide		Media	normal	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	4.9	needs-patch
Defects Awaiting Review	40593	Media library replace image popup not displaying completely below 641px width		Media	normal	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	4.7.4	
Defects Awaiting Review	39679	Redirect loop on attachment pages		Media	normal	defect (bug)	new	2017-01-24T17:12:11Z	2018-09-03T15:48:54Z	"Summary: a URL to an attachment page will redirect to itself in an infinite loop in certain cases.

Speculation: this may be due to my permalink structure, which would be why others are not complaining about it.

This issue depends on the letter case of the URL. The attachment pages exist, and there is a method that allows them to be accessed, however they cannot be reached if the link is all lowercase letters. Because that is the link generated by the Media Library, users can encounter this.

It took me a while to convince myself that this is a WP core issue because it does not happen on all servers. After adding logging code to some of the action hooks, I could see that a URL comes in and then generates a redirect, using `wp_redirect`, to the exact same URL that was requested.

My permalink structure is `/%postname%.html`, and the WP portion of the site is in a subdirectory, so WP pages are accessed as: http://yourfriendpaul.com/wp/shredding-on-my-guitar.html

Trying to reach the attachment page using this URL will result in an infinite loop:
http://yourfriendpaul.com/wp/shredding-on-my-guitar.html/good-at-shredding-dscn4850-1200x900

Trying to reach it with this one will succeed, note the uppercase C. Making ANY letter in path uppercase will make it succeed:
http://yourfriendpaul.com/wp/shredding-on-my-guitar.html/good-at-shredding-dsCn4850-1200x900

To complicate matters further, this does not happen on my Ubuntu server, but does happen on GoDaddy with the exact same database (other than site name).

This is my first bug report, so I'm not sure how much info to put in the initial report. The following is an excerpt from my error log, with some notes added. Sorry for the formatting, it is just pasted.

Thanks in advance for looking into this.
Paul


The data is captured using the error log.
The first entry is made in wp-config. 
The next 3 lines are when yfp_functions is loaded.
It creates the function that prepends `**yfplog` to an error message.
The final three lines are from the action hooks indicated.

{{{
	` # A call in all lowercase has multiple tries, in bursts, which loop and cause 301 redirects to the original URI,
	` # but one uppercase letter avoids any redirects and finds the content. Only two of the redirects are shown.
	` 
	` [24-Jan-2017 06:19:04 UTC]   *** in wp-config.php, REQUEST_URI is /wp/shredding-on-my-guitar.html/good-at-shredding-dscn4850-1200x900
	` [24-Jan-2017 06:19:04 UTC]   **fyplog - *** Log writing is enabled in yfp_functions, making funcion yfp_write_log()
	` [24-Jan-2017 06:19:04 UTC]   **fyplog -   script: /wp/index.php
	` [24-Jan-2017 06:19:04 UTC]   **fyplog -   uri:    /wp/shredding-on-my-guitar.html/good-at-shredding-dscn4850-1200x900
	` [24-Jan-2017 06:19:04 UTC]   **fyplog -  wp_loaded() action was called.
	` [24-Jan-2017 06:19:04 UTC]   **fyplog -  wp_redirect() action was called, location: http://YourFriendPaul.com/wp/shredding-on-my-guitar.html/good-at-shredding-dscn4850-1200x900, status: """"
	` [24-Jan-2017 06:19:04 UTC]   **fyplog -  wp_redirect_status() action was called, location: , status: ""301""
	` 
	` [24-Jan-2017 06:19:04 UTC]   *** in wp-config.php, REQUEST_URI is /wp/shredding-on-my-guitar.html/good-at-shredding-dscn4850-1200x900
	` [24-Jan-2017 06:19:04 UTC]   **fyplog - *** Log writing is enabled in yfp_functions, making funcion yfp_write_log()
	` [24-Jan-2017 06:19:04 UTC]   **fyplog -   script: /wp/index.php
	` [24-Jan-2017 06:19:04 UTC]   **fyplog -   uri:    /wp/shredding-on-my-guitar.html/good-at-shredding-dscn4850-1200x900
	` [24-Jan-2017 06:19:04 UTC]   **fyplog -  wp_loaded() action was called.
	` [24-Jan-2017 06:19:04 UTC]   **fyplog -  wp_redirect() action was called, location: http://YourFriendPaul.com/wp/shredding-on-my-guitar.html/good-at-shredding-dscn4850-1200x900, status: """"
	` [24-Jan-2017 06:19:04 UTC]   **fyplog -  wp_redirect_status() action was called, location: , status: ""301""
	` 
	` [24-Jan-2017 06:19:49 UTC]   *** in wp-config.php, REQUEST_URI is /wp/shredding-on-my-guitar.html/good-at-shredding-dsCn4850-1200x900
	` [24-Jan-2017 06:19:49 UTC]   **fyplog - *** Log writing is enabled in yfp_functions, making funcion yfp_write_log()
	` [24-Jan-2017 06:19:49 UTC]   **fyplog -   script: /wp/index.php
	` [24-Jan-2017 06:19:49 UTC]   **fyplog -   uri:    /wp/shredding-on-my-guitar.html/good-at-shredding-dsCn4850-1200x900
	` [24-Jan-2017 06:19:49 UTC]   **fyplog -  wp_loaded() action was called.
	` [24-Jan-2017 06:19:49 UTC]   **fyplog -  ******* in function get_attachment_link()
	` [24-Jan-2017 06:19:49 UTC]   **fyplog -  ******* in function get_attachment_link()
	` [24-Jan-2017 06:19:49 UTC]   **fyplog -  ******* in function get_attachment_link()
	` [24-Jan-2017 06:19:49 UTC]   **fyplog -  ******* in function get_attachment_link()
	` [24-Jan-2017 06:19:49 UTC]   **fyplog -  ******* in function get_attachment_link()
	` [24-Jan-2017 06:19:49 UTC]   **fyplog -  ******* in function get_attachment_link()
}}}"	OPunWide	4.7.1	
Defects Awaiting Review	43310	"Generic ""HTTP Error"" when uploading PDFs via Media area"		Media	normal	defect (bug)	new	2018-02-14T01:58:49Z	2018-08-19T11:13:16Z	"This might be tied in with Ticket #41973. This may also be [https://make.wordpress.org/core/2016/11/15/enhanced-pdf-support-4-7/ tied into this issue], which was previously fixed for 4.7x.

Currently using the following code to handle image processing:
{{{
	// Fix image processing
	add_filter( 'wp_image_editors', 'change_graphic_lib' );
	function change_graphic_lib($array) {
		return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
	}
}}}

I've done all the digging around I can. File upload max size is 140 megs (the test PDF I used is only 13 megs). I've done the .htaccess and php.ini tweaks needed to allow plenty of upload time. Images no longer return the arbitrary ""HTTP Error"" after adding the above function.

PHP 7.0.27-0+deb9u1 (cli) - This is the latest stable release, [https://packages.debian.org/search?keywords=php7.0 per Debian].

This is what I passed along to our customer:

""You’ll have to “tough your way” into the PDF uploads… after you upload a PDF, give it a few minutes… then do a power refresh on the media gallery (I would recommend you upload it through the media gallery first, rather than using the “Add Media” feature on posts and pages)."""	BearlyDoug	4.9.4	needs-patch
Defects Awaiting Review	43930	Inaccurate width and height returned when using wp_get_attachment_image_src on the backend.		Media	normal	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	4.9.5	
Defects Awaiting Review	42794	Can't upload new media files when multiple media dialogues are present on a single page		Media	normal	defect (bug)	new	2017-12-04T16:01:05Z	2018-01-19T09:44:09Z	"'''Layman error description''': When there are more than one Inline Media Uploader on a page in the Admin, and one tries to upload a new image or file to the Media Library, the upload gets stuck and the image is never inserted into the media library (see attached screenshot). This happens to me when using the post-types-definitely plugin to create multiple media fields in a CPT. The exact same error (including error messages) has been described before ([https://wordpress.org/support/topic/js-bug-prevents-uploading-media-in-pagepost-editor/?replies=11#post-6860868] and https://wordpress.org/support/topic/error-uploading-media-in-post-if-yoast-is-active/#post-6922117), and even though there it was related to a plugin combination, it is not in my case. The workaround proposed there is not applicable to my case and the error source I found has nothing to do with plugins.[[BR]][[BR]]

'''Technical error description''': When examined in the Firefox Developer Tools, the console shows the error `TypeError: this.$index is undefined`. In Chrome, the error is `Cannot read property 'text' of undefined`. Both of them point to `wp-includes/js/media-views.js:UploaderStatus.info()` [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/js/media-views.js?rev=40359#L8361][[BR]][[BR]]

'''Technical analysis''': Upon closer inspection of the code, the problem seems to be as follows: When we upload a file (by clicking Ok on the OS file dialogue), a callback handler calls info() on each UploadStatus object belonging to a loaded media dialogue. The method info() relies on the fact that normally, the method ready() on the same UploadStatus object is called before the call to info(). ready() uses JQuery to set (amongst others) the member variable $index inside the UploadStatus object. info() then tries to access this.$index on all UploadStatus objects and set their contents using the JQuery text() function. However, since ready() is not called before a media dialogue is opened for the first time, and our opened dialogue calls info() on all media dialogues, the access to this.$index fails in the unopened UploadStatus objects, throwing the above Javascript Error and making the script abort, therefore freezing the upload progress bar.[[BR]][[BR]]

'''Workarounds''': This analysis is confirmed by the fact that when I open all media dialogues on the page at least once before uploading an image in any of them, uploading works as expected (because all of the UploadStatuses are ready() and have their $index member variable defined). A workaround for the problem is to just use the inline media dialogues for selecting existing media from the media library, and using the Media->New menu to actually upload any files. The error happened in all Wordpress versions I tested (since 4.8.3).[[BR]][[BR]]

'''Proposed solution''': I can see a number of different solutions for this problem. The best one would be to only call info() on the UploadStatus belonging to the opened media dialogue. However, the info() calls are performed via a single event trigger ([https://core.trac.wordpress.org/browser/trunk/src/wp-includes/js/media-views.js?rev=40359#L8289]) that all info() methods subscribe to in the UploadStatus.initialize() function (relevant for this bug is the `""add""` trigger), and this trigger cannot distinguish its subscribers. Therefore I propose to instead call ready() at the end of the initialize() function. This way, ready() is only called once more than before per media dialogue and page load, and we can be certain that info() is only called on UploadStatuses that are ready()."	carlobeltrame	3.7.19	has-patch
Defects Awaiting Review	39492	upload_post_params and plupload_init filters are not being executed on wp_print_media_templates()		Media	normal	defect (bug)	new	2017-01-05T20:17:11Z	2018-01-04T18:38:02Z	upload_post_params and plupload_init filters are not being executed on the new media upload form located in wp-includes/media-template.php => wp_print_media_templates().	llvasconcellos	4.7	
Defects Awaiting Review	42851	Problem with video height since 4.9		Media	normal	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	4.9.1	
Defects Awaiting Review	42484	WP ajax call fail when executing long time  'ERR_SPDY_PROTOCOL_ERROR'.		Media	normal	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	4.8.3	
Defects Awaiting Review	36680	"Audio player with preload=""metadata"" shows incorrect duration for audio files 1 hour or longer"		Media	normal	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	4.5.1	
Defects Awaiting Review	34465	Uploader in Media Modal Not Working When Certain Library Arguments Present		Media	normal	defect (bug)	new	2015-10-27T13:32:55Z	2017-09-18T00:16:15Z	"I noticed this bug while working on a plugin that deals with the media modal.  I'm using the following code to create a media modal on a button view:


{{{
function frame(){
				// Destroy the previous collection frame.
				if ( this._frame )
				{
					this.stopListening( this._frame );
					this._frame.dispose();
				}
	
				this._frame = wp.media( {
					className: 'media-frame rwmb-media-frame',
					multiple : true,
					title    : 'Select Media',
					library  : {
						type   : 'image',
					}, 
					frame: 'select',
				} );

				//Event stuff goes here
	
				this._frame.open();
			},
}}}

The issue is when uploading a file using the upload tab in the media modal.  The file uploads but it never appears in the Media Library tab like it does in the core media modal used by the editor.  The side Attachment Details panel shows the file information but the file itself doesn't appear on the grid.  Attached is a screen cap from a user of the plugin.  "	Funkatronic	4.0	needs-patch
Defects Awaiting Review	41352	Media library - applying image and date filter redirects to homepage		Media	normal	defect (bug)	new	2017-07-18T00:12:31Z	2017-09-17T06:43:48Z	"When in the media library, select LIST view > select IMAGES in the 'All media items' dropdown, select a month from the dropdown and click FILTER. I am being redirected to the websites homepage rather than the filter results. 

3 people have replicated this bug, I personally have replicated it across 3 of our Wordpress websites. I tried disabling media related plugins and it had no affect. "	mikedtv	4.8	
Defects Awaiting Review	41148	Test for ticket 39875 can throw PHP error		Media	normal	defect (bug)	new	2017-06-24T07:53:42Z	2017-08-28T11:29:35Z	"The test that was written for #39875 can throw a PHP error under certain circumstances: `Undefined index: sizes`.

The problem arises when then `wp_generate_attachment_metadata()` call does not return the proper array data. As the preview path generation directly access a specific array index, this throws a PHP error."	schlessera	4.8	has-patch
Defects Awaiting Review	32117	wp_get_attachment_metadata sizes array file misses path if using year/month organizing		Media	normal	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	4.2	needs-patch
Defects Awaiting Review	41516	PNG Image Saturation Loss on Resize		Media	normal	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	4.8	
Defects Awaiting Review	41353	Async upload breaks when there are special characters into file name		Media	normal	defect (bug)	new	2017-07-18T07:53:48Z	2017-07-19T14:48:50Z	After crunching the image, thumbnail breaks for the image.	bhargavbhandari90	4.8	dev-feedback
Defects Awaiting Review	34296	Autoplay for more than one self-hosted video fails		Media	normal	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	4.3.1	
Defects Awaiting Review	40785	Image caption in WYSIWYG is not displaying in post page		Media	normal	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	4.7.5	
Defects Awaiting Review	39331	unsharpMaskImage in Imagick's thumbnail_image is not compatible with CMYK jpegs.		Media	normal	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	4.5	
Enhancements Awaiting Review	66627	Media: Add an API for serving uploaded images from an image CDN		Media	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	66624	Tests: Add unit test coverage for wp_is_heic_image_mime_type()		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66623	Tests: Add unit test coverage for wp_get_image_editor_output_format()		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66622	Tests: Add unit test coverage for get_taxonomies_for_attachments()		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66619	Tests: Add unit test coverage for wp_image_matches_ratio()		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66603	Tests: Add unit tests for the columns, the actions and the messages of WP_Media_List_Table		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66546	Tests: Add unit tests for the Post Featured Image block		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66476	Tests: Add unit coverage for `wp_exif_date2ts()`		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	55041	Add end to end test case for Filter media by type		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65751	wp_get_registered_image_subsizes() has no unit test coverage		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66363	Call update_post_author_caches in wp_ajax_query_attachments function		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	54016	Media Library: Bulk delete elements in grid view takes very long		Media	normal	enhancement	new	2021-08-26T15:10:47Z	2026-10-15T20:54:43Z	"When bulk deleting images in media grid view they will be deleted one by one counting down, refreshing the view (not reloading the page!) and this takes unnecessarily long. I wonder if this can be accelerated by first deleting all of them before the view gets refreshed for example.

"	Presskopp		dev-feedback
Enhancements Awaiting Review	66248	No way to turn off importing alt text from image XMP metadata		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65473	Feature: Add libvips-based Image Editor to WP Core		Media	normal	enhancement	new	2026-06-16T21:08:07Z	2026-10-12T23:00:54Z	"WP 7.1 is taking a big step forward with regards to Media processing with the [https://make.wordpress.org/core/2026/06/04/call-for-testing-client-side-media-processing/ client-side media processing] effort. I see this as an opportunity make significant improvements to server-side media processing at the same time.

=== Problem: WordPress Media Processing requires excessive server resources

It is common for users to report issues and failures with uploading images (e.g. #23127, #22869, #48522, #55289), and these largely come down to running out of RAM. 

@kirasong confirmed to me recently [https://wordpress.slack.com/archives/C3D6T7F8Q/p1781237448598949?thread_ts=1781029921.088899&cid=C3D6T7F8Q in slack] that:

> image processing has been the highest user of RAM for any individual operation in WordPress for as long as I've been working on the project

Reducing the memory requirements of image processing would improve reliability on resource-constrained hosting environments and allow available memory to be used for serving requests rather than generating image subsizes.

Finally, datacenter CO2 emissions are becoming an increasingly pressing concern. So, WordPress - representing over 40% of the web - needs to endeavour to reduce its server footprint as much as possible.

=== Proposal: Add WP Core support for using [https://www.libvips.org libvips] to process images on the server

Published [https://github.com/libvips/libvips/wiki/Speed-and-memory-use libvips benchmarks] show memory usage and processing times that are often 10–20x lower than ImageMagick and GD. My own testing of libvips for WordPress media uploads has shown improvements in the 5x range for CPU (measuring memory usage seems tricky for Imagick and VIPS, so I don't have figures on hand).

Using libvips in WP Core would result in faster and more reliable uploads, fewer user errors and support/trac tickets, lower memory requirements, reduced hosting costs, lower CO2 emissions, and more. 

We should introduce a new `WP_Image_Editor_Vips` implementation in `wp/wp-includes/class-wp-image-editor-vips.php`, which would use [https://github.com/libvips/php-vips php-vips] to talk to libvips via the php FFI extension. This would be the preferred Image Editor, falling back gracefully to Imagick when libvips is unavailable on the server.  

There is already a [https://github.com/notglossy/vips-image-editor-ffi very capable plugin] that adds such support, but it is largely unknown. Moreover, even if it were to be made a Canonical Plugin, most hosts do not (and won't) support libvips until WP itself supports and educates about it. The core functionality from this plugin could be reviewed, tested and added to WP Core. 


=== Benchmark

See attached SPX profile flamegraphs for uploading the attached large image (on a powerful desktop - 8.6s vs 1.5s. Conversely, the client-side media wasm-vips seems to take around 6 seconds to do the same - and you have to wait on the page while that happens. 

=== Responses to potential objections:
1. ""WP 7.1 will have client-side media processing, so server-side media processing is no longer a concern""

This is a fantastic and highly welcome innovation. But it [https://make.wordpress.org/core/2026/06/04/call-for-testing-client-side-media-processing/#:~:text=System%20and%20Browser%20Requirements only works on] Chromium browsers and in the Gutenberg editor - not the Media Upload tool, nor via plugins from the frontend.  So, plenty of media uploads will still fall through to the backend. 

This effort is ''complementary'' to the client-side media effort (which also uses libvips via `wasm-vips`!).

Also, some sites will surely want to disable the client-side processing, for any number of valid reasons (e.g. battery life, not having to wait for processing to happen before leaving the page)

2. ""Very few hosts have libvips installed. So this wouldn't meet the WP Philosophy threshold of core features need to benefit 80% of users""

There's plenty of historical (and current!) precedent for introducing important features that do not meet this threshold.

* The client side media project estimated that [https://github.com/WordPress/gutenberg/issues/74333#issuecomment-4078332777 only a maximum 40% of users] would benefit from it. 
* AVIF support was added despite [https://github.com/WordPress/performance/issues/2519#issuecomment-4716724810 only 30% of hosts supporting it]at the time. 
* And surely many other features and APIs have low initial adoption. 

Hosts' support for libvips is likely to be lower than these precedents, but this is is an opportunity for outreach and education amongst hosts and users - supporting vips is as simple as something like `sudo apt install libvips42 php8.x-ffi`. 

And, again, this would be a progressive enhancement - if your host doesn't support it, WP falls back to Imagick or GD. 

But there is no good reason why this couldn't eventually benefit 100% of WordPress users.

3. ""There would be a maintenance burden associated with it""

WordPress already maintains multiple WP_Image_Editor implementations. A Vips implementation would reuse the existing editor abstraction and would likely share much of its behavior with existing editors. The maintenance surface area appears relatively small relative to the potential performance benefits.

Additionally, there's only been a [https://github.com/WordPress/wordpress-develop/commits/trunk/src/wp-includes/class-wp-image-editor-imagick.php couple of commits per year] to the imagick editor.

I and others will surely be willing to help with maintaining this editor.

4. ""There are potential security concerns with FFI""

php-vips [https://github.com/libvips/php-vips-ext previously] worked via a .so extension, but that was deprecated in favour of the FFI approach. 

Some hosts disable FFI, but that is a deployment concern rather than a WordPress compatibility concern. For hosts with security concerns, tools such as [https://snuffleupagus.readthedocs.io/ Snuffleupagus] can be used to selectively permit FFI access for libvips while maintaining broader restrictions on FFI usage.

Again, hosts that choose not to enable FFI would continue using Imagick or GD without any change in behavior."	nickchomey	7.1	has-patch
Enhancements Awaiting Review	65952	C2PA information is lost on all generated images (Content Authenticity)		Media	normal	enhancement	new	2026-08-24T15:12:18Z	2026-10-07T11:31:09Z	"Since August 2026 the AI Act (2024/1689) demands all AI providers to make AI-generated images to be machine-readable as AI-generated.

There is a de-facto standard arising from the Coalition for Content Provenance and Authenticity (C2PA) which is trying to solve this technical problem.

Unfortunately all those metadata gets stripped for all thumbnail images. Even if we disable this via:

{{{#!php
<?php
add_filter( 'image_strip_meta', '__return_false' );
}}}

You can test this with these online tools:
https://verify.contentauthenticity.org/
https://contentauthenticity.adobe.com/inspect

There is also a CLI tool for it:
https://github.com/contentauth/c2pa-rs/blob/main/cli/README.md

The C2PA specifications can be found here:
https://spec.c2pa.org/specifications/specifications/2.3/specs/C2PA_Specification.html

Original EU documents with more details:
https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=OJ:L_202401689#art_50
https://digital-strategy.ec.europa.eu/en/policies/code-practice-ai-generated-content

The problem is, that we can't just copy the info to the new images. We need to create new content credentials and reference the original images as parent, as this is an ""edit"" for the C2PA spec.

Fortunately the EU knows about this general technical problem and allows other ways to declare AI-generation, but maybe in the future we need to have this fixed.

Just a heads up!"	zodiac1978		needs-patch
Enhancements Awaiting Review	54438	"""Required fields are marked"" shows up without required fields being present"		Media	minor	enhancement	new	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	5.8.2	has-patch
Enhancements Awaiting Review	65874	Alt Text updating during uploading		Media	normal	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		
Enhancements Awaiting Review	60345	Add duplicate checking for uploaded attachments		Media	normal	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		
Enhancements Awaiting Review	56151	Port Dominant Color from performance plugin to core		Media	normal	enhancement	new	2022-07-05T15:43:48Z	2026-06-17T22:19:54Z	"As part of the performance module life cycle, we want to port this site health check to the core.
https://github.com/WordPress/performance/tree/trunk/modules/images/dominant-color

Performance issue GH link: https://github.com/WordPress/performance/issues/417"	pbearne		has-patch
Enhancements Awaiting Review	63926	Feature Request: Show Selection Count in Media Library		Media	normal	feature request	new	2025-09-04T06:25:40Z	2026-06-05T06:49:06Z	"Dear WordPress Team,

I hope you are doing well. I would like to suggest a small but very useful improvement for the Media Library in WordPress.

Currently, when I select multiple images in the Media Library (for example, 30 images), there is no indicator showing how many images I have selected. I need to manually count each one, which can be time-consuming when working with a large number of files.

It would be very helpful if WordPress could display the total number of selected items in the Media Library interface. A simple counter near the toolbar or selection area would make media management faster and more user-friendly.

I believe this feature would be appreciated by many WordPress users, especially those who regularly manage large amounts of media.

Thank you for your time and for your continuous efforts to improve WordPress.

Best regards,
Gokula Krishnan S"	mapgokul143		has-patch
Enhancements Awaiting Review	64794	Improve image editing - Responsive images + Art direction		Media	major	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		
Enhancements Awaiting Review	40774	Refine error message when embedding invalid Video (URL)		Media	normal	enhancement	new	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	4.8	dev-feedback
Enhancements Awaiting Review	9257	EXIF GPS data		Media	normal	enhancement	assigned	2009-03-01T19:30:17Z	2026-01-27T22:55:55Z	"Attached patch adds GPS longitude and latitude to image meta data.
Changed: wp_read_image_metadata function (file: wp-admin/includes/image.php).

It complies with exif standard:
[http://www.exif.org/Exif2-2.PDF] (page 46)

Commented on wp-hackers list:
[http://comox.textdrive.com/pipermail/wp-hackers/2009-March/025093.html]"	B-Scan	2.7	dev-feedback
Enhancements Awaiting Review	64554	New src_matched value filter request		Media	blocker	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	6.9	needs-patch
Enhancements Awaiting Review	64043	Media Uploader should not always 'crunch' any kind of files		Media	normal	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		
Enhancements Awaiting Review	38026	Add Delete link to details modal when file in trash		Media	normal	enhancement	new	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	4.0	has-patch
Enhancements Awaiting Review	47839	Extended file management in Media Library		Media	normal	enhancement	new	2019-08-06T10:01:16Z	2025-09-10T12:21:37Z	"Following enhancements should be made to the Media Library:
1) Option to organize media in custom folders, not only by month and year, but let the user choose a folder or create a new one in ""wp-content/uploads"" to save the item.
2) Ability to move files is essential for keeping them organized. This should be possible with an inbuilt file manager like [https://tempspace.net/plugins/?page_id=111] while updating all posts and pages the item is associated with.
3) I prefer to keep all my images in its original quality. I've set the image sizes to 0 in the Media settings, but WordPress still produces reduced image files. For thumbnails in the gallery, I'd prefer to view my untouched files as thumbnails in its original size without getting cropped in. Thus, the media gallery could arrange all items in a way that the height stays the same while the width is displayed in full."	mimoho		
Enhancements Awaiting Review	63673	Various inconsistencies in connection with the ‘Crop’ function	joedolson*	Media	normal	enhancement	accepted	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		has-patch
Enhancements Awaiting Review	63509	Use proper filename for attachment post title		Media	normal	enhancement	new	2025-06-02T07:57:53Z	2025-07-04T15:38:40Z	"In `media_handle_upload()` function, the file name (and thus, attachment title) is gotten from `$_FILES[ $file_id ]['name']`. This is the raw/original file name when uploaded. However, developers can change file name after upload by filtering to `sanitize_file_name` or use `unique_filename_callback` parameter. This makes the file name (and title) doesn't represent the correct file name after upload.


{{{
$name = $_FILES[ $file_id ]['name'];
$ext  = pathinfo( $name, PATHINFO_EXTENSION );
$name = wp_basename( $name, "".$ext"" );

$url     = $file['url'];
$type    = $file['type'];
$file    = $file['file'];
$title   = sanitize_text_field( $name );
}}}

A simple patch for this is this:


{{{
$name = $file['file']; // Get the proper name
$ext  = pathinfo( $name, PATHINFO_EXTENSION );
$name = wp_basename( $name, "".$ext"" );
}}}

I tested the patch with classic editor and it works well. However, I haven't figured out for the block editor."	rilwis		has-patch
Enhancements Awaiting Review	63626	"Improve Media Library's ""Attached"" status to reflect actual usage in posts/pages, not just direct uploads."		Media	normal	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		
Enhancements Awaiting Review	63478	Remove leftover debug code from Box class		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	58416	Media Title field should soft wrap in Media Modal: For better readability/editing of long titles.		Media	normal	enhancement	new	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	3.5	needs-unit-tests
Enhancements Awaiting Review	63049	Image Editor: Changing crop aspect ratio can allow cropping area to exceed image boundary		Media	normal	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		
Enhancements Awaiting Review	36270	Allow filtering of the final HTML output of media related shortcodes		Media	normal	enhancement	new	2016-03-18T02:33:02Z	2025-02-05T06:34:03Z	"Sometimes it is required to further process the final HTML output of the media related shortcodes, eg {{{caption}}} or {{{gallery}}}, so as to add extra HTML code such as enclosing div or span elements or just modify the existing HTML code during run time.

For instance the final output of {{{img_caption_shortcode}}} could be filtered:

https://core.trac.wordpress.org/browser/tags/4.4.2/src/wp-includes/media.php#L1537

Passing all relevant image attachment data, like ID and size, would also be very useful.

I hope that I am not missing anything but right now the only way to insert code inside the {{{<figure>}}} or {{{<figcaption>}}} block seems to be the complete override of the {{{img_caption_shortcode}}} function.

"	gnotaras	4.7.2	needs-patch
Enhancements Awaiting Review	41675	Add filter to bypass display/query for Media Months filter in media modal		Media	normal	enhancement	reviewing	2017-08-19T18:27:26Z	2025-01-29T19:44:02Z	"I am investigating slow running queries to try and cut down the page load time for edit pages in the admin.

The media months dropdown filter runs a somewhat expensive query for what it is.
On our production database, it adds about 500 ms of query execution time to the page load.

There doesn't seem to be a way to be able to disable this drop down. 
The query that is run populates the field.
But when there are a mass quantity of media, this is not an optimal method of search.

There should be an option/filter to disable the display and query for this."	CrazyJaco		has-patch
Enhancements Awaiting Review	57760	add 'pre_wp_get_attachment_url' filter		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	62253	let get_post_galleries(), when in array mode, include gallery attributes in returned array even for blocks		Media	minor	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	6.6.2	
Enhancements Awaiting Review	62072	Add feature to automatically convert image formats to avif format		Media	normal	feature request	new	2024-09-18T11:37:44Z	2024-09-18T11:37:44Z	WordPress now supports avif so I want to add the feature to convert different image formats to avif.	phanduynam	6.7	
Enhancements Awaiting Review	56217	Add video rotation info in wp_read_video_metadata()		Media	normal	enhancement	new	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	6.0	has-patch
Enhancements Awaiting Review	42920	Add support for the picture element	adamsilverstein	Media	normal	enhancement	assigned	2017-12-17T06:10:52Z	2024-08-13T15:25:49Z	"The `<picture>` element is in the HTML standard and should be supported in WordPress (https://html.spec.whatwg.org/multipage/embedded-content.html#the-picture-element).

Similar to the `<audio>` and `<video>` elements, the `<picture>` element can contain multiple `<source>` child attributes, providing the browser with different formats for the same resource. Each source can have its own `srcset`, `media`, and `sizes` attributes, among others, to control which source is used under specific circumstances (such as screen width). After all `<source>` tags are output, an `<img />` tag is required as a fallback.

Adding support for the `<picture>` element can help in many areas. Here are a few:

- Allowing support for more modern image formats, such as SVG or WebP (https://core.trac.wordpress.org/timeline?from=2017-12-16T21%3A15%3A32Z&precision=second)
- Provides a way to solve the responsive image art direction problem (rough POC: https://github.com/desrosj/respect-art-direction).

Adding `<picture>` elements to core's output could be tricky for backwards compatibility. Themes are most likely targeting `<img />` tags as direct children of other elements in CSS and JS. There are also a few oddities in CSS with styling the `<picture>` element.

== Proposed Solution ==

The solution I am proposing is to add `picture` to the `html5` array in registered theme support. This would allow us to encourage themes to add support and proper styling for the picture element when they are ready. When themes adopt this feature, future releases of WordPress (or plugins) could add `<source>` elements to `<picture>` elements as more performant formats are supported. Sites would receive all of the benefits of the new enhancements without any updates needed from themes.

== Unsolved ==

Hardcoded images in post content and widgets would not be solved with this approach. They would continue as hardcoded `<img />` tags. This may not be a bad thing but may require additional CSS rules in themes to handle correctly.

Browser support for the `<picture>` element is very good. According to https://caniuse.com/#feat=picture, the only modern browser lacking support is IE11.

== Other notes ==

Tackling this may also be dependant on #29807.

== Initial Patch ==

My initial incoming patch adds documentation for the `html5` `picture` support for themes and wraps the `get_image_tag()`/`wp_get_attachment_image()` `<img />` output in a `<picture>` element."	desrosj		needs-unit-tests
Enhancements Awaiting Review	58752	Doc typo improvement to  of file : wordpress-develop/src/js/media/views/view.js		Media	normal	enhancement	assigned	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		dev-feedback
Enhancements Awaiting Review	39330	WP_Image_Editor_Imagick: get pdf from url		Media	normal	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	4.8	
Enhancements Awaiting Review	22966	Show admin-cropped thumbnails instead of WordPress-cropped thumbnails		Media	normal	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		ui/ux
Enhancements Awaiting Review	35865	Site Icon should be uploaded to a different directory or not able to be deleted from library		Media	normal	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	4.4	
Enhancements Awaiting Review	57369	Insert Media dialog gets ad-hoc controls: Thumbnails squared/proportional + Sort order by date/name asc/desc		Media	normal	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	6.1.1	
Enhancements Awaiting Review	58391	Ugly looking file editing section		Media	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	58163	Media Tests for Attachments and Images		Media	normal	enhancement	new	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	6.3	has-patch
Enhancements Awaiting Review	57781	Exclude sized variant from SRCSET if larger in file size than the original image	adamsilverstein	Media	normal	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	6.1.1	
Enhancements Awaiting Review	57733	wp-includes/functions.php::do_enclose() should handle post content differently		Media	normal	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	6.1.1	
Enhancements Awaiting Review	55261	"Add a ""file size"" column to the media library menu"		Media	normal	feature request	new	2022-02-25T20:00:22Z	2023-02-02T16:19:11Z	"One of the things I think should be placed in the core of WordPress is to display the size of various photos and files that are uploaded to the host through WordPress in the media library menu (as a column in the table to make comparison easier). After a while and by adding different files, we do not know which file gets the most size from the host and in general it is very good that the webmaster can easily view the size of different files to make site management easier because according to the experience, This Menu is one of the most sensitive WordPress menus and must be carefully monitored. You can add this feature using the code below ;
{{{#!php
<?php
class MediaLibraryFeatures {

	private static $instance = null;

	/**
	 * Get single instance of this class - Singleton
	 *
	 * @since 1.0
	 */
	public static function getInstance() {
		if ( ! self::$instance ) {
			self::$instance = new self();
		}

		return self::$instance;
	}

	/**
	 * MediaLibrary constructor.
	 */
	private function __construct() {
		$this->initHooks();
	}

	/**
	 * Initialize Hooks.
	 *
	 * @author Siavash Ebrahimi
	 * @since 1.0
	 * @return void
	 */
	public function initHooks() {
		// Register size column for media library table
		add_filter( 'manage_media_columns', [ $this, 'registerSizeColumn' ], 15 );
		add_action( 'manage_media_custom_column', [ $this, 'populateCustomColumns' ], 15, 2 );
		add_action( 'added_post_meta', [ $this, 'addFileSizeMetadataToImages' ], 15, 4 );
		add_filter( 'manage_upload_sortable_columns', [ $this, 'registerColumnSortableFileSize' ], 15 );
		add_action( 'pre_get_posts', [ $this, 'sortableFileSizeSortingLogic' ], 15 );
	}

	/**
	 * Column sorting logic (query modification)
	 * 
	 * @param $query
	 */
	public function sortableFileSizeSortingLogic( $query ) {
		global $pagenow;
		if ( is_admin() && 'upload.php' == $pagenow && $query->is_main_query() && ! empty( $_REQUEST['orderby'] ) && 'filesize' == $_REQUEST['orderby'] ) {
			$query->set( 'order', 'ASC' );
			$query->set( 'orderby', 'meta_value_num' );
			$query->set( 'meta_key', 'filesize' );
			if ( 'desc' == strtolower($_REQUEST['order']) ) {
				$query->set( 'order', 'DSC' );
			}
		}
	}

	/**
	 * Make column sortable
	 *
	 * @param $columns
	 *
	 * @return mixed
	 */
	public function registerColumnSortableFileSize( $columns ) {
		$columns['filesize'] = 'filesize';
		return $columns;
	}

	/**
	 * Ensure file size meta gets added to new uploads
	 *
	 * @param $meta_id
	 * @param $post_id
	 * @param $meta_key
	 * @param $meta_value
	 */
	public function addFileSizeMetadataToImages( $meta_id, $post_id, $meta_key, $meta_value ) {
		if ( '_wp_attachment_metadata' == $meta_key ) {
			$file = get_attached_file( $post_id );
			update_post_meta( $post_id, 'filesize', filesize( $file ) );
		}
	}

	/**
	 * Populate media custom columns
	 *
	 * @return string
	 * @since 1.0
	 * @access public
	 */
	public function populateCustomColumns( $column_name, $post_id ) {
		if ( 'filesize' == $column_name ) {
			if ( ! get_post_meta( $post_id, 'filesize', true ) ) {
				$file      = get_attached_file( $post_id );
				$file_size = filesize( $file );
				update_post_meta( $post_id, 'filesize', $file_size );
			} else {
				$file_size = get_post_meta( $post_id, 'filesize', true );
			}
			echo size_format( $file_size, 2 );
		}
	}

	/**
	 * Register size column
	 *
	 * @param array $cols
	 *
	 * @return mixed
	 * @since 1.0
	 */
	public function registerSizeColumn( $cols ) {
		$cols['filesize'] = __( 'File Size' );
		return $cols;
	}

}
}}}

Then initialize the class :
{{{#!php
<?php
MediaLibraryFeatures::getInstance();
}}}

"	siyavashebr		needs-docs
Enhancements Awaiting Review	49583	Media Library in SubFolder, when Organize by Mo/Yr is deactivated		Media	normal	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		
Enhancements Awaiting Review	55093	Feature Request - Media Uploads option for year-based folders (without month)		Media	normal	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		
Enhancements Awaiting Review	50092	Implement Focal Point Picker for all images in the Media Library		Media	normal	feature request	new	2020-05-05T15:18:55Z	2022-09-16T13:23:25Z	"The FocalPointPicker component which came as a part of the Cover element is a great idea, but it only applies to that block.

Can we implement this in the Media Library when editing the properties of an image? 

For themes that uses background images (eg: in tiles) this could allow for a standardised way of setting / getting the default background-position for that specific image."	sfoxe		
Enhancements Awaiting Review	54452	Image Aspect Ratio on resize		Media	trivial	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	5.8.2	needs-patch
Enhancements Awaiting Review	54226	Cleanup Unused Image Sizes		Media	normal	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		
Enhancements Awaiting Review	52978	Feature Request: option to show full images in Media Library		Media	normal	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	5.7	
Enhancements Awaiting Review	53637	Video poster image is not shown after video has been played		Media	normal	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	5.7.2	
Enhancements Awaiting Review	40427	Expose a JavaScript API to extend the Media Manager		Media	normal	enhancement	new	2017-04-12T17:30:38Z	2021-05-20T20:29:03Z	"After talking with @mikeschroder as Pressnomics about how hard it was to extend the media manager, I wanted to open the discussion here for ways we could improve that.

One way I made it work for the Stock Photo plugins at GoDaddy was to override core bindHandlers (see https://github.com/godaddy/wp-stock-photos/blob/master/assets/js/stock-photos.manifest.js#L13) and register my new view. One problem with that approach is that it makes it hard for anyone else to extend it for themselves. 

I'm turning out to the community so we can discuss ways we could expose hooks that would let anyone extend any part of the media manager experience. This could pave the way for awesome new plugins."	jonathanbardo	4.8	
Enhancements Awaiting Review	52766	WP_Image_Editor_Imagick checks for version number but ImageMagick in several cases reports it wrong		Media	minor	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		
Enhancements Awaiting Review	52705	Set threshold for lazy loaded images		Media	normal	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		
Enhancements Awaiting Review	52489	Allow List View when inserting images from the media library		Media	normal	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		
Enhancements Awaiting Review	52451	Make the media sideload functions testable and add tests		Media	normal	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		
Enhancements Awaiting Review	41279	Make PDF Thumbnail (WP 4.7 feature) accessible via the Media Manager		Media	normal	feature request	new	2017-07-09T19:24:26Z	2020-10-21T12:55:14Z	"When you upload a PDF file WordPress creates a ""preview image"" - This was added as of WP 4.7

This feature request to have that image also added into the database so that it is accessible via the Media Manager.

The use case for this feature is that I have a Monthly Newsletter and want to use the preview image (page 1 of the PDF) as the featured image for the post where I am putting the link to the PDF

Additionally some plugins (like visual composer) allow you to insert single images, however, you need to be able to select it from the media manager, not just put in a URL"	sflwa		
Enhancements Awaiting Review	45710	New feature: deleted related files when deleting a page or post		Media	normal	feature request	new	2018-12-19T20:26:22Z	2020-10-02T04:11:21Z	"Hello,

Nowadays, when you delete a page or post there's the downside that the related images will remain on the server.

It would be great if WordPress keep track of where this image is being used. For example, image.png is used on 3 pages and 2 posts. 

So, when you're sending a page or post to the trash can, it will be great if WordPress could check if the related images are being used on another pages or posts.

If not, the system could show a message:  ""X image is not being used on any page or post. Do you wish to send it to the trash can as well?""

The user would have the final choice if he wants to leave that file at the server or not.

And this would also could lead to a new function to find orphan images/files."	gmr1970	4.9.8	
Enhancements Awaiting Review	19834	More Robust Capabilities for Attachments		Media	normal	feature request	new	2012-01-15T00:43:40Z	2020-09-10T14:05:33Z	"Attachments/files should have their own set of capabilities mirroring those of posts, in addition to upload_files. Specifically:

- read_attachments
- edit_attachments
- edit_others_attachments
- delete_attachments
- delete_others_attachments

Currently, attachments rely on the edit_posts capability, which can create complications if you don't want your users to see the ""Posts"" sidebar item, or don't want them to be able to delete the attachments they upload. "	walkinonwat3r		
Enhancements Awaiting Review	43023	Make Core Image Handling More Extensible		Media	normal	enhancement	new	2018-01-04T21:35:41Z	2020-08-21T03:34:07Z	"As we are beginning to see many new and promising formats such as WebP (#35725), APNG, and HEIF/HEVC (#42775), it is probably time to revisit all of the image-related code in the Core, providing filters and hooks so that plugins and themes can choose to support them.

Based on the work in #35725, it is clear there are a number of areas with insufficient extensibility, making it impossible for such work to be done by third-party code.

[[BR]]

'''WRAPPERS'''

`getimagesize()`: Due to various bugs and inconsistencies within PHP, direct calls to this function should be replaced with a wrapper function capable of providing filtered responses. #35725 includes this in its patch.

[[BR]]

'''FILTERS'''

Many functions include hard-coded datasets or conditions. By wrapping those in filters, third-party code can alter behavior accordingly.

 * `wp_stream_image()`
 * `wp_save_image_file()`
 * `wp_generate_attachment_metadata()` - The extensions-by-type need to be filterable.
 * `load_image_to_edit()` - The $mime_type switch needs a filterable default.
 * getid3.lib.php `ImageTypesLookup()` - Types need to be filterable.
 * class-phpmailer.php `_mime_types()` - Types need to be filterable.
 * image classes `supports_mime_type()`
 * class-wp-theme `get_screenshot()` - Filterable types.
 * `gd_edit_image_support()` - Filterable responses for both conditions.
 * `translate_smiley()` - Needs filterable types.
 * `wp_get_image_mime()`
 * `wp_attachment_is()` - Filterable extensions.
 * `wp_mime_type_icon()` - Filterable test for image files.

[[BR]]

'''OTHER'''

There are additional areas that require more complicated solutions.

 * `file_is_displayable_image()` - Relies on constants which may not be defined, even in cases where an image type is actually supported. Haha.
 * wp-admin/includes/schema.php - $misc_exts needs to be filterable.
 * class-wp-image-editor-gd `load()` - Needs a filter around the resource creation. `imagecreatefromstring()` does not work consistently depending on the GD version installed.
 * class-wp-image-editor-gd `_save()` - Needs a filter to handle alternative MIME types.
 * class-wp-image-editor-gd `stream()` - Needs some means of specifying alternative headers and callbacks.
 * class-wp-image-editor-imagick `thumbnail_image()` - Needs some means of specifying options for different image types.
 * class-wp-image-editor-imagick `stream()` - Needs a shortcut filter to allow for completely different handling. (This is a quirk of the PHP extension not always properly communicating with the system binary, leading to segfaults, etc.)
 * class-wp-customize-media-control `to_json()` - Needs some method of altering the $type matching.

[[BR]]

'''ROADBLOCKS'''

Additional requirements, such as defining missing PHP constants, might not be possible by the time plugin or theme code is executed. However by the time official PHP support lands, we can probably consider adding such values to the `compat.php` file (without necessarily providing a full blessing for the filetype within the Core)."	blobfolio	4.9.1	
Enhancements Awaiting Review	37005	Unit test for the wp_check_filetype method		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	39626	Add video poster in media browser		Media	normal	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		ui/ux
Enhancements Awaiting Review	37549	Add optional parameter to wp_generate_attachment_metadata for image dimensions.	joemcgill	Media	normal	enhancement	reviewing	2016-08-02T22:00:41Z	2020-01-07T20:05:16Z	"My plugin [https://wordpress.org/plugins/scalable-vector-graphics-svg/ Scalable Vector Graphics] received a support request, [https://wordpress.org/support/topic/svg-in-image-gallery-is-not-working?replies=16#post-8710513 SVG in image gallery is not working] -- which caused me to do some digging in core.

I realized the reason the Theme wasn't doing what it intended to do is because it is reyling on 
`wp_get_attachment_metadata()` -- which lead me to realize that SVG files -- although being uploaded and working for the most part, are missing the meta information normally generated for images such as JPG files.

The function that does that is `wp_generate_attachment_metadata`.

The reason it is not doing that is because `file_is_displayable_image` is returning false, which I can override if I want with the filter -- BUT -- the function also depends on `getimagesize` -- which I cannot navigate around and does not work with SVG files.

It would be cool if
{{{#!php
<?php
function wp_generate_attachment_metadata( $attachment_id, $file ) {
}}}
became something like
{{{#!php
<?php
function wp_generate_attachment_metadata( $attachment_id, $file, $dimensions = false ) {
}}}

SVG files are displayable -- and `file_is_displayable_image` is a well meaning function but it's not really determining if a file is displayable. It's determining if an image will work with `getimagesize`.

'''The Ask''': Let's allow developers to pass dimensions to `wp_generate_attachment_metadata` so that we allow for future file types that are web friendly to exist within WordPress, with the support of plugins, and that useful information about those uploaded files is generated in a controllable and consistent manner.

Right now, the recourse I have as a plugin developer is to copy `wp_generate_attachment_metadata` and generate my meta data within the plugin. Which I isn't a problem, but I feel this request nudges `image.php` into a direction it's going to need to go sooner or later anyway."	sterlo	4.6	has-patch
Enhancements Awaiting Review	48462	Download from Media in Backend		Media	normal	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	5.2.4	
Enhancements Awaiting Review	48299	"When ""big_images"" are automatically scaled, communicate with a UI message"		Media	normal	enhancement	new	2019-10-12T19:36:49Z	2019-10-25T15:33:39Z	"The new big_image handling is done behind the scenes automagically which has a couple of downsides:

1. If a user actually wants a huge image for some reason, they’re going to be confused about what’s happening.

2. By fixing the issue for them with no communication, we’re missing out on the opportunity to better inform people about why they shouldn’t be uploading massive images to begin with. 

Proposal: Add a UI message to communicate “hey, we fixed this huge image for you. Here’s why [insert link to helpful article]”

I would be happy to help contribute to such a document. 

The addition of the Alt text message in the UI is a great model for how such communication can help educate and inform site owners. 
"	webtrainingwheels		
Enhancements Awaiting Review	48103	Bulk image resizing		Media	normal	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		
Enhancements Awaiting Review	47237	Used different escape function on options-media.php		Media	trivial	enhancement	new	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		has-patch
Enhancements Awaiting Review	37801	Media Functions		Media	normal	feature request	new	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		dev-feedback
Enhancements Awaiting Review	46777	Pass attachment ID to image_resize_dimensions to allow reliable per image cropping		Media	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	46885	Improvements/Issues with srcsets, additions to wp_calculate_image_srcset	joemcgill	Media	normal	enhancement	assigned	2019-04-11T19:29:39Z	2019-04-13T06:47:47Z	"Hello All,
I had a few issues that I've also found references to online without fixes. From the most basic to (slightly) more complicated.

1) Include a way to not include the original src in srcset. When you are developing a theme there are many reasons you don't want to the original src. The most obvious is that the original src can be uncompressed/unoptimized for better derivatives, or simply because editors upload whatever they have. You could also be using a lq-placeholder replacement method where you load a low resolution image in the src for better UX and would like that to go first in the srcset load order.

2) There is something strange with the way the srcset is ordered. In a current setup I'm getting original first(for ios 8 bug), followed by 360 wide, 180 wide, 720wide, 1280wide. Not sure why the 360 is swapped with 180.

2) Accept an array of named image sizes to create custom srcsets instead of generating all registered image sizes.

Thanks."	pinktank	5.1	
Enhancements Awaiting Review	46835	unnecessary image size created		Media	normal	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	5.1	
Enhancements Awaiting Review	42986	Insert default filters to wp_delete_file to don't delete core files.		Media	normal	enhancement	reopened	2017-12-27T11:57:51Z	2019-03-22T13:34:35Z	"
I am see many plugins that don't use wordpress method to delete files ( are using unink ) and exist wp_delete_file. Really you can insert filter, but I think that if didn't have filter by default you can use method to remove anything, including core files.

If all agree and approve this ticket I can implement."	lenon	4.9.1	
Enhancements Awaiting Review	42829	Debugging image uploads with wp_generate_attachment_metadata		Media	normal	enhancement	new	2017-12-07T14:24:22Z	2019-02-14T21:28:56Z	"Because of the if statement declared in image.php on line 181 ([https://core.trac.wordpress.org/browser/tags/4.9/src/wp-admin/includes/image.php#L181]) it seems impossible to retrieve the error message, what is supplied by the wp_upload_bits() function.

Please return this message or implement a new function what verifies what the error messages are trying to inform the user about."	Fleuv		needs-patch
Enhancements Awaiting Review	34324	Tag picker for attachments		Media	normal	enhancement	new	2015-10-16T11:46:21Z	2019-01-21T12:10:03Z	"When adding a taxonomy for attachments you only get a basic input field in the modal views, like in a post or when using the grid view on the attachment page:

[[Image(https://s3.amazonaws.com/f.cl.ly/items/2T2n3k2014362w402z2P/Image%202015-10-16%20at%201.36.39%20PM.png)]]

Someone in the forums [pointed out](https://wordpress.org/support/topic/tags-picker-for-attachments?replies=3) that this is because the modal view is only for editing the image, and not the attachment post it belongs to. This makes sense when editing a post, but not in the grid view on the attachments page. 

The only way to edit tags and categories in the normal way is to press ""Edit more details"", where you get the proper tags/category pickers. I feel like we should either remove or improve the basic input field. It doesn't really make sense to have a stripped down version in the modal. It's confusing and not very good UX."	filipstefansson	4.3.1	
Enhancements Awaiting Review	45363	Allow Thumbnail generation for other filetypes such as ODT		Media	normal	enhancement	new	2018-11-16T10:14:33Z	2019-01-17T23:27:09Z	"#31050 introduced the possibility to add previews to PDF files. This is great, but why stop there? There are many files that really are a ZIP file including a preview thumbnail (e.g. ODT files), or that allow easy generation of a thumbnail. 

In a first step, WordPress should enable plugin devs the possibility to add those thumbnail generators over the same path as PDF does (Image Editors). Later, it would be possible to add common filetypes such as ODT to core."	benjaminpick		has-patch
Enhancements Awaiting Review	40140	upload_url_path doesn't seem to make any effect		Media	normal	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	4.7.3	
Enhancements Awaiting Review	35094	Replace static with Dynamic Image Sizes for inserted images		Media	normal	enhancement	new	2015-12-15T02:27:38Z	2018-08-16T20:36:21Z	"== Proposal ==
Change the behavior of the add image size selector from hard-coding `width` and `height` attributes to adding size-based classes to the `<img>` element to allow theme authors to define what Thumbnail, Small, Medium, and Large means. This creates Dynamic Image Sizes that change and adapt when a site owner switches from one theme to the next.

=== Practical Implementation ===
- Create new theme feature for dynamic-images
- When an image size is selected (eg. ""medium""), the a class formatted as `size-[selected-size]`, (eg. `size-medium`) is added to the `<img>` tag.
- Theme developers add CSS rules for `.size-thumbnail`, `.size-small`, `.size-medium`, and `.size-large`. These rules  can define whatever parameters the theme developer desires, but must include either `width`, `max-width` or both. Theme developers are also free to use media queries to change this behavior depending on viewport width.
- '''Ideal, optional:''' Remove the `width` and `height` attributes from `<img>` markup as they serve no  practical purpose once RICG and class-based sizing is implemented.

== Rationale ==
With Responsive Images in core, the modality of the image size selector no longer makes sense. The image size selector hard-codes pixel sizes to images added in posts and pages based on the physical width and height of the image file, but with the new srcset + sizes markup, these image sizes no longer have a real world rationale as the browser selects the image source dynamically.

I propose a change in what happens when an image size (thumbnail, small, medium, large, original) is selected from a pre-defined pixel size to a dynamic size defined by the current active theme.

This would allow theme designers and developers to add image sizes as part of their art direction and design, and displayed image sizes would change depending on the current active theme without the site owner having to make changes to individual images to make them fit.

In simple terms, move from this:

[[Image(http://mor10.com/wp-content/uploads/2015/06/Slide1-700x394.png)]]

to this:

[[Image(http://mor10.com/wp-content/uploads/2015/06/Slide2-700x394.png)]]

== Backwards Compatibility ==
This has the potential of being a breaking change. The most obvious solution would be to make dynamic image sizes a `theme feature` along the lines of html5 comments and title-tag:

{{{ add_theme_support( 'dynamic-images' ); }}}

== Practical Application ==
This change would work within the existing framework of how WordPress adds images because the only practical change in the actual post/page is the addition of a new class in the `<img>` tag. 

To apply to existing posts and pages, the classes could be added by piggybacking off the dynamic rewriting of the `<img>` element done by Responsive Images.

== Challenges == 
- Some authors physically resize images to fit a specific display. This in itself is a problem because it counteracts the responsive nature of the web, but it is a fact that must be considered. An implementation of Dynamic Image Sizes could cause some authors to be frustrated that their carefully sized images suddenly change display. This would likely only happen on old static-width sites as properly built themes with RWD would already override such forced sizing except for the full-width versions of images.
- Currently an author can use click-and-drag behaviors to resize an image in the editor. This would be hard to replicate using the proposed CSS model, but is not impossible: One solution could be generating inline CSS for custom image sizes, and possibly adding a .size-custom class to the `<img>` tag. Another clearner option could be to remove the click-and-drag resizing option and instead provide percentage-based options. When discussing this it is important to note that such forced click-and-drag resizing goes against the natural behavior of images in a mobile-first RWD environments."	mor10		
Enhancements Awaiting Review	44655	Introduce alternative srcset option for custom logo		Media	normal	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		
Enhancements Awaiting Review	43741	Improve media_sideload_image() image extensions detection		Media	normal	enhancement	new	2018-04-12T00:30:44Z	2018-04-15T21:35:07Z	"**media_sideload_image()** applies a pattern to the URL trying to detect image extensions.

There are cases where Image URLs don't end on jpg, png or any other extensions. 
They can be simply a number or any other weird urls, but they are actually just fine
https://crmall.generalshopping.com.br:8097/Api/store/image/bkxjNm5LU0RzQW5rdVNvUHZVSURkQT09

So I think it would be a good idea trying to detect the image extensions on these cases, like this:

{{{#!php
<?php
if ( ! $matches ) {
	$image_type = exif_imagetype( $file );
	if ( $image_type ) {
		$fileextension = image_type_to_extension( $image_type );
		$matches       = array( $fileextension );
	} else {
		return new WP_Error( 'image_sideload_failed', __( 'Invalid image URL' ) );
	}
}
}}}


It's been working on my tests pretty nice.
The only other thing I have to do in order to test such urls is turning reject_unsafe_urls to false, like this:

{{{#!php
<?php
add_filter( 'http_request_args', function($args,$url){
    $args['reject_unsafe_urls'] = false;
    return $args;
}),10,2 );
}}}
"	Karzin	4.9.5	
Enhancements Awaiting Review	43263	wp_audio_shortcode() preload default: should it be metadata or none?		Media	normal	enhancement	new	2018-02-08T19:17:59Z	2018-02-08T19:45:50Z	"Using this ticket to open a discussion about the `audio` tag’s `preload` attribute defaulting to 
`none` in `wp_audio_shortcode()`.

`none` won’t display the audio’s total time in the player (until the user hits play). So the effect of this default is millions of sites’ players display total times of “00:00”. (You can specify preload as a shortcode attr, but most sites don’t. )

Setting the `preload` attribute to `metadata` does extract and display total time upon page-load. Also `metadata` is both the `wp_video_shortcode()` default and the HTML-spec suggested default (to browser makers):
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio#attr-preload

Bandwidth might be the valid concern, tho, as some browsers preload an excessive amount of metadata (I'm looking at you, Chrome) . See results of tests by @blobfolio:
https://wordpress.slack.com/archives/C02SX62S6/p1518116191000138

FYI, the default `'preload' => 'none'` is here:
https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/media.php#L2223

FYI-2, you can change that with the `wp_audio_shortcode` filter (via regex on the HTML output):
https://gist.github.com/hearvox/098774e9887442d39ddc6e34bedb10b1"	hearvox	3.6	
Enhancements Awaiting Review	39791	sanitize_file_name() optimizations		Media	normal	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	4.8	
Enhancements Awaiting Review	39346	Display Error if GD library ins't installed/enabled		Media	normal	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	4.7	
Enhancements Awaiting Review	42633	Suggestion to provide Better Page and Image Management		Media	normal	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	4.9	
Enhancements Awaiting Review	29795	Set JPEG quality for individual image_size		Media	normal	enhancement	new	2014-09-29T14:20:54Z	2017-11-10T12:24:43Z	"Based on this idea I would like to work on this topic:
https://wordpress.org/ideas/topic/jpeg-compression-factor-for-different-image_size

Usecase:
If a theme use an image as a full screen background image the image quality doesn't need to be as high as for a featured image or thumbnail.
The difference in file-size would benefit the webspace and the speed on page load.

I can think of two ways to solve it:

1. Add a argument to add_image_size:
{{{
add_image_size( $name, $width, $height, $crop, $quality ); 
}}}

2. Add filter for it:
{{{
apply_filters( 'jpeg_quality_for_image_size', $quality, $size );
}}}

In both cases the information about the current image size needs to be added to the set_quality or get_quality functions to be available."	Drivingralle		dev-feedback
Enhancements Awaiting Review	40403	Media: Allow disabling of auto-save for attachment changes in Media Library		Media	normal	enhancement	new	2017-04-10T18:57:38Z	2017-10-16T06:45:09Z	"When in the select frame of the media library and the user has selected an attachment, the fields for that attachment including the title, caption, and description can all be modified. The user may very well be expecting that the changes they are making to be ''localized'' to the current context for which they are inserting the image. For example, a user may want to provide a unique caption for an image when selecting it into one post vs the caption for the image when it is inserted into another post. Nevertheless, when the user does make a change to the caption, it will get written into the underlying `attachment` post and will thus change the caption on the `attachment` single template and any galleries in which the image appears.

These are the fields in question:

[[Image(attachment-fields-in-media-library-select-frame.png, width=400px)]]

All of this to say that the behavior to auto-save back changes to an attachment as changes are made in the media library should be able to be disabled, or should perhaps be disabled by default if not in a management context on the Media admin screen. Also, when the media library is opened in the customizer, a user should expect all changes to be previewable without impacting the site before hitting Save & Publish. The customizer is supposed to guard against the “save and surprise” experience. In the case of the Media Library, it can be even worse because it is “auto-save and surprise” and the auto-save behavior isn't even stated. So if auto-save isn't disabled by default in the media library across WordPress in a non-management context, then at least it seems it should be disabled in the context of the customizer. 

The conversation for this started in the context of the image widget, and unexpected behavior for when modifying fields in the select frame versus modifying fields in the edit frame (which, as in the edit post screen, do not auto-save but are local to the post being edited). See https://wordpress.slack.com/archives/C0381N237/p1491845195064777

See also #37887, which would still allow for changes to be made in the media library, but for the changes to defer to being published until the user hits Save & Publish in the Customizer.
"	westonruter		
Enhancements Awaiting Review	41854	Allow filters to be added for the Media Library in Grid Mode & Insert Media		Media	normal	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	4.8.1	
Enhancements Awaiting Review	41895	wp_calculate_image_srcset filter: Improve the documentation for, or rename, this filter so it's clear it should work on an array.		Media	normal	enhancement	new	2017-09-16T18:29:18Z	2017-09-16T20:25:06Z	"= The Problem =
Despite having the same name as the `wp_calculate_image_srcset()` function and being inside of that function the `wp_calculate_image_srcset` filter, [https://core.trac.wordpress.org/browser/tags/4.8.1/src/wp-includes/media.php#L1203 here in the current release], does not directly modify the output of the function as convention would dictate. This leads to confusion, so theme and plugin developers do things that lead to bugs.

The `wp_calculate_image_srcset` filter filters the `$sources` variable, which is an array of arrays, each containing information about one of the image sources that WP has decided to add to the srcset. However the `wp_calculate_image_srcset()` ''function'' returns either a string HTML [https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img srcset attribute for use on an img tag] or false if there's only one source or some other failure.

Because the `wp_calculate_image_srcset()` ''function'' can return false, developers assume that `wp_calculate_image_srcset` filters can return false as well, thus converting the `$sources` array into a boolean `false`. This causes a problem when a second plugin or theme also tries to filter `wp_calculate_image_srcset` and tries to loop over the values in `$sources`, (`foreach( false)` causes a PHP warning).

= Real-World Examples=
This is happening in the real world: If you're hosted on WPEngine, and use Themeco's X or Pro theme, the PHP warning pops up in some of your pages, (especially in WPEngine's staging environment). This is because X and Pro use `wp_calculate_image_srcset` to change `$sources` to false, then WPEngine's Must-Use plugin tries to iterate over `$sources`. 

When contacted about the problem, (with the suggestion they return an empty array), Themeco's response was ""In looking over WordPress' official documentation for that function/hook, I believe that boolean false should be the correct value to return"" with a link to the documentation for the ''function''. 

When the issue was raised in the the [https://www.facebook.com/groups/advancedwp/ Advanced WP Facebook Group] a prominent member of the WP community [https://www.facebook.com/groups/advancedwp/permalink/1624922314236643/?comment_id=1625126477549560&reply_comment_id=1625763707485837&notif_t=group_comment_reply&notif_id=1505579798429304 appears to have made the same logical jump], that the filter filters the output of the function, and wouldn't listen to any further discussion.



= Possible suggestions to improve the situation =

1. If we're ok with setting `$sources` to false, the docblock for the `wp_calculate_image_srcset` filter should be changed to indicate that the `$sources` variable being passed to a filter may not be a variable.

2. If we're not ok with setting `$sources` to false, maybe we should add a `_doing_it_wrong()` if `$sources` type is changed from an array.

3. Whatever we do, we should document an expected return type in the docblock for the filter.

3. Since the filter doesn't actually filter the output of the function, the filter name could be changed to something like `wp_calculate_image_srcset_sources`. I know this is a breaking change, which may never happen because it's a breaking change, but it would be the best fix, if breaking changes can be dealt with."	johnnyb	4.9	
Enhancements Awaiting Review	33054	Better featured image/attachment sanity checks		Media	normal	enhancement	new	2015-07-20T22:19:09Z	2017-06-27T16:16:22Z	"Use case:

Add a post: If a user uploads a featured image and the file fails to write to disk, the post record contains the url to the image but of course the image is broken. The end state is one where the featured image is simply broken, but the post record references the image.

Possible solutions:
1. Do an extra sanity check after write to disk that the image was actually created. If there was a failure alert the user. This is probably the easiest.

2. Or reverse the order of operations, making it transactional in nature. That is, create the image(s) first, check if successful, and then update the post record. If there is a failure show an alert to the page, and don't write the image path to the post record as the file doesn't exist. It is alot cleaner to not have an image than having a broken one. It is also better if the image was successfully written to disk but the post url failed to update for some reason; we can always re choose from the media library.

a. Going above and beyond, the sanity check would keep track of thumbnail sizes to be created and make sure they all were successful. If not, don't update the post record and remove the thumbnail sizes that did write to disk. Once again treat as a transaction; all or nothing.


Extended impact:
Many folks use image compression plugins or tools that compress the images before writing to disk. Currently if those items fail usually by timeout you are left with a broken image and the url is in the meta.

I propose that there be a pre-check as to the thumbnails to be created before the image write even occurs (add a new action hook that keeps track of the thumbnails we expect from add_image_size) and then check on the backside to make sure we have the image(s) we expect. After that all sanity check rules proposed above would apply."	ShawnLunny	4.2.2	needs-patch
Enhancements Awaiting Review	32622	Make the text of the Image delete AYS dialog clearer		Media	normal	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	4.3	
Enhancements Awaiting Review	40915	wordpress should issue a warning if no graphic library is installed		Media	normal	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	4.7.5	
Enhancements Awaiting Review	40869	Replacing an image in content editor		Media	normal	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	4.7.5	
Enhancements Awaiting Review	40441	High server resource usage and timeouts during image uploads		Media	normal	enhancement	new	2017-04-13T18:53:52Z	2017-04-14T14:25:12Z	"When uploading an image, server resource usage can run high and the resize process can easily timeout causing the upload to fail. This is often down the creation of intermediate image sizes and is especially noticeable when plugins/themes have custom image sizes defined.

This issue has been mentioned before in both #37840 and #36534.

#40439 proposes saving the progress of intermediate image creation so resizing can be resumed on retry.

This ticket is mainly for discussion around ways to reduce potential server implications when uploading an image and creating intermediate image sizes."	enshrined		
Enhancements Awaiting Review	40120	Media on mobile action links missable		Media	normal	enhancement	new	2017-03-12T12:19:47Z	2017-03-16T19:45:14Z	"The following is how on an iPhone 7 Plus the media interaction links look:

[[Image(https://cldup.com/TLmN2U_8fW.PNG, 50%)]]

They are smaller than the body text and also very missable at the bottom.

Can we at least increase their size and see about moving to top?"	karmatosed		needs-patch
Reporter Feedback / Close	64480	WordPress PHP Deprecated: Implicit conversion from float 44.168		Media	normal	defect (bug)	new	2026-01-07T18:48:55Z	2026-10-01T19:14:54Z	"Hi,

WP V6.9
PHP 8.1
And give me 

Wordpress PHP Deprecated: Implicit conversion from float 44.168 to int loses precision in /home/cpanel/public_html/wp-includes/media.php on line 1500

In wp-content/debug.log

Why?"	sotnas	6.9	reporter-feedback
Reporter Feedback / Close	57489	Media items, which have already been uploaded, disappear when the upload dialog box is closed and then opened again.		Media	major	defect (bug)	new	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	6.1.1	reporter-feedback
Reporter Feedback / Close	50256	Inconsistent image handling in wp_create_image_subsizes.		Media	major	defect (bug)	closed	2020-05-26T18:33:19Z	2026-06-12T15:35:40Z	"New ""big image handling"" uses $editor->resize() which will not only resize, but also loosely compress JPEG image (degrade image quality) by invoking $editor->thumbnail_image() inside $editor->resize().

Rotating image below ""big image handling"", about line 322 in image.php uses $editor->maybe_exif_rotate(), which will not further degrade image quality.

Until WP version 5.3, media editor page was always starting with original/upload  image quality, which is not case after WP 5.3+ ""big image handling"" is triggered.

IMHO, media editor page should never get ""thumbnalized"" image as starting point for further editing by user."	ddur	5.3	close
Reporter Feedback / Close	55289	Large image fails to create a `scaled` version and subsizes		Media	normal	defect (bug)	closed	2022-03-01T21:41:41Z	2026-06-11T01:51:51Z	"When uploading a large image into WordPress it fails to create the `scaled` version, due to the usage of too many resources, because the `-scaled` resized version can't be created, no additional subsize is created.

The resize fails with the following error message:

> cache resources exhausted


Even with the resized failure, only the full-size image is uploaded and no additional image sizes are generated. 

Steps to recreate the problem:

1. Upload the provided image.
2. Inspect the metadata of the image and observe no `-scaled` version was created and no subsizes was created either.

Observe how only the full image size is uploaded, no `-scaled` version can't be found.

== Problems

1. As described before the full size image is uploaded and no `scaled` version is created.
2. When loading the media library the full image size is loaded due no subsizes were created.
3. No subsizes are created for this image due to the resized image failing to be created.


== Setup

Sharing the details of my current setup:


{{{

### wp-core ###

version: 5.9.1
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: true

### wp-paths-sizes ###

wordpress_path: /app
wordpress_size: 152.90 MB (160327567 bytes)
uploads_path: /app/wp-content/uploads
uploads_size: 22.75 MB (23851112 bytes)
themes_path: /app/wp-content/themes
themes_size: 6.47 MB (6780262 bytes)
plugins_path: /app/wp-content/plugins
plugins_size: 208.42 MB (218539593 bytes)
database_size: 3.96 MB (4149380 bytes)
total_size: 394.49 MB (413647914 bytes)

### wp-active-theme ###

name: Twenty Twenty-Two (twentytwentytwo)
version: 1.0 (latest 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, block-templates, widgets-block-editor, wp-block-styles, editor-style
theme_path: /app/wp-content/themes/twentytwentytwo
auto_update: Disabled

### wp-themes-inactive (3) ###

Twenty Nineteen: version: 2.2, author: the WordPress team, Auto-updates disabled
Twenty Twenty: version: 1.9, author: the WordPress team, Auto-updates disabled
Twenty Twenty-One: version: 1.5, author: the WordPress team, Auto-updates disabled


### wp-plugins-inactive (1) ###

Performance Lab: version: 1.0.0-beta.1, author: WordPress Performance Group, Auto-updates disabled

### wp-media ###

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1691
imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: File uploads is turned off
post_max_size: 100M
upload_max_filesize: 100M
max_effective_size: 100 MB
max_file_uploads: 20
imagick_limits: 
	imagick::RESOURCETYPE_AREA: 122 MB
	imagick::RESOURCETYPE_DISK: 1073741824
	imagick::RESOURCETYPE_FILE: 786432
	imagick::RESOURCETYPE_MAP: 512 MB
	imagick::RESOURCETYPE_MEMORY: 256 MB
	imagick::RESOURCETYPE_THREAD: 1
imagemagick_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_formats: GIF, JPEG, PNG, WebP, BMP
ghostscript_version: 9.53.3

### wp-server ###

server_architecture: Linux 5.15.12-1-MANJARO x86_64
httpd_software: nginx/1.17.10
php_version: 7.4.28 64bit
php_sapi: fpm-fcgi
max_input_variables: 10000
time_limit: 3
memory_limit: 1G
max_input_time: 900
upload_max_filesize: 100M
php_post_max_size: 100M
curl_version: 7.74.0 OpenSSL/1.1.1k
suhosin: false
imagick_availability: true
pretty_permalinks: true

### wp-database ###

extension: mysqli
server_version: 10.3.27-MariaDB
client_version: mysqlnd 7.4.28
max_allowed_packet: 33554432
max_connections: 151

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /app/wp-content
WP_PLUGIN_DIR: /app/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 1G
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: true
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable

}}}
"	mitogh	5.9.1	close
Reporter Feedback / Close	51261	Integrate the -scaled.jpg images setting into _wp_make_subsizes		Media	normal	enhancement	closed	2020-09-07T15:31:24Z	2026-06-10T22:38:33Z	"Creating a -scaled.jpg BIG threshold image on upload is a good idea, but it has been implemented in a way that makes it hard to adjust, try out different settings, or unify the look of the site.

After a photo has been scaled once I can't find a way to regenerate the scaled version, even using plugins and digging through the image.php file.  It appears that after it has been scaled once there is a marker that prevents the images from being scaled again with different settings.

The -scaled.jpg image needs to be integrated into _wp_make_subsizes so that they can be regenerated if necessary. Also if the -scaled.jpg image settings were placed in the settings>media pane like all the other default image sizes it would make for easier adjustments.
 
The current implementation leaves websites where pre-5.3 posts serve full-sized images and post-5.3 posts serve scaled images.  And if the default scale isn't ideal there is no way to re-create the previously scaled images.

--- Here are my attempts to work around this lack of functionality

While developing my wordpress site I had the ""Disable ""BIG image"" Threshold"" plugin installed half the time.  So half of my images had a -scaled.jpg version and half didn't.

I found the default -scaled.jpg size to be too small so I want to use the ""Regenerate Thumbnails"" plugin to regen all the images to have a -scaled version.  I removed the ""Disable ""Big Image"""" plugin and added this to my ''function.php'' file.


{{{
function td_big_image_size_threshold( $threshold, $imagesize, $file, $attachment_id ) {
return 4000;
}
add_filter( 'big_image_size_threshold', 'td_big_image_size_threshold', 10, 4 );
}}}


I ran the Regenerate plugin and it half worked, creating -scaled.jpg images, for the half of the attachments that didn't previously have them, but didn't overwrite the previously created -scaled.jpg images.

I thought the updated pixel metadata of the -scaled.jpg images might be below the threshold so I went into the ''images.php'' file and temporarily removed the 
{{{
if($image_meta['width'] > X etc){}
}}}

part of the check.  It didn't work.  Now I can't find a way to force a regenerated -scaled version of of the images.  It is as if once they have been scaled once, even if those files are removed or the scale has changed they can't be scaled again.

I'm at a loss.  I feel like running the _wp_image_meta_replace_original function over my whole library to reset them would be the best option but don't really know how to do that.

 "	ddegner	5.3	close
Reporter Feedback / Close	58304	wp_update_image_sizes		Media	blocker	defect (bug)	closed	2023-05-13T14:20:43Z	2026-06-10T19:03:57Z	"This blocker issue is actually introduced with WP 5.3 and still remains unsolved up to 6.2

Introduction:
Function {{{wp_update_image_sizes}}} calls function {{{_wp_make_subsizes()}}} in two ways/paths, either via function {{{wp_create_image_subsizes()}}} or {{{directly}}}.


Issue:
When {{{function wp_update_image_sizes}}} calls {{{_wp_make_subsizes()}}} via {{{wp_create_image_subsizes()}}}, {{{filter intermediate_image_sizes_advanced'}}}, is invoked before calling {{{_wp_make_subsizes()}}}.

When {{{wp_update_image_sizes}}} calls {{{_wp_make_subsizes()}}} directly, {{{filter intermediate_image_sizes_advanced'}}} is not available at all.

Problem:
When {{{filter 'intermediate_image_sizes_advanced'}}} is not available, there is no way to filter $new_sizes argument before {{{_wp_make_subsizes()}}} for the purpose described in {{{function _wp_make_subsizes()}}}, {{{(see below)}}}:

{{{
/*
 * Only checks ""size name"" so we don't override existing images even if the dimensions
 * don't match the currently defined size with the same name.
 * To change the behavior, unset changed/mismatched sizes in the `sizes` array in image meta.
 */
}}}


Proposed solution:
1) Modify {{{filter 'intermediate_image_sizes_advanced'}}} by adding new argument {{{$context argument}}} in same way like {{{filter 'wp_generate_attachment_metadata'}}} added {{{$context argument}}} since WP 5.3. 
2) In {{{function wp_update_image_subsizes}}}, before calling {{{function _wp_make_subsizes()}}}, add {{{apply_filters 'intermediate_image_sizes_advanced'}}} with additional argument {{{$context}}} and value {{{'update'}}}. 
3) In {{{function wp_create_image_subsizes}}}, in {{{$new_sizes = apply_filters( 'intermediate_image_sizes_advanced', $new_sizes, $image_meta, $attachment_id )}}} add new {{{$context}}} argument value {{{'create'}}}.

OR in {{{function wp_update_image_subsizes}}} before calling {{{function _wp_make_subsizes()}}} just add {{{apply_filters 'intermediate_image_sizes_advanced'}}}

OR just make some filter that available in both cases. Maybe inside {{{function _wp_make_subsizes()}}} at the beginning ??

Thanks"	logotronic	6.2	close
Reporter Feedback / Close	58287	"""The server cannot process the image"" error, set_imagick_time_limit() and WP 6.2"		Media	major	defect (bug)	closed	2023-05-10T15:51:53Z	2026-06-10T18:32:49Z	"On many of our sites, managed on different machines and with different configurations, with version 6.2 of WordPress, when uploading images we often get this error:

""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.""

Nothing appears in the `debug.log`, but analyzing the issue -which had never occurred before WordPress 6.2- we realized that it seems to be due to the new `set_imagick_time_limit()` method of the `WP_Image_Editor_Imagick` class.

Maybe the value `0.8 * $php_timeout` is that a bit too conservative? Maybe it could be made hookable?"	delitestudio	6.2	close
Reporter Feedback / Close	57085	Media autoscale threshold change picture's colors		Media	major	defect (bug)	closed	2022-11-12T10:20:28Z	2026-06-10T18:28:23Z	"When uploading a picture, the automatic autoscale threshold (2560) changes the picture's colors to a different color profile (fewer colors, less vivid)

I've deactivated the automatic autoscale with 
{{{
add_filter('big_image_size_threshold', '__return_false');
}}}
and the issue disappears

This is a big problem for photography-related blogs or websites, where photo quality makes the difference.

It's ok to scale the images for better performance, but we should be able to avoid it without loss of quality.

Note: I've tried to remove the jpg quality loss applied by WordPress and that's not the problem, the problem comes with the autoscale.

(Attached: image file without autoscale, image file with autoscale)
[[Image(https://aulawp.com/web/wp-content/uploads/2022/11/prueba-Barbeiro-5670.jpg)]]
[[Image(https://aulawp.com/web/wp-content/uploads/2022/11/prueba-Barbeiro-5670-1-scaled.jpg)]]"	fernandot	5.3	close
Reporter Feedback / Close	64411	Media Library - Large Image Size Uploads		Media	normal	enhancement	closed	2025-12-13T21:16:46Z	2026-06-10T17:28:19Z	"Needs to handle large image uploads better for various server configurations natively.

To improve the Media Library's stability with 10MB+ assets, we need to revisit the default plupload_init configuration. Currently, the uploader often defaults to a monolithic POST request, which subjects large binaries to strict upload_max_filesize and max_execution_time limits. By enforcing a chunk_size (e.g., 1024KB) within the plupload parameters filter, we can segment the upload into smaller HTTP requests. This approach isolates failures to individual chunks rather than the entire file and effectively bypasses per-request size limits, significantly reducing failure rates on unstable client connections.

Regarding post-processing, the big_image_size_threshold introduced in 5.3 creates a bottleneck for high-resolution uploads. When the core attempts to immediately uncompress and scale a 10MB+ image (often exceeding the 2560px threshold), the memory footprint for the GD resource can spike instantly, leading to OOM (Out of Memory) fatal errors before the attachment metadata is even generated. We should consider handling these exceptions more gracefully or allowing the threshold to be bypassed programmatically via big_image_size_threshold when memory is detected to be insufficient, preventing the ""hanging"" upload experience.

Finally, we should look at the prioritization of WP_Image_Editor implementations. GD struggles with large pixel buffers compared to ImageMagick; preferring Imagick where available would mitigate memory exhaustion during resizing operations. Additionally, for the chunk reassembly phase, we need to ensure the environment's max_execution_time is sufficient (ideally 300s+) to handle the I/O overhead of stitching the file parts back together on the server side."	irgordon	6.9	close
Reporter Feedback / Close	63764	ImageMagick writeImage() causes duplicate inotify events during thumbnail generation		Media	normal	defect (bug)	assigned	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	6.8.2	reporter-feedback
Reporter Feedback / Close	63093	Image scaling size change		Media	normal	defect (bug)	new	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	6.7.1	reporter-feedback
Reporter Feedback / Close	58647	wp_generate_attachment_metadata generates scaled images		Media	major	defect (bug)	closed	2023-06-27T21:34:17Z	2026-06-10T16:50:36Z	"When using wp_generate_attachment_metadata() it seems to ignore the filter to turn off ""big_image_size_threshold"".

add_filter( 'big_image_size_threshold', '__return_false' );

$generateThumbs = wp_generate_attachment_metadata( $attachmentId, $file );

This results in a scaled version of the media being created and _wp_attached_file meta being replaced with the scaled versions path. 
"	picard102	6.2.2	close
Reporter Feedback / Close	56071	wordpress images too large		Media	normal	defect (bug)	closed	2022-06-25T13:51:58Z	2026-06-10T16:36:51Z	"How is it that an optimzed .png of 1081x753 with file size 61.5KB is converted to 1024x713.png and occupies 527.31KB.  Overall WP increased the environmental impact of that one image ten fold, and as I publish about 100 or so of such images weekly server space is also occupied unnecessary.

The WP generated file of 527.31K optimises to 106K.  

Also if I upload the optimised 1024x713.png of 106K, then WP generates a duplicate of 527.31K instead of just copying it. 

I read it is no longer permissible, as was in the earlier releases of WP, to disable the auto generation of  of 'large', 'medium-large' etc. files.  

Also google degrades sites that serve unoptimized content. I consider this as defect and thus report it as a bug, if yo do not think so, please reassign to enhancements.


"	antonv	6.0	close
Reporter Feedback / Close	54876	WP fails to recognize and use Imagick PHP 8 module on OpenLiteSpeed / Litespeed Web Server		Media	normal	defect (bug)	new	2022-01-21T16:23:13Z	2026-06-10T16:11:36Z	"Hi, I've made a ticket with the LiteSpeed people but they insist that their version of PHP (LSPHP) is a like-for-like copy of the PHP binaries, only hosted in their own repos. So it seems this error may be on the WordPress side.

I'll first refer you to this support thread to show I'm not the only one with this problem: https://wordpress.org/support/topic/imagick-module-recognized-but-not-used/

In short, WordPress does not recognize the Imagick module in LSPHP 8, so it will not use it and defaults to WP_Image_Editor_GD as its image editor. It has no problems detecting and using it in an Apache environment where I used PHP 8 from the CentOS repos. It also has no problem using the LSPHP 7.4 version either.

Here's a breakdown of the results:

**Apache 2.4.37 with PHP 8.0.14**
Custom Image Processing with WP_Image_Editor_Imagick = **Success**
ImageMagick version number = 1692
ImageMagick version string = ImageMagick 6.9.12-34 Q16 x86_64 2021-12-22
Imagick version = 3.7.0

**OpenLiteSpeed 1.7.14 with LSPHP 7.4.26**
Custom Image Processing with WP_Image_Editor_Imagick = **Success**
ImageMagick version number = 1690
ImageMagick version string = ImageMagick 6.9.10-86 Q16 x86_64 2020-01-13
Imagick version = 3.4.4

**OpenLiteSpeed 1.7.14 with LSPHP 8.0.12**
Custom Image Processing with WP_Image_Editor_Imagick = **Error** (see notes*)
ImageMagick version number = 1690
ImageMagick version string = ImageMagick 6.9.10-86 Q16 x86_64 2020-01-13
Imagick version = **@PACKAGE_VERSION@**

***Notes:** Active editor is listed as WP_Image_Editor_GD. WordPress fails to recognize and use the Imagick extension. Custom image processing fails as it tries to run Imagick methods through the GD class.

All environments are running on Rocky Linux release 8.5.

"	luboslives	5.8.3	close
Reporter Feedback / Close	53200	image quality reduction in smaller images		Media	normal	defect (bug)	closed	2021-05-13T13:01:43Z	2026-06-10T16:05:24Z	"So what happens is you upload a full size image to wordpress in my case project53.co.uk and I am using a goodlayers theme but I have repeated the same process on a stoc install on a different site and have the same issue.

On this site for example the easiest one to see it on is the woman and look at the cheeks as full size looks ok and has colour and smaller images looks toned down and grey and it is wordpress changing the image quality with the smaller images.

this is the details send from our dev guy

For now - I have removed the thumbnails that the site was trying to use (I had set it to 'full', which should have been used, but the theme didn't want to co-operate) and then regenerated the thumbnails - pretty much forcing the site to use the full-size image.

It may occur elsewhere in the site - hard to say until I've seen every possible variation of an image on the theme - but as long as we repeat the same steps to remove the thumbnail size and regenerate, it will be fine.

You could just remove all regenerated sizes and ensure that sizes are set by the container the image is in; that would definitely stop it.

So if you see another image (or multiple images) having the same problem:

Inspect that image and see what thumbnail size it is using. (You can generally tell by the suffix on the end of the image name, e.g. blahblah-800x600.jpg)

Go into Goodlayers Options > Miscellaneous > Thumbnail sizing Remove the thumbnail size that it's using

Go into Tools > Regenerate Thumbnails
Ensure that the thumbnail size that you remove is not there
Click Advanced Options, and check the box which says ""Delete unselected thumbnails"" - this will remove that size from the server and tell WordPress it doesn't exist

If it was me - I'd unregister all of the thumbnails and just limit the size of images which are being uploaded - and use that size globally throughout the theme (if the size doesn't exist it should fallback to the full size image as default).

That doesn't necessarily have to be the case - but you just don't want 5MB images on a page - because then you'll have all the page speed problems to deal with!
"	digitalmountain	5.7.2	close
Reporter Feedback / Close	50250	In WordPress 5x, Image uploads frequently fail, and do so with a spurious error message		Media	major	defect (bug)	closed	2020-05-26T00:19:33Z	2026-06-10T16:02:02Z	"I run my own dedicated server, a dual processor Xeon with 128GB of ram. 

When uploading batches of images for sites I'm working on I frequently find one or two images fail with the message 'Post-processing of the image likely failed because the server is busy or does not have enough resources. Uploading a smaller image may help. Suggested maximum size is 2500 pixels.' I have numerous reports from my userbase of the same issue.

- The images that fail are far smaller than the error message suggests would cause an issue. For example my currently problematic image is 1621 x 1000 and a svelte 292kb.

- Imagick 3.3.4 is installed

- Rebooting the server does not make the issue go away.

- There is no issue with resources on the server or resources available to the wordpresses, they all have 512 MB assigned, which should be more than enough.

- Occasionally reuploading the image solves the problem, but this is rare - I've currently been stuck for an hour trying to get one single image into a slider.

- Saving the image as a different kind of JPEG i.e. baseline optimized rather than progressive sometimes seems to work (I suspect this isn't meaningful or indicative of the issue though). 

The wider point is this is preposterous, I'm currently trying to upload 15 identically sized, identically produced, images and one single file keeps failing for no fathomable reason. 

There is another bug report discussing the content of the message being inaccurate, which it clearly is, but as a wordpress dev/admin I'm encountering this issue multiple times a day and there does not appear to be a rational reason for its occurrence or any reasonable steps a user can take to solve it on their own. 

Frankly wordpress 5x seems to dislike certain images for no reason at all.

For the avoidance of doubt this ticket is not about the language of the error message (useless and wrong as it clearly is) it's about the problem that causes it to occur. "	toomanyairmiles	5.4.2	close
Reporter Feedback / Close	49161	Disabling big_image_size_threshold via filters does NOT work		Media	major	defect (bug)	closed	2020-01-09T18:50:29Z	2026-06-10T15:51:49Z	"Trying to disable the new image sizes in WordPress but this has no effect! I'm still seeing the new large sizes being saved on my server even after using this code.

{{{
add_filter( 'big_image_size_threshold', '__return_false' );
}}}


This is a very serious issue for me. My site accepts user uploads but I've been overwriting the full size images with the thumbnail not just to save space on server but also so that I don't have large images stored on my server in case of possible copyright abuse. 

This should have been a feature you need to turn on, not something that automatically happened after a site is auto upgraded. I absolutely need this disabled but the ability to disable this is NOT working.



"	bbtodd		close
Reporter Feedback / Close	48988	WordPress Does Not Generate JPG Sizes After 5.3.1		Media	normal	defect (bug)	closed	2019-12-15T12:23:16Z	2026-06-10T15:44:36Z	"I have a strange problem on all my wordpress sites after upgrading to 5.3.1

When uploading an image to the site, it does not create any additional size nor the thumb 375x175 it should create ... I've tried using plugins that generate image sizes and they didn't work either ...

The strange thing is that if the image is PNG it does create the other sizes, the error happens only with JPG images. Even if I rename a JPG image to PNG the process doesn't work ...

Remembering that wordpress uploads the image normally, it just doesn't generate the extra JPG sizes, absolutely no additional sizes.

"	kevinbkt10	5.3.1	close
Reporter Feedback / Close	48712	For large images, wp_generate_attachment_metadata is breaking WordPress		Media	normal	defect (bug)	closed	2019-11-18T21:33:48Z	2026-06-10T15:41:03Z	"I have this code in a custom plugin of mine:
{{{
    $screens_attach_id = wp_insert_attachment( $attachment, $file );
    require_once( ABSPATH . 'wp-admin/includes/image.php' );
    $attach_data = wp_generate_attachment_metadata( $screens_attach_id, $file );
    wp_update_attachment_metadata( $screens_attach_id, $attach_data );
}}}

It worked until now, however, in the current version, wp_generate_attachment_metadata is breaking execution without any error in any log, when called for some (large?) images. Example image: https://i.ibb.co/k1FVrCh/apex-jpg5dd30be89f32b-1024x603.jpg

"	coderevolution	5.3	close
Reporter Feedback / Close	48513	Maximum execution time of 600 seconds exceeded in /var/www/html/releases/20191106150212/wp-includes/class-wp-image-editor-imagick.php on line 155		Media	normal	defect (bug)	closed	2019-11-06T15:52:03Z	2026-06-10T15:36:34Z	"When running wp media regenerate --only-missing --image_size=lazy it fails after 6490 entries.

It fails with the following error:

{{{
6490/15784 No ""lazy"" thumbnail regeneration needed for ""model13-32"" (ID 35894).
PHP Fatal error:  Maximum execution time of 600 seconds exceeded in /var/www/html/releases/20191106150212/wp-includes/class-wp-image-editor-imagick.php on line 155
Fatal error: Maximum execution time of 600 seconds exceeded in /var/www/html/releases/20191106150212/wp-includes/class-wp-image-editor-imagick.php on line 155
}}}

If I go to the specific image (that I THINK is failing, model13-32) and then click ""rebuild thumbnail"" inside WordPress it works just fine.

Hmmm.."	mattiasf		close
Reporter Feedback / Close	45589	resized images does not delete after delete main image in media library		Media	normal	defect (bug)	closed	2018-12-11T20:18:31Z	2026-06-10T15:28:23Z	"1) upload image
2) check the uploading folder - image-100x100.jpg image-540x750.jpeg and etc
3) delete image.jpg in media library
4) image-100x100.jpg image-540x750.jpeg and all other are still exist 

Looks like 10 years old bug #8309
"	alexufo	5.0	close
Reporter Feedback / Close	62453	Cropping of images in WP 6.7 (and 6.8) is broken		Media	normal	defect (bug)	new	2024-11-17T07:57:22Z	2026-06-01T06:37:40Z	"When cropping an image, the original crop isn't retained. The selection moves all the way to the left of the image no matter what the user tried to select. It jumps by itself to 0,0 start point when saving. That seems to be because the starting coordinates get filled with 0,0 even though the user doesn't enter anything and even if the user manually moves the cropping rectangle, the starting coordinates don't get updated. This didn't work that way in 6.6.2. Manually changing the starting coordinates leads to all kinds of strange unpredictable behavior. 

The cropping is essentially unusable. I can add quicktime screen capture of problem. I did check logs for errors and console for errors, found no errors.

Independent of plugins or theme. 

Error in Chrome dev tools says incorrect use for label. 
"	axelkratel	6.7.1	reporter-feedback
Reporter Feedback / Close	65152	UI: Inconsistent left padding between buttons and select dropdowns in media views		Media	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	64705	Media Library Showing Different Image Counts in Grid and List View		Media	minor	defect (bug)	new	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	6.9.1	close
Reporter Feedback / Close	37773	Update get_avatar() to support native and registered image sizes.		Media	normal	enhancement	new	2016-08-22T21:41:26Z	2026-02-02T16:37:55Z	"The get_avatar() method currently allows developers to retrieve a user's avatar of a particular size by passing in an integer value, such as `get_avatar( 'jeremy@example.com', 80 )`. 

In some cases, it might be useful to instead retrieve an avatar by passing in an image size registered with WordPress (e.g., thumbnail, medium, large).

See attached patch.

"	jmichaelward	2.5	dev-feedback
Reporter Feedback / Close	40129	Media deleting selected on mobile does not work		Media	normal	defect (bug)	new	2017-03-12T12:47:13Z	2025-12-18T16:08:09Z	"Steps to reproduce:
- Select a month in bulk select.
- Click image.
- Click delete selected.
- It doesn't delete.

[[Image(https://cldup.com/IHq3IPurbV.PNG, 50%)]]

Discovered on iPhone 7 Plus."	karmatosed		close
Reporter Feedback / Close	64056	Media / REST API: Uploading non-resizable image formats (SVG) generates multiple PHP warnings		Media	normal	enhancement	new	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		close
Reporter Feedback / Close	57741	"Core throwing 'Attempt to read property ""post_type"" on null'"		Media	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	40806	Subtitles show no media files in browser when there are some		Media	normal	defect (bug)	new	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		close
Reporter Feedback / Close	63671	Image Not Displaying or Editable in WordPress Media Editor		Media	major	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	63357	Error function  exif_imagetype() functions.php on line 3338		Media	normal	defect (bug)	new	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		close
Reporter Feedback / Close	61717	Warning: Trying to access array offset on value of type bool in /sites/site.com/wp-includes/media.php on line 795 801		Media	major	defect (bug)	new	2024-07-20T13:23:22Z	2025-05-12T01:38:23Z	"Hello! Maybe someone knows what the problem is? Photo files avif. 
[[Image(https://i.ibb.co/gTFqdW5/photo-2024-07-20-16-12-13.jpg)]]
[[Image(https://i.ibb.co/KqsDJ7N/2024-07-20-161310.png)]]
[[Image(https://i.ibb.co/RTLc6q2/f5n91e6t.png)]]

It seems to me that the error began to appear after updating the WordPress. I tried regenerate thumbnails but it didn't work for me. I disabled all plugins and left only WooCommerce, WPBakery, Woodmart Core. 
"	vladte4	6.3.1	reporter-feedback
Reporter Feedback / Close	61554	Attachment page not redirecting to attachment file even after setting the option in wp-admin/options.php		Media	normal	defect (bug)	new	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	6.5.5	reporter-feedback
Reporter Feedback / Close	54943	image_get_intermediate_size(): size data is a bool, not an array throws notice / warning		Media	normal	defect (bug)	new	2022-01-27T08:03:50Z	2025-05-12T01:37:54Z	"While testing my website on PHP 8.0 (in my example opening the blog page), I noticed the following two warnings in the error log:

{{{
[27-Jan-2022 08:56:34] WARNING: [pool xxx] child 1031078 said into stderr: ""PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/xxx/wp-includes/media.php on line 779""
[27-Jan-2022 08:56:34] WARNING: [pool xxx] child 1031078 said into stderr: ""PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/xxx/wp-includes/media.php on line 785""
}}}

PHP 7.4 throws a Notice.

I also noticed with a fresh install of wordpress. "	fhwebdesign	5.9	needs-unit-tests
Reporter Feedback / Close	63142	will not accept .png images		Media	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	63054	Back end media library display problem		Media	major	defect (bug)	new	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	6.7.2	reporter-feedback
Reporter Feedback / Close	43531	$content_width and Add Media (+ twentyseverteen?)		Media	normal	defect (bug)	new	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	4.9.4	close
Reporter Feedback / Close	62571	Media uploader tabs styling are little broken		Media	normal	defect (bug)	new	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	6.7.1	reporter-feedback
Reporter Feedback / Close	62174	Sending .avif image files refused in the editor	adamsilverstein	Media	normal	enhancement	assigned	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	6.6.2	reporter-feedback
Reporter Feedback / Close	61926	Imagick breaks default image progressive/interlace when converted to a mime type that doesn't support interlace		Media	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	60354	Image filter functions strip query string from image src	joemcgill	Media	normal	defect (bug)	reviewing	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		reporter-feedback
Reporter Feedback / Close	59192	New image crop interface don't work in windows 10. Scale works.		Media	normal	defect (bug)	new	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	6.3	reporter-feedback
Reporter Feedback / Close	51667	php notices in logs		Media	minor	defect (bug)	new	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	5.5.1	reporter-feedback
Reporter Feedback / Close	58364	Lottie Files not centered properly		Media	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	51133	Image uploaded through third party plugin showing in media but not showing up in post		Media	normal	defect (bug)	new	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	5.5	reporter-feedback
Reporter Feedback / Close	50264	wp_get_image_editor()->multi_resize() occasionally fails		Media	normal	defect (bug)	new	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	5.4.1	reporter-feedback
Reporter Feedback / Close	50238	Image rotation still an issue with images shot from above		Media	major	defect (bug)	new	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	5.4.1	reporter-feedback
Reporter Feedback / Close	50126	Latest large Image size compression generating incorrect file permissions		Media	major	defect (bug)	new	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	5.4.1	reporter-feedback
Reporter Feedback / Close	49779	Add a filter that controls the size of the images on the Attachment pages		Media	major	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	49746	Widening WordPress Limits and Compatibility		Media	normal	enhancement	new	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	5.4	reporter-feedback
Reporter Feedback / Close	44765	Uploaded image corrupted after resizing		Media	normal	defect (bug)	new	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	4.9.8	reporter-feedback
Reporter Feedback / Close	51908	add_image_size not working with custom plugin code		Media	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	50909	WordPress 5.5 update adds height and width attributes to images		Media	normal	defect (bug)	new	2020-08-11T22:02:56Z	2020-10-30T14:33:28Z	"It appears that some images added with the gutenberg editor (no updates since June) now have height and width attributes being dynamically added following the new loading attribute. 

I updated locally only so far.

This is the previous img element being displayed in the browser:

{{{
<img src=""https://www.brothersmoving.local/wp-content/uploads/2020/06/AdobeStock_230714251_Preview.jpeg"" alt=""Adobestock 230714251 Preview"" class=""wp-image-8050"" srcset=""https://staging.brothersmoving.ca/wp-content/uploads/2020/06/AdobeStock_230714251_Preview.jpeg 1000w, https://staging.brothersmoving.ca/wp-content/uploads/2020/06/AdobeStock_230714251_Preview-300x134.jpeg 300w, https://staging.brothersmoving.ca/wp-content/uploads/2020/06/AdobeStock_230714251_Preview-768x344.jpeg 768w"" sizes=""(max-width: 1000px) 100vw, 1000px"">
}}}


This is it now:

{{{
<img loading=""lazy"" width=""1000"" height=""448"" src=""https://www.brothersmoving.local/wp-content/uploads/2020/06/AdobeStock_230714251_Preview.jpeg"" alt=""Adobestock 230714251 Preview"" class=""wp-image-8050"" srcset=""https://www.brothersmoving.local/wp-content/uploads/2020/06/AdobeStock_230714251_Preview.jpeg 1000w, https://www.brothersmoving.local/wp-content/uploads/2020/06/AdobeStock_230714251_Preview-300x134.jpeg 300w, https://www.brothersmoving.local/wp-content/uploads/2020/06/AdobeStock_230714251_Preview-768x344.jpeg 768w"" sizes=""(max-width: 1000px) 100vw, 1000px"">
}}}

These are the new attributes being added:

{{{
 loading=""lazy"" width=""1000"" height=""448""
}}}
"	jeslen	5.5	close
Reporter Feedback / Close	47091	REST get wp/v2/media sizes to include add_image_size()		Media	normal	enhancement	new	2019-05-01T15:42:44Z	2020-10-25T04:29:41Z	"Media returned from the API returns as sizes attribute.

These sizes are only the default sizes from wordpress. Sizes added via add_image_size() are not available.

This would be a great feature for wordpress, allowing users to upload an image once, do all the cropping there, and insert that image in the ways that they want through gutenberg. The current experience is broken up due to the need to do production work outside of gutenberg."	shaneyu		reporter-feedback
Reporter Feedback / Close	50932	Lazy load conflict		Media	normal	defect (bug)	new	2020-08-12T08:38:46Z	2020-08-12T10:55:04Z	"Hi, i have installed a cache plugin. This plugin has lazy load option. I turned it off to check how WordPress 5.5 lazy load work. I noticed it doesn't work properly. I checked the source code of the website and search ""lazy"", i saw there was no lazy option. However when i turned lazy load option from third party plugin, I faced a problem. It's i cannot visit website without logged in. If i logged in i can visit."	azad241	5.5	reporter-feedback
Reporter Feedback / Close	49841	wp_get_attachment_url does not return a url		Media	normal	defect (bug)	new	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	5.4	reporter-feedback
Reporter Feedback / Close	49900	Updates to Image Processing in WordPress 5.3 - Broken Intrinsic Sizing?		Media	normal	defect (bug)	new	2020-04-13T23:24:20Z	2020-05-14T22:46:41Z	"Hello WordPress Wizards,

I am a bit late to learning about this Update - I am currently on the Latest Version of WordPress however: [https://make.wordpress.org/core/2019/10/11/updates-to-image-processing-in-wordpress-5-3/]

For months I have been talking to support teams and Developers before finding this article above. - Unfortunately I have had no luck with any ideas or information from them until finding this Post.

Since November 2019 (The first content I have added since the 5.3 Update) I have had an issue with Uploading Images.

For example I will upload an image at 250x250 pixels. However when it is displayed on the page the ""Intrinsic Sizing"" will be 624x468.

Inside of the Media Library it still says the dimensions are ""250x250"" however Right Clicking the Image > Open Image In New Tab - Displays the image at 624 x 468. - Its creating different sizings and now choosing the wrong one (e.g - not picking Original Dimensions) 

I want to note. T**his is only for images uploaded SINCE this 5.3 Update**.

I can still insert previously uploaded images that are stored in the Media Library and they are the correct Dimensions on the page.

Attached Image Below showing:

[[Image(https://gmm-downloads.s3.amazonaws.com/WordPress+5.3+Intrinsic+Sizing.JPG)]]

I have disabled Themes and Plugins and the Issue still occurs.

**Note:** ''I am having this issue only on my LIVE site. My Development site with the same themes and Plugins does not get this error - so it was potentially a problem on Installing the update?''

From the timing and what the 5.3 Update included, I feel as though it is related to this 5.3 update.

Thanks!
Alex

**P.S** This is my first WordPress.org post - So I apologize if I am in the wrong area for posting this kind of question. Have a great day :)"	techgmm	5.3	reporter-feedback
Reporter Feedback / Close	13372	Separate Image sizes for different post types		Media	normal	enhancement	reopened	2010-05-13T07:59:07Z	2020-04-18T04:45:23Z	Would be nice, especially moving forward with custom post types to have the ability to set different image sizes using an additional parameter of `add_image_size()` for different post types: Page, Post, and Custom.	brandondove	4.6.1	close
Reporter Feedback / Close	49078	Media Library permission checks in WordPress		Media	major	defect (bug)	new	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	5.3.2	reporter-feedback
Reporter Feedback / Close	48788	Run time crop image not working using wp_get_image_editor		Media	normal	defect (bug)	new	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	5.3	reporter-feedback
Defects Awaiting Review, reported against no version	41351	Searching for a category returns nothing if category is empty		Menus	normal	defect (bug)	new	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		
Defects Awaiting Review, reported against no version	37920	`the_title` filter called in 2 places inconsistently		Menus	normal	defect (bug)	new	2016-09-02T14:20:21Z	2019-04-19T13:22:41Z	"This is a follow-up to #35317.

When calling `wp_nav_menu()` to build a frontend nav menu, the filter `the_title` ends up being called 2 times on page links, due to the above ticket.

It is called here https://github.com/WordPress/WordPress/blob/master/wp-includes/nav-menu.php#L754

and then here https://github.com/WordPress/WordPress/blob/master/wp-includes/class-walker-nav-menu.php#L169.

So it is called once when getting the post object title and then again when actually outputting the nav menu.

I think this is negative for 2 reasons:

1) Anyone who wants to filter `the_title` for nav menu items will end up having it called 2 different times, which is odd and can provide inconsistency
2) In both cases, an object ID is included, but the first call the object ID is the Post that the menu item links to (where the title comes from) and the second call the object ID is the nav menu item ID. This means, if a developer anticipates the 2 calls, they cannot check against the supplied object ID to confirm operations only happen once."	joelworsham		dev-feedback
Defects Awaiting Review, reported against no version	37971	Menus screen: improve the responsive view		Menus	normal	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		needs-patch
Defects Awaiting Review	41502	_wp_expand_nav_menu_post_data() corrupts multiple select (array value)		Menus	normal	defect (bug)	new	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	4.9	has-patch
Defects Awaiting Review	66341	"Menus: Quick search announces ""1 Search Results Found"", and the string has no plural form"		Menus	normal	defect (bug)	new	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	6.9	has-patch
Defects Awaiting Review	65348	Adding menu items in bulk, checked items forgotten when navigating		Menus	minor	defect (bug)	new	2026-05-26T13:48:25Z	2026-09-29T10:08:00Z	"When you want to add multiple menu-items to a menu (through /wp-admin/nav-menus.php) using the checkboxes, it doesn't save the checked items when using pagination to navigate through multiple 'pages' of items. Especially when using the 'Show all' option.

For example; there are 6 'pages' of items. You select 3 items on page 1, you navigate to page 3, select also 3 items here, the items on page 1 are 'forgotten'."	daveykj	6.9.4	has-patch
Defects Awaiting Review	66177	Check that menu items are objects in _wp_menu_item_classes_by_context()		Menus	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	65884	wp_map_nav_menu_locations() reuses $slug for a nested loop, so some new theme locations are skipped		Menus	normal	defect (bug)	new	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	4.9	has-patch
Defects Awaiting Review	38224	Not enough results in menu-page-add-search		Menus	normal	defect (bug)	new	2016-10-04T09:42:08Z	2026-08-10T09:31:35Z	"While editing menu, trying to add a page, searching for the page ""research"" in a database with hundreds! of pages with this word in it, looking for that ONE page with just 'research' as title, the page is not listed

admin/includes/nav-menu.php, _wp_ajax_menu_quick_search with type=quick-search-posttype-page the WP_Query lists posts_per_page = 10, but the search does NOT provide a paginator.

I call this a bug because it is not working as intended; I assume you intended that the search would allow a page to be found, so the bug would be ""pagination is missing""

I have hard-coded a -1 to avoid the issue for now

possible solutions are:
- add pagination 
- add a filter on the arguments so we can set a different page-size without altering the code
"	clearsite	4.6.1	dev-feedback
Defects Awaiting Review	65665	"Menus: ""Save Menu"" header button misaligned with ""Menu Name"" field on small screens"		Menus	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	61557	When deleting menu items in batches, it is easy to mistakenly click on the delete menu action.		Menus	normal	defect (bug)	new	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	6.5.5	has-patch
Defects Awaiting Review	57428	Walker_Nav_Menu::start_el() $data_object is not a WP_Post		Menus	minor	defect (bug)	new	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	6.1.1	has-patch
Defects Awaiting Review	38486	current_page_parent class wrongly added to menu item	williampatton	Menus	normal	defect (bug)	assigned	2016-10-25T15:46:20Z	2026-04-03T08:59:02Z	"If the current page being viewed is either of the following:

 - a custom post type archive
 - a custom post type single item

a {{{current_page_parent}}} class is added to the menu item assigned as the {{{page_for_posts}}}.

I believe this is wrong because the page assigned as the {{{page_for_posts}}} is associated with ''posts'' only. It has nothing to do with CPTs."	henry.wright	4.6.1	has-patch
Defects Awaiting Review	64834	"Bug Report / UX Issue: Taxonomy Hierarchy Flattens and Breaks in Nav Menu ""View All"" Tab Due to Pagination"		Menus	normal	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	6.9.1	
Defects Awaiting Review	64011	wp_die() status code Menus component updates (parent ticket: #64009)		Menus	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	18282	Issue with admin page hierarchy in Menu admin		Menus	critical	defect (bug)	reopened	2011-07-28T14:38:17Z	2025-09-30T12:53:45Z	"Under Appearance > Menus in the left column under Pages, if I have more than 50 pages, the hierarchy view gets messed up. The issue seems to be related to paginate. 

If I change the ""50"" on lines 589 and 809 of wp-admin/includes/nav_menu.php to ""955"" the hierarchal admin menu works with 50+ pages. 

Attached are two XML files. One contains 50 pages and the other contains 53 pages. I've loaded them into fresh installs of 3.2.1 using the twenty eleven theme and no plugins. 

Paginate is great if it works right, if it won't work, just increase the number per page to something very high and people can scroll. I'd rather scroll than not have hierarchy work right. 


Link to 50 page XML -- http://cloud.hcc.me/0g3X3O310s3l3i2N363n

Link to 53 page XML -- http://cloud.hcc.me/302e0c391A14193m2V2e

Pastebin of wp-admin/includes/nav_menu.php -- http://pastebin.com/0FRAmMkS"	hcceast	3.2.1	needs-patch
Defects Awaiting Review	53500	Searching for Pages & Posts when adding Menu items isn't working correctly		Menus	major	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	5.7.2	
Defects Awaiting Review	52558	Menu items need more classes		Menus	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	56154	pre_get_posts fix to show menu on CPT Archives broken in 6.0		Menus	normal	defect (bug)	new	2022-07-05T20:21:23Z	2025-05-12T01:37:58Z	"Before WP 6.0 we have had to add this pre_get_posts fix to show the wp_nav_menu on custom post type archive and taxonomy pages: https://casabona.org/2015/03/fix-wp_nav_menu-custom-type-archives-wordpress/


{{{
function fix_nav_menu( $query ) {
	    if ( $query->get( 'post_type' ) === 'nav_menu_item' ) {
		    $query->set( 'tax_query', '' );
		    $query->set( 'meta_key', '' );
		    $query->set( 'orderby', '' );
		}
	}
	add_action( 'pre_get_posts', 'fix_nav_menu' );
}}}

Here is an example of the menu not showing on the CPT taxonomy page: **Link to production website removed, development example link is below.]

There is a bug in 6.0 that when this is in the functions.php file the WP menu adds every menu item and other wp nav menus to each wp nav on both the backend in the menu editor and the frontend of the site. Makes for a very large menu anywhere a wp menu is called.

Example of the broken menu: https://acbase.wpengine.com/"	joshpaynedesigns	6.0	dev-feedback
Defects Awaiting Review	56089	Meta data of menu items not removed from wp_postmeta table after removing the menu item before being saved.		Menus	normal	defect (bug)	new	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	6.0	has-patch
Defects Awaiting Review	62925	Non-unique names for inputs in nav-menu	joedolson*	Menus	normal	defect (bug)	accepted	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		has-patch
Defects Awaiting Review	51623	Does WordPress run a clean-up cron-job for menu items having the draft status?		Menus	normal	defect (bug)	new	2020-10-24T22:15:13Z	2025-02-18T09:58:53Z	"On the menu admin screen, after dragging new menu items to the selected menu, whenever I discard the option to save the menu settings before reloading the page I noticed that the added menu items (not-saved) is still in my post database table with status ""draft"". Now if I discard 100 menu items, my post table is filled with 100 rows of redundant data. Why?
"	zenithcity	5.5.1	has-patch
Defects Awaiting Review	61876	Exception thrown in navigation/view.min.js on mobile device		Menus	normal	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	6.6.1	
Defects Awaiting Review	58640	Navigation Block renders wrong menu		Menus	major	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	6.2.2	
Defects Awaiting Review	60199	update_menu_item_cache appears to load postmeta for all linked posts		Menus	normal	defect (bug)	new	2024-01-06T00:17:26Z	2024-04-15T15:19:16Z	"Discovered this debugging a memory limit error that was causing a staging site to WSoD on every page. The root cause was that loading the site header menu triggered loads of all postmeta.

For context, this site has 35 posts in its menu. If I run the query that killed the site, it returns ~240MB of postmeta (which trips our server's ~512MB memory limit). Yes, 7MB of meta_values per post sounds high; this is because we use a page builder (Beaver Builder) that stores serialized post design configuration in postmeta.

While this sounds excessive, it *would* be fine. Except that when WordPress needs to load menu items (via `wp_get_nav_menu_items`), it updates a number of related caches. First we update the menu item cache, then the post cache for any posts that are linked from a menu item, then the postmeta cache for all the postmeta of those linked posts, then we run out of memory and crash.

`_prime_post_caches`, the function that updates the post cache, does provide parameters to enable or disable term and postmeta cache priming. `update_menu_item_cache` disables term priming but not postmeta priming. This appears to be an oversight: normal nav menu processing doesn't use any of the postmeta we're priming the cache with, so there's no point in loading any of it into the object cache.

The website I diagnosed this problem in is running WordPress 6.4.2 on PHP 8.2. It's hosted on WP Engine which does automatic core and PHP updates. As part of an earlier diagnosis phase, I disabled every plugin that wasn't absolutely necessary for rendering this header. I still got the memory limit error. I was *not* able to disable Beaver Builder or the custom theme we developed for this client as those are responsible for loading the template that calls `wp_nav_menu`. I don't think there's any plugin hooks in Beaver Builder doing anything funny either; I made PHP print out a stacktrace right before the memory error and the trace goes straight from my header code to WPDB:

{{{
#0 /wp-includes/class-wpdb.php(2263): wpdb->_do_query('SELECT post_id,...')
#1 /wp-includes/class-wpdb.php(3152): wpdb->query('SELECT post_id,...')
#2 /wp-includes/meta.php(1177): wpdb->get_results('SELECT post_id,...', 'ARRAY_A')
#3 /wp-includes/post.php(7421): update_meta_cache('post', Array)
#4 /wp-includes/post.php(7808): update_postmeta_cache(Array)
#5 /wp-includes/nav-menu.php(804): _prime_post_caches(Array, false)
#6 /wp-includes/class-wp-query.php(3560): update_menu_item_cache(Array)
#7 /wp-includes/class-wp-query.php(3824): WP_Query->get_posts()
#8 /wp-includes/post.php(2460): WP_Query->query(Array)
#9 /wp-includes/nav-menu.php(729): get_posts(Array)
#10 /wp-includes/nav-menu-template.php(165): wp_get_nav_menu_items(Object(WP_Term), Array)
#11 /wp-content/themes/beaverwarrior/components/CustomHeader/custom-header/includes/frontend.php(19): wp_nav_menu(Object(stdClass))
}}}

The way I'm currently fixing this problem is modifying `update_menu_item_cache`. Yes, this is corehacking, and I understand that it will be overwritten and break with the next core update.

I specifically changed this line:

{{{#!php
	if ( ! empty( $post_ids ) ) {
		_prime_post_caches( $post_ids, false );
	}
}}}

to instead be:

{{{#!php
	if ( ! empty( $post_ids ) ) {
		_prime_post_caches( $post_ids, false, false );
	}
}}}

This disables postmeta cache priming for linked posts in nav menus and fixes the memory limit I was running into. I would like to know if there's any further implications from doing this that I'm not aware of. If not, I can submit a pull request to have this merged in."	huemordave	6.0	dev-feedback
Defects Awaiting Review	60832	add_meta_box breaks on plugin sub-pages if add_menu_page has dynamic title		Menus	normal	defect (bug)	new	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	6.4.3	has-patch
Defects Awaiting Review	60176	BLOCK NAME  input data not saving		Menus	normal	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	6.4.2	
Defects Awaiting Review	51565	PHP Notices from wp_setup_nav_menu_item when object_id doesn't exist anymore		Menus	normal	defect (bug)	new	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	5.5.1	has-patch
Defects Awaiting Review	60162	Navigation block rending content from post with shared ID		Menus	normal	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	6.4.2	
Defects Awaiting Review	59744	walk_page_tree issue - cast array to object to fix		Menus	normal	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		
Defects Awaiting Review	53449	Child Walker classes change the $args parameter data type and default value signatures for start_el and end_el		Menus	normal	defect (bug)	new	2021-06-18T15:54:35Z	2023-08-03T21:38:00Z	"The following Walker classes have code smells for changing the data type of the `$args` parameter when extending from the `Walker::start_el` and `end_el`:

- `Walker_Nav_Menu`
- `Walker_Nav_Menu_Checklist`
- `Walker_Nav_Menu_Edit`

What is the code smell? The parent defines the `$args` parameter as an `array` data type with a default value of an empty array. The child classes change the parameter's data type to `stdClass` with a default value of `null`.

These changes need investigation to determine if these changes are needed and why."	hellofromTonya		
Defects Awaiting Review	58538	Wrong menu is shown after adding new Header Template parts		Menus	normal	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	6.2.2	
Defects Awaiting Review	46382	[walker-nav-menu] Undefined property stdclass::$current in class-walker-nav-menu.php		Menus	normal	defect (bug)	new	2019-03-01T08:24:53Z	2023-06-14T15:34:35Z	"In **wp-includes/class-walker-nav-menu.php line 177** there's a missing ''empty();'' function around ''$item->current''. 
Causes PHP errors everywhere ''wp_nav_menu();'' function occurrence:

{{{
$atts['aria-current'] = $item->current ? 'page' : '';
}}}

Should be:

{{{
$atts['aria-current'] = ! empty( $item->current ) ? 'page' : '';
}}}"	winston_wolf	5.1	has-patch
Defects Awaiting Review	58044	Issue with wp_setup_nav_menu_item		Menus	normal	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	6.2	needs-patch
Defects Awaiting Review	57546	Appearance>Menus Disappear (actual menu items) When Updating to WP 6+		Menus	normal	defect (bug)	new	2023-01-24T14:12:03Z	2023-02-17T13:43:52Z	"Hi folks,

This has been an ongoing issue for many months. It only affects select single sites or select subsites on a multisite for unknown reasons even after using the default WP theme and disabling all plugins.

See page 2 here https://wordpress.org/support/topic/appearancemenus-disappear-when-updating/page/2/#post-16399937 for the most recent info but also look at the beginning too on page 1. 

On a staging site for multisite I just recently did this to continue testing:

Current is 5.9.5 and everything is fine.  Shows what menus are prior to updating to WordPress 6 plus:
https://app.screencast.com/IeeYd9srBeKVl (this is on a full network staging site to test)

Keep in mind this issue can be on single WP installs or multisite installs. See the WordPress forum post

It can not be replicable because it seems to only affect certain websites for unknown reasons even after putting sites on the default WP theme and deactivating all plugins (on both single sites WP installs and multisite).

After updating:
I was showing some subsites are fine but about 6 or 7 of my 70 subsites have menus that disappear https://app.screencast.com/OXcdWgR4D3jE1 initially on updating WordPress 6 plus. I have found other people with single WP site installs that have the same problem like the WordPress forum post here for example.
See:
https://app.screencast.com/OXcdWgR4D3jE1

See how I resolved on staging:
https://app.screencast.com/X60RG8l61sVsG (keep in mind when I tried this a couple months ago on my live network, the menus came back initially, but then they disappeared after a day or so again...I had to revert back to WP 5.9.5 to get the menus to stay on those 7 sites).

For this testing site, so far, on staging, I disabled a couple of menu-related plugins before updating and then fixed the menus and reenabled (like Max Menu just as a hunch), but there is also a newer version of WP now too so that is different too. 

I then made a backup of the menus using the Duplicate Menu plugin on each of the 7 sites for all menus just in case they disappeared after a few days I would try the backup menus made with the new version of WP. I have not had to use them yet. It has been a week on staging and menus are still so far there.

I tried this before on another staging a few months ago, and the menus stayed on staging but continued to disappear when trying on the live site after af few hours in my case or day or so.

Excerpt from page 2 recently talking to another person who has a single WP site doing the same thing:

""
#1 I disabled Max Menu plugin first only cause I suspect (guessing since it is a menu based plugin) that may be part of this. You could disable only any menu related plugins or all plugins. But if you menus are driven by your theme just try also changing your theme before updating WP core too.

#2 I updated to the latest WP core.

#3 Menus items are gone but…

#4 I go to the Menus titles that I had active and added a new random page to the menus that should have menu items but shows none at that moment. I then SAVE the menus. All menu items that were gone then reappear. Don’t just try to resale without adding a new random page to the menu. You have to add a new page first for it to work. You can remove it after all your menu items come back and resale again afterwards.

#5 Optional…I then used the top plugin in WP repository to duplicate the menus as a quick backup (it has about 80k active installs). Search duplicate menu in WP repository.

#6 Then enable all plugins I had disabled (or enable your theme too if you changed that).

#7 All menus are now restored with the latest WP.

#8 I have left the staging going for about a week to monitor to be sure the menus stayed up. So far so good. I made duplicate backups of the menus while on the new version of WP just in case the originals disappeared again (i.e. #5 above). So far the original menus have not disappeared.
""

It would probably be best for you to get a staging site on a single WP site that is doing it vs an entire multisite staging to see the replication of the issue.

I am asking the other person ( @marpan ) to post here to and provide you access to a fresh single WP site staging site so you can see it for yourself too as this only seems to happen on a smaller percentage of single sites. For my multisite, I have 70 subsites and only 6 or so are doing this too FYI. The other subsites seem fine.


"	truebird	6.1.1	
Defects Awaiting Review	57519	Sundry Menu Bugs		Menus	major	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	6.1.1	
Defects Awaiting Review	57313	Adding a menu item without a link URL should not add a broken HTML a tag		Menus	normal	defect (bug)	new	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	6.1.1	dev-feedback
Defects Awaiting Review	57173	Unable to edit Main Menu		Menus	normal	defect (bug)	new	2022-11-22T04:09:06Z	2022-11-22T16:06:02Z	"Steps to reproduce the issue:
1. Edit a website with a main menu.
2. Select the navigation block in the block editor and click on ""Manage menu""
3. Step 2 takes you to the page where you can edit menus.
4. Expected: hitting ""edit"" on the Menu entry should allow adding Pages/Posts to the navigation menu

Actual: Seeing a blank page with no ability to modify the contents of the navigation menu"	vpalepu	6.1.1	
Defects Awaiting Review	56491	unregister_nav_menu() does not update theme mod 'nav_menu_locations'		Menus	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	18209	Capabilities with misplaced dependencies in edit_theme_options		Menus	normal	defect (bug)	assigned	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	3.2.1	has-patch
Defects Awaiting Review	55893	Not able to save navigation menus and not able to retrieve menus using wp_get_nav_menu_items		Menus	normal	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	6.0	
Defects Awaiting Review	55863	Menus broken after upgrade to 6.0		Menus	major	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	6.0	
Defects Awaiting Review	55719	Better error message for sites using a FSE supporting theme when visiting the old navigation menus screen		Menus	normal	defect (bug)	new	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	5.9	dev-feedback
Defects Awaiting Review	54585	Issue in the menu editor		Menus	normal	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		
Defects Awaiting Review	54217	Menu Screen has some UI inconsistency issue		Menus	normal	defect (bug)	new	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	5.8	has-patch
Defects Awaiting Review	54135	`nav_menu_meta_box_object` filter doesn't work on taxonomies		Menus	normal	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		
Defects Awaiting Review	47436	Menu depth doesn't affect menu-item-has-children		Menus	trivial	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	5.2.1	needs-patch
Defects Awaiting Review	51963	WordPress Multisite: Menu Editor Does Not Work In Subsites		Menus	blocker	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	5.5.3	
Defects Awaiting Review	52616	Admin Taxonomy Search returns only 10 results max and no pagination		Menus	normal	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		
Defects Awaiting Review	51948	Override fallback nav menu item label		Menus	normal	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		
Defects Awaiting Review	49331	'output' Taxonomy Slug Crashes Menu		Menus	normal	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	5.3.2	
Defects Awaiting Review	49332	method Walker_Nav_Menu::start_el should not call filter the_title on non post menu items		Menus	normal	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	5.3.2	
Defects Awaiting Review	39355	Menu title doesn't get updated if I change the page title		Menus	normal	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	4.7	
Defects Awaiting Review	48015	Unexpected results from wp_nav_menu()		Menus	major	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	5.2.3	
Defects Awaiting Review	40649	parent_file filter seems to be overwritten by get_admin_page_parent call		Menus	normal	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	4.7.4	
Defects Awaiting Review	46042	wp_nav_menu always returns a container		Menus	normal	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		
Defects Awaiting Review	42288	Validation of custom menu link		Menus	normal	defect (bug)	new	2017-10-20T05:38:04Z	2018-06-14T13:40:20Z	"1. go to menus page
2. try to add custom menu link with label only. without a URL.

expected and actual result: validation failed and link cannot be added.

1. go to menus page
2. add custom menu link with label and URL: '#'
3. save menu
4. edit the custom link from the menu and remove the URL.
5. click save

expected result: validation failed and menu won't be saved.
actual result: menu saved. no validation."	dvirhazout	4.8.2	needs-patch
Defects Awaiting Review	39056	Twenty Seventeen: No Default Menu option creates extra work		Menus	normal	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	4.7	
Defects Awaiting Review	43033	User can not see updated Icon in editing Menu with live preview		Menus	normal	defect (bug)	new	2018-01-06T06:48:54Z	2018-02-05T14:06:38Z	"Bug: User can not see updated Icon in editing Menu with live preview

Attachment for steps: https://www.screencast.com/t/jOBHlmVeUTdO

Steps:

1. Navigate to Appearance->Menus from left rail
2. Select ""Menu with Live preview""
3. Select Menu and click on 'Add Items""
4. Sect ""Pages"" and add some page, User can see that ""+"" icon is changed to Tickmark sign
5. User will remove it from menu,Now User can not see previous symbol again to add

Thanks"	nilamacharya	4.9.1	needs-patch
Defects Awaiting Review	18842	wp_nav_menu confuses new developers when it falls through to page listing		Menus	normal	defect (bug)	reopened	2011-10-02T10:54:12Z	2017-09-20T19:42:00Z	"It appears that when wp_nav_menu() falls through to a page listing, many menu-specific args are not passed to the page listing, which ultimately confuses new developers.

I seem to answer this at least weekly in #wordpress

One example is the 'container_class' arg, if it falls through to the fallback_cb, the container_class is not applied.

Ideally, template-related arguements should be passed to the fallback (And with pages as the default callback, it should handle these) or wp_nav_menu() should output any extra wrapping divs if appropriate."	dd32	3.2	needs-patch
Defects Awaiting Review	40090	Walker::display_element does not populate $args[0]->has_children when it is cast as an Object		Menus	normal	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	4.7.3	
Enhancements Awaiting Review	66608	Tests: Add unit tests for the setup of the Menus screen in nav-menu.php		Menus	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	44803	Add a page to a menu by its ID or slug		Menus	normal	feature request	new	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	4.9.8	has-patch
Enhancements Awaiting Review	65627	"UX Improvement: Move ""Delete Menu"" link to the top header to prevent accidental data loss"		Menus	normal	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		
Enhancements Awaiting Review	39558	A lot of menu classes (and id's) are missing when there's no menu set for a location		Menus	normal	enhancement	closed	2017-01-12T12:45:58Z	2026-06-04T12:53:45Z	"When a fallback menu is displayed because no menu is set to a location, a lot of the CSS classes are removed, compared to the same menu when the location is set.

Would it be possible for a fallback menu to have the same classes than a menu with a location?
It would allow theme developers to use classes instead of tags to style the menu.

'''Fallback menu'''
{{{
<div id=""primary-menu"" class=""menu"">
	<ul>
		<li class=""page_item page-item-3""><a href=""test.dev/accueil/"">Accueil</a></li>
		<li class=""page_item page-item-703""><a href=""test.dev/blog/"">Blog</a></li>
		<li class=""page_item page-item-4""><a href=""test.dev/contact/"">Contact</a></li>
		<li class=""page_item page-item-701 current_page_item""><a href=""test.dev/"">Front Page</a></li>
		<li class=""page_item page-item-2 page_item_has_children""><a href=""test.dev/about/"">About The Tests</a>
			<ul class=""children"">
				<li class=""page_item page-item-1133""><a href=""test.dev/about/page-image-alignment/"">Page Image Alignment</a></li>
				<li class=""page_item page-item-1134""><a href=""test.dev/about/page-markup-and-formatting/"">Page Markup And Formatting</a></li>
				<li class=""page_item page-item-501""><a href=""test.dev/about/clearing-floats/"">Clearing Floats</a></li>
				<li class=""page_item page-item-155""><a href=""test.dev/about/page-with-comments/"">Page with comments</a></li>
				<li class=""page_item page-item-156""><a href=""test.dev/about/page-with-comments-disabled/"">Page with comments disabled</a></li>
			</ul>
		</li>
		<li class=""page_item page-item-174 page_item_has_children""><a href=""test.dev/level-1/"">Level 1</a>
			<ul class=""children"">
				<li class=""page_item page-item-173 page_item_has_children""><a href=""test.dev/level-1/level-2/"">Level 2</a></li>
				<li class=""page_item page-item-742""><a href=""test.dev/level-1/level-2a/"">Level 2a</a></li>
				<li class=""page_item page-item-744""><a href=""test.dev/level-1/level-2b/"">Level 2b</a></li>
			</ul>
		</li>
		<li class=""page_item page-item-146""><a href=""test.dev/lorem-ipsum/"">Lorem Ipsum</a></li>
		<li class=""page_item page-item-733""><a href=""test.dev/page-a/"">Page A</a></li>
		<li class=""page_item page-item-735""><a href=""test.dev/page-b/"">Page B</a></li>
	</ul>
</div>
}}}

'''Menu with a location'''
{{{
<div class=""menu-container"">
	<ul id=""primary-menu"" class=""menu"">
		<li id=""menu-item-1708"" class=""menu-item menu-item-type-post_type menu-item-object-page menu-item-home current-menu-item page_item page-item-701 current_page_item menu-item-1708""><a href=""test.dev/"">Front Page</a></li>
		<li id=""menu-item-1705"" class=""menu-item menu-item-type-post_type menu-item-object-page menu-item-1705""><a href=""test.dev/level-1/"">Level 1</a></li>
		<li id=""menu-item-1706"" class=""menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1706""><a href=""test.dev/level-1/level-2/"">Level 2</a>
		<ul class=""sub-menu"">
			<li id=""menu-item-1709"" class=""menu-item menu-item-type-post_type menu-item-object-page menu-item-1709""><a href=""test.dev/level-1/level-2a/"">Level 2a</a></li>
			<li id=""menu-item-1710"" class=""menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1710""><a href=""test.dev/level-1/level-2b/"">Level 2b</a></li>
		</ul>
		</li>
		<li id=""menu-item-1713"" class=""menu-item menu-item-type-post_type menu-item-object-page menu-item-1713""><a href=""test.dev/contact/"">Contact</a></li>
	</ul>
</div>
}}}"	benoitchantre	4.7	
Enhancements Awaiting Review	64312	Confusing & Unsafe Menu Behavior in WordPress Admin (Especially on Mobile)		Menus	major	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	6.8.3	
Enhancements Awaiting Review	43538	'No items,' should be considered to display when no Most Used Category is available		Menus	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	28101	"Menus screen: add ""Menus"" heading and ""Add New"" button"		Menus	normal	enhancement	new	2014-05-01T23:40:16Z	2025-07-22T15:08:32Z	"This is to make the Menus screen consistent with others in admin.

The patch does the following:

- adds the standard h2 header, in this case, ""Menus""

- adds the standard .add-new-h2 ""Add New"" button but only when it's necessary: in Edit Menus tab, when there are more than 1 menu.

- removes the link to add a new menu in natural language, next to ""Edit your menu below..."" and ""Select a menu to edit..."""	eliorivero	3.6	has-patch
Enhancements Awaiting Review	32700	Allow media attachments in nav menus		Menus	normal	enhancement	new	2015-06-18T10:00:22Z	2024-07-31T00:05:46Z	"I have a requirement to include Media items directly into a menu. 
Choosing the menu item will display the attachment page.

Currently, this is not possible, for two reasons.

By default post_type `attachment` has `show_in_nav_menus` set to false.

If set true, then the Media metabox is displayed in `wp-admin/nav-menus.php`, but with ""No items"". 

This is due to _wp_nav_menu_meta_box_object() setting the default query to ""post_status"" = ""publish"".

Were the default query for attachment set to ""post_status"" = ""inherit"" then the Media items would be listed. 

This would allow media items to be easily added to menus.
{{{
		} elseif ( 'attachment' == $object->name ) {
		  // 
			 		
			$object->_default_query = array(
				'post_status' => 'inherit',
			);
}}}

=== Current workaround ===

I can very easily programmatically set `show_in_nav_menus`,
I can also implement the `nav_menu_meta_box_object` filter 
to update the value for ""post_status"" as above.


But it would be a lot easier if the logic in the filter was in core.





"	bobbingwide	4.7.3	dev-feedback
Enhancements Awaiting Review	41583	Menus Administration screen, menu items are always loaded even when not needed		Menus	normal	enhancement	new	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	4.8.1	dev-feedback
Enhancements Awaiting Review	60690	Consistency in Theme Update Warnings in Menu		Menus	normal	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		
Enhancements Awaiting Review	60198	Menu Handling		Menus	normal	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	6.4.2	
Enhancements Awaiting Review	59079	Draft Pages should not be shown in menus to those who can't see them (or possibly anyone)		Menus	normal	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		
Enhancements Awaiting Review	58857	Menu class should be in BODY tag		Menus	normal	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	6.2.2	
Enhancements Awaiting Review	58473	The menu messages rework		Menus	minor	enhancement	new	2023-06-07T06:49:51Z	2023-06-27T11:41:41Z	"Compared to the page message after a page has been created or updated, the menu messages can be reworked
1. When a menu has been created, there is no message shown.[https://imgur.com/iBoAUDB]

2. When the menu has been saved, the message can be reworked. [https://imgur.com/4Dz1oDE]
This can be similar to the Pages created, updated message"	254volkan		needs-patch
Enhancements Awaiting Review	55773	FSE navigation menu - styling problem		Menus	normal	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		
Enhancements Awaiting Review	54274	Choose where new menu items should go instead of default ending them to the end.		Menus	normal	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		
Enhancements Awaiting Review	53903	Duplicate Menu Bar option		Menus	normal	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		
Enhancements Awaiting Review	53982	Adding pages to menus could be more user friendly		Menus	normal	enhancement	new	2021-08-23T19:15:16Z	2021-09-10T06:35:13Z	"It's difficult to find pages or visually see the page hierarchy when working with the site's menus.

**Appearance / Menus**

For a site that has a lot of content and multiple levels is hard to manage in the tiny Pages tab, it would be ideal if the height was adjustable.

Adding a page places the item at the bottom of the list where the user needs to manually move the item up the stack.

It would be ideal to drag the item from the Pages section into the menu.


**Appearance / Customize / Menus**
For some reason, this interface doesn't represent the page hierarchy making it hard to see the structure.

Same height restriction as above, there are only a small number of pages visible here making it hard to use with a lot of content.

The text input beside `+ Add` makes me think that I can search the page list based on some interactions in the `Appearance / Menus` area.

It would be ideal to drag the item from the Pages section into the menu."	adampatterson	5.8	
Enhancements Awaiting Review	54097	Menu Dividers		Menus	normal	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	5.8.1	
Enhancements Awaiting Review	52924	Fix input annoyance when editing Menus in Safari		Menus	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	38904	Add action hook in class-walker-nav-menu-edit.php	adamsilverstein	Menus	normal	enhancement	assigned	2016-11-22T12:28:40Z	2020-12-23T19:26:32Z	"The class-walker-nav-menu-edit.php is lack for a simple action hook that let authors add their own fields to the admin menu.
In the last week I found 4 different users complaining their plugins/themes are not compatible ( Ubermenu, Geotargeting Pro, Salient theme and another theme I can't remember) because every of them are replacing the whole walker. 
The whole menu ecosystem could simple work by adding a hook ( patch added ) and makes totally sense.

We already have filters/actions  for settings wp_setup_nav_menu_item , wp_update_nav_menu_item so I don't see a reason of why not having a hook to add the gui of this fields without modifying the whole walker.

Related to https://core.trac.wordpress.org/ticket/18584 but could solve lot of issues until that ticket from 5 years got solved and merged."	timersys	4.7	dev-feedback
Enhancements Awaiting Review	48133	Please add filter on wp walker li  element		Menus	normal	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		
Enhancements Awaiting Review	47983	Menus: Only send non-empty values on menu save on nav-menus.php		Menus	normal	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		
Enhancements Awaiting Review	47657	Menu: In wp_link_pages() function add new args to wrap a tag		Menus	normal	feature request	new	2019-07-06T00:33:05Z	2019-07-08T06:54:27Z	"In the function `wp_link_pages()` the `$args` `link_before` and `link_after` are confusing for me.
IMHO `link_before` should be before link. Because `pagelink`
is for wrapping the text inside the link: `'pagelink' => '<span class=""test"">%</span>'`
for example will be ’<a href=""…"" class=""…""><span class=""test"">3</span></a>’.
But you can do the same thing with `'link_before' => '<span class=""test"">', 'link_after' => '</span>'`.

If there are new `$args` params, `link_wrap_before` for example, would be much easier to create a bootstrap pagination for example.

`$args = [ 'link_wrap_before' => '<li class=""list-item"">', 'link_wrap_after' => '</li>']`

should output:

`<li class=""list-item""><a href=""…"">…</a></li>`"	sandrowuermli		dev-feedback
Enhancements Awaiting Review	43383	Allow menu items to be inserted in place		Menus	normal	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	4.9.4	ui/ux
Enhancements Awaiting Review	43176	Nav Menu Search - add filters for query args		Menus	normal	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		needs-patch
Enhancements Awaiting Review	41800	Ability to collapse multi-level menus in the Menu editor		Menus	normal	enhancement	new	2017-09-05T14:04:37Z	2017-09-07T15:59:19Z	"When creating large menu structures in the Appearance > Menu editor, it can be very overwhelming when there's a number of top-level items with child items... almost becoming an eyesore and confusingly difficult to navigate.

Could we work to make any menu item within the editor have the ability to be collapsed? Along with the default state upon loading the editor to have them collapsed, with an icon to expand it."	atomicjack	4.9	
Enhancements Awaiting Review	37079	Add new filter pre_wp_get_nav_menu_items		Menus	normal	enhancement	new	2016-06-11T23:58:25Z	2017-08-17T18:32:01Z	Add a filter into wp_get_nav_menu_items function. This allows you to short-circuit the function and stop the get_objects_in_term (which is uncached) function from running. 	spacedmonkey		has-patch
Enhancements Awaiting Review	39862	Track the number of children for a walker element scope		Menus	normal	enhancement	reopened	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	4.7.2	has-patch
Enhancements Awaiting Review	40760	Make Walker_Page::start_lvl more flexible by introducing filters for class name(s) at least		Menus	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	35127	Allow wp_nav_menu() function to add container attributes, including Schema.org structured data		Menus	normal	enhancement	new	2015-12-17T00:06:34Z	2017-03-07T15:29:38Z	"I'd like to propose an enhancement that would improve the flexibility of the `wp_nav_menu()` function to allow additional attributes to be added to the `<nav>` container of menus.  The main purpose of this proposal is to enable the ability to add schema.org structured data attributes to the menu, but this could be extended to other purposes as well given its flexibility.

Currently, `wp_nav_menu()` offers 3 container-related arguments: `$container`, `$container_id`, and `$container_class`.  Using these arguments, we can create container elements such as


{{{
<nav id=""main-menu"" class=""my-menu"">
}}}

However, it is not possible to create elements with Structured Data such as the [https://schema.org/SiteNavigationElement SiteNavigationElement] as [https://developers.google.com/structured-data/schema-org recommended by Google], which would look like this


{{{
<nav id=""main-menu"" class=""my-menu"" role=""navigation"" itemscope=""itemscope"" itemtype=""http://schema.org/SiteNavigationElement"">
}}}


Adding the `role`, `itemscope`, and `itemtype` attributes is currently impossible with `wp_nav_menu()` (without resorting to error-prone string replacement), so theme authors and end users need to resort to hard-coding the menu wrapper in order to add such attributes.


My proposal is to add a new `container_atts` argument to `wp_nav_menu()`, which will allow arbitrary attributes to be added to the container when the `$container` argument is defined.

The changes required are very minimal and only apply to the `wp_nav_menu()` function in `wp-includes/nav-menu-template.php`

1. First, we just need to register `container_atts` as a valid argument in line 257 by adding it to the `$defaults` array


{{{
$defaults = array( 'menu' => '', 'container' => 'div', 'container_class' => '', 'container_id' => '', 'menu_class' => 'menu', 'menu_id' => '',
	'echo' => true, 'fallback_cb' => 'wp_page_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'items_wrap' => '<ul id=""%1$s"" class=""%2$s"">%3$s</ul>',
	'depth' => 0, 'walker' => '', 'theme_location' => '' , 'container_atts' => array() );
}}}

2. Next, we process and concatenate the attributes and add them to the container via the `$nav_menu` string on line 355


{{{
$atts = '';  //initialize string to concatenate attributes
foreach( $args->container_atts as $att => $att_val ){  //iterate over each attribute
	$atts.= ' '.$att;  //add attribute name, spaced out

	//Add attribute value, if it exists.  This logic allows for attributes without values
	if( ! empty( $att_val ) ) $atts.= '=""'.esc_attr( $att_val ).'""';
}
$nav_menu .= '<'. $args->container . $id . $class . $atts . '>';   //add the string of attributes to the nav/div container
}}}


That's all the code that would be required to enable this capability.  This then allows for function calls such as this:


{{{#!php
<?php
wp_nav_menu( array(
  'theme_location'  => 'primary',
  'container'       => 'nav',
  'container_class' => 'my-menu',
  'container_atts'  => array(
    'role'      => 'navigation',
    'itemscope' => 'itemscope',
    'itemtype'  => 'http://schema.org/SiteNavigationElement',
  )
));
}}}

Which would produce this output for the container element:


{{{
<nav class=""my-menu"" role=""navigation"" itemscope=""itemscope"" itemtype=""http://schema.org/SiteNavigationElement"">
}}}

(The other thing I might consider is calling `unset()` on the `id` and `class` keys in the `$container_atts` array, to prevent users from adding those attributes, since there are already dedicated arguments for them.  But that is likely adding more restriction than necessary.)


I think this would be a really simple change, and add a lot of flexibility to the `wp_nav_menu()` function.  Beyond just adding valuable attributes like structured data, adding data-attributes could be useful for javascript-driven applications, and I'm sure there are plenty of other possibilities I haven't thought of.

Thanks for your consideration!"	sevenspark	4.4	
Reporter Feedback / Close	65704	Some plugins which use a menu icon that is too large are breaking the admin side menu.		Menus	normal	defect (bug)	new	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		close
Reporter Feedback / Close	39196	When saving large menus the JSON encoded string was not used. related to  #14134		Menus	normal	defect (bug)	new	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	4.5	reporter-feedback
Reporter Feedback / Close	58005	Saving menus is slow		Menus	normal	defect (bug)	new	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	6.1.1	reporter-feedback
Reporter Feedback / Close	40872	Add $item argument to start_lvl (nav menu walker)		Menus	normal	feature request	new	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	4.7.5	close
Reporter Feedback / Close	55841	wp_get_nav_menu_items doesn't work properly		Menus	normal	defect (bug)	new	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	6.0	reporter-feedback
Reporter Feedback / Close	47139	function wp_logout_url urlencode causes issues in items wrap nav walker.	audrasjb	Menus	normal	defect (bug)	reviewing	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		reporter-feedback
Defects Awaiting Review, reported against trunk	66477	"Upgrade Network: ""All done!"" is shown when a subsite's upgrade request returns an HTTP error status"		Networks and Sites	normal	defect (bug)	new	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	trunk	has-patch
Defects Awaiting Review, reported against no version	36507	Invalid URLs in network admin when WP Core is in custom subdirectory		Networks and Sites	normal	defect (bug)	reopened	2016-04-13T09:47:36Z	2022-11-16T23:54:54Z	"In my setup, I have WordPress Core in a custom subdirectory, so my home URL for a site is like `http://example.com` while my site URL is like `http://example.com/core`.

In the network admin area, this results in invalid links since the `network_site_url()` function does not check whether WordPress is installed in a custom subdirectory. The links have a path like `/wp-admin/network/...` although they should have a path like `/core/wp-admin/network/...`."	flixos90		dev-feedback
Defects Awaiting Review	55454	clean_site_details_cache() doesn't clean all site caches		Networks and Sites	minor	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	4.7	
Defects Awaiting Review	53244	PHP Warning on non-existent multisite wp-cron.php		Networks and Sites	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	66216	Ensure valid HTML when using the myblogs_options filter		Networks and Sites	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	64006	Usermeta not stored for super-admin		Networks and Sites	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	43390	"get_super_admins() should not return ""admin"" by default"		Networks and Sites	normal	defect (bug)	new	2018-02-23T01:29:44Z	2026-08-10T11:56:43Z	"The function `get_super_admins()`, introduced in [14206], returns an array of users with network admin capabilities. Those are stored in the `site_admins` network option. 

If, for any reason, that network option does not exist, `get_super_admins()` will return a one-element array containing ''""admin""'' instead.

See [https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/capabilities.php#L761 line 761] in `wp-includes/capabilities.php`.

{{{#!php
return get_site_option( 'site_admins', array('admin') );
}}}

This goes back to a time when `admin` was the default username for the first WordPress user. Since administrators are now discouraged from using ''admin'' as a username, `get_super_admins()` should return an empty array by default:

{{{#!php
return get_site_option( 'site_admins', array() );
}}}"	thomaswm	3.0	has-patch
Defects Awaiting Review	52378	Network admin site action confirmation leads to expired link screen when referer not available	realloc*	Networks and Sites	normal	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		
Defects Awaiting Review	50228	Plugins can inadvertently trigger `wp_die()` infinite loop during site creation		Networks and Sites	normal	defect (bug)	new	2020-05-22T21:00:39Z	2026-07-23T15:17:52Z	"==== Problem

This is one example of an execution path that leads to an infinite loop, but there are probably several others. It can happen to any callback that tries to query a new site's tables after the `wp_insert_site` action, and before the `make_db_current_silent()` call inside `wp_initialize_site()`.

1. Creating a new site in a Multisite network will eventually call `wp_initialize_site()`
1. That calls `switch_to_blog()`
1. A plugin could hook into the `switch_blog()` action, and call `get_locale()`.
1. That calls `get_option()`, which will trigger a MySQL error, because the tables don't exist.
1. `wpdb->print_error( )` calls `_default_wp_die_handler()`
1. That calls `get_language_attributes()`, which calls `get_option()`
1. The process repeats until PHP gives up.

> ( ! ) Fatal error: Uncaught Error: Maximum function nesting level of '256' reached, aborting! in wp-includes/class-wp-hook.php on line 196

It's not obvious to plugin developers that this kind of thing can happen, so I think Core should handle it gracefully.

Related: #49263

==== Potential solutions

1. `wp_die()` coule call a new `_installing_wp_die_handler()` when `is_installing()` is `true`. This could be a minimal version of `_default_wp_die_handler()`, where no database queries are made.[[br]][[br]]
1. `_default_wp_die_handler()` could avoid calling `get_language_attributes()` when  `is_installing()` is `true`.[[br]][[br]]
1. Something else?"	iandunn		has-patch
Defects Awaiting Review	64021	wp_die() status code Network and Sites component updates (parent ticket: #64009)	johnjamesjacoby	Networks and Sites	normal	defect (bug)	assigned	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		has-patch
Defects Awaiting Review	63689	[Bug] My Sites dashboard layout doesn't adapt to long site names		Networks and Sites	normal	defect (bug)	new	2025-07-11T06:55:32Z	2025-07-15T08:23:04Z	"**Problem**: Site names that are longer than the fixed container width get truncated or cause layout issues in the My Sites dashboard.

**Current Behavior**: https://www.awesomescreenshot.com/image/55409211?key=e2878c76ab4d9779e9dc7a7ce348457a

**Expected Behavior**: Site containers should adapt to content width for better readability.

**Proposed Solution**: Add `width: auto` or similar responsive styling to site list items."	ratul01047	4.3	has-patch
Defects Awaiting Review	42284	Stop invalid query generation in WP_Site_Query		Networks and Sites	normal	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	4.6	
Defects Awaiting Review	47083	"Site Info Update Not Adjusting ""Last Updated"" Value"		Networks and Sites	normal	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	5.1.1	
Defects Awaiting Review	48442	"deleting a site leaves ""orphaned"" user options"		Networks and Sites	normal	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		
Defects Awaiting Review	42280	Multisite: get_blogs_of_user has no useful caching on large installs	pbearne*	Networks and Sites	major	defect (bug)	accepted	2017-10-19T16:18:51Z	2024-07-23T17:45:54Z	"While thinking about the changes that were happening in #40228 we started to investigate other places where functions had been switched to use `get_sites`.

Looking back through ""recent"" changes I found: [38682] / #37061.

Previously we would fetch all the user meta for a user and then use get_blog_details (and it’s inherent caching) to populate the list of blogs.

Now we fetch all the user meta for a user and then create a query for get_sites which as previously discussed has pointless caching on active multisites inside WP_Site_Query.

I'm opening this ticket to ensure that the caching is also reviewed here too."	westi	4.7	dev-feedback
Defects Awaiting Review	59556	WordPress Multisite issue - Media files presenting on Google with wrong domain		Networks and Sites	normal	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	6.3.1	
Defects Awaiting Review	58983	Old error message from 5.1 reappeared in 6.2.2		Networks and Sites	normal	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	6.2.2	
Defects Awaiting Review	51779	wpdb->get_blog_prefix() doesn't allow wp_1_tablename structures		Networks and Sites	normal	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		
Defects Awaiting Review	57483	Improve optimizations for WP_Site::get_instance and WP_Network::get_instance		Networks and Sites	normal	defect (bug)	new	2023-01-17T13:49:43Z	2023-06-08T12:14:07Z	"Following up on #42251 and r45910.

I recently ran into a problem with this specific optimization. In one case it resulted in an existing site being redirected to the main site as if it did not exist. In a second case it went all the way to `dead_db()`. In both instances the existing site in question had a `-1` stored in the object cache. Both problems persisted until the object cache was flushed.

I think the main problem is that in `WP_Site::get_instance` (and Network) we do not account for `wpdb::get_row` failing, we don't check `last_error`. This means that a brief database outage can cause a permanent `-1` be saved in object cache for a site that actually does exist.

It's not easy to reproduce, as the existing/valid sites will be in cache most of the time, so that portion of the codebase is rarely executed. However, there is one core function that helps with this tremendously. It's `wpmu_update_blogs_date` and it invalidates the site cache every time it needs to update the timestamp (when a post is published or update for example).

I wrote this little mu-plugin to help reproduce the problem:

{{{
add_action( 'muplugins_loaded', function() {
    switch_to_blog( 3 );
    wpmu_update_blogs_date();
    restore_current_blog();
    die();
} );
}}}

I fire some traffic at the site and observed the MySQL query log to confirm a significant amount of `UPDATE` queries for the site timestamp, as well as `SELECT * FROM wp_blogs ...` queries which came from `WP_Site::get_instance()`.

Next, I simulated some turbulence in the network, by killing all established connections on the MySQL port 3306 (using tcpkill), resulting in a few ""MySQL has gone away"" errors in the PHP error log. I did this a couple of times until the site with the ID of 3 disappeared from My Sites in the Network Admin.

I confirmed the object cache state in Redis:

{{{
127.0.0.1:6379> get sites:3
""-1""
}}}

I was able to reproduce this quite reliably with about 50 concurrent requests to the site, and 2-3 rounds of tcpkill. Of course it doesn't happen all that often under normal conditions, though I was unlucky enough to see it happen twice in the last 6 months (on very high traffic sites with plenty of updates).

Personally I feel like we should revert this entire optimization. As much as I appreciate all the hard work, I don't see much benefit of caching IDs that don't exist, much like we don't cache posts that do not exist.

At the very least though, we should check the `last_error` before caching a `-1` in both cases."	kovshenin	5.3	has-patch
Defects Awaiting Review	50814	Success Message Displays on Failure to Update Site Address		Networks and Sites	normal	defect (bug)	new	2020-07-29T21:03:51Z	2022-02-11T15:36:32Z	"There's a misleading success message, ""Site info updated"" that displays on page refresh after you attempt to update an individual site's address to one that is already in use.

(I'll attach a screen recording of an example!)"	megabyterose	5.4.2	has-patch
Defects Awaiting Review	46361	WPMU - HTTP Request at root path with special character in query key name causes endless loop		Networks and Sites	critical	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	5.1	
Defects Awaiting Review	27832	All sites automatically marked as archived after upgrade		Networks and Sites	normal	defect (bug)	new	2014-04-16T10:47:37Z	2018-12-08T15:08:06Z	"Strange thing, all sites were automatically marked as archived after automatic upgrade to 3.8.3. Maybe it is not related, but it was the last thing which is time-related to this problem.

I checked database tables and all sites had archived = 1 in wp_blogs, but last_update column was not changed. So, it suggests, that it was not done by administrator. Administrator can archive primary site? Then it is not possible to access administration...

I repaired it by setting 0 for all sites, but I am not sure, how could it happen? Do you have any ideas? There are no plugins which could cause it. I searched code and did not find any clue. Also hosting company is used for many other Multisite installations without problems.

There are also some posts from different forums (usually somehow related to WordPress upgrade), but they are only talking about fixing problem and not about finding why...

http://wordpress.org/support/topic/site-automagically-archived-or-suspended-on-multisite
http://wordpress.org/support/topic/after-install-site-has-been-suspended-or-archived
http://wpgarage.com/tips/unarchive-archived-suspended-site-wordpress-multisite/

Not sure, if it is some kind of bug, incompatibility or security hole..."	pavelevap	3.7	needs-patch
Defects Awaiting Review	42557	Wrong Behaviour on get_site_url for multiple sites with different protocol		Networks and Sites	normal	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	4.9	
Defects Awaiting Review	40465	Multisite fails to rewrite upload path on main site		Networks and Sites	normal	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	4.7.3	
Enhancements Awaiting Review	53338	Determine when there is an error submitting the wp-signup.php form		Networks and Sites	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	26861	Too easy to delete a site in Multisite	flixos90	Networks and Sites	minor	enhancement	reviewing	2014-01-17T14:49:07Z	2026-10-13T07:42:33Z	"Currently, deleting a site in Multisite is very easy. There is no warning what deleting a site actually means, and  nothing to show a user they are about to perform a destructive action. Just the ability to confirm, not even cancel!

I'm not sure what the prompt should actually say, or if there is a better way to do a prompt, or if the button should just be red, but there's for sure something we can change here to make a better experience."	bradparbs		has-patch
Enhancements Awaiting Review	65455	"Add ""multisite"" as new tab on the plugin install page on multisite installations"		Networks and Sites	normal	enhancement	new	2026-06-12T12:47:45Z	2026-08-30T15:40:19Z	"Discussed this with @desrosj at WordCamp Europe 2026 Contributor Day:

We could add a new tab to the plugin install page if we are on a multisite installation. 

Of course this is a decision of the plugin author to use this tag and it could be easily achieved with your own search, but this would require to set the dropdown to `tag` and type ""multisite"" yourself.

Offering an easy link to get all plugins tagged with ""multisite"" could help to find plugins that are helpful in this multisite environment."	zodiac1978		dev-feedback
Enhancements Awaiting Review	50100	Native domain mapping does not handle both WWW and non-WWW versions of a domain - both should work		Networks and Sites	normal	enhancement	new	2020-05-06T10:25:14Z	2026-08-10T08:34:59Z	"The native domain mapping only works for the exact domain entered, and does not automatically redirect www to non-www (if a non-www was entered) or non-www to www (if a www domain was entered).

== Examples

=== Example – “WWW” Mapped Domain:

* Multisite core domain: `xyz.com`
* Subsite original address: `abc.xyz.com`
* Subsite once mapped: `www.abc.com`

**What happens:**

* Visiting `www.abc.com` shows the site (as expected)
* Visiting `abc.com` does not show the site – it instead shows the multisite registration page – `xyz.com/wp-signup.php?new=abc.com`

**What I expected to happen:**

Visiting `abc.com` should automatically redirect to `www.abc.com` because that is the mapped domain


=== Alternative Example – non-WWW Mapped Domain:

* Multisite core domain: `xyz.com`
* Subsite original address: `abc.xyz.com`
* Subsite once mapped: `abc.com`

**What happens:**

* Visiting `abc.com` shows the site (as expected)
* Visiting `www.abc.com` does not show the site – it instead shows the multisite registration page – `xyz.com/wp-signup.php?new=www.abc.com`

**What I expected to happen:**

Visiting `www.abc.com` should automatically redirect to `abc.com` because that is the mapped domain.

== Possible Arguments
=== Technical Arguments vs Human Experience

One technical argument presented for this is that `abc.com` and `www.abc.com` are two distinct domain entities. Just like `images.google.com` and `fonts.google.com` are two distinct domain entities. While this argument is ''technically'' correct it is not correct ''practically'' as it  ignores best practice and the human-user element of how websites have worked for 20 years. 

While ""www.google.com"" and ""google.com"" are two technically different domains, in reality no website owner should ever point these to two different sites! It would be ridiculous to do so. 

So while other subdomain entries do not need to be allowed for, there should be an automatic allowance for ""www"" and the root domain to automatically redirect between each other based on whether the mapped domain was entered with www or not. 

=== Should This Be Core? 

A key question with every enhancement request is whether or not something should actually be part of WordPress core, or be left to a plugin.

The official [https://wordpress.org/support/article/wordpress-multisite-domain-mapping/ domain mapping documentation] states: 

> Before WordPress 4.5, domain mapping requires a domain mapping plugin like WordPress MU Domain Mapping. 
> In WordPress 4.5+, domain mapping is a native feature.

So the official recommendation is that core can take care of the domain mapping on multisite installations. 

However, there is no mention anywhere on the page that this native domain mapping will not work for the standard behaviour of automatically handling both the www and root versions of the domain. Since this is the way all websites normally work, if it was the intentional behaviour it seems to be a glaring omission from the documentation. 

I reason that WordPress multisite users would not expect to map abc.com and have www.abc.com fail to load the site, and instead get redirected to the multisite registration page. 


== Possible Solutions

=== Could it be solved through htaccess rules?

When setting up a multisite the steps include changing the contents in the htaccess file.

Redirecting between www and root for domains can be done at an htaccess level, so could a clever htaccess rule be written to handle this for all mapped domains that get added to the site? 

If this approach was to be used, it would need to handle a wide variety of scenarios: 

* It would need to exclude the core multisite domain and all its sub-domains from being affected. (Only mapped domains should be affected)
* Having a blanket ""redirect root to www"" for all subdomains, or vice versa is not ideal. Some mapped domains might specifically want to be shown with www or without www. A blanket htaccess rule wouldn't know whether the user mapped a www or root domain. 

So I don't think setting a blanket rule from .htaccess is a good solution.

=== PHP Redirect
I believe the solution needs to be PHP specific.  The redirection should apply to mapped domains only, and should assess whether the mapped domain begins with ""www."" or not.  If not, then WordPress should redirect www traffic for that domain to the root version of that domain.  If it does begin with ""www."" then traffic seeking the root domain should be automatically redirected to the www domain.


== Related Tickets
**#48197 Add support for assigning multiple domains to a single site in multisite**

Ticket 48197 is asking for much more than this ticket of mine is suggesting. While it could be used to solve this problem, it is functionality that extends beyond where core WordPress needs to serve. It is more of a nice-to-have that can be served by plugins. Therefore, although it is related, I see ticket 48197 as having less valid arguments for being included in core, which is why this posted as a separate ticket.


== Summary

The current domain mapping that is built into core has this enormous problem in usability. Site owners would not expect their site to work for ""www.abc.com"" but send visitors who entered ""abc.com"" to a registration page for the multisite. This is a bad user experience.

When using multisite native domain mapping, WordPress should automatically account for www and non-www and redirect between the two, depending on whether the domain entered started with www or not.

"	jodamo5	5.4.1	has-patch
Enhancements Awaiting Review	49564	Allow developers to set mail headers in wpmu_welcome_user_notification function		Networks and Sites	minor	feature request	new	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		has-patch
Enhancements Awaiting Review	65803	Multisite: Add Network Setting and capabilities to restrict Connectors management on subsites		Networks and Sites	normal	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		
Enhancements Awaiting Review	55488	Add a filter to array of allow ported number in multisite.		Networks and Sites	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	63631	MultiSite: Remove links to Manage Comments for sites that don't have Comments (or similar logic)		Networks and Sites	normal	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		
Enhancements Awaiting Review	65254	wp_signup_url() function proposal		Networks and Sites	normal	enhancement	new	2026-05-16T15:32:42Z	2026-07-26T09:59:11Z	"Hello everyone,

I noticed that WordPress already provides several helper functions to retrieve authentication-related URLs, such as:


{{{
wp_login_url()
wp_logout_url()
wp_registration_url()
}}}

However, there does not seem to be an equivalent function for retrieving the Multisite signup URL.

Developers currently need to manually build or retrieve the signup URL, typically using {{{network_site_url( 'wp-signup.php' )}}}. This may create inconsistency and make registration/signup URL handling less uniform.

Additionally, WordPress already relies in multiple places on the following filter:

{{{
apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
}}}

This seems to indicate that there is already a need for a centralized and filterable signup URL mechanism, but currently there is no dedicated global helper function encapsulating this behavior.

I would like to propose adding a new function:

{{{
wp_signup_url()
}}}

Possible behavior:

- In Multisite, return the filtered network signup page URL.
- In non-Multisite installations, it could return {{{wp_registration_url()}}}.

Example implementation idea:

{{{#!php
<?php
function wp_signup_url() {

   if( is_multisite() ) {
       return apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
   }

   return wp_registration_url();

}
}}}

Benefits:

- Improves API consistency.
- Centralizes signup URL generation logic.
- Ensures consistent application of the wp_signup_location filter.
- Simplifies plugin and theme development.
- Avoids repeated custom implementations across projects.
- Provides a clearer semantic distinction between registration and Multisite signup flows..

I’d be happy to hear feedback about the preferred behavior for non-Multisite installations and whether this could be a useful addition to Core."	virgodesign		
Enhancements Awaiting Review	55263	Multisite: Multidomain Single Sign On		Networks and Sites	normal	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		
Enhancements Awaiting Review	49936	"Add ""deactivate"" & ""archive"" bulk options to network site management"		Networks and Sites	minor	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	5.4	
Enhancements Awaiting Review	64863	Eliminate switch_to_blog() from get_blog_option(), update_blog_option(), WP_Site::get_details(), and get_blog_post() using $wpdb->get_blog_prefix()		Networks and Sites	normal	enhancement	new	2026-03-14T22:37:58Z	2026-04-30T06:36:50Z	"== Description ==

`switch_to_blog()` mutates six globals and, on the fallback object-cache implementation, **wipes the entire object cache** via `wp_cache_init()` inside `wp_cache_switch_to_blog_fallback()`. Every `switch_to_blog()` / `restore_current_blog()` pair is two full global-state mutations.

Several core functions use `switch_to_blog()` internally even though they only need to read or write a single row in a per-site table. This ticket proposes replacing those internal switches with direct queries using `$wpdb->get_blog_prefix( $blog_id )`, which is a **pure function** — no side-effects, no globals written.

=== Globals mutated by switch_to_blog() ===

||= Global mutated =||= What changes =||
|| `$wpdb->blogid` / `$wpdb->prefix` || Table prefix rewritten (e.g. `wp_` → `wp_3_`) ||
|| `$wpdb->options`, `$wpdb->posts`, … || All per-blog table properties rewritten ||
|| `$GLOBALS['table_prefix']` || Mirrors the new prefix ||
|| `$GLOBALS['blog_id']` || Set to new blog ID ||
|| `$GLOBALS['_wp_switched_stack']` || Previous ID pushed ||
|| `$GLOBALS['switched']` || Set to `true` ||
|| `$wp_object_cache` || Full cache wipe on fallback ||

=== Real-world impact ===

Any plugin or core code that iterates over sites and accesses `blogname`, `siteurl`, or other per-site options triggers `switch_to_blog()` for each site — either directly via `get_blog_option()` or indirectly via `WP_Site::get_details()` (called by `WP_Site::__get()` for magic properties like `blogname` and `siteurl`).

For a network with 100 sites, a single loop fetching `blogname` and `siteurl` causes **~200 global-state mutations** (100 switch + 100 restore).

----

== The Key Insight ==

`wpdb::get_blog_prefix( $blog_id )` already exists as a public method, accepts an explicit blog ID, and returns the correct table prefix **without touching any global state**:

{{{#!php
// From class-wpdb.php — pure computation, no side-effects:
public function get_blog_prefix( $blog_id = null ) {
    if ( is_multisite() ) {
        if ( null === $blog_id ) {
            $blog_id = $this->blogid;
        }
        $blog_id = (int) $blog_id;
        if ( defined( 'MULTISITE' ) && ( 0 === $blog_id || 1 === $blog_id ) ) {
            return $this->base_prefix;
        } else {
            return $this->base_prefix . $blog_id . '_';
        }
    }
    return $this->base_prefix;
}
}}}

Core already uses this pattern for non-options tables (e.g. `ms-functions.php` line 2003 queries `{prefix}posts` directly). The only reason `{prefix}options` is never queried this way is that `get_option()` has no table parameter — not because direct queries are prohibited.

----

== Proposed Changes ==

=== 1. New private helper: `_get_option_from_blog()` ===

Add to `wp-includes/ms-blogs.php`. Reads a single option from any site's `wp_N_options` table without switching. Handles object-cache correctly (same `alloptions` / `notoptions` groups as `get_option()`).

{{{#!php
/**
 * Retrieves an option value for a specific site without switching blog context.
 *
 * Uses the object cache (same 'options'/'notoptions' groups as get_option()),
 * falling back to a direct DB query with the site's table prefix.
 *
 * @since 7.x.0
 * @access private
 *
 * @param int    $blog_id  Site ID.
 * @param string $option   Option name.
 * @param mixed  $default  Default value if option not found.
 * @return mixed Option value or $default.
 */
function _get_option_from_blog( int $blog_id, string $option, mixed $default = false ): mixed {
    global $wpdb;

    $blog_id = (int) $blog_id;

    // Fast path: current blog — delegate to get_option().
    if ( get_current_blog_id() === $blog_id ) {
        return get_option( $option, $default );
    }

    // Check object cache.
    $alloptions_cache = wp_cache_get( $blog_id, 'blog-alloptions' );
    if ( is_array( $alloptions_cache ) && array_key_exists( $option, $alloptions_cache ) ) {
        return $alloptions_cache[ $option ] ?? $default;
    }

    $notoptions = wp_cache_get( $blog_id, 'blog-notoptions' );
    if ( is_array( $notoptions ) && isset( $notoptions[ $option ] ) ) {
        return $default;
    }

    // Direct DB query using get_blog_prefix() — no switch.
    $table = $wpdb->get_blog_prefix( $blog_id ) . 'options';
    $row   = $wpdb->get_row(
        $wpdb->prepare(
            ""SELECT option_value FROM `{$table}` WHERE option_name = %s LIMIT 1"",
            $option
        )
    );

    if ( null === $row ) {
        $notoptions           = is_array( $notoptions ) ? $notoptions : [];
        $notoptions[ $option ] = true;
        wp_cache_set( $blog_id, $notoptions, 'blog-notoptions' );
        return $default;
    }

    $value = maybe_unserialize( $row->option_value );

    return apply_filters( ""blog_option_{$option}"", $value, $blog_id );
}
}}}

=== 2. Refactor `get_blog_option()` ===

Replace the `switch_to_blog()` / `get_option()` / `restore_current_blog()` sequence with a single call to the new helper.

{{{#!php
// BEFORE (ms-blogs.php):
function get_blog_option( $id, $option, $default_value = false ) {
    $id = (int) $id;
    if ( empty( $id ) ) { $id = get_current_blog_id(); }

    if ( get_current_blog_id() === $id ) {
        return get_option( $option, $default_value );
    }

    switch_to_blog( $id );
    $value = get_option( $option, $default_value );
    restore_current_blog();

    return apply_filters( ""blog_option_{$option}"", $value, $id );
}

// AFTER:
function get_blog_option( $id, $option, $default_value = false ) {
    $id = (int) $id;
    if ( empty( $id ) ) { $id = get_current_blog_id(); }

    return _get_option_from_blog( $id, $option, $default_value );
}
}}}

=== 3. Refactor `update_blog_option()` ===

Replace `switch_to_blog()` + `update_option()` + `restore_current_blog()` with a direct `$wpdb->update/insert` against `{prefix}options`.

{{{#!php
// AFTER:
function update_blog_option( $id, $option, $value, $deprecated = null ) {
    global $wpdb;
    $id = (int) $id;

    if ( null !== $deprecated ) {
        _deprecated_argument( __FUNCTION__, '3.1.0' );
    }

    if ( get_current_blog_id() === $id ) {
        return update_option( $option, $value );
    }

    $table      = $wpdb->get_blog_prefix( $id ) . 'options';
    $serialized = maybe_serialize( $value );
    $exists     = $wpdb->get_var(
        $wpdb->prepare( ""SELECT COUNT(*) FROM `{$table}` WHERE option_name = %s"", $option )
    );

    if ( $exists ) {
        $result = $wpdb->update(
            $table,
            [ 'option_value' => $serialized ],
            [ 'option_name'  => $option ],
            [ '%s' ],
            [ '%s' ]
        );
    } else {
        $result = $wpdb->insert(
            $table,
            [ 'option_name' => $option, 'option_value' => $serialized, 'autoload' => 'yes' ],
            [ '%s', '%s', '%s' ]
        );
    }

    // Bust per-blog option caches.
    wp_cache_delete( $id, 'blog-alloptions' );
    wp_cache_delete( $id, 'blog-notoptions' );

    return false !== $result;
}
}}}

Apply the same pattern to `add_blog_option()` and `delete_blog_option()`.

=== 4. Refactor `WP_Site::get_details()` ===

In `class-wp-site.php`, `get_details()` (private) fetches `blogname`, `siteurl`, `post_count`, and `home` via `switch_to_blog()`. Replace with four calls to `_get_option_from_blog()`:

{{{#!php
// AFTER:
private function get_details() {
    $details = wp_cache_get( $this->blog_id, 'site-details' );

    if ( false === $details ) {
        $id      = (int) $this->blog_id;
        $details = new stdClass();
        foreach ( get_object_vars( $this ) as $key => $value ) {
            $details->$key = $value;
        }
        $details->blogname   = _get_option_from_blog( $id, 'blogname' );
        $details->siteurl    = _get_option_from_blog( $id, 'siteurl' );
        $details->post_count = _get_option_from_blog( $id, 'post_count', 0 );
        $details->home       = _get_option_from_blog( $id, 'home' );

        wp_cache_set( $this->blog_id, $details, 'site-details' );
    }

    $details = apply_filters_deprecated( 'blog_details', [ $details ], '4.7.0', 'site_details' );
    $details = apply_filters( 'site_details', $details );

    return $details;
}
}}}

=== 5. Refactor `get_blog_post()` ===

In `ms-functions.php`, replace `switch_to_blog()` + `get_post()` + `restore_current_blog()` with a direct query against `{prefix}posts`:

{{{#!php
// AFTER:
function get_blog_post( $blog_id, $post_id ) {
    global $wpdb;

    $blog_id = (int) $blog_id;
    $post_id = (int) $post_id;

    if ( get_current_blog_id() === $blog_id ) {
        return get_post( $post_id );
    }

    $table = $wpdb->get_blog_prefix( $blog_id ) . 'posts';
    $post  = $wpdb->get_row(
        $wpdb->prepare( ""SELECT * FROM `{$table}` WHERE ID = %d LIMIT 1"", $post_id )
    );

    if ( ! $post ) {
        return null;
    }

    return sanitize_post( new WP_Post( $post ), 'raw' );
}
}}}

----

== Object-Cache Considerations ==

The new `_get_option_from_blog()` helper must:

 * Use the same cache group strategy as `get_option()` — `blog-alloptions` for autoloaded options, `blog-notoptions` for known-missing options.
 * Bust caches on write — `add_blog_option`, `update_blog_option`, `delete_blog_option` must invalidate the same keys.
 * Lazy-load `alloptions` — on first access for a given `$blog_id`, fetch all autoloaded options in one query and cache them in `blog-alloptions`, mirroring `wp_load_alloptions()`.

----

== Out of Scope ==

These functions have deeper coupling to the switched context and are out of scope for an initial patch:

||= Function =||= Reason =||
|| `wp_initialize_site()` || Runs dozens of core operations on a new site's tables ||
|| `wp_uninitialize_site()` || Drops tables, clears all site data ||
|| Third-party plugin code || Cannot be fixed in core ||

----

== Files Changed ==

||= File =||= Change =||
|| `wp-includes/ms-blogs.php` || Add `_get_option_from_blog()` private helper ||
|| `wp-includes/ms-blogs.php` || Refactor `get_blog_option()` to use helper ||
|| `wp-includes/ms-blogs.php` || Refactor `update_blog_option()` — direct `$wpdb` query ||
|| `wp-includes/ms-blogs.php` || Refactor `add_blog_option()` — direct `$wpdb->insert` ||
|| `wp-includes/ms-blogs.php` || Refactor `delete_blog_option()` — direct `$wpdb->delete` ||
|| `wp-includes/class-wp-site.php` || Refactor `WP_Site::get_details()` to use `_get_option_from_blog()` ||
|| `wp-includes/ms-functions.php` || Refactor `get_blog_post()` — direct `$wpdb` query ||

All changes exploit `$wpdb->get_blog_prefix( $blog_id )`, which is already public, purpose-built, and side-effect-free.

----

== Testing Notes ==

 * Unit tests for `get_blog_option()`, `update_blog_option()`, `add_blog_option()`, `delete_blog_option()` — verify return values match current behaviour.
 * Unit test for `WP_Site::__get('blogname')` / `WP_Site::__get('siteurl')` — verify values match after refactor.
 * Verify object cache is populated and busted correctly (test with both fallback and persistent cache drop-ins).
 * Verify `$GLOBALS['switched']` is **not** set to `true` after `get_blog_option()` (regression test for the switch removal).
 * Performance benchmark: loop over N sites calling `get_blog_option( $id, 'blogname' )` — measure wall time before/after.
"	PerS		has-patch
Enhancements Awaiting Review	59173	Improve optimizations of get_site_url by not using switch_to_blog		Networks and Sites	normal	enhancement	closed	2023-08-23T14:15:11Z	2026-03-15T21:22:16Z	"I belive a better approach would be to use the `WP_Site_Query` query, as in:


{{{#!php
<?php
function get_site_url( $blog_id = null, $path = '', $scheme = null ) {
	if ( empty( $blog_id ) || ! is_multisite() ) {
		$url = get_option( 'siteurl' );
	} else {

		// Use WP_Site_Query to get the site URL.
		$site = get_site( $blog_id );

		$url = $site->domain . $site->path;

		// If the network has a custom domain, use that instead.
		if ( $site->domain !== \get_network()->domain ) {
			$url = get_network()->domain . $site->path;
		}
	}

	$url = set_url_scheme( $url, $scheme );

	if ( $path && is_string( $path ) ) {
		$url .= '/' . ltrim( $path, '/' );
	}

	/**
	 * Filters the site URL.
	 *
	 * @since 2.7.0
	 *
	 * @param string      $url     The complete site URL including scheme and path.
	 * @param string      $path    Path relative to the site URL. Blank string if no path is specified.
	 * @param string|null $scheme  Scheme to give the site URL context. Accepts 'http', 'https', 'login',
	 *                             'login_post', 'admin', 'relative' or null.
	 * @param int|null    $blog_id Site ID, or null for the current site.
	 */
	return apply_filters( 'site_url', $url, $path, $scheme, $blog_id );
}
}}}
 "	PerS		has-patch
Enhancements Awaiting Review	39334	Network administrators should be able to enable themes on the site level		Networks and Sites	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	64441	Make Subdirectory networks compatible with custom wp-content directories		Networks and Sites	normal	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		
Enhancements Awaiting Review	63885	Re-implement the Network Admin “Sites” dashboard using DataViews and DataForm		Networks and Sites	normal	feature request	new	2025-08-26T21:15:14Z	2025-09-26T09:55:47Z	"The current Network Admin → Sites screen is still based on the legacy WP_List_Table implementation. To align it with modern WordPress interfaces, we propose re-implementing this screen using `DataViews` and `DataForm` from the Gutenberg project.

This would improve consistency across the admin, provide more flexible filtering and bulk actions, and make the codebase easier to extend and maintain.

Initial steps:

- Create or re-use the container in the Network Admin where the JS application will be mounted.
- Create a REST API endpoint that exposes get_sites() via GET.
- Add scripts to interact with this endpoint using `DataViews`.
- Create a REST API endpoint that accepts POST requests to save changes.
- Add scripts to interact with this endpoint using `DataForm`.

Notes:
- This is a feature request and will require time and several iterations.
- The first implementation can be minimal (just listing sites), with filters, sorting, and bulk actions added in later iterations.
- Feedback from both developers and multisite users will be crucial in shaping the final interface."	realloc		has-patch
Enhancements Awaiting Review	63910	In wp_switch_roles_and_user there is no cast to int applied to $new_site_id and $old_site_id		Networks and Sites	minor	enhancement	new	2025-09-02T13:10:24Z	2025-09-04T08:44:45Z	"In function wp_switch_roles_and_user in file wp-includes/ms-blogs.php there is the following `if`

{{{#!php
<?php
if ( $new_site_id === $old_site_id ) {
		return;
}
}}}

In other cases, when WP is using a $site_id, it applies an int casting to be sure to use the right variable type - see funtions

populate_site_meta
get_instance in WP_Site class
.... 

I think you must add casting to both variables $new_site_id and $old_site_id before compare them using === operator or change the operator to == 

Thanks for your work

Diego
 

"	eumene	4.9.8	
Enhancements Awaiting Review	63378	"Multisite attribute for ""retired"" sites"		Networks and Sites	normal	feature request	new	2025-05-01T13:45:09Z	2025-07-02T21:55:58Z	"We have a multisite installation that has a large number of sites developed over multiple years.

The manager of the site wants to be able to ""archive"" sites that will no longer have new posts - but in a way that the site is still available. (I refer to this as ""retired"" rather than the current use of ""archived"" in WordPress multisite.)

This status might result in properties such as

* the site would still function normally from the perspective of a normal visitor
* we might use the status to add a banner to pages informing user the site has been retired
* the site list in the network admin would show retired sites differently (as with archived sites)
* all new comments would be disabled
* non-admins would not be able to create new posts or pages or add uploads
* some cron jobs would run less frequently if at all"	leedxw		
Enhancements Awaiting Review	48901	WordPress multisite with subdirectories sites using the same 'Site Title'		Networks and Sites	normal	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	5.3	
Enhancements Awaiting Review	39711	Allow network administrator to network activate/deactivate/delete a plugin on sub site plugin list table		Networks and Sites	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	37958	Improve looping through sites and restoring		Networks and Sites	normal	enhancement	new	2016-09-06T17:58:26Z	2025-03-19T11:30:57Z	"[https://wordpress.slack.com/archives/core-multisite/p1473179575000111 As discussed] in the recent multisite ~~hours~~ minutes, I would like to propose (and discuss) a better means to looping through a number of (or even all) sites and finally restoring to the state before the loop.

The naive approach looks like the following:

{{{#!php
<?php
foreach ( $some_or_all_site_ids as $site_id ) {
    switch_to_blog( $site_id );

    // Do some (maybe expensive) things on the site.

    restore_current_blog();
}
}}}

This is not ideal as in all but the last case we don't really want to restore, but just switch to the next site.

An ''improved'' version then would look like this:


{{{#!php
<?php
$__site_id  = get_current_blog_id();
$__stack    = $GLOBALS['_wp_switched_stack'];
$__switched = $GLOBALS['switched'];

foreach ( $some_or_all_site_ids as $site_id ) {
    switch_to_blog( $site_id );

    // Do some (maybe expensive) things on the site.
}

switch_to_blog( $__site_id );
$GLOBALS['_wp_switched_stack'] = $__stack;
$GLOBALS['switched']           = $__switched;
}}}

This, however, doesn't look nice. Moreover, you would have to do this for every loop again and again.

So, why not abstract out the logic into a statically creatable ''snapshot'' of the current network state?

[https://gist.github.com/tfrommen/51d80f6d327d4d254ad9ace09b8d3fdc My suggestion] for such a class looks like the following (which is already in use in the wild):

{{{#!php
<?php
/**
 * Save and restore the current network state.
 *
 * By using this class, you can avoid unnecessary
 * switch_to_blog()-restore_current_blog()-switch_to_blog()-... excesses.
 */
class NetworkState {

	/**
	 * @var int
	 */
	private $site_id;

	/**
	 * @var int[]
	 */
	private $stack;

	/**
	 * @var bool
	 */
	private $switched;

	/**
	 * Constructor. Sets up the properties.
	 */
	public function __construct() {

		global $_wp_switched_stack, $switched;

		$this->site_id = get_current_blog_id();

		$this->stack = $_wp_switched_stack;

		$this->switched = $switched;
	}

	/**
	 * Returns a new instance representing the current network state.
	 *
	 * @return static Network state object.
	 */
	public static function create() {

		return new static();
	}

	/**
	 * Restores the saved network state.
	 *
	 * @return void
	 */
	public function restore() {

		switch_to_blog( $this->site_id );

		$GLOBALS['_wp_switched_stack'] = $this->stack;

		$GLOBALS['switched'] = $this->switched;
	}
}
}}}

With this class, the `foreach`-loop code from before can become this:

{{{#!php
<?php
$network_state = NetworkState:create();

foreach ( $some_or_all_site_ids as $site_id ) {
    switch_to_blog( $site_id );

    // Do some (maybe expensive) things on the site.
}

$network_state->restore();
}}}

No matter what happens in the loop (and thus in any called function or method), we restore to the exact same state the network was in before the loop.

The above implementation works with the (currently available and used) globals. As soon as there is some other way (see #37699), this can easily be adapted as it's internals only.

The naming is just a suggestion, and we can, of course, baptize all the things differently.

Core could make use of it, too. For example in the [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/ms.php?rev=38334#L221 `wpmu_delete_user()] function, during [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/network/upgrade.php?rev=38229#L64 Network upgrade], or in the [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/admin-bar.php?rev=38470#L461 wp_admin_bar_my_sites_menu()] function (!), which means: On. Every. Single. Page. Load.

I'd be happy to provide a full patch against trunk. I just wanted to propose this first and give opportunity to discuss this."	tfrommen		has-patch
Enhancements Awaiting Review	45839	Use site meta for blog details		Networks and Sites	normal	enhancement	new	2019-01-05T06:32:13Z	2025-02-12T16:03:56Z	Currently details about each site is received from each site's options. This means, that every time a WP_Site object is loaded, it may end up calling switch_to_blog. This is expensive and wasteful. This fields should be cached in site meta, which will improve load times and makes it easier to manage.	spacedmonkey	4.6	dev-feedback
Enhancements Awaiting Review	59981	PHPUnit tests for is_main_network		Networks and Sites	normal	enhancement	new	2023-11-28T23:34:10Z	2025-02-12T15:53:21Z		pbearne		has-patch
Enhancements Awaiting Review	61622	Site Attributes update - Site Status Field		Networks and Sites	normal	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		
Enhancements Awaiting Review	61026	There is no easy way to add custom states to site-info.php		Networks and Sites	minor	enhancement	new	2024-04-17T20:10:00Z	2024-04-18T09:10:17Z	"On `/wp-admin/network/sites.php` with the usage of hook listed below we can add new states to the page (see attachment).

1. `$views = apply_filters( ""views_{$this->screen->id}"", $views );` \\ @ `wp-admin/includes/class-wp-list-table.php` line 515 and
2. `$site_states = apply_filters( 'display_site_states', $site_states, $_site );` \\ @ `wp-admin/includes/class-wp-ms-sites-list-table.php` line 671

The issue is that on `wp-admin/network/site-info.php` there is no way to add our own states to the core states. There is no filter that grants access to the variable that contains the data which WP uses to render the state fields with. This should be looked at. For it makes zero sense to be able to add new states elsewhere but not on page `wp-admin/network/site-info.php`. 
"	ignatiusjeroe	6.5	
Enhancements Awaiting Review	57408	Show at which sites in the multisite a plugin or theme is installed		Networks and Sites	normal	feature request	new	2022-12-31T15:42:49Z	2023-12-18T12:19:13Z	"Please add to each item in the lists of plugins and themes in the multisite WordPress list of sites for which this plugin or theme is installed.

It is especially useful to find plugins that are not installed (installed on zero sites) for candidates for removal."	porton	6.1.1	
Enhancements Awaiting Review	58296	CSS coding standards issue in 'wp-activate.php'		Networks and Sites	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	46641	Add site_id to WP_Post object		Networks and Sites	normal	enhancement	new	2019-03-25T14:07:42Z	2022-10-26T13:50:49Z	"Hi,

I work on a multisite, where each website can get all posts (from one post type or not).
It seem interesting to add new line in object response (get_post() for example) : ""site_id"" (where site_id is an int)

- site_id is 1 per default (if no multisite)

{{{
WP_Post Object
(
    [ID] =>
    [post_author] =>
    [post_date] => 
    [post_date_gmt] => 
    [post_content] => 
    [post_title] => 
    [post_excerpt] => 
    [post_status] =>
    [comment_status] =>
    [ping_status] => 
    [post_password] => 
    [post_name] =>
    [to_ping] => 
    [pinged] => 
    [post_modified] => 
    [post_modified_gmt] =>
    [post_content_filtered] => 
    [post_parent] => 
    [guid] => 
    [menu_order] =>
    [post_type] =>
    [post_mime_type] => 
    [comment_count] =>
    [filter] =>
    [site_id] =>
)
}}}

If this feature is good for some people, I can make this change and submit here
"	Spidlace	5.1	
Enhancements Awaiting Review	56458	Multisite Theme Details		Networks and Sites	normal	feature request	new	2022-08-29T17:51:16Z	2022-09-30T14:39:06Z	"It would be great if there were some accounting for the use of themes across a network. I'm thinking the /wp-admin/network/sites.php listing could show the active theme of each site.

Even if there was a counter so I could confirm the number of sites using a given Theme, that would work. 

Or similar to the Users list, which has a column of Sites the user has access to, you could add a Sites column to the Themes listing.

Use Case: I have 8 themes installed, and 97 subsites. There doesn't seem to be any way to confirm which themes are active on 0 sites, confirming which I can uninstall."	hopetommola	6.0.1	
Enhancements Awaiting Review	52188	Move Multisite settings page into tabs		Networks and Sites	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	45640	get_blogs_of_user improvements	alexstine	Networks and Sites	minor	enhancement	assigned	2018-12-14T11:59:18Z	2021-11-16T13:59:24Z	"get_blogs_of_user function is often pulling more data than it needs. This often won't cause any issues but in some cases when user is attached to big number of blogs, it may lead to out of memory error.

Attached patch has changes that can lead to more improvements like pagination for ""My Sites"" admin page, limitation of listed sites in admin bar and on ""access denied"" page."	maniu	3.0	needs-unit-tests
Enhancements Awaiting Review	54080	Dashboard > My Sites could use a list table for displaying the list of sites		Networks and Sites	normal	feature request	new	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	3.0	dev-feedback
Enhancements Awaiting Review	31673	Multisite UX: deleting a plugin		Networks and Sites	normal	enhancement	new	2015-03-17T20:27:23Z	2021-05-22T14:59:50Z	"'''Better that current:''' 
Change the wording form the Network Admin Plugin deletion screen from:

""Caution: This plugin may be active on '''other''' sites in the network.""

to

""Caution: This plugin may be active on sites in the network.""

... the current wording assumes that your action is tied to one particular website rather than the network as a whole when you are deleting a plugin. With this change, the warning is still there but does not make any assumptions about weather you are deleting it because you are thinking about one site and not the ""others.""

'''Best case scenario:'''
A check would be run to see if the plugin is actually active and list out which sites it is active on before deletion. "	saracannon	4.1.1	
Enhancements Awaiting Review	43130	Add New Site: admin autocomplete search all users		Networks and Sites	normal	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	4.9.2	
Enhancements Awaiting Review	44689	Convert user sites (my-sites.php) to table		Networks and Sites	normal	enhancement	new	2018-08-01T07:02:10Z	2021-01-12T11:52:01Z	"I think for better consistence we could add a table in the user's sites in a multisite like everything else in WordPress (super admin sites, users, posts etc.).

The Primary Site option could change from the bulk actions."	eArtboard	3.0	dev-feedback
Enhancements Awaiting Review	49968	Network Site Info - No hooks for customzsation		Networks and Sites	normal	enhancement	new	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	5.5	has-patch
Enhancements Awaiting Review	36432	Show Site ID and Theme in My Sites		Networks and Sites	normal	enhancement	new	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	4.4.2	dev-feedback
Enhancements Awaiting Review	48481	don't apply wp_initialize_site_args filter until after wp-admin-includes/update.php is loaded		Networks and Sites	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	48192	get_blogs_of_user not setting public parameter		Networks and Sites	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	47700	My Sites text is confusing		Networks and Sites	normal	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	5.3	
Enhancements Awaiting Review	47735	Separate sites I have created and sites I have joined in a network install		Networks and Sites	normal	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		
Enhancements Awaiting Review	46072	add a $metas param to wpmu_create_blog()		Networks and Sites	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	43812	Retrieving Blog/site description in multisite		Networks and Sites	normal	enhancement	new	2018-04-19T16:38:51Z	2019-01-16T06:50:09Z	"Hello,

In a project on a Multisite I need on site 1 (for example) to retrieve description on site 2.

With 
{{{
get_blog_details()
}}} 
I'm able to retrieve some info (name, url...) but not the description


"	sebastien@…		dev-feedback
Enhancements Awaiting Review	41443	Update /wp-admin/network/site-new.php to use wpmu_validate_blog_signup()		Networks and Sites	normal	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	4.8	
Enhancements Awaiting Review	41771	Global configuration table		Networks and Sites	normal	enhancement	new	2017-08-31T22:19:51Z	2017-09-19T16:37:54Z	"In multisite, there is no way to have settings or configuration what goes applies to all networks. There are network level settings (Network options) and site levels settings (Options) but nothing global. 

In #37923 the need for global configuration arose, as storing data the network level ends up with the same data in every network. Also having a global config table, would help rid ourselves of our dependence on PHP defines for configuration. If this config table was installed on single site as well, the following defines, could be moved the config table. 

- MULTISITE
- SUBDOMAIN_INSTALL
- WP_CACHE
- FORCE_SSL_ADMIN
- WP_DEFAULT_THEME

This could make the process of installing multisite, much easier. 
A number of feature flag that are currently store in options / network options could be moved to the global store. Features such as. 

- link_manager - enabled / disabled
- global_terms - enabled / disabled 
- use blog_versions - enabled / disabled
- site meta - enabled / disabled
- ms_files_rewriting - enabled / disabled

This global table could also store multi network wide settings such as 

- Global super admin
- Global user roles
- Global plugins (Not mu plugins)
- Global database version
- Default Language 
"	spacedmonkey	4.9	needs-unit-tests
Enhancements Awaiting Review	40554	Hide /wp-admin/network/site-settings.php		Networks and Sites	normal	enhancement	new	2017-04-24T18:14:25Z	2017-04-25T16:26:43Z	"WordPress developers have decided that `/wp-admin/options.php` is inappropriate to be shown to users and so there are no links to it. You can't click on a menu item and stumble across it. The only way to find it is to manually type in the URL. This is great because it prevents inexperienced users from making potentially disastrous changes, or at the very least being a bit confused.

`/wp-admin/network/site-settings.php` is pretty much the same as `/wp-admin/options.php` except it hides options beginning with `_` and munges the option names to be slightly more human-readable. As such, I think it should be given the same treatment as `/wp-admin/options.php` - hide it completely so that nobody stumbles across it."	tomdxw		
Enhancements Awaiting Review	40511	get_blogs_of_user should return an array of WP_Site objects		Networks and Sites	normal	enhancement	new	2017-04-21T10:24:55Z	2017-04-24T17:09:38Z	Currently the get_blogs_of_user uses get_sites to get list of sites. The code loops through the list and creates std objects. However, this is now needed. It is much better to return a list of WP_Sites.	spacedmonkey		
Reporter Feedback / Close	54361	Multisite: Confusion for average users when a blog is a mapped domain and requires re-authentication		Networks and Sites	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	37156	Multisite: WP-generated permalink for title-less post does not work (Or: numeric post slug that matches existing post ID number generates 404 error)		Networks and Sites	normal	defect (bug)	closed	2016-06-23T00:51:59Z	2026-01-18T05:54:33Z	"On a Multisite installation, a permalink with a post-name structure results in a 404 error when its slug is a number and that number matches an existing post ID number. Example: http://myblog.com/blog/7 where a post (any post) has an ID of 7. 

When WordPress generates a slug for a title-less post, it forms the slug using the post ID. Since the post ID is (now) in use, the default permalink for the title-less post is broken. 

It appears ticket #5305 resolved the issue for regular installs by automatically appending -2 to the slug (http://myblog.com/blog/7-2). Can this be done for Multisite? Or better yet, use some other more elegant designation that doesn't imply that this is the second of two posts using 7 for the slug?

To replicate:
Use a Multisite installation.
Set permalinks to Post name structure.
Create a post without a title.
Note that the generated slug is the ID number of the post.
Save and then click on the Permalink slug below the title text field.
Arrive at 404 page.
In admin, change the slug to include a character.
Try again.
Arrive at correct page.

You can also see the same behavior by choosing any titled post in admin and changing its slug to a number that matches its own or any other existing ID.
"	raskull		close
Reporter Feedback / Close	52464	The value of argument passed to the update_option_new_admin_email() is not a valid email.	SergeyBiryukov	Networks and Sites	normal	defect (bug)	reviewing	2021-02-07T12:08:54Z	2025-06-05T12:56:32Z	"While creating a patch for ticket #43706, I found out that the function `update_option_new_admin_email()` is responsible for the template. It does accept two parameters, however, the first parameter `$old_value` does not seem to get the correct value.

When checking the value, it holds the value `new_admin_email` instead of the old email address.

Thanks!"	tremidkhar		needs-unit-tests
Enhancements Awaiting Review	64377	Add a Notes column to the posts list table	adamsilverstein	Notes	normal	enhancement	reviewing	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		has-patch
Defects Awaiting Review, reported against no version	37635	BUG in get_option		Options, Meta APIs	normal	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		
Defects Awaiting Review, reported against no version	40353	Site URL and Home URL inputs are not properly validating	loru88	Options, Meta APIs	normal	defect (bug)	assigned	2017-04-04T12:33:11Z	2020-04-08T20:34:50Z	"In wp-admin/options-general.php > General settings the URLs not properly validating. I tried the following with WordPress address (URL) input:

http://local.mysite. com
http://local.my?site.com
http://local.my*site.com

In all three cases WP saves the entry and then the page breaks! A proper handling is required."	subrataemfluence		has-patch
Defects Awaiting Review	45505	get_post_custom() doesn't pull values		Options, Meta APIs	normal	defect (bug)	new	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	5.0	has-patch
Defects Awaiting Review	44977	Transient fill fail delete to itself if it's timeout option is missing		Options, Meta APIs	normal	defect (bug)	new	2018-09-21T11:25:44Z	2026-10-22T16:22:13Z	"Just faced this issue - for some reason, the transient was not deleting itself. While checking the DB, the option with the transient was there, while the timeout option was missing (probably a glitch while saving to DB).
Now, if you check get_transient() in option.php (quick link https://core.trac.wordpress.org/browser/tags/4.9.8/src/wp-includes/option.php#L0 ) you can see that these are deleted only if both exist and both pass the test:
{{{
[...]
 if ( false !== $timeout && $timeout < time() ) { DELETING TRANSIENT}
[...]
}}}
Otherwise transient will hang... forever. This should be tuned up so it also checks that these options exist, and delete transient if timeout is absolete."	nlozovan		has-patch
Defects Awaiting Review	61762	Options can be incorrectly cached following database errors.		Options, Meta APIs	normal	defect (bug)	new	2024-07-25T23:39:04Z	2026-10-21T03:57:20Z	"Various `wpdb` methods can return falsey values to indicate one of two things:

* `0`: zero effected rows
* `false`: a database error

In `get_option()`, `get_network_option()`, `delete_option()` and `delete_network_option()` the results of the database query are imprecisely checked and can result in populated the `notoptions` cache incorrectly. Either by adding to the cache following a database error, or not adding to the cache when the zero rows are effected while deleting an option.

In `add_network_option()`, `update_network_option()` the `notoptions` cache is cleared prior to the database query without accounting for database errors. (This simply causes additional queries rather than incorrect data being returned.)

Related #61484, props @bjorsch for picking up."	peterwilsoncc		has-patch
Defects Awaiting Review	55467	WP_REST_Meta_Fields::update_meta_value handles update_metadata return value incorrectly		Options, Meta APIs	normal	defect (bug)	reopened	2022-03-26T18:13:10Z	2026-10-19T16:53:18Z	"In the WP_REST_Meta_Fields::update_meta_value method the update_metadata function is used and handles every ""false"" return value from this function as an error.

See https://github.com/WordPress/wordpress-develop/blob/0b800e21c311e302824e4a025946a6fdb4f6c794/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php#L392

update_metadata returns false if the value is not updated. That also happens if the old and new value are the same. Which is obviously not an error. "	wordpressscyt	5.9	has-patch
Defects Awaiting Review	52345	Transient with expiration never expires when storing expiration failed		Options, Meta APIs	normal	defect (bug)	new	2021-01-22T18:09:58Z	2026-10-16T10:26:08Z	"When storing a transient that has a timeout with the `set_transient()` function, there is a possibility that storing the transient timeout will fail. When you then try to get the transient with the `get_transient()` function, WordPress just returns it, which basically makes it behave like a transient with no expiration. 

You can simulate the behaviour using this code:

{{{#!php
<?php
// First store the transient
$transient_name       = 'testname';
$transient_value      = 'testvalue';
$transient_expiration = 30;
set_transient( $transient_name, $transient_value, $transient_expiration );

// Now delete the transient timeout, simulating the timeout option save failed
delete_option( '_transient_timeout_' . $transient_name );

// Now get the transient value
var_dump( get_transient( $transient_name ) ); // Returns 'testvalue'

}}}


To solve this issue, we need to modify the part in the `get_transient()` function, that checks if a transient is expired.

The new code of the `get_transient()` should become this: (see `// <=== This is the changed line` for what's changed.)
{{{#!php
<?php
function get_transient( $transient ) {
 
    /**
     * Filters the value of an existing transient before it is retrieved.
     *
     * The dynamic portion of the hook name, `$transient`, refers to the transient name.
     *
     * Returning a truthy value from the filter will effectively short-circuit retrieval
     * and return the passed value instead.
     *
     * @since 2.8.0
     * @since 4.4.0 The `$transient` parameter was added
     *
     * @param mixed  $pre_transient The default value to return if the transient does not exist.
     *                              Any value other than false will short-circuit the retrieval
     *                              of the transient, and return that value.
     * @param string $transient     Transient name.
     */
    $pre = apply_filters( ""pre_transient_{$transient}"", false, $transient );
 
    if ( false !== $pre ) {
        return $pre;
    }
 
    if ( wp_using_ext_object_cache() ) {
        $value = wp_cache_get( $transient, 'transient' );
    } else {
        $transient_option = '_transient_' . $transient;
        if ( ! wp_installing() ) {
            // If option is not in alloptions, it is not autoloaded and thus has a timeout.
            $alloptions = wp_load_alloptions();
            if ( ! isset( $alloptions[ $transient_option ] ) ) {
                $transient_timeout = '_transient_timeout_' . $transient;
                $timeout           = get_option( $transient_timeout );
                if ( false === $timeout || ( false !== $timeout && $timeout < time() ) ) { // <=== This is the changed line
                    delete_option( $transient_option );
                    delete_option( $transient_timeout );
                    $value = false;
                }
            }
        }
 
        if ( ! isset( $value ) ) {
            $value = get_option( $transient_option );
        }
    }
 
    /**
     * Filters an existing transient's value.
     *
     * The dynamic portion of the hook name, `$transient`, refers to the transient name.
     *
     * @since 2.8.0
     * @since 4.4.0 The `$transient` parameter was added
     *
     * @param mixed  $value     Value of transient.
     * @param string $transient Transient name.
     */
    return apply_filters( ""transient_{$transient}"", $value, $transient );
}
}}}
"	mennoll	2.8	has-patch
Defects Awaiting Review	63797	Unexpected short‑circuit return values from add_metadata() and update_metadata()		Options, Meta APIs	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65863	delete_transient() cannot remove a timeout row whose value row is missing, and delete_expired_transients() never sees it		Options, Meta APIs	normal	defect (bug)	new	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	4.9	has-patch
Defects Awaiting Review	65969	Options, Meta APIs: delete_expired_transients() deletes site transients across networks		Options, Meta APIs	normal	defect (bug)	new	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	4.9	has-patch
Defects Awaiting Review	32565	Adding an underscore prefix meta key with a meta value provides an incorrect error message	SergeyBiryukov	Options, Meta APIs	normal	defect (bug)	assigned	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	4.3	has-patch
Defects Awaiting Review	56047	test for pre_option_{$option} filter	pbearne	Options, Meta APIs	normal	defect (bug)	assigned	2022-06-22T21:54:25Z	2026-05-07T16:20:44Z		pbearne		has-patch
Defects Awaiting Review	64023	wp_die() status code Options component updates (parent ticket: #64009)		Options, Meta APIs	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63918	updated_..._meta meta_id is string not int - wrong docs		Options, Meta APIs	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	28701	Deleted option is not deleted if value was ever null		Options, Meta APIs	normal	defect (bug)	new	2014-07-01T04:15:03Z	2025-08-28T15:40:21Z	"If an autoloaded option ever contains `null`, it will cease to be autoloaded after this. It will then be stored in the individual option cache (`wp_cache_get('optname', 'options')`), rather than the autoloaded options. The autoloaded option cache will then contain `optname` with the value `null` (and `isset(null) === false`).

Typically, this would be fine, but `delete_option` checks the database autoload value directly. It then only attempts to delete this from the autoload options cache (which again fails because of an isset check).

After deleting, the value is still stored in the object cache (!!!), causing it to return a value despite not existing in the database.

As far as I can tell, this has existed since r4855 (WP 2.2).

----

To reproduce (requires external object cache to be enabled):
{{{
// Add the option with initial value set to null
add_option( 'testingkey', null );

// Update to real value
update_option( 'testingkey', 'realvalue' );

// Delete the option completely
delete_option( 'testingkey' );

// Check the value
var_dump( get_option( 'testingkey', 'default' ) );
}}}

Expected result:
{{{
string(7) ""default""
}}}

Actual result:
{{{
string(9) ""realvalue""
}}}"	rmccue	2.2	dev-feedback
Defects Awaiting Review	38203	Remove `absint` on object IDs in `delete_metadata`, etc		Options, Meta APIs	normal	defect (bug)	new	2016-10-01T06:40:14Z	2025-07-17T22:13:24Z	"Absint is run on the object ID in the functions called with a meta key: `delete_metadata()`, `get_metadata()`, `add_metadata()`, `update_metadata()` and `metadata_exists()`.

This leads to unexpected behavior in the event a negative or floating object ID is passed.


Related #37746, #37738, #33372."	peterwilsoncc	2.9	dev-feedback
Defects Awaiting Review	63594	Bug/Broken State possible in Multisite Caching Code: update_network_option		Options, Meta APIs	normal	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	6.8	
Defects Awaiting Review	61631	sanitize_option_{$option} inconsistencies		Options, Meta APIs	normal	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	6.5.5	
Defects Awaiting Review	59246	update_option returns true, even when the value didn't change, potentially adding back old data		Options, Meta APIs	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	58619	absint() causes unexpected behavior for metadata functions which use get_metadata_raw()	pbearne	Options, Meta APIs	normal	defect (bug)	assigned	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		has-patch
Defects Awaiting Review	58993	"metadata_exists() returns incorrect value when ""get_{$meta_type}_metadata"" filter returns false."		Options, Meta APIs	normal	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	6.2.2	
Defects Awaiting Review	59705	get_metadata_raw() will return false when unserialize() fails		Options, Meta APIs	normal	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	5.8	
Defects Awaiting Review	58904	delete_expired_transients() does not delete expired transient created with a false/empty transient name		Options, Meta APIs	normal	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	6.3	
Defects Awaiting Review	58693	wordpress posts custom-meta box issue		Options, Meta APIs	normal	defect (bug)	new	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	6.2.2	has-patch
Defects Awaiting Review	58269	Store attachment metadata in separate fields		Options, Meta APIs	normal	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		
Defects Awaiting Review	58246	'update_meta_cache()' doesn't correctly handle the return value of the 'update_{$meta_type}_metadata_cache' filter		Options, Meta APIs	normal	defect (bug)	new	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	6.3	has-patch
Defects Awaiting Review	56944	get_option does not return expected value		Options, Meta APIs	normal	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	6.0.2	
Defects Awaiting Review	56752	Add get_post_metadata filters by $meta_key		Options, Meta APIs	normal	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		
Defects Awaiting Review	56326	get_metadata_raw doesn't unserialize when retrieving all meta_keys for a post_id		Options, Meta APIs	major	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	6.0	
Defects Awaiting Review	38931	`update_option()` race condition with non-autoloaded options		Options, Meta APIs	normal	defect (bug)	new	2016-11-24T13:31:55Z	2022-06-09T00:26:55Z	"Starting back in [25664] there's a race condition with object caches where `get_option()` will return a value, but `update_option()` will refuse to update it.
This is kind-of-related to `alloptions`, but affects non-autoloaded options (which are not in `alloptions`, but in their own cache).

Consider the following scenario:
{{{
Process 1: Fetch option_a. Fills local cache. 
Process 2: Update option_a.
Process 1: Delete option_a.
Process 2: Update DB.
Process 1: Delete from DB. Delete from remote cache.
Process 2: Update remote cache.
...
Process 5: Fetch option_a. Fills local cache from remote cache.
Process 5: Update option_a.  FAIL. DB doesn't have option. abort. cache not updated.
...
(repeat process 5 above many times)
Process 10: Get option_a (Still the value that Process 2 set in cache, even though it's not in the DB)
Process 10: Update option_a (Doing the same as Process 5 now). FAIL.
}}}

Seems very racey and unlikely, but I've seen it happen on WordPress.org at least twice in the last few weeks when we update Jetpack (which makes heavy usage of the options table, and is loaded on most WordPress.org requests).

When it happens, `get_option()` will continue to return a stale value from the cache that no longer exists in the DB and `update_option()` will fail to update the option as long as it exists in cache.
If a plugin is performing an operation to update the stale option often, it can cause a huge load spike on the database server of never-ending failing `UPDATE` queries.
The only way to 'fix' it is to create the DB row manually, or flush the object cache key.

The patch attached attempts to perform an `add_option()` in the case of the `update_option()` DB query failing.
This isn't exactly a new behaviour for options - `add_option()` will effectively perform an `update_option()` in the event the option you're trying to add already exists (through it using `INSERT .. ON DUPLICATE KEY UPDATE..`), doing it in reverse doesn't seem that out of the question."	dd32	3.7	has-patch
Defects Awaiting Review	54805	When on the /wp-admin/network/site-settings.php network settings page, calling the update_option() always add the setting		Options, Meta APIs	minor	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	5.8.3	needs-patch
Defects Awaiting Review	52798	delete_option() does not clear cache if option is missing in database.		Options, Meta APIs	minor	defect (bug)	new	2021-03-12T19:31:51Z	2021-07-19T02:10:10Z	"It's an old one, but this is the mirror of #25015.

If, for some reason, an object does not exist in the database, but does exist in persistent object cache, calling `delete_option()` will fail and the cached option will continue to exist:

{{{
wp> get_option( 'test-option' );
=> bool(false)
wp> update_option( 'test-option', 'example', false );
=> bool(true)
wp> get_option( 'test-option' );
=> string(7) ""example""
wp> global $wpdb;
wp> $wpdb->get_results( 'SELECT * FROM wp_options WHERE option_name=""test-option""' );
=> array(1) {
  [0]=>
  object(stdClass)#1977 (4) {
    [""option_id""]=>
    string(3) ""121""
    [""option_name""]=>
    string(11) ""test-option""
    [""option_value""]=>
    string(7) ""example""
    [""autoload""]=>
    string(2) ""no""
  }
}
wp> $wpdb->delete( $wpdb->options, array( 'option_name' => 'test-option' ) );
=> int(1)
wp> $wpdb->get_results( 'SELECT * FROM wp_options WHERE option_name=""test-option""' );
=> array(0) {
}
wp> get_option( 'test-option' );
=> string(7) ""example""
wp> delete_option( 'test-option' );
=> bool(false)
wp> get_option( 'test-option' );
=> string(7) ""example""
}}}

I know what you're thinking, ""Don't ever delete directly on the database.""  But recently when I ran into this, manual deletion wasn't the cause.  More than likely it was some sort of race condition between distributed database or cache servers, or other arcane edge cases.  The end result though was that the cache and database were out of sync and subsequent automated `delete_option()` calls were silently failing to clear the cache.

The easiest solution would be to move the cache deletion before the database check:

{{{
diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php
index 8692db7199..2f4a000ca1 100644
--- a/src/wp-includes/option.php
+++ b/src/wp-includes/option.php
@@ -648,6 +648,18 @@ function delete_option( $option ) {

        wp_protect_special_option( $option );

+       if ( ! wp_installing() ) {
+               if ( 'yes' === $row->autoload ) {
+                       $alloptions = wp_load_alloptions( true );
+                       if ( is_array( $alloptions ) && isset( $alloptions[ $option ] ) ) {
+                               unset( $alloptions[ $option ] );
+                               wp_cache_set( 'alloptions', $alloptions, 'options' );
+                       }
+               } else {
+                       wp_cache_delete( $option, 'options' );
+               }
+       }
+
        // Get the ID, if no ID then return.
        $row = $wpdb->get_row( $wpdb->prepare( ""SELECT autoload FROM $wpdb->options WHERE option_name = %s"", $option ) );
        if ( is_null( $row ) ) {
@@ -665,18 +677,6 @@ function delete_option( $option ) {

        $result = $wpdb->delete( $wpdb->options, array( 'option_name' => $option ) );

-       if ( ! wp_installing() ) {
-               if ( 'yes' === $row->autoload ) {
-                       $alloptions = wp_load_alloptions( true );
-                       if ( is_array( $alloptions ) && isset( $alloptions[ $option ] ) ) {
-                               unset( $alloptions[ $option ] );
-                               wp_cache_set( 'alloptions', $alloptions, 'options' );
-                       }
-               } else {
-                       wp_cache_delete( $option, 'options' );
-               }
-       }
-
        if ( $result ) {

                /**
}}}

but that's also before the `delete_option` hook.  Instead, the cache purging logic block could be duplicated right before returning `false`:

{{{
diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php
index 8692db7199..ab0a3f79f2 100644
--- a/src/wp-includes/option.php
+++ b/src/wp-includes/option.php
@@ -651,6 +651,19 @@ function delete_option( $option ) {
        // Get the ID, if no ID then return.
        $row = $wpdb->get_row( $wpdb->prepare( ""SELECT autoload FROM $wpdb->options WHERE option_name = %s"", $option ) );
        if ( is_null( $row ) ) {
+
+               if ( ! wp_installing() ) {
+                       if ( 'yes' === $row->autoload ) {
+                               $alloptions = wp_load_alloptions( true );
+                               if ( is_array( $alloptions ) && isset( $alloptions[ $option ] ) ) {
+                                       unset( $alloptions[ $option ] );
+                                       wp_cache_set( 'alloptions', $alloptions, 'options' );
+                               }
+                       } else {
+                               wp_cache_delete( $option, 'options' );
+                       }
+               }
+
                return false;
        }
}}}

but that's not very clean, with that much duplicate code.

I'm also open to suggestions if this is even a ""core"" bug, or if it should be the responsibility of the theme/plugin code to make sure the option cache is properly cleared?"	emrikol	2.1	dev-feedback
Defects Awaiting Review	49705	Sanitizing input for parameterized queries + update_meta_cache		Options, Meta APIs	minor	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	5.3.2	
Defects Awaiting Review	52651	$option_group argument in settings_fields() function is misdescribed		Options, Meta APIs	normal	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	2.7	
Defects Awaiting Review	45353	Homepage title none static homepage when static blog page is set		Options, Meta APIs	normal	defect (bug)	new	2018-11-14T16:28:58Z	2020-12-22T18:56:19Z	"Hi 

I have issue with the title of teh page in the browser tab. When i use a seo plugin and i have a static blog page set and a non static homepage the none static home page show the static blog page title in the browser tab.

I have tested this with wp 20-17 and various other themes and they all have the same issue.

I tried AIOSEO and YOAST SEO and even if i enter the title for the nin static homepage i get the title for the static blog page.

I reported to both plugin builders and they sais i had to be at wordpress core team.

You can read all details here.  https://github.com/Yoast/wordpress-seo/issues/11548

1) static blog page none static home page. When Index.php is called
is_home = true  is_front_page=false

2) static home page none static blog page. When front_page.php is called
is_home = false  is_front_page=true

3) none static home page and none static blog page (set it to ""your latest posts""). When Index.php is called is_home = true  is_front_page=true;

Exactly as it should be, But only in case 1) the browser tab has the wrong title !

Please advice how to resolve this issue as the none static home page is not equal to the static homepage and can have different content then the static blog page. It all depends on the theme used if the theme is also pulling the default page content and or has a setting for adding content into the non static home page.

One can easily detect the homepage id.... for the none static homepage it is 0  https://github.com/Yoast/wordpress-seo/issues/11548#issuecomment-438643740

is_home() should only be true in case 3) and not in case a static blog page is used and a none static home page.

I would like to get this resolved. Please advice.

Thanks"	BackuPs	4.9.8	
Defects Awaiting Review	51868	Using a SVG as featured image covers admin panel		Options, Meta APIs	normal	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	5.5.3	
Defects Awaiting Review	50678	Transient: save object with protected attributes will fail		Options, Meta APIs	normal	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	5.3	
Defects Awaiting Review	50181	Second params of get_option() not used		Options, Meta APIs	normal	defect (bug)	new	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	5.4.1	dev-feedback
Defects Awaiting Review	45078	null is being set on a NOT NULL options_value column in the options table.		Options, Meta APIs	normal	defect (bug)	new	2018-10-11T07:01:48Z	2020-01-05T21:50:59Z	"The {{{options}}} table doesn't allow a NULL value in the {{{options_value}}} column.
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/schema.php#L144

But, if an option is unchecked, it is set to null by default here:
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/options.php#L275

This throws a {{{Column ‘option_value’ cannot be null}}} error if strict mode({{{STRICT_TRANS_TABLES}}}) is enabled in the database.

If strict mode isn't enabled, MySQL converts the null value to a default value, in this case, an empty string, before adding it to the {{{options}}} table.

  If you are not using strict mode, then whenever you insert an “incorrect” value into a column, such as a NULL into a NOT NULL column or a too-large numeric value into a numeric column, MySQL sets the column to the “best possible value” instead of producing an error

https://dev.mysql.com/doc/refman/5.7/en/constraint-invalid-data.html

The proposed fix changes the default value from null to an empty string(following MySQL). This will prevent the error being thrown when strict mode is enabled and otherwise won't alter the values inserted into the {{{option_value}}} column."	wpshades		has-patch
Defects Awaiting Review	48855	Updating transient to remove expiration fails		Options, Meta APIs	normal	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	5.3	
Defects Awaiting Review	48573	Permalinks Settings screen unnecessarily calls sanitize_option( 'permalink_structure' )...		Options, Meta APIs	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	47166	When option gmt_offset is blank, wordpress will give a 500 error		Options, Meta APIs	minor	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	5.1.1	
Defects Awaiting Review	45273	get_postmeta: Inconsistent behavior of the 'single'-argument		Options, Meta APIs	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	44459	Options added to the Permalinks admin page do not get saved		Options, Meta APIs	normal	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		
Defects Awaiting Review	43704	pre_option_{$option} filter is case sensitive although options are not.		Options, Meta APIs	normal	defect (bug)	new	2018-04-05T18:38:44Z	2018-04-08T01:53:12Z	"I noticed the filter ""pre_option_{$option}"" for myOption wouldn't filter get_option('MYOption') for example, yet get_option(name) and MySql in general does not seem to care what case the option is. Perhaps it should also do pre_option_(strtolower($option)) when necessary?

Was there a reason this particular filter is case-sensitive?"	programmin	4.9.5	
Defects Awaiting Review	43069	Docs: improve documentation for register_meta() function		Options, Meta APIs	normal	defect (bug)	new	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	4.9.1	has-patch
Defects Awaiting Review	34322	set_transient and get_transient don't seem to be working for some users since WP 4.3		Options, Meta APIs	normal	defect (bug)	new	2015-10-16T04:07:34Z	2017-04-06T17:08:22Z	"I'm the developer of a social media plugin which relies on the WordPress set_transient and get_transient functions to temporarily cache data in the user's database. Since the WordPress 4.3 update, we've had reports of the cache not clearing automatically as it should, meaning that the transients aren't expiring correctly in the database. This seems to only be happening on some servers as I haven't been able to replicate the issue on my own test site, but have confirmed it on user sites, and looks like it could be related to [https://make.wordpress.org/core/2015/07/30/get_transient-is-now-more-strict-in-4-3/ this thread]. The same problem seems to be happening to other developers of similar plugins, and I've had some users report that other unrelated WordPress plugins they're using are also not automatically updating either any more, which I'm assuming is caused by the same issue. I've been able to confirm the problem on user sites by using a page template containing the following basic code. I've commented it to explain what it does and can provide a Facebook Access Token privately if needed, although I included a link on how to obtain your own. The transient set using the script below should expire every 30 minutes and then the script should check the URL again for new data, but it doesn't unless I delete the transient manually.

{{{
<?php
/* Template Name: Transient test */

//Facebook URL to get data from. You can get an Access Token to use in the URL by following the directions here: https://smashballoon.com/custom-facebook-feed/access-token/
$url = 'https://graph.facebook.com/cnn/posts?access_token=ACCESS_TOKEN';

//Check the database for the transient containing the data
$transient = get_transient( 'test_transient_expiration' );

if( ! empty( $transient ) ) {
  //The transient was found in the database
	echo 'Got the existing transient from the database <br />';
  //Show the date the data was last updated from Facebook
  echo 'Last updated: ' . json_decode( json_encode($transient) )->headers->date;
} else {
  //No transient in the database - get the data from Facebook
  $facebook_data = wp_remote_get( $url );
  //Cache the data in the database
  set_transient( 'test_transient_expiration', $facebook_data, 1800 );
	echo 'Got the data from the URL <br />';
  //Show the date the data was last updated from Facebook
  echo 'Last updated: ' . json_decode( json_encode($facebook_data) )->headers->date;
}

?>
}}}

I was in two minds whether to report this as a bug as I've never reported one before, however it definitely seems like this could be a bug as the above code should work, but doesn't on some user's sites. I use code very similar to the above in my plugin and nothing has been changed in that code, but users started reporting an issue shortly after the WordPress 4.3 update was released. Through reading the change logs for the 4.3 update I know some changes were made to transients and so I'm wondering if that's what caused this problem.

Sorry for the long post!

John"	smashballoon	4.3	
Defects Awaiting Review	40369	Mail server settings page (options-writing.php) has no validation		Options, Meta APIs	normal	defect (bug)	new	2017-04-05T10:55:59Z	2017-04-05T10:58:35Z	"wp-admin > options-writing.php

1. Accepts everything. No character type restriction
2. Page gets submitted with anything entered in PORT textbox
3. Setting gets saved without values entered in Login name and Pass word boxes
4. Pass word box should now show actual characters!"	subrataemfluence	4.7.3	has-patch
Defects Awaiting Review	40115	Duplicate Custom Fields are created		Options, Meta APIs	normal	defect (bug)	new	2017-03-12T09:16:44Z	2017-03-15T09:25:56Z	"Duplicate custom fields are created when populating multiple custom fields at once.

Steps to reproduce:

* Create a New Post
* Add a custom field ""custom_1"" with a value ""test1""
* Add a custom field ""custom_2"" with a value ""test2""
* Save Draft

...you will now see the ""custom_2"" field repeated twice (both with a value of ""test2""), so ought to delete one."	ChrisBAshton	4.7.3	has-patch
Defects Awaiting Review	40012	Only add_metadata if no matching value		Options, Meta APIs	normal	defect (bug)	new	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	2.9	dev-feedback
Enhancements Awaiting Review	48478	Allow omitting meta keys from the REST API response if they do not exist		Options, Meta APIs	normal	enhancement	new	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	4.7	has-patch
Enhancements Awaiting Review	38896	avatar_settings help text may not be accurate if avatar_defaults is filtered		Options, Meta APIs	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	41099	update_option return value ambiguous		Options, Meta APIs	normal	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	4.8	
Enhancements Awaiting Review	65976	Pass $delete_all to the delete_{$meta_type}_meta and deleted_{$meta_type}_meta actions		Options, Meta APIs	normal	enhancement	new	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	2.9	has-patch
Enhancements Awaiting Review	65836	Provide a native API for generating and managing Schema.org JSON-LD structured data		Options, Meta APIs	normal	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		
Enhancements Awaiting Review	64581	Allow serialized options read-only view		Options, Meta APIs	trivial	feature request	new	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	2.0.2	has-patch
Enhancements Awaiting Review	52360	speed up update_meta_cache with easy fix		Options, Meta APIs	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	64036	Filters the value of metadata after it is retrieved.	eslamelsherif	Options, Meta APIs	normal	feature request	assigned	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	6.9	has-patch
Enhancements Awaiting Review	63685	"""pre_add_option"" hook missing"		Options, Meta APIs	minor	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	37928	add `pre_add_option` filter		Options, Meta APIs	normal	enhancement	new	2016-09-03T07:13:16Z	2025-07-10T09:58:38Z	`get_option()` and `update_option()` already have filters to short-circuit their respective processes, so I think a similar filter should be added to `add_option()` as well.	flixos90		has-patch
Enhancements Awaiting Review	63483	Compatibility float and whitelist timezone string		Options, Meta APIs	normal	enhancement	new	2025-05-26T11:35:15Z	2025-06-12T16:26:41Z	"This is a follow-up to #58814.
This is an ""enhancement"" of existing code. Compatibility for versions before php 8.
Float point numbers add_filter( 'pre_option_gmt_offset','wp_timezone_override_offset' ); from get_option( 'gmt_offset' );
https://wiki.php.net/rfc/locale_independent_float_to_string
As of PHP 8.0.0, the decimal point character is always a period ("".""). Prior to PHP 8.0.0, the decimal point character is defined in the script's locale (category LC_NUMERIC).
Example get_option( 'gmt_offset' ):
{{{#!php
<?php

setlocale( LC_ALL, 'de_DE');
$numeric = 5.5;
var_dump( $numeric ); // Before PHP 8 is 5,5
?>
}}}

Before PHP 8 x UTC timezone is valid x timezone.
Only set if whitelisted and resets $_POST variables instead of saving to the already existing timezone database (redundant code).
https://bugs.php.net/bug.php?id=78139&edit=1

{{{#!php
<?php
        unset( $_POST['gmt_offset'] );
		// Map UTC+- timezones to gmt_offsets and set timezone_string to empty.
        if ( isset( $_POST['timezone_string'] ) ) {
			$first = 'UTC';
			$two = 'UTC+';
			$offset_range = array(
			    '',
				$first . '-12',
				$first . '-11.5',
				$first . '-11',
				$first . '-10.5',
				$first . '-10',
				$first . '-9.5',
				$first . '-9',
				$first . '-8.5',
				$first . '-8',
				$first . '-7.5',
				$first . '-7',
				$first . '-6.5',
				$first . '-6',
				$first . '-5.5',
				$first . '-5',
				$first . '-4.5',
				$first . '-4',
				$first . '-3.5',
				$first . '-3',
				$first . '-2.5',
				$first . '-2',
				$first . '-1.5',
				$first . '-1',
				$first . '-0.5',
				$two . '0',
				$two . '0.5',
				$two . '1',
				$two . '1.5',
				$two . '2',
				$two . '2.5',
				$two . '3',
				$two . '3.5',
				$two . '4',
				$two . '4.5',
				$two . '5',
				$two . '5.5',
				$two . '5.75',
				$two . '6',
				$two . '6.5',
				$two . '7',
				$two . '7.5',
				$two . '8',
				$two . '8.5',
				$two . '8.75',
				$two . '9',
				$two . '9.5',
				$two . '10',
				$two . '10.5',
				$two . '11',
				$two . '11.5',
				$two . '12',
				$two . '12.75',
				$two . '13',
				$two . '13.75',
				$two . '14',
	        );

            $key_valid = array_search( $_POST['timezone_string'], $offset_range );
            if ( $key_valid ) {
                $_POST['gmt_offset'] = strtr( $offset_range[$key_valid], array( 'UTC+' => '', 'UTC' => '' ) );
                $_POST['timezone_string'] = '';
            } else {
                $tz_identifiers = timezone_identifiers_list( DateTimeZone::ALL_WITH_BC );
                $key_valid = array_search( $_POST['timezone_string'], $tz_identifiers );
                if( is_int( $key_valid ) ) {
                    $_POST['timezone_string'] = $tz_identifiers[$key_valid];
                } else {
                    unset( $_POST['timezone_string'] );

                    add_settings_error(
				        'general',
				        'settings_updated',
				        __( 'The timezone you have entered is not valid. Please select a valid timezone.' ),
				        'error'
			        );
                }
            }
            unset( $offset_range, $tz_identifiers );
        }
?>
}}}

Good job"	autotutorial		
Enhancements Awaiting Review	62664	Automatically prepopulate registered meta keys in the Custom Fields meta box		Options, Meta APIs	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	55553	update_blog_option should accept autoload parameter		Options, Meta APIs	normal	enhancement	new	2022-04-10T21:22:46Z	2025-05-12T01:37:56Z	The function update_blog_option doesn't accept any autoload parameter, even though it calls the function update_option that accepts an autoload parameter.	giuse	5.9.3	dev-feedback
Enhancements Awaiting Review	62748	Return results of update_post_meta		Options, Meta APIs	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	56548	Introduce `get_option` action		Options, Meta APIs	normal	enhancement	new	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		needs-unit-tests
Enhancements Awaiting Review	55969	The function set_transient should have the autoload argument		Options, Meta APIs	normal	enhancement	new	2022-06-12T14:28:53Z	2024-10-04T20:29:21Z	"The function set_transient should have an argument to decide if a specific transient should be autoloaded or not so.
At the moment every transient that is set with the function set_transient is autoloaded.
Not all the transients have the need to be autoloaded. For example, many times transients that are used only in the backend don't need the autoload, but they slow down the frontend in some cases."	giuse	6.0	has-patch
Enhancements Awaiting Review	58249	"Improve ""get_metadata_raw()"" by Delegating ""$single"" Handling to Filter"		Options, Meta APIs	normal	enhancement	new	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	6.3	has-patch
Enhancements Awaiting Review	37178	Add $cache_only parameter to get_option		Options, Meta APIs	normal	enhancement	new	2016-06-26T11:21:08Z	2024-09-06T14:17:41Z	"When you do `get_option()` and the option doesn't exist in the option cache, WordPress does a query to check whether that option exists and loads it. This is great as default behavior, but when you ''know'' that an option would have been autoloaded, you might not want that to happen. 

I propose adding a parameter `$cache_only`, which defaults to false, which, when set to true, returns false when there is no option set in the cache. The ""workaround"" currently would be to set an empty option, but that means adding unnecessary data to the database."	joostdevalk		needs-unit-tests
Enhancements Awaiting Review	61522	Add autoload control to register_setting()	pbearne*	Options, Meta APIs	normal	enhancement	accepted	2024-06-27T16:13:48Z	2024-07-08T21:23:46Z	"

There doesn't seem to be a way to declare a setting does not need to be autoloaded (or loaded just in admin) 

lets add this option to `register_setting()`"	pbearne		has-patch
Enhancements Awaiting Review	60787	get_registered_meta_keys() should allow for late registration to improve performance		Options, Meta APIs	normal	enhancement	new	2024-03-15T22:50:45Z	2024-04-10T15:24:55Z	"For a site with many custom post types, custom taxonomies, and tons of custom fields -- the burden of register_meta() can become heavy especially when using a plugin like Advanced Custom Fields, Pods, and others.

But we shouldn't have to register every single field on every single page load regardless of whether it's needed. That just drains performance on a given site and requires needless DB/transient/cache requests.

The introduction of things like the Block Bindings API rely on fields registered through the REST API.

You can register fields with the REST API during the `rest_api_init` action (which yeah, you pretty much have to register everything all at once) but at least it's not every page load.

With the Block Bindings API rendering on the front of the site, this requires you having run your fields through `register_meta()` on any given page that might have that field bound.

Related dev tutorial: https://developer.wordpress.org/news/2024/02/20/introducing-block-bindings-part-1-connecting-custom-fields/

**Proposed solution:**

Run an action at the top of `get_registered_meta_keys()` so a plugin can run `register_meta()` ONLY at the time of that data being needed at the code level."	sc0ttkclark		has-patch
Enhancements Awaiting Review	51699	The only correct method to check for existence of option		Options, Meta APIs	normal	enhancement	reopened	2020-11-03T12:08:00Z	2024-02-13T15:27:02Z	"There are many valid cases to check if particular option exists in WP (checking for leftovers of other plugins, or existence of some theme options, or some other cases).

The current advertised method to check that is:


{{{
if ( ! get_option('optionName') ) 
}}}


However, that is no way the correct approach as it is not able to check for option existence (because if the option is set with value: `null/false/0/empty-string`, then the check for existence will be meaningless with that approach).

So, I suggest to add a correct function named `option_exists` to get the correct answer:

{{{#!php
function option_exists( $option_name, $site_wide = false ) {
	global $wpdb; 
	return $wpdb->query( $wpdb->prepare( ""SELECT * FROM "". ($site_wide ? $wpdb->base_prefix : $wpdb->prefix). ""options WHERE option_name ='%s' LIMIT 1"", $option_name ) );
}
}}}

"	ttodua		
Enhancements Awaiting Review	54212	Add hooks to get/update/add_option functions		Options, Meta APIs	normal	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	5.8.1	
Enhancements Awaiting Review	55584	Settings API autoload hook		Options, Meta APIs	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	15865	Make it easy to disable options / user settings		Options, Meta APIs	normal	enhancement	reopened	2010-12-17T17:52:29Z	2023-07-27T18:09:44Z	"We have a wonderful option white listing system.

The one thing it doesn't support is hiding the ui of core options if you don't want them changed.

We should have a generic way of doing this."	westi		has-patch
Enhancements Awaiting Review	56821	meta_query late row lookup for performance improvement		Options, Meta APIs	normal	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		needs-patch
Enhancements Awaiting Review	39286	Standardizing actions and filters for adding, getting, setting, updating, and deleting options and transients		Options, Meta APIs	normal	enhancement	new	2016-12-14T21:46:09Z	2022-07-21T14:33:56Z	"== The Problem ==
In a nutshell, the problem is that there is no standardization of hooks surrounding the options and transient APIs and the hooks presently available are inconsistent in their terminology.

=== Issue 1: Add Option ===
When adding an option to the database, there are presently 3 hook available:
* `add_option`
* `add_option_{$option}`
* `added_option`

There are two main points of confusion:
* The first point of confusion is that `add_option` is fired before the option is added to the database, but `add_option_{$option}` is fired after the option is added.
* The second is that prior to the option being added to the database, there is a hook available that will fire anytime an option is added, while there are two hooks fired after the option is added. There is no hook available prior to the option being added to the database that fires for the specific `$option`.

These same two issues are present for updating and deleting options.

=== Issue 2: Get Option ===
When getting an option from the database, there are only two hooks fired:
* `pre_option_{$option}`
* `option_{$option}`

The first is fired before the option is getted from the database and the second after. The problems are that:
* Unlike adding, updating, and deleting, there is no verb in this hook to tell what is being done
* There are no hooks that fire for every option getted from the database

=== Issue 3: Delete Transient ===
Transients are sort of like options. Without an external object cache, WordPress stores them in the options table of the database. It would make sense that the hooks available for transients are consistent with those available for options. If we look at deleting a transient, there are two hooks available:
* `delete_transient_{$transient}`
* `deleted_transient`

( The same issues are present with site transients. )

Remembering issue 1 above, there are presently three hooks available when deleting and option.
* `delete_option`
* `delete_option_{$option}`
* `deleted_option`

There are a couple issues:
* There is no hook present that will fire every time a transient is deleted, either before or after
* The `delete_transient_{$transient}` is fired BEFORE the transient is deleted in contrast with the `delete_option_{$option}` hook which is fired AFTER the option is deleted.

=== Issue 4: Pre ===
Prior to getting and setting transients, the hooks all start with `pre_`. But this prefix is used inconsistently throughout.
* It is not used prior to deleting the transient
* It is used prior to getting an option, but not prior to adding, updating or deleting

== Proposal ==

=== Structure of hooks ===
I would like to propose that there be four hooks for each action: two before and two after, one general and one specific. The general structure would look like so:

{{{
""pre_{present-tense-verb}_{noun}""
""pre_{present-tense-verb}_{noun}_{$variable}""
[verb noun]
""{past-tense-verb}_{noun}_{$variable}""
""{past-tense-verb}_{noun}""
}}}

So for instance, adding an option would look like:
{{{
""pre_add_option""
""pre_add_option_{$variable}""
[add option]
""added_option_{$variable}""
""added_option""
}}}

=== Type of hook ===
Prior to adding, setting, or updating options/transients, the hooks should be a filter to allow changing of the option/transient prior to writing to the database. After adding, setting, or updating the hooks should be an action since the write has already occurred.

Both prior and after getting an option/transient, the hook should be a filter. I'm not sure the use case for filtering the option before running the query, but that's what's presently done. 

Before and after the option is deleted the hook should be an action as there's no need to change the value of the option since it's being deleted anyway.

=== Deprecating hooks ===
There are several hooks no present that don't fit the proposed structure above. I suggest these hooks continue to work for backward compatibility, but that they be deprecated.

=== See also ===
[https://docs.google.com/document/d/1Zl7SuBJTWY8oWvWP6p4QuDmOCowuuqKHtmnmmlhasBI Google Doc] showing all the new and deprecated hooks

== Related Tickets ==
* #37928
* #37929
* #37930
"	NathanAtmoz		
Enhancements Awaiting Review	55889	Allow specifying multiple keys as an array in meta and option retrieval functions.		Options, Meta APIs	normal	feature request	new	2022-06-01T08:00:27Z	2022-06-01T12:24:44Z	"Allow specifying multiple keys as an array in meta and option retrieval functions like get_option and get_post_meta.

Currently when we have to get multiple meta values from multiple keys we have to use get_post_meta without mentioning the key to retrieve everything or make multiple calls to the function for each key.  It will be really helpfull and a lot more efficient if one can specify the keys in the function call as follows
get_post_meta(post_id, array('key_1, 'key_2'...))

Same applies to get_option."	namith.jawahar		
Enhancements Awaiting Review	42012	Do not switch roles and capabilities when accessing options through `*_blog_option()`		Options, Meta APIs	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	52284	Add filter for notoptions after retrieval		Options, Meta APIs	normal	feature request	new	2021-01-12T18:17:59Z	2021-01-12T18:17:59Z	"Since we are able to filter alloptions after retrieving them via `alloptions` (https://github.com/WordPress/WordPress/blob/f0078d043e0f2805c2400bd5e869eb3533712eec/wp-includes/option.php#L270), it would be nice to do the same for notoptions. This would be great in the case where a developer would want to add a check to ensure that a certain value **never** ends up there. 

Perhaps, this could live in a function similar to `wp_load_alloptions()`, potentially `wp_load_notoptions()`?"	rebasaurus		
Enhancements Awaiting Review	51730	update_metadata function: differentiate failure from no update		Options, Meta APIs	normal	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		
Enhancements Awaiting Review	43208	Separate setting validation from sanitization		Options, Meta APIs	normal	enhancement	new	2018-02-01T23:45:12Z	2020-11-06T23:12:25Z	"As widely known, validation is different from sanitization. A value should first be validated and then be sanitized. Historically, WordPress has been mixing these two responsibilities in the `sanitize_option()` function, however it is easily possible to add an extra layer on top of that which maintains full backward-compatibility.

Newer parts of core, such as the Customizer and the REST API, have been dealing with this in a better way, keeping the two separate. We can achieve the same for options themselves too.

I suggest introducing a `validate_option_{$option}` filter that works somewhat similar like the `customize_validate_{$setting_id}` filter used in the Customizer. It passes an empty `WP_Error` object that can be added to. In addition to allow separate validation from sanitization, it also makes handling of validation easier, since it can then automatically set the value to the previous value and call `add_settings_error()`, passing any error messages set, which matches current core behavior."	flixos90		needs-unit-tests
Enhancements Awaiting Review	49948	Site Meta: Adding additional useful functions		Options, Meta APIs	minor	enhancement	new	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	5.5	has-patch
Enhancements Awaiting Review	46705	"Harden WP core against ""update option"" endpoint vulnerabilities"		Options, Meta APIs	normal	feature request	new	2019-03-28T19:46:36Z	2019-11-25T11:01:24Z	"A fairly frequent problem is plugins failing to perform nonce and permission checks on endpoints servicing their admin pages. Following discovery of such a vulnerability it is usually very straightforward for an attacker to perform a large scale attack defacing or establishing persistent administrative access by modifying the options `siteurl`, `default_role`, `users_can_register`, and likely more.

I propose that all updates to these selected critical options in a web context warrant validating there has been a nonce verification and the current user has the capability to manage_options. This would force an attacker to follow a more difficult exploit path, potentially preventing large scale exploitation of these issues.

The goal I have in mind here is not to be bulletproof, just to defend against a seemingly common bug class."	tsewlliw	5.2	
Enhancements Awaiting Review	38690	Introduce classes for settings		Options, Meta APIs	normal	enhancement	new	2016-11-07T08:53:14Z	2019-03-26T13:14:34Z	"Let's add classes surrounding settings to provide a better structure for dealing with them. It will also allow us to get rid of some globals if we are in a position to remove them (in terms of BC).

Here is what I have in mind:
* A `WP_Settings` class should be introduced that contains `get()`, `update()`, `add()` and `delete()` methods. This will mostly be copy-paste from the related functions. The functions themselves will become wrappers.
* A `WP_Settings_Registry` will be introduced. It should contain all methods that handle registered settings (mostly introduced in 4.7). Again, the functions would become wrappers. We could get rid of the `$wp_registered_settings` global here and store these in a class property instead.
* The `WP_Settings_Registry` instance will be contained by the `WP_Settings` instance as a public property.
* A function `wp_settings()` will be introduced to access the `WP_Settings` instance or generate it if it does not exist yet. I'm not sure yet how to store the instance: The easy way is a global, but I was wondering where we're at with plans like a `WP::get( 'settings' )` so that we could do it differently. Anyway, let's assume a global first.

I think it would be a good pattern to build the class in a flexible way, so that the registry instance and database instance are passed to the class constructor. The following is how I would envision the `wp_settings()` function:
{{{
function wp_settings() {
    global $wp_settings;

    if ( ! isset( $wp_settings ) ) {
        $wp_settings = new WP_Settings( new WP_Settings_Registry(), $GLOBALS['wpdb'] );
    }

    return $wp_settings;
}
}}}

I think once we agree on an approach, we should do something similar for metadata. But let's have the discussion in here first and open the other ticket afterwards."	flixos90		dev-feedback
Enhancements Awaiting Review	44238	Add protected param to register meta		Options, Meta APIs	normal	enhancement	new	2018-05-26T12:17:19Z	2019-02-24T23:05:09Z	"It has been possible for developers to make meta keys protected / not protected since 3.2.0,
when the is_protected_meta filter was added. By default all meta keys that start with an underscore as seen as protected, 
all those this overriden by the filter. There should be a way to a meta key as protected while using register_meta function. 
This would make the register meta function, a point of truth for all meta keys / meta type, where a state, type and access 
are defined in one place.  "	spacedmonkey	3.1.3	has-patch
Enhancements Awaiting Review	46314	JSON strings in postmeta issue		Options, Meta APIs	normal	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	5.2	
Enhancements Awaiting Review	44659	Display custom fields		Options, Meta APIs	normal	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		
Enhancements Awaiting Review	43451	Disallow objects as meta values		Options, Meta APIs	normal	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	4.9.2	
Enhancements Awaiting Review	43209	REST API should take settings errors into account		Options, Meta APIs	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	41769	Custom function to display all values of a custom field (meta_key)		Options, Meta APIs	normal	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		
Enhancements Awaiting Review	41105	Fire action hook after updating option group.		Options, Meta APIs	normal	enhancement	new	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	4.9	has-patch
Enhancements Awaiting Review	40523	populate_options doesn't use correct add_options actions		Options, Meta APIs	normal	enhancement	new	2017-04-21T23:17:27Z	2017-05-02T20:15:25Z	populate_options is a special function, used to populate default option in the options table. To populate the options table, a single (and large) insert is used. Because the add_option isn't used, it means none of that functions actions are run. 	spacedmonkey	1.5	dev-feedback
Enhancements Awaiting Review	37929	Add `pre_delete_option` filter		Options, Meta APIs	normal	enhancement	new	2016-09-03T07:15:29Z	2017-04-21T18:48:57Z	"`get_option()` and `update_option()` already have filters to short-circuit their respective processes, so I think a similar filter should be added to `delete_option()` as well.

Related: #37928"	flixos90		has-patch
Reporter Feedback / Close	54339	unique $keys array when add custom key from Several places with postmeta_form_keys		Options, Meta APIs	normal	defect (bug)	new	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	5.8.1	reporter-feedback
Reporter Feedback / Close	60950	JSON serialization for meta values		Options, Meta APIs	normal	feature request	new	2024-04-07T09:43:39Z	2024-05-10T19:37:33Z	It would be nice to have JSON serialization for complex meta values like arrays. MySQL and other databases support [https://dev.mysql.com/doc/refman/8.3/en/json-search-functions.html JSON specific functions] like JSON_CONTAINS, JSON_OVERLAPS, JSON_SEARCH, etc. we could use for building new comparators. Currently all we can do with these complex meta values if we want to search them is unpacking them. Either we read all the database records and compare them with PHP (which requires a lot more resources) or we put them in separate meta values to make them searchable, comparable (which bloats the database). A really ugly hack some people do is searching the PHP serialized form of a partial value with LIKE comparator. If people are so desperate, then I think it is a sign that this is a really needed feature...	inf3rno		reporter-feedback
Defects Awaiting Review, reported against no version	41272	Unattached media URLs broken for anything over 1000		Permalinks	normal	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		
Defects Awaiting Review	50002	Hack in get_sample_permalink() can cause filters like post_link, and pre_post_link to have inaccurate post_status in admin		Permalinks	normal	defect (bug)	new	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	5.4	has-patch
Defects Awaiting Review	40032	Automatic redirects with _wp_old_slug won't mantain GET parameters if present		Permalinks	normal	defect (bug)	new	2017-03-04T15:05:27Z	2026-08-18T08:40:19Z	"If for example links come up with GET parameters, for example utm parameters for analytics, they get stripped before the redirect.

post_name = 'new-slug'
_wp_old_slug = 'old-slug'

http://example.org/old-slug/?utm_source=test1&utm_medium=test2&utm_campaign=test3

Wordpress will build the link for the redirect to the new slug without any GET parameter:

http://example.org/new-slug/

I think it should mantein them instead:

http://example.org/new-slug/?utm_source=test1&utm_medium=test2&utm_campaign=test3

I'm not even sure if this should be classified as a bug, if it's the correct behaviour or not. I'll let you judge."	DrLightman	2.1	has-patch
Defects Awaiting Review	58764	Incorrect return type in `WP_Rewrite::using_index_permalinks()`.	costdev	Permalinks	normal	defect (bug)	assigned	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	2.7	dev-feedback
Defects Awaiting Review	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	defect (bug)	new	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		has-patch
Defects Awaiting Review	44759	Percent-encoded unicode characters in CPT rewrite slug prevent finding the CPTs on the front-end		Permalinks	normal	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		
Defects Awaiting Review	43036	the_posts_pagination() - redirect URL for first page in category		Permalinks	normal	defect (bug)	new	2018-01-06T20:51:56Z	2025-09-02T19:22:52Z	"When you are on the second, third, etc. the page function `the_posts_pagination ()` outputs a link to the first page for the current category with a slash `/` at the end of the URL:

{{{
/category/category-1/
}}}

But when clicking on a link, a redirect to the page takes place without a slash `/` on the end:

{{{
/category/category-1
}}}

A link to the following pages from this category is displayed already without a slash on the end of the URL:

{{{
/category/category-1/page/2
}}}

Permalink at the same time on the site are configured to look like this:

{{{
/%postname%.html
}}}"	webliberty	4.9.1	
Defects Awaiting Review	58938	Custom permalink indexing issue		Permalinks	critical	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	6.2.2	
Defects Awaiting Review	42248	Can't create category slug with same name for different parents		Permalinks	normal	defect (bug)	new	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	4.9	dev-feedback
Defects Awaiting Review	63282	Inconsistent post name processing		Permalinks	normal	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	6.7.2	
Defects Awaiting Review	63140	Unicode Chars (Icons) in the URL are possible, but break WordPress		Permalinks	minor	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.	6.7.2	
Defects Awaiting Review	55401	Subpages of a web page can be called twice		Permalinks	major	defect (bug)	new	2022-03-16T15:48:12Z	2025-02-03T10:16:08Z	"Subpages of any website created with WordPress can be accessed twice.

If you add a /0/ to the end of the regular URL, the same page can be called again.
This page with /0/ at the end of the URL will also be indexed in Google.

Example:
https://wordpress.org/news/2022/03/wordpress-5-9-2-security-maintenance-release/

https://wordpress.org/news/2022/03/wordpress-5-9-2-security-maintenance-release/0/"	manuel10503	5.9.3	
Defects Awaiting Review	56682	Unexpected cut of the HTML title and the slug		Permalinks	normal	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	6.0.2	
Defects Awaiting Review	61824	Pages no longer allowed to have same permalink as images		Permalinks	normal	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		needs-patch
Defects Awaiting Review	41132	permalinks are broken when using PHP7.0-fpm with nginx		Permalinks	normal	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	4.8	
Defects Awaiting Review	60624	Permalinks corrupted		Permalinks	normal	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	6.3.3	
Defects Awaiting Review	60143	Running behind HAProxy with fcgi makes WordPress think URL rewriting is unavailable		Permalinks	normal	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	6.4.2	
Defects Awaiting Review	59434	Changing permalink structure results in failure to save draft posts		Permalinks	normal	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		
Defects Awaiting Review	56359	Non-existent URLs show contents of homepage instead of 404 error		Permalinks	normal	defect (bug)	new	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	6.0	dev-feedback
Defects Awaiting Review	58125	WordPress post-name permalink is not compatible with Nginx server, working fine with Apache.		Permalinks	normal	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	6.2	needs-patch
Defects Awaiting Review	48786	Wrong URLs to categories, authors etc. to a site in a multisite		Permalinks	normal	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	5.3	
Defects Awaiting Review	56583	Permalinks in Multisite not working when Main Site is in a subdirectory		Permalinks	normal	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	6.0.2	
Defects Awaiting Review	56229	"Attempt to read property ""user_nicename"" on bool in link-template.php on line 265"		Permalinks	normal	defect (bug)	new	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	6.0	has-patch
Defects Awaiting Review	35529	Updating to 4.4.1 causes new pretty permalinks for media to break existing permalinks	kraftbj	Permalinks	normal	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	4.4	
Defects Awaiting Review	47565	WordPress permalinks flip in hebrew		Permalinks	normal	defect (bug)	new	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	4.9.8	has-patch
Defects Awaiting Review	55597	WordPress 6.0-beta2-53224 not creating .htaccess		Permalinks	critical	defect (bug)	assigned	2022-04-21T10:58:53Z	2022-05-24T18:46:49Z	"on my development site (Plesk Obsidian, Centos 7.9) a fresh installed latest WP 6.0 beta2 does not create an .htaccess file at all.

Steps:
 - wordpress-6.0-beta2.zip does not contain .htaccess
 - unzipped and uploaded to site
 - domain opened in browser
 - run set up process until login
 - no .htaccess created
 - table wp_options 'permalink_structure' contains ""/index.php/%year%/%monthnum%/%day%/%postname%/""
 - login as admin
 - selecting a permalink structure and saving on /wp-admin/options-permalink.php 
 - table wp_options 'permalink_structure' contains ""/%postname%/"" as expected
 - no .htaccess created
 - repeated saving of permalink structure does not help to create .htaccess
 - no entry in debug.log
 - as to be expected: permalinks not working in front end
 - only solution: create a basic .htaccess manually

To me this seems a severe bug.

Found this while testing one of my plugins on WP 6.0 before updating it to plugin repository

Chris
PS: no answer required

"	campation	6.0	needs-patch
Defects Awaiting Review	55066	Inconsistency in post URL when parent and child category assigned to the post and permalink structure includes category		Permalinks	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	53346	get_permalink( $post->ID ) returns plain permalink instead of pretty permalink for CPT registered on subsite		Permalinks	normal	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	5.7	
Defects Awaiting Review	40176	Filter user_trailingslashit called with inconsistent $type_of_string for Post-Tags		Permalinks	normal	defect (bug)	new	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	4.7.3	dev-feedback
Defects Awaiting Review	52295	The response is not a valid JSON response - URL permalink using the ? sign		Permalinks	normal	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	5.6	
Defects Awaiting Review	48903	Drafts or pending posts overwrites existing published post with same url		Permalinks	normal	defect (bug)	new	2019-12-06T16:33:57Z	2021-01-13T22:02:59Z	"The creation of a draft with post_name set to as an existing post will prevent the reachability of the older until the pubblication of the new one. The cause of the issue is that the function ''wp_unique_post_slug'' only acts if the post isn't in the status of draft or pending so in the database will be stored two posts with the same post_name. In the frontend side (in a installation with permastruct set to /%postname%/) the executed query is 

{{{
SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_name = 'example' AND wp_posts.post_type = 'post' ORDER BY wp_posts.post_date DESC
}}}

This query will return 2 posts and the wordpress considers the most recent (the draft) so the url returns 404.

"	uatania	5.3	
Defects Awaiting Review	39670	urlencoded non-alphanumeric permalink		Permalinks	normal	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	4.8	
Defects Awaiting Review	51953	"flush_rewrite_rules works not as the same as pressing ""save permalinks"" in backend (breaks system)"		Permalinks	normal	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	5.5.3	
Defects Awaiting Review	51715	get_permalink: stdClass treated as WP_Post causes bad behavour		Permalinks	major	defect (bug)	new	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		has-patch
Defects Awaiting Review	41008	WP_Error wrote instead of category name in wp_options table, category_base field		Permalinks	normal	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	4.8	
Defects Awaiting Review	50439	Post name permalinks htaccess directives do not consider subdirectory installation		Permalinks	normal	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	5.4.2	needs-patch
Defects Awaiting Review	46257	Deleting a page can break the permalink of other pages if it had media uploaded to it		Permalinks	normal	defect (bug)	new	2019-02-14T16:36:50Z	2020-06-04T23:30:48Z	"Trashing and deleting a page can cause the permalink of another page to break the next time that page is edited. It is not obvious to the user that this will happen. It is also not obvious how to fix this, because when an image is not ""Uploaded To"" a particular page, it is not possible to edit the permalink.

1. Start with vanilla WP installation using twentynineteen and no plugins
1. Add New Page > Title: ""Cat""
1. Add Block > Image > Upload > Pick the image > Open
1. Publish... > Publish
1. Media > Click on the image that was just uploaded, see that it says ""Uploaded To Cat""
1. Edit more details > Edit (permalink) > Set to ""dog"" > OK > Update
1. The permalink should now be `http://localhost/cat/dog/`
1. Add New Page > Title: ""Dog"" > Publish... > Publish
1. See that ""Page address"" is `http://localhost/dog/`
1. Visit `/dog/` to confirm the page is displayed
1. Pages > Trash (Cat) > Trash (at the top of the page) > Empty Trash
1. Pages > Dog > Make a change, such as adding text to the existing block > Update
1. Document > Permalink > Notice that URL is now `dog-2`
1. Visit `/dog/` to see that instead of the page, the image is instead displayed
"	mallorydxw	5.0.3	
Defects Awaiting Review	39321	Issue with get_permalink when using wp_update_post() and %author% is part of your permalink		Permalinks	normal	defect (bug)	new	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	4.7	dev-feedback
Defects Awaiting Review	49452	Approximately every week permalinks are lost for custom post types in multisite		Permalinks	normal	defect (bug)	new	2020-02-17T07:31:42Z	2020-02-17T09:49:56Z	"I have to check my site https://6teamconditions.com/ multiple times a day as it will randomly just loose the permalinks for custom post types and will return a 404.

I have deactivated security and cache plugins and still have same behaviour.

There are no errors logged, I can not find any event that is causing this.
I have used the same theme method for creating custom post types on hundreds of normal (non multisite) wordpress sites over many years without ever having this problem.

The site has had this problem since going live in December, wordpress has been updated to latest version each time.

I have been posting in the support forum with no luck
https://wordpress.org/support/topic/permalinks-disapear-for-custom-post-types/#post-12332300

Example log of error 404 on website https://6teamconditions.com
135.180.133.34 - - [17/Feb/2020:01:14:55 +0000] ""GET /podcast/episode-002-the-6-conditions-framework/ HTTP/2"" 404 6464 ""-"" ""Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.100 Safari/537.36""
"	Lauriate	5.3.2	
Defects Awaiting Review	48658	Post, Page, and Attachment permalinks can be silently overwritten when Permalinks are set to /%postname%/		Permalinks	normal	defect (bug)	new	2019-11-15T21:28:17Z	2019-11-16T11:05:13Z	"When a new post is created with a permalink that matches an existing attachment page permalink, the attachment page permalink is silently overwritten. The expected behavior of having `-2` appended to the new post permalink does not occur and instead the existing attachment page becomes inaccessible via its permalink, which starts pointing to the new post instead.

Steps to reproduce:

1. Ensure pretty permalinks are enabled in Settings -> Permalinks (e.g., `/%postname%/`)
1. Upload something to the Media Library (e.g., `happy-pumpkin.jpg`)
1. Note the Attachment Page permalink generated from the upload (e.g., `/happy-pumpkin/`)
1. Publish a new post with a title that will produce the same permalink (e.g., a post title of ""Happy Pumpkin"" will generate a new post permalink of `/happy-pumpkin/`, ''not'' `/happy-pumpkin-2/` as expected)
1. Now both the attachment page and the new post have the same permalink (`/happy-pumpkin/`, in this example) and the attachment page permalink has been silently overwritten.

When the attachment page permalink is overwritten, there's no way to access that attachment page on the front-end (it now points at the new post). There's also no obvious way to manually change the permalink. 

In testing, what works is to edit some detail of the attachment in the Media Library—once the change is saved, the permalink is regenerated and updated to include `-2`, which then makes the attachment page accessible again."	raamdev	5.4	
Defects Awaiting Review	48365	No 301 redirection for Numeric style permalink structure		Permalinks	normal	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		needs-patch
Defects Awaiting Review	46266	Add auto-draft to list of statuses faked in get_sample_permalink()		Permalinks	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	47207	Specific custom permalink 404 on archive page		Permalinks	normal	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	5.2	
Defects Awaiting Review	44847	Redirect old date-based permalinks on structure changes		Permalinks	normal	defect (bug)	new	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		needs-unit-tests
Defects Awaiting Review	45784	Pages and archives containing /[0-9]/ should redirect or redirect correctly		Permalinks	normal	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	5.0.2	
Defects Awaiting Review	45819	when {category|tag}_base include spaces their rewrite rules don't get generated correctly, resulting in 404's		Permalinks	normal	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		
Defects Awaiting Review	38595	Unable to access wp-admin/options-permalink.php when .htaccess file is on NFS		Permalinks	normal	defect (bug)	new	2016-10-31T19:03:14Z	2017-05-03T05:59:25Z	"After nearly a week of troubleshooting, we have identified an issue with wordpress which is preventing us from storing our .htaccess file on an NFS mount.

This issue exists as far back as 4.4

In order to reproduce:

install wordpress in a directory where .htaccess is located on a mounted nfs share. Once wordpress is installed, navigate to yoursite.com/wp-admin/options-permalink.php - the page should fail to load.

This issue appears to be caused by the function ""flock();"" in the function ""insert_with_markers();"" in wp-admin/includes/misc.php

Per PHPs documentation, flock(); is only acceptable for use on local filesystems.

I found an existing ticket regarding this function - #31767 - if I understand correctly, flock(); was added to the ""insert_with_markers(); function to resolve a concurrent write issue on shared filesystems.


Disclaimer: I am not a PHP developer, and only understand the basic concepts. The testing for the above bug consisted of commenting out functions till I could find the source of the issue. Commenting out the ""flock();"" function in the ""insert_with_markers();"" function resolved the issue in our environment."	kicwordpress	4.4	
Defects Awaiting Review	32048	Uploaded file reserves a name, page can't be named it.		Permalinks	normal	defect (bug)	new	2015-04-22T03:51:57Z	2017-03-09T01:04:29Z	"1) Upload a file-name.png file to media library.
2) Publish a page named ""file-name"". 
3) Note that (if site is set to post-name permalink) the page is now file-name-2
4) Try to rename the attachment and then give the page the natural name, and it still doesn't work.

This might have a similar root cause as bug #13459."	programmin	4.1.1	
Enhancements Awaiting Review	42148	url_to_postid plain permalinks for CPTs		Permalinks	normal	enhancement	new	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	1.0	has-patch
Enhancements Awaiting Review	52737	Allow 301 redirect on _wp_old_slug to be filterable		Permalinks	normal	enhancement	new	2021-03-09T06:52:29Z	2026-07-08T13:07:33Z	"While the URL on `old_slug_redirect_url` is filterable the same should be true for the redirect status. It currently is hardcoded as a 301. Allowing any status code will allow for 302 or other status to be used. 

https://core.trac.wordpress.org/browser/trunk/src/wp-includes/query.php#L1082

"	brookedot		has-patch
Enhancements Awaiting Review	60675	Add hook for wp_check_for_changed_slugs()		Permalinks	normal	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	6.4.3	
Enhancements Awaiting Review	61618	changing permalink structure		Permalinks	normal	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		
Enhancements Awaiting Review	63953	Improving the Permalink Structure for `?attachment_id=123`		Permalinks	normal	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		
Enhancements Awaiting Review	23060	Throw 404 if URL Rewriting is Used With Default Permalinks		Permalinks	normal	enhancement	reopened	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	3.5	dev-feedback
Enhancements Awaiting Review	62538	WordPress does not detect Openbsd httpd for URL rewrites		Permalinks	normal	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	6.7.1	
Enhancements Awaiting Review	53859	Add a filter hook to modify the paginate links arguments		Permalinks	normal	feature request	new	2021-08-02T07:35:35Z	2024-10-01T06:07:22Z	"A filter hook to modify arguments in the function paginate_links()

https://developer.wordpress.org/reference/functions/paginate_links/

This filter hook can be added as below:

Current:

{{{
$args = wp_parse_args( $args, $defaults );
}}}


After:

{{{
$args = apply_filters( 'paginate_links_args', wp_parse_args( $args, $defaults ) );
}}}
"	ibachal		has-patch
Enhancements Awaiting Review	61261	If redirect_guess_404_permalink returns a LIKE condition result, the redirect should have 302 code		Permalinks	normal	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		
Enhancements Awaiting Review	52835	Disable permalink for images		Permalinks	normal	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	5.7	
Enhancements Awaiting Review	24776	Need Filter Hooks on Creating Slug - Check Availability of Slug if That is Used for Post, Page, Taxonomy or any Plugin		Permalinks	normal	feature request	new	2013-07-16T21:06:09Z	2022-02-14T05:01:30Z	"I did not find any '''filter hook''' for choosing slug for any object. I have a plugin that creates its own URLs. eg. example.com/my-campaign . If someone hits on this url then he will see my plugin generated page. But if there is already a page ""'''My Campaign'''"" then WP is unable to show that page because that '''permalink''' already taken by my plugin. So Before creating my plugin slug I need to check '''WP posts, pages and taxonomies''' if any of those already used my slug. I also need to check Root directory of WordPress installation if there is a '''directory with same name''' of my slug. 
WP Core checks available slug in its own database and reserved words. But it doesn't check slugs those are used by any plugin. If there is a post name ""'''my-campaign'''"" then my plugin don't let to chose this slug but If my plugin took this before and user want create a page ""my-campaign"" then WordPress will take the same slug. And here is the main problem. 
In the same way my plugin is conflicting with other plugins. My plugin can check WordPress core slugs but not other plugins. 
""'''Pretty Link'''"" is one of the most popular plugin. It also creates its own url. It also checks available slug in wordpres db but not in other plugin.
Any plugin may have custom rewrite rule, then my plugin can not handle that. 


So I think we need a standard rule that will be followed by WordPress core and all plugins.
I have three different plugins those need own slugs. I made a universal process that I am using in all of my plugins. 
I am explaining my process bellow. 
I am using a filter hook ''''onetarek_is_slug_available'''' all of my plugin use this filter before choosing a slug. 

MY CODES: 


{{{
<?php
function otk_filter_available_slug( $slug, $id=false)
  {
    if($slug==false)return false;
	global $wpdb;
 
    #Check if this slug already being used for any posts, pages or categories
    $has_postname = $wpdb->get_var($wpdb->prepare(""SELECT post_name FROM {$wpdb->posts} WHERE post_name=%s LIMIT 1"",$slug));
    $has_taxonomy = $wpdb->get_var($wpdb->prepare(""SELECT taxonomy FROM {$wpdb->term_taxonomy} WHERE taxonomy=%s LIMIT 1"",$slug));
    if( $has_postname or $has_taxonomy )return false;
      
  
    #Check if any same named file or directory exists in the root of wordpress installation
    $root_directory = opendir(ABSPATH); 
  	$slug_lower=strtolower($slug); #we consider wp-content and Wp-ContENT and WP-CONTENT are same.
    while (($file = readdir($root_directory)) !== false)
	{
      $filename = strtolower($file);
      if($filename == $slug_lower) return false;
    }
  
    #Check same slug is exists in click jacker database.
	#if same slug exists and associate for given id then return slug . We allow this
	if($id){$id=intval($id);}
	if($id)
	{
	$SQL = $wpdb->prepare(""SELECT slug FROM "".CLICK_JACKER_CAMPAIGN_TABLE."" WHERE slug=%s AND id =%d"", $slug, $id);
	$has_slug = $wpdb->get_var($SQL);
	if( $has_slug == $slug ){return $slug;} 
	}
	#if same slug exists and no id given then we don't accept this.
    $SQL = $wpdb->prepare(""SELECT slug FROM "".CLICK_JACKER_CAMPAIGN_TABLE."" WHERE slug=%s"", $slug);
	$has_slug = $wpdb->get_var($SQL);
    if( $has_slug == $slug )return false;
    
    return $slug;
  }
  

 add_filter('onetarek_is_slug_available', 'otk_filter_available_slug', 10, 2); ?>
}}}

I am calling above filter where I need 


{{{
<?php 
$campaign_slug='my-campaign';
 $myslug=apply_filters('onetarek_is_slug_available', $campaign_slug); 
 if($myslug)
 {
 #use $myslug
 }
 else
 {
 #chose another slug
 }
?>
}}}

My technique is limited.
In my filter function I run 2 SQL query to check WP slugs , but that is limited. WordPress has reserved words also, those are not being checked in this process. And my other 2 plugins also run the same. Now if any website uses my 3 plugins then same process will be run 3 times and 6 SQL query will be run to check WP slugs. My function is unable to check the slug of ""Pretty Links"" plugin. 
But if '''WORDPRESS core''' would have a '''FILTER HOOK''' and run a function with this filter to check any kind of WP slugs then my plugins would  search only its own database once. AND other plugin developer would attach a function with this filter. And they would check only their own database. Plugins don't need to check WP slugs because core function already fired with this FILTER HOOK. 
In the same way WP core should respect other plugin slugs and '''custom url rewrite rules'''. When WP check available slug for post, page, taxonomies then it should use this FILTER also. 

I THOUGHT THIS WAY BECAUSE I DON'T FIND ANY WAY. IF ANYTHING ALREADY EXISTS IN WP PLEASE LET ME KNOW. 

Regards
Jahidul Islam (oneTarek)
[http://onetarek.com]














  







 












 




  "	onetarek		dev-feedback
Enhancements Awaiting Review	47878	Permalink issue when using sub categories. Why does it entirely rely on ID?		Permalinks	major	enhancement	new	2019-08-14T19:33:04Z	2021-10-12T09:04:39Z	"There seems to be come confusion and inconsistency with the way permalink structure work with categories (specifically sub categories). Hear me out. 

Hopefully you're able to follow:

Assuming you have a permalink structure of `/%category%/%postname%/`, then posts can indeed have a slug of `/category-parent/category-child/post-name/`. This is the expected outcome.

**HOWEVER**, the issue here is that if a post is assigned the full ""tree"" of categories (parent > child > sub-child), then it will only have the parent category slug in the permalink (assuming the Parent category was created first, and therefore has a lower ID # ... which is often the case). 

Somewhat strangely though, if you assign ONLY the Sub Child category — which likely has a higher ID than Parent and Child, then the permalink will have the entire tree in the permalink. This is because, even though only Sub-Child was chosen, it cannot have only a sub-category within the permalink... since the sub-categories rely on the parent. But anyway... 

Here are some examples, and why it's an issue to rely heavily on the Category ID for permalink. I think this needs to be resolved somehow...

Example, where Children categories were created before parents (and therefore children had lower ID):

**Test Parent (ID: 163) > Test Child (ID: 162) > Test Sub Child (ID: 161)**

No matter what category I assign (whether only one of them, or the entire tree), the permalink returned is **idea**l (it includes the full path, up to the chosen category)
* E.g., if I chose ONLY “Test Child”, the permalink is `/test-parent/test-child/post-name/`
* E.g., if I chose ONLY “Test Sub Child”, the permalink is `/test-parent/test-child/test-sub-child/post-name/`
* E.g., if I chose “Test Parent” and “Test Sub Child” (and didn’t choose “Test Child”), the permalink is still the full path of `/test-parent/test-child/test-sub-child/post-name/`
* E.g, if I chose ALL 3 (entire tree), the permalink is still `/test-parent/test-child/test-sub-child/post-name/`
* All of these are ''ideal'', as I have `/%category%/%postname%/` as the permalink structure. Therefore if/when there are sub-categories, it should add them to the permalink structure as a new directory. Yes please.

''However, this isn’t always the case.''

I also have another category structure of:

**Example Parent (ID: 120) > Example Child (ID: 142) > Example Sub Child (ID: 160)**

* In THIS case, the only difference is that the IDs become higher for the children.
* In the other example, the sub-child was made first, then the child, then the parent. Therefore, because the sub-child has the lower ID #, the Post would always try to use that slug if it is assigned to it. Then, because it does use that slug… it also relies on using the child and parent too. That is ideal, where a post with a parent/child category has the full structure in the permalink.
* But, based on the Example directly above, why on earth should the slug ID # determine how the permalink structure is? If I have a parent/child category selection in my Post, then it should ALWAYS use the full structure in the permalink. Yet, if the Parent’s ID is LOWER than the Child’s ID, it will only ever use the parent slug in the permalink.

While I realize this probably isn't considered a bug; at the very least, it should be considered unexpected behavior. Perhaps, there should be an option somewhere to choose whether the admin wants to have the full permalink structure when using sub-categories… or if they only want the parent category (or maybe only the child category). But the fact that it’s ''entirely dependent'' on the ID is a bit silly, as it now requires the IDs to be in a certain [backwards] sequential order (in order for the full path to show up).

This makes it near impossible to have a full permalink structure of `/parent/child/sub-child/` without going through all existing categories and ensuring the Parent/Child category relationship has lower IDs the further into the tree you go."	freshyjon		
Enhancements Awaiting Review	52889	Add filter to disable forced plain permalinks		Permalinks	normal	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	5.7	
Enhancements Awaiting Review	50135	Proposal: Permalink structure tags grouping Mandatory and Available		Permalinks	minor	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		
Enhancements Awaiting Review	37831	Change the permalink structure without changing the url of older articles		Permalinks	normal	feature request	new	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		dev-feedback
Enhancements Awaiting Review	43722	On changing of permalinks ask a confirm before to save		Permalinks	normal	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		
Enhancements Awaiting Review	42702	"Most common issue inside post edit - ""Links Live search""."		Permalinks	normal	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	4.9	
Reporter Feedback / Close	63270	Problems with links on several occasions		Permalinks	normal	defect (bug)	reopened	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	6.7.2	reporter-feedback
Reporter Feedback / Close	45331	'rest_url_prefix' filter fails to impact flush_rewrite_rules() on plugin activation		Permalinks	major	defect (bug)	new	2018-11-12T14:39:16Z	2025-02-20T07:39:32Z	"'rest_url_prefix' filter fails to impact flush_rewrite_rules() on plugin activation
=========================================================================

So here is the bug - 'flush_rewrite_rules' is called on plugin activation after 'rest_url_prefix' filter added with new API ENDPOINT,
but if I go to '<MY-DOMAIN>/<NEW-ENDPOINT>/' it gives me 404 error. And if I access '<MY-DOMAIN>/wp-json/' on Firefox Developer Edition in 'Header' section I see:\\
`Link	<http://<MY-DOMAIN>/<NEW-ENDPOINT>/>; rel=""https://api.w.org/""`\\
So the header is correct here. And it will fix the issue if I go to WP Settings -> Permalinks -> Save.\\
But that is a bug. As you won't have to instruct that to your plugin user, after his activation he will see that API is not working.\\
\\
Install Controller class - 'flush_rewrite_rules' is called on plugin activation after 'rest_url_prefix' filter added with new API ENDPOINT:
{{{#!php
<?php
namespace GreatestEverManager\Controllers\Admin;
final class InstallController
{
    <...>

    public function setCustomWP_RestAPI_Prefix()
    {
        // NOTE: Do not forget to do the same on install with flush_rewrite_rules(); after it.
        add_filter('rest_url_prefix', function() { return ConfigurationInterface::WP_REST_API_PREFIX; }, 10, 1);

        // NOTE: As there is no custom post types or custom taxonomies registration later, we perform rewrite rules flush right now
        flush_rewrite_rules();
    }
	
    <...>
}
}}}
\\
Main Controller class:
{{{#!php
<?php
namespace GreatestEverManager\Controllers;
use SoftwareLicenseManager\Models\Configuration\ConfigurationInterface;
<...>

final class MainController
{
    <...>
    public function __construct(ConfigurationInterface $paramConfWithoutRouting)
    {
        <...>
        if(!is_null($this->confWithoutRouting))
        {
            register_activation_hook($this->confWithoutRouting->getPluginPathWithFilename(), array(&$this, 'networkOrSingleActivate'));
            register_deactivation_hook($this->confWithoutRouting->getPluginPathWithFilename(), array(&$this, 'networkDeactivate'));
            <...>
        }
    }

    /**
     * Activate (enable+install or enable only) plugin for across the whole network
     * @note - 'get_sites' function requires WordPress 4.6 or newer!
     */
    public function networkOrSingleActivate()
    {
        if(is_multisite())
        {
            // A workaround until WP will get fixed
            // SHOULD be 'networkActivate' but WordPress does not yet support that feature,
            // so this means as long as the 'MULTISITE' constant is defined in wp-config, we use that method
            $this->multisiteActivate();
        } else
        {
            // A workaround until WP will get fixed
            $this->activate();
        }
    }

    public function activate()
    {
        try
        {
            <...>
            // Install plugin for single site
            $objInstaller = new \GreatestEverManager\Controllers\Admin\InstallController($conf, $lang, $conf->getBlogId());
            // Install
            <...>
            $objInstaller->setCustomWP_RestAPI_Prefix();
            <...>
        } catch (\Exception $e)
        {
            if(StaticValidator::inWPDebug())
            {
                // In WP activation we can kill the install only via 'trigger_error' with 'E_USER_ERROR' param
                $error = sprintf(static::LANG_ERROR_IN_METHOD_TEXT, __FUNCTION__, $e->getMessage());
                trigger_error($error, E_USER_ERROR);
            }
        }
    }

    public function run()
    {
        if($this->canProcess)
        {
            <...>
            add_filter('rest_url_prefix', function() { return ConfigurationInterface::WP_REST_API_PREFIX; }, 10, 1);
            add_action('rest_api_init', array(&$this, 'frontEndAPI_Callback'), 0);
            <...>
        }
    }
    <...>
}
}}}
\\
Plugin main file (wp-content/plugins/GreatestEverManager/GreatestEverManager.php):
{{{#!php
<?php
/**
 * Plugin Name: Greatest Ever Manager
 * <...>
 */
namespace GreatestEverManager;

require_once 'Models/Configuration/ConfigurationInterface.php';
require_once 'Models/Configuration/Configuration.php';
require_once 'Controllers/MainController.php';
<...>

use GreatestEverManager\Models\Configuration\Configuration;
use GreatestEverManager\Controllers\MainController;

if(!class_exists('GreatestEverManager\GreatestEverManager'))
{
    final class GreatestEverManager
    {
        // Configuration
        const REQUIRED_PHP_VERSION = '5.4.0';
        const REQUIRED_WP_VERSION = 4.6;
        const OLDEST_COMPATIBLE_PLUGIN_VERSION = 6.0;
        const PLUGIN_VERSION = 6.0;

        // Settings
        private static $params = array(
            'plugin_id' => 0,
            'plugin_prefix' => 'greatest_ever_manager_',
            'plugin_api_namespace' => 'gem/v1',
            'plugin_handle_prefix' => 'greatest-ever-manager-',
            <...>
        );
        private static $objConfiguration = NULL;
        private static $objMainController = NULL;
        <...>

        /**
         * @return Configuration
         */
        public static function getConfiguration()
        {
            if(is_null(static::$objConfiguration) || !(static::$objConfiguration instanceof Configuration))
            {
                // Create an instance of plugin configuration model
                static::$objConfiguration = new Configuration(
                    $GLOBALS['wpdb'],
                    get_current_blog_id(),
                    static::REQUIRED_PHP_VERSION, phpversion(),
                    static::REQUIRED_WP_VERSION, $GLOBALS['wp_version'],
                    static::OLDEST_COMPATIBLE_PLUGIN_VERSION, static::PLUGIN_VERSION,
                    __FILE__,
                    static::$params
                );
            }
            return static::$objConfiguration;
        }

        /**
         * Creates new or returns existing instance of plugin main controller
         * @return MainController
         */
        public static function getMainController()
        {
            if(is_null(static::$objMainController) || !(static::$objMainController instanceof MainController))
            {
                // NOTE: This is not passing by reference!
                static::$objMainController = new MainController(static::getConfiguration());
            }

            return static::$objMainController;
        }

        <...>
    }

    <...>

    // Run the plugin
    GreatestEverManager::getMainController()->run();
}
}}}
\\
The coding pattern is S.O.L.I.D. MVC, Version 6, based on PSR-4 Autoloaders and PSR-2 Coding Standards.
To deeply inspect load process (without the REST_API part), you can inspect 'Expadandable FAQ' - SolidMVC boiler-plate plugin:
[https://wordpress.org/plugins/expandable-faq/]"	KestutisIT	4.9.8	reporter-feedback
Reporter Feedback / Close	10425	Improvements to IIS7 Rewriting Code		Permalinks	normal	enhancement	assigned	2009-07-16T14:12:09Z	2025-01-08T19:15:19Z	"#8974 introduced a set of functions and changes which allow to automatically generate Rewrite Rules for Wordpress installs running on IIS7. 

There are some issues with that implementation that I think are worth being written down and discussed somewhere so here we go:

1) There's no '''""Verbose"" option''' for IIS rules; while I can't say when it would make sense to have a verbose listing of all WordPress rewrite rules in `.htaccess`/`web.config` it might be something that should be available for both systems?

2) IIS does not add '''non wordpress rules''' (`$non_wp_rules`) to the `web.config` file (`iis7_url_rewrite_rules()`) which means that any custom rewriting which plugins/users can do on apache don't work on IIS.

3) At the moment it's assumed that there is only ONE single rule needed for IIS. Especially when looking at the merge with WPMU this is going to become a problem because WPMU uses '''multiple rules'''. Every rule has to have a unique name and functions like `iis7_rewrite_rule_exists()` and `iis7_delete_rewrite_rule()` only look for one rule with name ""wordpress"". Custom Rules (see 2) also won't work without a change here. For a partial fix see misc.php in [http://trac.mu.wordpress.org/attachment/ticket/991/991-webconfig.patch Patch on MU #991])

Any comments?"	bforchhammer	2.8.1	close
Reporter Feedback / Close	10384	Make IIS Permalink support enabled based on capability not on version number	westi	Permalinks	normal	enhancement	new	2009-07-11T08:37:44Z	2025-01-08T19:13:27Z	"At the moment we enable the IIS permalink support based on checks for IIS7 and then some capabilities.

We should remove the version checking and work solely on capabilities so that we don't have to revisit when IIS8 is released."	westi	2.8	close
Reporter Feedback / Close	60816	Attachment pages conflicting with actual pages		Permalinks	normal	defect (bug)	new	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	6.4.3	reporter-feedback
Reporter Feedback / Close	57804	"Missing word ""wordpress"" on the permalink that's why not opening a separate tour on the website"		Permalinks	major	defect (bug)	new	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	6.1.1	reporter-feedback
Reporter Feedback / Close	48146	Google breadcrumbs problem		Permalinks	normal	defect (bug)	new	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	5.2.3	reporter-feedback
Reporter Feedback / Close	31728	Search bug (Cyrillic)		Permalinks	normal	defect (bug)	new	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	4.1.1	reporter-feedback
Reporter Feedback / Close	50490	WordPress URL guessing cannot be stopped		Permalinks	normal	defect (bug)	new	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	5.4.2	reporter-feedback
Reporter Feedback / Close	47813	permalinks broken when article name is numeric(if the post id above 1000)		Permalinks	normal	defect (bug)	new	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	5.2.2	reporter-feedback
Defects Awaiting Review, reported against no version	25582	Ping status always disabled when quick editing a post type that doesn't support trackbacks		Pings/Trackbacks	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review, reported against no version	38282	Trackbacks do not return proper XML on double entries and flood		Pings/Trackbacks	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	56380	The pingback function does not work on internal or external links		Pings/Trackbacks	normal	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	6.0	
Defects Awaiting Review	49703	do_all_pings brings race back		Pings/Trackbacks	normal	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	5.4	
Enhancements Awaiting Review	38207	Disable Trackbacks by Default Keep Pingbacks On		Pings/Trackbacks	minor	enhancement	new	2016-10-01T19:21:01Z	2026-10-09T05:17:22Z	"Trackback is a manual technology. Pingback is an automated technology(automatically pings sites linked to in post content). 

The question comes from me as the component maintainer and I'm opening this as a place for  if the proliferation of Trackback Spam and the manual requirement has made it worth disabling the receipt and/or sending of trackbacks by default while leaving pingbacks enabled.

I continue to be committed to pingback and the concept in general, but I have to ask regarding the interest in trackback. I'm putting out a call for comment in this regard. 

The only recent trackback related requests involve expensive queries to send trackbacks(See #36824). 

Related #37007."	dshanske		ui/ux
Enhancements Awaiting Review	43791	Add the call to pingback_url to core instead of themes		Pings/Trackbacks	normal	enhancement	new	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	4.9.5	dev-feedback
Enhancements Awaiting Review	24241	Whitelist trackbacks/pingbacks from own site		Pings/Trackbacks	normal	enhancement	new	2013-05-01T18:50:16Z	2026-04-02T23:39:44Z	"Currently, if a user has only ""Comment author must have a previously approved comment"" selected in Settings->Discussion,  pingbacks from their own blog are still held for moderation every time. Users would expect that, given those discussion settings, once they'd approved one self-ping, all future self-pings would appear without requiring moderation. 

There is a past ticket about this here: #999"	eurello	3.5.1	has-patch
Enhancements Awaiting Review	32653	Improve Linkback Presentation		Pings/Trackbacks	normal	enhancement	new	2015-06-15T12:04:10Z	2017-02-14T20:31:27Z	"The current default presentation for linkbacks(pingbacks and trackbacks) does not encourage their use. Currently,the presentation looks something like this: 

[…] A pingback example. […]

People have complained that the utility of linkbacks has been overshadowed by their use as a vector for DDOS attacks and spam.

The recent improvements to Press This show we can do better in presentation of linked content.

The pingback specification is a bit vague in terms of presentation suggestions, stating: ""Bob's blog also retrieves other data required from the content of Alice's new post, such as the page title, an extract of the page content surrounding the link to Bob's post, any attributes indicating which language the page is in, and so forth.""

I am proposing by default we switch to a default with improved readability and more consistent with the user experience on other websites.

For example, a basic linkback should display the author/site name, the name of the linked content, etc, rather than the summary, and that information stored as comment meta. This would look more like a citation.

That display could be (optionally) progressively enhanced by other factors, for example, page markup such as MicroFormats, Microdata, or OpenGraph(popularized by Facebook), etc to add a better experience if the linked site supports it.

The basic point is that linkbacks are unusable by people in their current form, but the idea of letting people know you linked to their content is a good one. It encourages conversation and interaction. I think we just need to make it a better experience. Otherwise, everyone just turns it off.

I'm aware the above could be done by a plugin(and may start as a 'feature' plugin), however I think the basic structure of this change belongs in core."	dshanske		dev-feedback
Defects Awaiting Review, reported against trunk	66299	Multisite: Sub-site redirects to the network Add Plugins and Add Themes screens drop the query string		Plugins	normal	defect (bug)	new	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	trunk	has-patch
Defects Awaiting Review, reported against no version	43489	Strengthen resilience of wp_register_plugin_realpath to support Gutenberg		Plugins	normal	defect (bug)	new	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		needs-unit-tests
Defects Awaiting Review, reported against no version	40393	Using remove_action within an action callback skips over execution of other callbacks with lower priority		Plugins	major	defect (bug)	new	2017-04-07T16:01:05Z	2020-07-07T14:23:02Z	"Description:

When remove_action is used by an action callback to remove itself from the list of callbacks, this results in all callbacks hooked with the immediately lower priority to be skipped by apply_filters.

Here is simple code to demonstrate:

{{{#!php
<?php

class Sample {
    
    public function test()
	{
		add_action('custom_action', array($this, 'callback_1'), 1);
		add_action('custom_action', array($this, 'callback_2'));
		add_action('custom_action', array($this, 'callback_3'), 20);

		echo '<h1>First Run</h1>';
		echo '<pre>';
		do_action('custom_action');
		echo '</pre>';
		echo '<h1>Second Run</h1>';
		echo '<pre>';
		do_action('custom_action');
		echo '</pre>';
	}

	public function callback_1()
	{
		echo ""Callback 1\n"";
	}

	public function callback_2()
	{
		echo ""Callback 2\n"";
		remove_action('custom_action', array($this, 'callback_2'));
	}

	public function callback_3()
	{
		echo ""Callback 3 - Priority 20\n"";
	}
}

$runner = new Sample;
$runner->test();

}}}

The output is:

First Run
Callback 1
Callback 2

Second Run
Callback 1
Callback 3 - Priority 20

The expected output should be:

First Run
Callback 1
Callback 2
Callback 3 - Priority 20

Second Run
Callback 1
Callback 3 - Priority 20

The net effect of this issue is that a plugin using remove_action in that way will break another, totally unrelated plugin, if they both add actions on same tag, with different prorities.

WooCommerce is using this method, it uses remove_action inside a pre_get_posts action callback. This broke our Accelerated Mobile Pages plugin when doing AMP pages for WooCommerce.
This was reported to [https://github.com/woocommerce/woocommerce/issues/14092 WooCommerce here], but it was then suggested it was a core issue.

'''Additional notes''':

- all callbacks must '''object methods'''. The problem does not occur if callbacks are functions.

- the callback using remove_action must be the only registered callback for that priority level

{{{#!php
<?php
add_action('custom_action', array($this, 'callback_1'));
add_action('custom_action', array($this, 'callback_2'));
add_action('custom_action', array($this, 'callback_3'), 20);
add_action('custom_action', array($this, 'callback_4'), 20);
}}}

will not cause the issue, all callbacks are executed.

{{{#!php
<?php
add_action('custom_action', array($this, 'callback_1'), 5);
add_action('custom_action', array($this, 'callback_2'));
add_action('custom_action', array($this, 'callback_3'), 20);
}}}

will cause the issue, callback_3 is not executed.

- only the next priority level is removed (but all callbacks for that level are removed):

{{{#!php
<?php
add_action('custom_action', array($this, 'callback_1'), 1);
add_action('custom_action', array($this, 'callback_2'));
add_action('custom_action', array($this, 'callback_3'), 15);
add_action('custom_action', array($this, 'callback_4'), 20);
}}}

will cause callback_3 to be skipped and callback_4 to be executed normally

{{{#!php
<?php
add_action('custom_action', array($this, 'callback_1'), 1);
add_action('custom_action', array($this, 'callback_2'));
add_action('custom_action', array($this, 'callback_3'), 20);
add_action('custom_action', array($this, 'callback_4'), 20);
}}}

will cause both callback_3 and callback_4 to be skipped


'''Related''': the following tickets are related, even duplicates, but are marked as fixed, which is why I am opening this ticket: [https://core.trac.wordpress.org/ticket/33144 #33144], [https://core.trac.wordpress.org/ticket/21169 21169], [https://core.trac.wordpress.org/ticket/37679 37679]"	weeblrpress		dev-feedback
Defects Awaiting Review, reported against no version	9968	dynamically adding/removing filters breaks plugins		Plugins	normal	defect (bug)	reopened	2009-05-28T23:43:11Z	2020-03-02T15:43:22Z	"noticed this while doing something similar to this:

{{{
add_action('foo', 'bar1', 10);
add_action('foo', 'bar2', 20);

function bar1() {
  remove_filter('foo', 'bar1', 10);
}
}}}

in the above, bar2() doesn't get called. it is because of the usage of next()/current() to loop through filters.

attached patch uses a foreach loop instead, to make it work."	Denis-de-Bernardy		needs-unit-tests
Defects Awaiting Review, reported against no version	41141	Plugin edit: Missed message about making file writeable		Plugins	normal	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		
Defects Awaiting Review, reported against no version	41140	Theme/plugin editing: Long file list goes off page		Plugins	normal	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		
Defects Awaiting Review, reported against no version	41139	Plugin editing: Should the 'browsing' stand out more?		Plugins	normal	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		
Defects Awaiting Review	65759	Plugin Dependencies: a network-activated dependency is counted as inactive, disabling the Activate button		Plugins	normal	defect (bug)	new	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	6.5	has-patch
Defects Awaiting Review	66396	activate_plugin() triggers PHP warning on multisite for missing plugins before validate_plugin() runs		Plugins	normal	defect (bug)	new	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	3.0	has-patch
Defects Awaiting Review	64024	wp_die() status code Plugins component updates (parent ticket: #64009)		Plugins	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63882	Plugins: Preflight activation to avoid WSOD when plugin code uses syntax incompatible with PHP runtime		Plugins	normal	defect (bug)	new	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	3.0	has-patch
Defects Awaiting Review	66346	"Plugin Dependencies: Undefined array key ""activateUrl"" for active plugins on multisite"		Plugins	normal	defect (bug)	new	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	6.5	has-patch
Defects Awaiting Review	62212	Plugin update via modal does not update plugins list until page reload		Plugins	normal	defect (bug)	new	2024-10-13T12:55:22Z	2026-10-24T18:37:49Z	"If you visit the ""Plugins"" page in the admin section and there is a plugin update available, the following text will be displayed:

  There is a new version of [the plugin's name] available. View version [the plugin's latest version] details or update now.

If you click the ""View version ... details"" link, a modal dialog box (using an iframe) will be displayed with a button to perform the update.

Before WordPress 6.5, this button was labeled ""Install Update Now"".  If you clicked the button, the modal would close, the text on the main page would change to ""Updating..."" and then finally this text would change to ""Updated!"" when the update was completed.

In WordPress 6.5 and later, the button is labeled ""Update Now"" (and has a different appearance).  If you click the button, the modal does not close, but the text on the button changes to ""Updating..."" and then finally ""Updated!""  If you close the modal, you will see that the main page has not changed at all: the plugin still displays the old version with the same ""There is a new version of [the plugin's name] available..."" text.  You have to manually reload the page in order to see that the plugin has been updated to the new version.

Is this behavior intentional?  Probably the change in the button label and appearance was intentional (but that's not very important).  Keeping the modal open during the update might be intentional (although I preferred the old behavior).  But failing to update the main page seems like a bug, or at least a significant regression in functionality compared to earlier versions.
"	siliconforks	6.5	has-patch
Defects Awaiting Review	65676	Hello Dolly Translation Bug (wp-content/plugins/hello.php)		Plugins	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	59631	Despite using Update URI Plugin header, WP still tries to fetch the Update notes from WP org		Plugins	normal	defect (bug)	new	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	5.8	dev-feedback
Defects Awaiting Review	41638	Must-Use Plugin File Still Available With a dot at the beginning of a filename (aka supposedly hidden)		Plugins	normal	defect (bug)	new	2017-08-14T22:35:52Z	2026-08-11T12:48:59Z	"If you place a dot in front of a must-use plugin file, I believe it shouldn't be included as part of your Must-Use arsenal and the code shouldn't be available as well.

Perhaps I'm doing it the wrong way, but when I place a dot in front of something (e.g., folder, file), I expect that file to no longer be available.

"	ronalfy	4.8.1	dev-feedback
Defects Awaiting Review	64188	Admin: Plugin search does not match translated plugin names in “Installed Plugins” list		Plugins	normal	defect (bug)	new	2025-11-03T23:54:55Z	2026-06-28T10:13:07Z	"When WordPress is used in a non-English language, the ''Plugins'' > ''Installed Plugins'' screen in the WP admin dashboard displays translated plugin names (from .mo files) if they exist. However, the search box at the top of that screen only matches the plugin’s original (English) name, not its translated name. If you search a plugin by the translated name from the list you get no results.

**Expected behavior**

When doing a search using the plugin's translated name, the plugin should appear, because the displayed (translated) name matches the search query.

**Benefits**
- Improves usability for non-English users.
- Aligns the admin search with localized UI expectations.
- Avoids confusion when users see translated names but get no search results.

**Technical details**

I believe the issue is that the ''WP_Plugins_List_Table'' search logic in ''class-wp-plugins-list-table.php'' uses the raw plugin headers (`$plugin_data['Name']`, etc.) from the plugin files, without passing them through translation functions. Therefor, only the original English strings are searchable.

**Related tickets**

The issue is similar to [https://meta.trac.wordpress.org/ticket/1496/ #1496], except it's not related to the plugin directory but the plugin search inside the wp admin."	malimart		has-patch
Defects Awaiting Review	53255	WordPress multisite allows you to delete plugins which are active on some subdomains		Plugins	critical	defect (bug)	reopened	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	4.6	has-patch
Defects Awaiting Review	48656	Views details blocked by SAMEORIGIN		Plugins	major	defect (bug)	new	2019-11-15T19:43:41Z	2026-04-02T11:13:38Z	"Hello,

On multisite, the ""view detail"" link on this page /wp-admin/plugins.php (in each plugin) is bloked by an error

{{{
Chargement refusé par X-Frame-Options : « SAMEORIGIN » à l’adresse « https://example.com/wp-admin/network/plugin-install.php?tab=plugin-information&plugin=loco-translate& », le site ne permet pas l’utilisation de cadres multiorigines depuis « https://example.com/wp-admin/plugins.php ».
}}}


"	sebastienserre	5.3	has-patch
Defects Awaiting Review	64568	get_plugins() returning stale data after delete_plugins() successfully executed		Plugins	normal	defect (bug)	new	2026-01-29T04:24:09Z	2026-02-03T04:59:58Z	"it seems even though `plugins` group cache is part of `wp_cache_add_non_persistent_groups`, in the example below it returns stale data because executions happens in the same runtime.

{{{
#!bash
$ wp shell
wp> get_plugins()
=> array(1) {
  [""health-check/health-check.php""]=>
  array(15) {
    [""Name""]=>
    string(30) ""Health Check & Troubleshooting""
    [""PluginURI""]=>
    string(43) ""https://wordpress.org/plugins/health-check/""
    [""Version""]=>
    string(5) ""1.7.1""
    [""Description""]=>
    string(44) ""Checks the health of your WordPress install.""
    [""Author""]=>
    string(27) ""The WordPress.org community""
    [""AuthorURI""]=>
    string(43) ""https://wordpress.org/plugins/health-check/""
    [""TextDomain""]=>
    string(12) ""health-check""
    [""DomainPath""]=>
    string(0) """"
    [""Network""]=>
    bool(false)
    [""RequiresWP""]=>
    string(0) """"
    [""RequiresPHP""]=>
    string(3) ""5.6""
    [""UpdateURI""]=>
    string(0) """"
    [""RequiresPlugins""]=>
    string(0) """"
    [""Title""]=>
    string(30) ""Health Check & Troubleshooting""
    [""AuthorName""]=>
    string(27) ""The WordPress.org community""
  }
}
wp> delete_plugins( [""health-check/health-check.php""] )
=> bool(true)
wp> get_plugins() <-- expecting health-check to be gone
=> array(1) {
  [""health-check/health-check.php""]=>
  array(15) {
    [""Name""]=>
    string(30) ""Health Check & Troubleshooting""
    [""PluginURI""]=>
    string(43) ""https://wordpress.org/plugins/health-check/""
    [""Version""]=>
    string(5) ""1.7.1""
    [""Description""]=>
    string(44) ""Checks the health of your WordPress install.""
    [""Author""]=>
    string(27) ""The WordPress.org community""
    [""AuthorURI""]=>
    string(43) ""https://wordpress.org/plugins/health-check/""
    [""TextDomain""]=>
    string(12) ""health-check""
    [""DomainPath""]=>
    string(0) """"
    [""Network""]=>
    bool(false)
    [""RequiresWP""]=>
    string(0) """"
    [""RequiresPHP""]=>
    string(3) ""5.6""
    [""UpdateURI""]=>
    string(0) """"
    [""RequiresPlugins""]=>
    string(0) """"
    [""Title""]=>
    string(30) ""Health Check & Troubleshooting""
    [""AuthorName""]=>
    string(27) ""The WordPress.org community""
  }
}
wp>
}}}"	pentatonicfunk		has-patch
Defects Awaiting Review	46982	Avoid loading dot files in the mu-plugins directory.		Plugins	normal	defect (bug)	new	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	2.8	has-patch
Defects Awaiting Review	60550	A plugin is deactivated if it is updated and the plugin folder has been renamed at some point.		Plugins	major	defect (bug)	new	2024-02-15T14:56:38Z	2026-01-19T09:50:51Z	"This seems to be a new unexpected behavior:

A plugin whose folder has been renamed will be deactivated as soon as you update it. 

Reproduce:

- Rename the folder of an activated plugin to something like plugin-name-xy (People do this all the time for several reasons)
- The plugin will be disabled (expected due to the modified plugin folder)
- Activate again the plugin via wp-admin
- Update the plugin to a new version
- The plugin folder will be renamed to plugin-name (Unexpected)
- The plugin will be disabled silently (Unexpected)

"	ReneHermi	6.4.3	has-patch
Defects Awaiting Review	49731	Display embeds in WordPress plugin descriptions		Plugins	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	52637	"Loading issue with ""popular plugin"" tab - twice the same page."		Plugins	minor	defect (bug)	new	2021-02-24T11:05:41Z	2025-07-16T07:23:05Z	"Quite often when I scroll through the ""popular"" section of the plugin page, I get duplicate pages. As in, two pages that are the EXACT same. 

At the moment of writing, I started at page 1470 out of 1470 and went back using the arrows. Page 1468 and 1469 duplicated. 

I thought this was a cache issue, so I cleaned my cache... And the problem came back. 
I thought it was a browser enigne issue so I switched from Opera (Chromium) to Firefox (Gecko) and still found the same issue. 

On same pages, sadly I can't give an example but I often notice that the first two or three plugins of the list are the same as the last two on the previous page.... "	NekoJonez	5.6.2	
Defects Awaiting Review	45861	Global variable in plugin main file		Plugins	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	61215	Getting warning in Hello Dolly Plugin when checking with PHPCS		Plugins	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63078	plugins_api() Default Argument Issue: 'downloaded' Not Set to True		Plugins	minor	defect (bug)	new	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	6.7.2	dev-feedback
Defects Awaiting Review	45853	Videos embedded in a plugins readme.txt does not load while searching for a plugin in an actual WP install (not wp.org)		Plugins	normal	defect (bug)	new	2019-01-07T16:06:38Z	2025-01-31T07:55:26Z	"If you embed a video within your plugins readme.txt file it only shows the video on the wp.org website, videos do not load when you're searching for a plugin via an actual WordPress install. In addition, if you install a plugin and click on ""View Details"" to learn more about the plugin, the video also does not load here either. Inspect element shows an empty span tag:

{{{
<span class=""embed-youtube""></span>
}}}

This should either embed the video or at the least display a link to the video.

Here's an example plugin for reference: https://wordpress.org/plugins/simple-icons/"	thememason	5.0.2	has-patch
Defects Awaiting Review	60373	plugin activation errors are accidentally hidden		Plugins	critical	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		
Defects Awaiting Review	49599	Wrong PHPDoc wp_get_active_and_valid_plugins		Plugins	normal	defect (bug)	new	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	5.3.2	dev-feedback
Defects Awaiting Review	60318	Update URI: false - sometimes not working		Plugins	normal	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		
Defects Awaiting Review	61742	Ensure plugin auto updates are blocked if required WordPress version is not supported		Plugins	normal	defect (bug)	new	2024-07-24T14:18:41Z	2024-08-26T08:58:56Z	"Similar to #46613: In https://github.com/WordPress/wordpress-develop/commit/26869439ff6b94b103355061e8befebcf93868cd there is an implementation that checks if the required PHP version is compatible with the current PHP version while trying to do an auto-update.

We could potentially add the following code after https://github.com/WordPress/wordpress-develop/blob/e87f42252b6b09971f21fb27f3a50e1e1fdf26e4/src/wp-admin/includes/class-wp-automatic-updater.php#L293-L298 to also check for the required WordPress version:

{{{#!php
<?php
// If updating a plugin or theme, ensure the minimum PHP and WordPress version requirements are satisfied.
if ( in_array( $type, array( 'plugin', 'theme' ), true ) ) {
	if ( ! empty( $item->requires_php ) && version_compare( PHP_VERSION, $item->requires_php, '<' ) ) {
		return false;
	}

        if ( ! empty( $item->requires ) && is_wp_version_compatible( $item->requires ) ) {
		return false;
	}
}
}}}

We had this case from on of your plugin users that the auto update was executed but the minimum required WordPress version did not match.

Or is there a specific reason why this is not already implemented?"	mguenter		
Defects Awaiting Review	55101	pre_set_site_transient_update_plugins was called from deactivated plugin while uninstall.		Plugins	normal	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	5.9	needs-patch
Defects Awaiting Review	47438	"do_action will convert ""single array object"" as ""object"""		Plugins	normal	defect (bug)	new	2019-05-30T19:42:28Z	2024-06-24T23:05:51Z	"

{{{
/* Correct if $object is not object*/
$orders = array();
$orders[] = 'abc';

do_action( 'action123', $orders); 

add_action('action123', 'func123');
function func123($orders){
	//$orders will be array here (CORRECT)
}


/* BUG: if $orders is an object */
$orders = array();
$orders[]=new stdClass();
$orders->name='Order1';

do_action( 'action123', $orders); 

add_action('action123', 'func123');
function func123($orders){
	//$orders will be non-array here (BUG?)
}
}}}



Note:
This will run correctly if $orders[] is not object "	erikdemarco	5.1.1	
Defects Awaiting Review	60972	Clicking twice on a plug-in update deletes the plug-in.		Plugins	normal	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	6.5	
Defects Awaiting Review	60448	Iframe from `$errmsg` is now removed from error message in the plugins page		Plugins	normal	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	6.3	
Defects Awaiting Review	59413	PHP Warning:  Undefined property: stdClass::$plugin		Plugins	normal	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	6.3.1	
Defects Awaiting Review	59375	"Plugin_Upgrader assumption causes incorrect ""Activate Plugin"" link after plugin installation resulting in ""The plugin does not have a valid header"" error"		Plugins	normal	defect (bug)	new	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	6.3.1	has-patch
Defects Awaiting Review	59022	Bulk Action Issue For Plugin  Component		Plugins	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	58492	Plugin Search Issue: Trimming of Keywords with Ampersand (&) upon Page Refresh		Plugins	normal	defect (bug)	new	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	6.3	has-patch
Defects Awaiting Review	34052	Plugin-Install/Update Sections		Plugins	normal	defect (bug)	new	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	4.3.1	dev-feedback
Defects Awaiting Review	58214	Plugin authors should not be able to delete tags from SVN repository		Plugins	normal	defect (bug)	new	2023-04-28T00:14:26Z	2023-04-28T00:14:46Z	On https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/#delete-old-versions it notes that plugin developers may choose to delete from the SVN repository old tagged versions.  I think that allowing plugin authors to rewrite history of production releases is a bad thing for WordPress to allow, much less suggest in the docs.  The reason is that you may be relying on those older versions in your WordPress installation so a clean build might break without warning.  E.g., if you are using wpackagist for dependency managementd, this can happen: https://github.com/outlandishideas/wpackagist/issues/497 .  Since tags represent actual production releases (per the first link) WordPress should not allow tags to be deleted from the repository (or any other history to be rewritten for that matter if that's a thing in SVN), going forward.	rkaiser0324		
Defects Awaiting Review	50349	"Plugin Update deletes plugin and showing ""could not delete old plugin"" message."		Plugins	normal	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	6.2	
Defects Awaiting Review	58057	Replace loose comparison operator in plugins.php		Plugins	normal	defect (bug)	new	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	6.3	has-patch
Defects Awaiting Review	55133	Using an array containing a single object as first $arg in do_action()		Plugins	normal	defect (bug)	new	2022-02-10T07:55:43Z	2022-06-17T09:36:19Z	"When passing an array containing 1 single object as the first argument of `do_action()`, the array is automatically flattened and all functions triggered by the hook will receive a single object as the first argument (instead of an array).

**Example:**
{{{#!php
$var = [
	(object) [
		'key'   => 'name',
		'value' => 'Pierre',
	]
]; 

do_action( 'hook_name', $var );
}}}


Any function hooked to `hook_name` receives this first argument:
{{{#!php
stdClass Object
(
    [key] => name
    [value] => Pierre
)
}}}

…instead of an array containing this object.

I've found that this is because of some **PHP4** backward compatibility in the `do_action()` function:
{{{#!php
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
	// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
	$arg[0] = $arg[0][0];
}
}}}

This is a weird and unexpected behavior, could we add an additional condition in this `elseif` in order to check for the PHP version to apply this hack?"	pskli		dev-feedback
Defects Awaiting Review	55616	Helper function to unhook anonymous class methods		Plugins	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	49021	Misaligned rows in Plugins list table on mobile after deleting some plugins		Plugins	normal	defect (bug)	new	2019-12-18T07:06:30Z	2022-02-01T05:53:35Z	"Hi,

When we have deleted the plugin then not showing properly UI in plugin listing page admin side.

For more information see mention screenshot.

Thanks"	sumitsingh	5.3	has-patch
Defects Awaiting Review	53979	Non-valid plugins should be removed from the 'active_plugins' option		Plugins	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	54602	Update bug caused crash and removal of Jetpack		Plugins	major	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		
Defects Awaiting Review	51467	Plugins API endpoint regex breaks javascript parsing.		Plugins	normal	defect (bug)	new	2020-10-07T12:47:36Z	2021-07-28T13:40:02Z	"The plugin endpoint `/wp/v2/plugins/(?P<plugin>[^.\/]+(?:\/[^.\/]+)?)` added in 5.5 breaks JavaScript parsing of the regular expression.


This can be tested by adding the following into the console: 
`new RegExp(/^[^.\/]+(?:\/[^.\/]+$/);`

Which results in: 
`VM90:1 Uncaught SyntaxError: Invalid regular expression: /^[^.\/]+(?:\/[^.\/]+$/: Unterminated group at <anonymous>:1:1`


One of the effects is that the node-wpapi library can no longer autodiscover WordPress endpoints: https://github.com/WP-API/node-wpapi/issues/476"	nielsdeblaauw	5.5	
Defects Awaiting Review	53395	Cannot use wp_is_mobile() in Network activated plugins		Plugins	normal	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		
Defects Awaiting Review	52874	"Activating plugins on Install page randomly errors with ""The plugin does not have a valid header"" message."		Plugins	normal	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		
Defects Awaiting Review	52405	activate_{$plugin} not passing $network_wide boolean to action handler		Plugins	normal	defect (bug)	new	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	3.0	has-patch
Defects Awaiting Review	52443	Extra networkwide param in activate_plugin function		Plugins	normal	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		
Defects Awaiting Review	51381	ZIP replacement asks to network activate even when activated		Plugins	normal	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		
Defects Awaiting Review	50850	When the deactivate_plugins() function is called in the ABSPATH/wp-admin/includes/plugin.php file, the is_plugin_active_for_network() conditional tag always returns true when the active_sitewide_plugins sitemeta option is set to 1		Plugins	normal	defect (bug)	new	2020-08-05T01:28:10Z	2020-09-08T21:11:46Z	"On multisite during the process of activating a plugin across the network (sitewide plugin activation), I noticed that if the activation process is not successful or if errors are triggered, the `active_sitewide_plugins' sitemeta option will be set to 1 and this causes the **is_plugin_active_for_network()** conditional tag to return true when called within the **deactivate_plugins** function, which is so untrue.

Also, when on the admin or network `plugins.php` screen, the **deactivate_plugins()** function triggers the following error becuase the **$plugins = get_site_option( 'active_sitewide_plugins' )** code doesn't return the correct type (array):

{{{
 Fatal error: Uncaught Error: Cannot unset string offsets in ABSPATH\wp-admin\includes\plugin.php on line 779
}}}

Futhermore, after exploring the error, I found that since the **active_sitewide_plugins** sitemeta option is set to 1 and the **array_keys()** function is used to extract the plugin basenames into a new array and merged with non-sitewide activated plugins, then when used in the **foreach()** loop, this will always return true.

{{{#!php
<?php
/**
 * @see ABSPATH/wp-admin/includes/plugin.php#L1047
 */
function validate_active_plugins() {
    $plugins = get_option( 'active_plugins', array() );
    // Validate vartype: array.
    if ( ! is_array( $plugins ) ) {
        update_option( 'active_plugins', array() );
        $plugins = array();
    }

    if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
        $network_plugins = (array) get_site_option( 'active_sitewide_plugins', array() );

        // If the 'active_sitewide_plugins' option is set to 1, 
        // then the $network_plugins var will contain 0 as the only elements 
        $plugins         = array_merge( $plugins, array_keys( $network_plugins ) );
    }

    if ( empty( $plugins ) ) {
        return array();
    }

    $invalid = array();

    // Invalid plugins get deactivated.
    foreach ( $plugins as $plugin ) {
        $result = validate_plugin( $plugin );
        if ( is_wp_error( $result ) ) {
            $invalid[ $plugin ] = $result;
            deactivate_plugins( $plugin, true );
        }
    }
    return $invalid;
}
}}}

I also ran a test with the **is_plugin_active_for_network()** conditional tag using the **in_array()** function to replace the **isset()** function in other to see if things would work as normal, and the test was passed:
{{{#!php
<?php
function is_plugin_active_for_network( $plugin ) {
    if ( ! is_multisite() ) {
        return false;
    }

    // Need fix: the $plugins var need to be type-cast into an array
    $plugins = get_site_option( 'active_sitewide_plugins' );

    //if ( isset( $plugins[ $plugin ] ) ) {

    // Note: If the $plugins var is not an array then we have to 
    // type-cast it into an array
    if ( in_array( $plugin, (array) $plugins, true ) ) {
        return true;
    }

    return false;
}
}}}




**File:**
{{{
ABSPATH/wp-admin/includes/plugin.php
}}}
"	zenithcity	5.4.2	needs-patch
Defects Awaiting Review	44696	Plugin Deactivation Page Jump		Plugins	minor	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	4.9.7	
Defects Awaiting Review	50319	Plugin Page : Remove unnecessary space in table nav topbar in Plugin Page on a small device		Plugins	normal	defect (bug)	new	2020-06-04T17:22:47Z	2020-06-05T14:28:08Z		pravinparmar2404	5.5	has-patch
Defects Awaiting Review	49901	Updating plugins error messages for multiple plugins that error		Plugins	normal	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	5.4	
Defects Awaiting Review	47977	"some of the typo mistakes in plugin menu & update related small correction in ""bulk action selector top"""		Plugins	normal	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		
Defects Awaiting Review	47730	Function plugins_api is not triggered for non wp-marketplace plugins		Plugins	normal	defect (bug)	new	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	5.2.2	dev-feedback
Defects Awaiting Review	47882	[Plugins][Add new]:  Can't install plugin from More details pop-up		Plugins	normal	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	5.2.2	
Defects Awaiting Review	42656	Multisite Global $pagenow variable		Plugins	normal	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	5.1	
Defects Awaiting Review	45374	apply_filters_ref_array() no longer passes arguments by reference		Plugins	normal	defect (bug)	new	2018-11-19T10:58:35Z	2019-01-25T13:54:36Z	"It appears that since the introduction of the `WP_Hook` class in WordPress 4.7 (#17817), `apply_filters_ref_array()` no longer passes its arguments by reference.

Example:

{{{
add_filter( 'posts_clauses', function( $clauses, &$query ) {
	return $clauses;
}, 10, 2 );
}}}

The above code will trigger the following PHP warning:

{{{
Parameter 2 to {closure}() expected to be a reference, value given
}}}

cc @jbrinley FYI"	johnbillion	4.7	needs-unit-tests
Defects Awaiting Review	45779	probable issue in Plugin activation hook		Plugins	normal	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		
Defects Awaiting Review	40795	If plugin zip file has very long name, windows systems can fail to upgrade		Plugins	normal	defect (bug)	new	2017-05-17T23:17:52Z	2018-09-17T17:01:06Z	"If a plugin upgrade zip file has an extremely long name and the plugin a deep directory structure, windows can fail to create directories and therefore the plugin upgrade will fail. 

I suggest WordPress have an upper limit on the working directory name that is well-shy of that limit--and realistically, even 32 characters might be plenty, as the upgrader only needs to avoid other plugins being upgraded at the same time.

Windows has a 247-character limit to the total ''path'' name for directories, as said directory needs to be able to hold, at a minimum, an ""8+3"" file, and allow for a null byte or similar at the end of path + file (260 total characters).

As an example, SearchWP fails to upgrade on my local system (WAMP running on top of Windows 10) because the downloaded zip filename is 142 characters long ''sans'' extension (redacted in case this is a license key):

{{{
XXX0XXX0XxxxXXxxXXX0XxXxXxX0XXXxXxXxXXXxXxXxXXX0XXx
0X0XxXXx0XxX0XXxxXXX0XXx0X0XxXXX0Xxx0XxX0XXXxXXX0XX
XxXxx0xXXXXx0xXXXxxxxxXxxxX0XxXxX-0xxXXx.zip
}}}

Combine that with my wordpress location on disk:

{{{
C:/wamp/www/example/wp-content/upgrade/
}}}

And this directory cannot be created because the total path is 254 characters long (including the hidden null):

{{{
C:/wamp/www/example/wp-content/upgrade/XXX0XXX0Xxxx
XXxxXXX0XxXxXxX0XXXxXxXxXXXxXxXxXXX0XXx0X0XxXXx0XxX
0XXxxXXX0XXx0X0XxXXX0Xxx0XxX0XXXxXXX0XXXxXxx0xXXXXx
0xXXXxxxxxXxxxX0XxXxX-0xxXXx/searchwp/vendor/
pdfparser/vendor/smalot/pdfparser/src/Smalot/PdfParser
}}}

I think that while this may be an outlier, it's a hard bug to chase for a vendor who may not have windows systems available...and even they do have such an environment available, the results returned by Apache when running WAMP (or in similar environments) does not reflect the actual cause of the error.

Looking at the structure above as pretty much as edge-case as you are likely to get, even a truncate at 64 characters would have been more than adequate, while 32 characters would give quite a bit of room for flexibility.

I believe that this could be affected by altering `wp_tempnam()` in `file.php`:

{{{
/**
 * Returns a filename of a Temporary unique file.
 * Please note that the calling function must unlink() this itself.
 *
 * The filename is based off the passed parameter or defaults to the current unix timestamp,
 * while the directory can either be passed as well, or by leaving it blank, default to a writable temporary directory.
 *
 * @since 2.6.0
 *
 * @param string $filename Optional. Filename to base the Unique file off. Default empty.
 * @param string $dir      Optional. Directory to store the file in. Default empty.
 * @return string a writable filename
 *
 * @since x.x.x
 * @param int|string $maxlen  Optional. Maximum length (excluding extension) of returned filename
 */
function wp_tempnam( $filename = '', $dir = '', $maxlen = 32 ) {
    if ( empty( $dir ) ) {
        $dir = get_temp_dir();
    }

    if ( empty( $filename ) || '.' == $filename || '/' == $filename || '\\' == $filename ) {
        $filename = time();
    }

    // Use the basename of the given file without the extension as the name for the temporary directory
    $temp_filename = basename( $filename );
    $temp_filename = preg_replace( '|\.[^.]*$|', '', $temp_filename );

    // new: truncate the filename if longer than specified
    $max = intval( $maxlen ) > 0 ? intval( $maxlen ) - 6 : 32;
    $temp_filename = strlen( $temp_filename ) > $max ?
            substr( $temp_filename, 0, $max ) : $temp_filename;

    // ... remainder omitted for clarity

    return $temp_filename;
}
}}}

An alternative would be to require plugin upgrade files to have filenames shorter than [insert recommendation here], though actually checking that would mean a similar chunk of code would need to be added elsewhere in WP.

(Not sure exactly where the best place to document this for plugin authors, which could be done immediately.)"	rogerlos	4.7.5	
Defects Awaiting Review	43077	Misleading error when updating plugins		Plugins	normal	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	4.9.1	
Defects Awaiting Review	41736	validate_file function will always return error for file paths in windows dev environments		Plugins	normal	defect (bug)	new	2017-08-27T18:50:51Z	2017-08-30T16:30:16Z	"In Windows dev environments such as WAMP or XAMPP a file path always contains a colon after a drive letter, so all plugins making conditional checks with `validate_file()` would fail.
"	lechdulian	4.8	has-patch
Enhancements Awaiting Review	66548	Check site health after plugin deactivation and roll back activation state on a confirmed fatal error		Plugins	normal	enhancement	new	2026-11-06T10:56:58Z	2026-11-10T06:39:33Z	"An administrator can deactivate a plugin successfully and then lose access on the very next request. The provider's functions are still in memory during deactivation. On a fresh request, an active plugin or theme that makes an undeclared call to the provider can fail before the administrator gets back to the Plugins screen.

Could core offer guarded deactivation for a single plugin from the Plugins screen on single-site installations? #22316 protects declared dependencies. #51857 and #58281 cover failed updates. Recovery Mode (#44458) helps after a failure. This proposal concerns an intentional deactivation that leaves the installed plugin files in place.

== Local reproduction (proposed, not run) ==
On a disposable single-site install with a default theme, create two one-file plugins under wp-content/plugins, each starting with {{{<?php}}} and a valid Plugin Name header.
1. Provider: define {{{function trac_deactivation_fixture_ready() { return true; }}}}.
2. Consumer: add {{{add_action( 'init', static function () { trac_deactivation_fixture_ready(); } );}}}. Deliberately omit a Requires Plugins header.
3. Activate the provider first, then the consumer. Verify that the homepage and Plugins screen load. Deactivate only the provider from the Plugins screen.
4. Failure mode to check: the next request calls an undefined function from the consumer. Expected with the enhancement: the administrator can regain access and see which change was rolled back. To reset the local fixture, remove the consumer fixture file first.

== Proposed behavior and acceptance criteria ==
* Keep the existing capability, action nonce, and dependency checks. Limit the first iteration to manual single-site deactivation. Leave bulk, network activation, multisite, and programmatic callers unchanged pending separate coverage.
* Before changing state, journal the operation ID, target plugin, prior activation state/order and intended transition. Use a short-lived record without credentials or raw traces. Serialize competing guarded operations. Only the initiating operation may finalize or undo its own change.
* Establish a healthy baseline and verify the change with bounded fresh, uncached, same-origin requests. The initiating request should remain able to undo the activation-state change if a probe fails. A probe must not confer admin privileges. A timeout, blocked loopback, unrelated HTTP error or cached success is inconclusive; show that result and avoid an automatic reversal based on it.
* On a confirmed new fatal in the verification request, restore only the target's prior activation state if the current state still matches the expected transition. Preserve unrelated changes, do not replay arbitrary activation/deactivation hooks as compensation, and verify the recovery once. Report an unsuccessful rollback honestly. Expired journals must never trigger a blind retry.
* Test healthy deactivation, the two-plugin fixture, unavailable loopbacks, overlapping changes, and interrupted verification. Do not claim to undo plugin callbacks' writes to options, files, scheduled jobs, external services or deleted data. Feedback on reliable fatal detection and whether to offer the guard as an opt-in is welcome.

An independent emergency controller for sites that cannot bootstrap would require a separate proposal covering authentication, hosting integration and threat modeling. No new emergency endpoint is requested here.

AI assistance: ChatGPT assisted with prior-art research and drafting this enhancement."	codian		needs-patch
Enhancements Awaiting Review	66554	Tests: Add unit test coverage for WP_Plugin_Install_List_Table		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66566	Tests: Add unit tests for install_plugin_information()		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66555	Tests: Add unit test coverage for plugin status and activation functions		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66561	Tests: Add unit tests for plugin_dir_path(), plugin_dir_url(), plugin_basename(), wp_register_plugin_realpath() and remove_all_actions()		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66560	Tests: Add unit tests for WP_Plugin_Dependencies::get_dependency_api_data() and get_plugin_dirnames()		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66558	Tests: Add unit tests for the functions that output the Add Plugins screen		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66557	Tests: Add unit test coverage for admin menu registration functions in plugin.php		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66556	Tests: Add unit test coverage for get_plugin_data() and get_plugins()		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66552	Tests: Add unit test coverage for WP_Plugins_List_Table		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66553	Tests: Add unit tests for plugins_api()		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	60194	Add Preview in Playground buttons to plugin install screens		Plugins	normal	feature request	new	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	6.5	dev-feedback
Enhancements Awaiting Review	65909	Show “Activate” after updating an inactive plugin from the Add Plugins screen		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	61211	"List minimum version required when showing plugins that are ""Incompatible with your version of WordPress"""		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	64143	Plugin search box lacks margin		Plugins	normal	enhancement	reopened	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		has-patch
Enhancements Awaiting Review	62543	URGENT FEATURE: Plugin Updates Section Needs To Show Warning Message For Newer Version Plugins		Plugins	critical	enhancement	new	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	6.7.1	has-patch
Enhancements Awaiting Review	65430	Allow deleting an active plugin in one step from the Plugins screen		Plugins	normal	enhancement	new	2026-06-06T17:15:42Z	2026-06-23T09:50:29Z	"Right now the Plugins screen hides the Delete action for any active plugin, so removing one is a two-step job: deactivate, then delete. A plugin folder can be removed directly over SFTP or with WP-CLI, which makes the UI rule look like a workflow choice rather than a hard technical limit.

Why the rule exists: hiding Delete on active plugins was a deliberate guard against accidental one-click deletion of a running plugin (see the related discussion in #5625), and deactivating first lets `register_deactivation_hook` callbacks run their cleanup (cron events, rewrite rules, transients) before the uninstall routine and the files are removed.

Proposal: keep that safety, drop the friction. Let the Plugins screen delete an active plugin in a single action by deactivating it internally first (firing the normal deactivation hooks), then running the existing uninstall routine, then removing the files. The outcome is identical to today's two clicks, with a confirmation step that covers the accidental-click concern.
Right now the Plugins screen hides the Delete action for any active plugin, so removing one is a two-step job: deactivate, then delete. A plugin folder can be removed directly over SFTP or with WP-CLI, which makes the UI rule look like a workflow choice rather than a hard technical limit.
Why the rule exists: hiding Delete on active plugins was a deliberate guard against accidental one-click deletion of a running plugin (see the related discussion in #5625), and deactivating first lets register_deactivation_hook callbacks run their cleanup (cron events, rewrite rules, transients) before the uninstall routine and the files are removed.
Proposal: keep that safety, drop the friction. Let the Plugins screen delete an active plugin in a single action by deactivating it internally first (firing the normal deactivation hooks), then running the existing uninstall routine, then removing the files. The outcome is identical to today's two clicks, with a confirmation step that covers the accidental-click concern.

Suggested behavior:

- Show Delete for active plugins (currently hidden in both row actions and bulk actions).
- When the target is active, deactivate it first so deactivation hooks fire, then continue down the normal delete and uninstall path.
- Make the confirmation screen state clearly that the plugin is active and will be deactivated before deletion.

This also closes the gap with SFTP and WP-CLI deletes, except it does it the clean way: a raw folder removal skips the hooks entirely and leaves orphaned cron events, options, and tables behind, because WordPress silently drops the missing plugin from active_plugins on the next load.

Reported via: https://x.com/PineDigitalCo/status/2063269549370138686
"	yani.iliev		has-patch
Enhancements Awaiting Review	40804	Add notice in Plugins list for plugins not compatible with the current WordPress version		Plugins	normal	enhancement	new	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	4.7.5	has-patch
Enhancements Awaiting Review	65359	"Plugins list: add a native ""Filter by author"" control instead of per-author status tabs"		Plugins	normal	enhancement	new	2026-05-27T16:50:37Z	2026-06-02T04:06:52Z	"Since #60495 / [61695] (WP 7.0), plugins can add custom views to the Plugins screen filter bar via `plugins_list` (#57278) plus the new `plugins_list_status_text`. Using this to group plugins on a per-author basis can be useful, but as raised in #60495 comment:40, that pattern has two problems:

1. **It doesn't scale.** Each adopting vendor adds a top-level link to the single-line `subsubsub` bar, crowding out the functional status views on sites with plugins from many authors.
2. **It conflates two axes** — a plugin's *status* (active, needs update…) versus its *source* (who made it).

**Proposal:** leave the #60495 hooks as-is and add a dedicated control for the *author* axis — a single native ""Filter by author"" `<select>` plus a Filter button in the tablenav, backed by a new `plugin_author` query variable and populated from installed plugins' `Author` headers. One control regardless of author count, for every plugin, with no plugin-side code. It is shown only when ≥2 distinct authors are installed.

It works without JavaScript (plain `GET`), is CSP-safe, and is fully accessible — a native labelled `<select>` with an explicit Filter button, so nothing navigates on change. The grouping is filterable via `plugins_list_authors` and `plugins_list_plugin_author` (e.g. to merge author-name header variants under one entry). `get_views()` and the #60495 hooks are untouched: this is purely additive and reverts nothing from 7.0. It does not *forbid* a plugin from still injecting a status tab — it gives author filtering a clutter-free home and removes the incentive.

A patch against `WP_Plugins_List_Table` and `wp-admin/plugins.php`, with unit tests, is attached.

These two filters let plugins refine the grouping, which is otherwise coarse since it is derived straight from the `Author` header:

{{{#!php
<?php
// Merge author-name variants by returning the same key for several plugins.
apply_filters( 'plugins_list_plugin_author', string $author_key, string $plugin_file, array $plugin_data ): string

// Relabel / reorder / hide / merge dropdown entries: [ key => [ 'label', 'count' ] ].
apply_filters( 'plugins_list_authors', array $plugin_authors, array $all_plugins ): array

}}}


Props to webdados."	lopo	7.0	has-patch
Enhancements Awaiting Review	65365	Revert #60495 (Add a filter in get_views() in class-wp-plugins-list-table) because of abuse		Plugins	normal	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	7.0	
Enhancements Awaiting Review	65210	Change Plugin's review paradigm		Plugins	normal	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		
Enhancements Awaiting Review	65130	Plugin search (term) in wp-admin lacks normalization, causing fragile keyword matching		Plugins	normal	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		
Enhancements Awaiting Review	65117	Proposal: Hook Permissions Layer		Plugins	normal	feature request	new	2026-04-23T09:49:40Z	2026-05-02T02:47:00Z	"= Proposal: Hook Permissions and Control System in WordPress Core =

== Summary ==
This proposal introduces a system to control how plugins and themes use WordPress hooks (add_action / add_filter).

It will:
* Track which hooks are used  
* Group them in a clear way  
* Let admins allow or block them  
* Show changes when plugins are updated  

== Problem ==
Right now, WordPress runs all hooks without any control.

This makes it hard to:
* Understand what a plugin is doing  
* Stop unwanted behavior  
* Detect changes after updates  

== Proposed Solution ==

=== 1. Track Hook Usage ===
* Record all hooks being registered  
* Store:
** Hook name  
** Callback  
** Priority  
** Source (which plugin or theme added it)  

=== 2. Control Execution ===
* Hooks can still be registered normally  
* Before running a hook:
** Check if it is allowed  
** If not allowed, skip it  

=== 3. Permissions System ===
* Store permissions per plugin/theme:

{{{
{
  ""plugin-x/plugin.php"": {
    ""init"": true,
    ""admin_init"": false
  }
}
}}}

* New or unknown hooks are '''blocked by default''' until approved  

=== 4. Group Hooks ===
Show hooks in simple groups:

* Admin (dashboard related)  
* Frontend (site output)  
* Content (posts, titles, etc.)  
* Database (saving/deleting data)  
* Users (login, registration)  
* System (core lifecycle hooks like init)  

=== 5. Scan Plugins/Themes ===
When a plugin or theme is activated or updated:

* Scan code to find hooks  
* Also track hooks at runtime (for dynamic cases)  

=== 6. Permissions UI ===
* Show a popup on activation/update  
* List all hooks used  
* Group them clearly  
* Let users enable/disable with checkboxes  
* Show warning: disabling hooks may break functionality  

=== 7. Author Notes (permissions.json) ===
Plugin authors can include a file:

{{{
{
  ""init"": ""Used to start the plugin"",
  ""wp_footer"": ""Adds script to page""
}
}
}}}

* This helps users understand why hooks are needed  

=== 8. Detect Changes on Update ===
When a plugin updates:

* Check for new hooks  
* Block new hooks by default  
* Show admin notice asking for approval  


=== 9. Existing Plugins (Backward Compatibility) ===
To avoid breaking existing sites:

* All hooks for already-installed plugins/themes are '''allowed by default'''  
* These plugins will be marked as '''""Unreviewed""'''  
* Admins can later review and update permissions manually  

When a reviewed plugin is updated:
* Any new hooks will be treated as '''new permissions'''  
* These new hooks will be blocked until approved  
"	namith.jawahar		has-patch
Enhancements Awaiting Review	64889	Include link to documentation for all plugins		Plugins	normal	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		
Enhancements Awaiting Review	64795	Search for plugin authors should also consider their display name		Plugins	normal	enhancement	new	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	6.9.1	dev-feedback
Enhancements Awaiting Review	42536	Smoothen Plugin Updates		Plugins	normal	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		needs-patch
Enhancements Awaiting Review	37656	Improve plugin bootstrapping processes		Plugins	normal	enhancement	new	2016-08-14T11:32:28Z	2026-02-03T11:19:30Z	"I recently thought about if we could make bootstrapping plugins easier and take away some common tasks that (should) happen in every plugin. It would also be nice to have a general plugin class registry. 

What I was thinking of is to introduce an abstract class `WP_Plugin` that plugin developers can extend for their plugin's main class. Then they would call a new function `register_plugin( __FILE__, $plugin_class_name )` to register that class with WordPress. We could take some regular processes away from the developer and, by doing that, also make sure that they don't implement it the wrong way. For example, we could take care of plugin installation routines: If the class implements a static method `install()`, the base class `WP_Plugin` would register an activation hook to an internal function that takes care of whether the plugin is activated network-wide. The actual `install()` method would only contain those steps necessary for the setup on the current site (`WP_Plugin` would take care of switching sites as appropriate). Many plugin developers overlook Multisite in their setup routines, causing the plugin to only install on the main site although being network-activated. We could also deal with other tasks, like hooking the `bootstrap()` method of the plugin class in `plugins_loaded` or `muplugins_loaded` (detected by the base class).

I think this whole concept could improve the way plugins initialize themselves. It would not be mandatory (since several plugins don't even use classes), but it would become a best practice. This is just an idea that I wanted to throw on Trac to discuss about it. If we get to the point that we agree this is a good idea, we would need to come up with actual details (of which I don't have any yet)."	flixos90		dev-feedback
Enhancements Awaiting Review	64424	Add “Download” action for locally installed plugins in Plugins admin screen		Plugins	normal	enhancement	new	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		needs-unit-tests
Enhancements Awaiting Review	64180	Simplify and improve performance in `WP_Hook::apply_filters()`		Plugins	minor	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	6.8.3	
Enhancements Awaiting Review	59342	Plugins: Provide notification of testing/compatability with current version of WP in plugin/update list		Plugins	normal	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		needs-patch
Enhancements Awaiting Review	58037	Use a placeholder icon when an icon is unable to load/be found in the plugin directory		Plugins	minor	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	63735	[Collaboration Inquiry] A Proposal to Discuss Improving Theme Compatibility for the ActivityPub Plugin		Plugins	normal	feature request	new	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		dev-feedback
Enhancements Awaiting Review	61619	Display compatibility metadata for Dependent plugins		Plugins	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	27994	Erroneous plugin deactivation should be a manual action		Plugins	normal	enhancement	new	2014-04-23T16:00:01Z	2025-06-27T20:48:11Z	"""The plugin `foo.php` has been deactivated due to an error: Plugin file does not exist.""

This seemingly harmless behaviour on the Plugins screen can end up being a royal pain for developers. Consider the scenario where you've renamed your plugins directory or any of the plugins within it (ie. to do some debugging with plugins disabled), and then you visit the Plugins screen. BAM, your plugins have been deactivated.

I think this behaviour should be removed, and instead a list of erroneous plugins displayed, with the option to manually deactivate them.

Thoughts?"	johnbillion	2.5	has-patch
Enhancements Awaiting Review	63621	Enhancement: Ensure Hello Dolly passess the Plugin Check (PCP)		Plugins	minor	enhancement	new	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		has-patch
Enhancements Awaiting Review	58363	Update Hello Dolly plugin to current standards		Plugins	normal	enhancement	new	2023-05-20T09:39:46Z	2025-06-25T17:01:35Z	"The Hello Dolly plugin is included with core as a demonstration of how to write a simple plugin. However, it was written 15 years ago and is no longer demonstrating the best practices that are now in use. Indeed, the plugin lacks escaping of the output and doesn't add translation for the main lyrics. And the README is so minimal it can hardly be considered a good example to those creating their first plugin.

[https://github.com/dartiss/hello-dolly-redux I've created a fork of Hello Dolly] where I've resolved all of these issues, whilst not changing what the plugin does at all. It passes PHPCS WordPress checks, as well as any other validation I can throw at it. It includes a revised README, better explaining the purpose of the plugin, as well as better quality commenting in the code itself. The CSS is no longer in-line but enqueued from a separate, minimised file. I've even compressed the assets.

Even if you don't want to use my forked version, I think a major revision of the code would be majorly beneficial if we want to retain the benefits that the plugin inclusion offers within core.




"	dartiss		dev-feedback
Enhancements Awaiting Review	54259	The function deactivate_plugins should run only in the backend		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	62788	Update request for 'Deleting...' string after failed Ajax attempt		Plugins	trivial	enhancement	new	2025-01-08T16:47:16Z	2025-06-04T13:25:42Z	please see attached image	ignatiusjeroe	6.7.1	dev-feedback
Enhancements Awaiting Review	52182	Option to activate that plugin or goto installed plugin list		Plugins	normal	feature request	new	2020-12-28T08:08:07Z	2025-06-04T09:57:21Z	"I was uploading one plugin which was already present and informed me that it is already available but gave only one option to go back to the installer.

It would be great if we can provide one more option called 'activate this plugin' or a link to go to installed pluigns.

[[Image()]]
"	abhayvishwakarma		has-patch
Enhancements Awaiting Review	41646	activate.php and deactivate.php for Plugins		Plugins	normal	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	4.8.1	
Enhancements Awaiting Review	62332	Display last update on plugins page in WordPress backend		Plugins	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	51731	Add the reason for deactivation to the 'deactivate_plugin' hook.		Plugins	normal	feature request	new	2020-11-09T14:28:12Z	2025-03-28T08:37:20Z	To be able to check if a plugins was disabled by a user action or because of the 'validate_active_plugins' check that is done on when visiting the plugins.php page would be great from a management perspective. Many WordPress installations have some required plugins which are not necessary for the site to work but do need to be active for one reason or another. This enables the option to notify the admin when a plugin gets disabled by accident because of a failed updated or any other reason.	merlijnvanlent		needs-patch
Enhancements Awaiting Review	61921	Require plugin name should be taken from plugin header instead of readme name		Plugins	normal	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	6.6.1	needs-patch
Enhancements Awaiting Review	62780	Add ability to developers to add their own plugin statuses via a filter #1		Plugins	normal	feature request	assigned	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		has-patch
Enhancements Awaiting Review	61091	Search, Bookmark, and Folder Function In WordPress Dashboard		Plugins	normal	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		
Enhancements Awaiting Review	58279	"Add tool to easily discover and remove or override erratic ""Update URI"" for plugins"		Plugins	normal	enhancement	new	2023-05-09T14:36:46Z	2024-10-11T12:45:41Z	"WordPress 5.8 introduced the plugin header field ""Update URI"". The purpose and usage of this field is described in https://make.wordpress.org/core/2021/06/29/introducing-update-uri-plugin-header-in-wordpress-5-8/ 

Unfortunately, there are some plugins that by mistake (perhaps while experimenting) populated this field with some value that forces WordPress to stop checking for updates to this plugin.

It would be good if the ""Plugin list"" could clearly indicate if a plugin is blocked from wp-org automatic updates via a declaration of ""Update URI"". 
Additionally, it could even offer to remove that declaration on behalf of the user (perhaps after first expanding a ""Read more"" that could explain the situation and the risk associated with incorrectly removing this declaration.)

I finally decided that this ticket would best sort under ""Plugins"", but other components could also contribute to handling this issue:
- Site Health could comment that ""The following plugin/plugins are blocked from automatic updates due to ""Update URI"" header.
- Upgrade/Install could add a note ""''n'' plugins skipped due to Update URI being set""."	tobifjellner	5.8	
Enhancements Awaiting Review	61987	Removed Unused Arguments From _wp_filter_build_unique_id Function		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	61737	Naming the plugin which is doing a fatal error on plugin activation/resumption		Plugins	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	61419	allow to disable plugin dependencies feature		Plugins	normal	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		
Enhancements Awaiting Review	48190	Show information from Plugins Directory into WP-Admin plugins page		Plugins	normal	feature request	new	2019-10-01T08:33:45Z	2024-06-19T12:21:15Z	"Hello everyone,

This is my first ticket/suggestion here.

First of all, hope this is not a duplicate request.

Recently one of the websites my company has been maintained got hacked:
https://www.wordfence.com/blog/2019/09/rich-reviews-plugin-vulnerability-exploited-in-the-wild/
Issue was on the Rich Review plugin.

The root cause of the problem was that we had installed on that website (was a theme requirement) the Rich Review plugins. We kept up to date all the plugins, WP core itself and themes on that websites and still the website got hacked.

The general guideline to keep your WordPress website safe is update everything. In this case though it failed.

It failed because we did not know that the Rich Review plugin was abandoned.

On plugin directory it clearly tells that the plugin has been closed for security reasons:
https://wordpress.org/plugins/rich-reviews/

So my question, request is, can it be made that we show this kind of information right away on the plugins list?

To improve it even further, show a WordPress notice on wp-admin when an administrater logins and he can directly see that plugin X has been abandoned or has been closed.

Thank you,
Arber."	arberbr		
Enhancements Awaiting Review	61040	Provide a framework for plugin onboarding experiences		Plugins	normal	enhancement	new	2024-04-18T20:11:45Z	2024-06-12T04:30:21Z	"Building off conversations happening in #60992, there is an opportunity for core to provide a framework that is more advanced that the existing `register_activation_hook`

By framework, I mean a set of hook and potentially broader functionality for plugins to use. I think plugins will still need to figure out what this means for that, but providing a consistent route to enter this will benefit the users of Core."	jorbin		
Enhancements Awaiting Review	37677	Introduce WP_Plugin class analogous to WP_Theme		Plugins	normal	enhancement	new	2016-08-16T15:50:59Z	2024-04-25T15:48:47Z	"Background:

This ticket emerged from #37656.

A `WP_Plugin` class has been previously mentioned in #22256 and brought up with a patch in #21883, but only in regards of hooks and filters (i.e. `$GLOBALS['wp_global_hooks'] = new WP_Plugin();`. With #17817 in contention, that approach would need some more tweaking. Also, the class name isn't ideal too because of `WP_Theme`. Using `WP_Plugin` for hooks but themes can use hooks too? Confusing.

Proposal:

Introducing a new `WP_Plugin` class that does similar things as the already existing `WP_Theme` class but for plugins. 

This would mainly mean handling caching, retrieving data from plugin file headers and adding any needed helper methods. As a result, we're less prone to errors since we can use 1 reliable API instead of `get_plugin_data()`, `get_plugins()`, etc."	swissspidy		
Enhancements Awaiting Review	47669	'Was' helping verb looks wrong in plugin deletion message		Plugins	minor	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	5.2.2	
Enhancements Awaiting Review	60794	Central Payment Gateway API for WordPress and All Plugins		Plugins	major	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		
Enhancements Awaiting Review	16838	Excluding Akismet from Future WordPress Releases / Plugin Directory		Plugins	normal	enhancement	reopened	2011-03-12T02:49:31Z	2024-03-02T21:23:45Z	"This issue was more mute prior to the shift in Akismet's 'keying', which previously just required you to have a free WP.com account to hook up to the API. Since Akismet now charges for access, or solicits fees by default for Personal website activations (when you go through the sign up process, it defaults at something like $5 with a slider that lets the person choose how much they want to pay). It's not immediately apparent that 'free' is an option within the slider, but that's not the primary issue here - I digress :)

The issue is that Akismet is no longer free for EVERYONE. It's only an option for Personal sites, and in certain cases. What if someone has multiple personal sites? They click that option and they are categorized into a Professional plan, which has a fee associated to it.

Since the plugin directory itself has officially been described (and in practice) to have a restriction that explicitly prohibits functionality be disabled from a plugin behind a Paywall, why wouldn't that apply in this case?

I certainly don't mean to rock the boat, but this brings up a number of important questions.

The plugin has a potentially confusing signup process that does lead people otherwise categorized as Personal site owners, to pay for the service while it's advertised under the plugin description that it's 'free' for Personal use. This produces a grey area of sorts, which puts this plugin under a sort of Paywall, which could be alleviated in a minor way by modifying the signup process. It still doesn't clear the air on how the Paywall for professional sites can be officially allowed versus a full Paywall. Perhaps someone who officially represents the WP.org Plugin Directory or WP.org can clarify the undocumented (not shown at http://wordpress.org/extend/plugins/about/) Paywall restriction for future reference.

Besides the plugin itself now finding itself in this grey area, it's bundled with WordPress by default and presents what could be described as an unfair market advantage for Automattic's product offering, sort of like anti-competitive business practices. I feel weird saying that, but I'm not throwing stones here. Just saying what it feels like, even if the core developers say it should be included, I'd say it now doesn't cover the 70/30 rule (or whatever the amount is).

If Akismet is allowed to remain in the plugin directory as is, and within WP core, then would other plugins be allowed to be included in the plugin directory that follow the same Paywall model and signup process?"	sc0ttkclark	3.1	
Enhancements Awaiting Review	60507	Add a view for plugins with missing dependencies		Plugins	normal	feature request	new	2024-02-12T14:39:07Z	2024-02-13T23:34:47Z	"Instead of directing the user to review their plugins or look for plugins that cannot be activated, it would be really useful to have a filter (similar to Active, Update Available, etc.) that can be linked to. Maybe ""Missing Requirements"" or ""Unmet Requirements"".

I don't love either of those names, but I prefer those over ""Missing Dependencies"" or ""Unmet Dependencies""."	desrosj		
Enhancements Awaiting Review	60061	"Rename ""add new plugin"" button"		Plugins	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	59616	Sort files in theme/plugin files tree		Plugins	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	59525	Add filter for `get_mu_plugins()`		Plugins	normal	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		
Enhancements Awaiting Review	59211	Plugins should be sandboxed on update to prevent fatal errors		Plugins	normal	enhancement	new	2023-08-26T11:33:27Z	2023-08-26T11:33:27Z	"If a plugin is already active, it will be updated without sandboxing.

Steps to reproduce: 
- install a plugin
- copy the plugin folder elsewhere
- make a change in code which will trigger a fatal error (call for non-existing class for example)
- bandle the changed folder into zip and install through the plugin upload"	oglekler		
Enhancements Awaiting Review	57220	New plugin header for requiring network installation		Plugins	normal	enhancement	new	2022-11-28T21:17:19Z	2023-08-03T23:56:38Z	"There is currently no way for developers to mark a plugin as “only working on a multisite installation”. If such a requirement is necessary, the plugin has to run a check during the plugin initialization and stop its execution (and maybe show an error notice to the user).

Alternatively, users have no obvious way to know is a plugin explicitly require a multisite to work.

WordPress provides a “Network” header for plugins which allow plugins to specify if they should be activated at the network level when use in a multisite, but it doesn’t stop activation on non-multisite installations.

This proposal is for adding a new header `Requires Network` to allow plugins to specifically require a multisite installation to be activated.

{{{#!php
<?php
/**
 * Plugin Name: My Custom Plugin
 * Description: A plugin requiring a network installation to work.
 * Plugin URI: https://example.com
 * Version: 1.0.0
 * Requires Network: true
 */
}}}

The new header is complementary to the existing `Network` header and not meant to replace it.

After a quick look in the core, I think implementing this header would also involve other parts of the WordPress ecosystem :
* **WP.org plugin API**: include a flag “requires_network” to allow plugin install table to support the new requirement,
* **WP-CLI**: plugin install/activate commands need to support the new requirement
"	petitphp		has-patch
Enhancements Awaiting Review	39474	"""Update plugins"" button also updates pending translations without express consent, while there's a specific button for that (Update translations)."		Plugins	normal	enhancement	new	2017-01-04T22:04:19Z	2023-07-09T16:12:47Z	"Usability problem in wp-admin/update-core.php

If there are at least one pending plugin update AND one pending translation update, the label of the button ""Update Plugins"" should be ""Update Plugins AND Translations"", because that's exactly what it does: it updates BOTH the plugins AND the translations.

Otherwise, if the label ""Update plugins"" is to remain as it is now, then it should ONLY update the plugins (and not also the translations, because there's already a specific button for that action).

(Windows 7 Pro 64bit + Firefox 50.1.0 64bit + WordPress 4.7.0)
"	Carlos ASR Dias	4.7	
Enhancements Awaiting Review	58393	The plugin's screenshots can be display in a image slider.		Plugins	normal	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		
Enhancements Awaiting Review	54778	Adding Filters in UI (Plugins)		Plugins	normal	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	5.8.3	
Enhancements Awaiting Review	58055	Add a filter to get_plugins() and get_plugin_data()		Plugins	normal	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	6.3	
Enhancements Awaiting Review	57064	"Add individual ""Support"" links to the plugin list page / theme page"		Plugins	normal	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		needs-patch
Enhancements Awaiting Review	46763	Improve plugin search results with already active plugins		Plugins	normal	enhancement	new	2019-04-02T10:52:13Z	2022-11-02T14:05:37Z	"Currently if you search for a plugin to do X, and X is something that a plugin you already have matches for, this is what you get:

https://cloudup.com/c0GYNTynpF4

The disabled ""Active"" button there is not very useful, as it doesn't provide any context as to why that button is disabled. I'd like to propose a change: let's turn this into two separate groups of results, one that says ""these plugins you already have installed might be able to help"" and then a second group below that with other plugins.

In my ideal world, we'd even have an ""admin search"" function, where you could be taken straight to the appropriate page for that keyword. This could be useful even for WordPress core, so I'm splitting that out into a second issue: #46764."	joostdevalk		
Enhancements Awaiting Review	56282	Automatic Updates: Counter counts plugins, which can't be updated automatically (and more..)		Plugins	normal	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		
Enhancements Awaiting Review	55875	"""Add New"" plugin should be ""Add Plugin"" because it now allows updating an existing plugin as well"		Plugins	normal	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_		
Enhancements Awaiting Review	55522	Misleading method names plugin_dir_path and plugin_dir_url		Plugins	normal	enhancement	new	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	5.9.2	has-patch
Enhancements Awaiting Review	55449	"More filter options for searching theme's & plugins - ""Last updated"" / ""Test with my WP version""."		Plugins	normal	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		
Enhancements Awaiting Review	53628	Maintenance Free Updates - Zero downtime		Plugins	normal	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	5.8	
Enhancements Awaiting Review	53132	MU/Network > Plugins: plugins (only) activated in subsite could be marked as such		Plugins	minor	enhancement	new	2021-05-02T08:46:27Z	2022-02-26T15:56:13Z	"This is a suggestion/request:

In a multisite setup I have plugins which are not network-activated, but activated on a subsite. They are, correctly I suppose, listed as “inactive” in the Network > Plugins table.
Plugins listed there have two actions “Network Activate” and “Delete”.

The later is what brought me here.
I can delete a plugin a subsite relies on without additional warning.

Would it be feasible to either:
1. add a third action “Deactivate on subsites” while the network-deactivated plugin is still activated somewhere further down and have “Delete” disabled until the new action has been triggered or
2. have a new column above the table
“All” “Active (network)” “Active (subsites)” …
and plugins in “Active (subsites)” have “Network Activate” and “Deactivate on subsites”
"	retrovertigo		
Enhancements Awaiting Review	55107	List and Delete button to delete broken plugins		Plugins	normal	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		
Enhancements Awaiting Review	54978	recreate response plugins_api		Plugins	minor	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	5.8.3	
Enhancements Awaiting Review	54860	Enhancement for more accurate doing_action, doing_filter		Plugins	minor	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		
Enhancements Awaiting Review	48486	Add compliance tab to plugin repository pages on WordPress.org		Plugins	normal	feature request	new	2019-11-03T18:46:36Z	2022-01-14T16:01:25Z	"== Overview

""Compliance tab"" is a working title that can be amended to be less intimidating and/or more generalized.

The benefit of this tab is to provide WordPress site owners who are researching plugins with privacy, accessibility, and other information to determine if this plugin will meet their site needs prior to installation and activation.

Ideally, this information can also be used in search and filter scenarios on WordPress.org to find tools compatible with the needs of site owners.

== Privacy
A privacy statement could include testing done against specific regulatory standards, and a statement of where data is transferred and stored at rest. It should also include any statements that need to be added to a site owner's privacy policy as part of using this plugin. 

This could potentially leverage the privacy policy post box information currently available under ''Settings > Privacy'', added in WordPress 4.9.6.

== Accessibility
An accessibility statement could include the WCAG level that the plugin targets (A, AA, etc) and where to file any issues found.

== Security
A security statement should include code standards followed, measures taken, and who to contact if you find a vulnerability.

== Certifications
Any certifications that this plugin has undergone for compliance."	katwhite	5.3	
Enhancements Awaiting Review	53385	"When adding a plugin/theme via ""add new plugin/theme"" it should show if the plugin/theme is translated or not"		Plugins	normal	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	5.7.2	
Enhancements Awaiting Review	30976	When selecting multiple plugins and performing deactivate, keep selected for next bulk action (if any)		Plugins	minor	enhancement	new	2015-01-11T05:16:01Z	2021-08-08T06:10:37Z		aubreypwd	4.2	ui/ux
Enhancements Awaiting Review	31192	"Enable sorting of search results on ""Add Plugins"" admin page"		Plugins	normal	enhancement	new	2015-01-31T20:59:57Z	2021-07-30T12:19:08Z	"Searches on the ""Add Plugins"" page often return thousands of results in no particular order, making it very hard to find high-quality plugins (I generally end up having to use Google to hunt down plugins). 

Often, plugins that are used by hundreds of thousands or millions of users are placed far below obscure, outdated, unmaintained plugins that are used by a few thousand people. It would be very helpful if there was a dropdown menu that enabled you to sort the search results by things like ""Most Downloads"", ""Highest Rated"", ""Last updated"", etc. This way, I could make sure that widely used, actively maintained plugins were at the top of my list, and quickly find what I need. 

A great example search if you wish to see the type of problem I'm addressing is ""Content Slider"". The first page of results is populated by many unmaintained/low-quality slider plugins, and then when you get to the second page of results you find several actively maintained high-quality plugins with hundreds of thousands of users (Easing Slider, Meta Slider, etc).

Thanks!"	tayjes16	4.1	
Enhancements Awaiting Review	41709	Make plugin install deep-linking easier		Plugins	normal	feature request	new	2017-08-23T03:32:11Z	2021-07-28T21:38:15Z	"Deeplinking into the WordPress admin is generally a better user experience than pointing users to the plugin repository, if you already know their admin URL. With autodiscovery in the REST API, this becomes even easier, as you can find their admin URL from just their domain (or site address).

As an example, the [http://wp-stream.com/ Stream plugin homepage] does this (minus the REST API discovery) to great effect.

However, there are numerous problems with this:

- The only screen to really point users at is the Search, as `plugin-information` is intended for an iframe and doesn't include the admin ""chrome""
- Since it's a search, other results might turn up, or your desired plugin may not appear at all if the plugin isn't marked as compatible (i.e. try the Stream install on trunk)
- Search parameters don't follow redirects (e.g. redirect to Network Admin)

We should make this easier. Additionally, WordPress.org could add an install helper to do this for every plugin on the repository.

Adding either a REST API endpoint which simply redirects (still requiring user interaction), or an admin action redirect would be great. I think the latter is probably better, and I'd like to propose something like `/wp-admin/?action=install-plugin&slug=wp-stream` as a redirect."	rmccue		
Enhancements Awaiting Review	23253	Lack of a do_settings_section (singular) function		Plugins	normal	enhancement	reopened	2013-01-21T19:20:06Z	2021-02-27T18:30:24Z	"After considerable research I have found that plugin authors, including myself, have to go to great lengths to put options into tabs on a plugin settings page. The majority use JavaScript to modify the DOM in order to achieve this, others have broken their options into several settings arrays instead of the recommended single array to facilitate the creation of tabs using the traditional WordPress nav-tab-wrapper class approach. 

To get my own options into tabs in a fully scoped css jquery ui theme I ended up adding my own hacky function to my plugin: myplugin_do_settings_section( $page, $sectionid ) - which is just a copy of the core function do_settings_sections( $page ) with an additional parameter for the section id and an added conditional to only output the section with the requested id.

This allows me to wrap each section in the appropriately classed tags for either jquery ui tabs or traditional WordPress nav-tabs. This however, is not an acceptable long-term solution as the core code will undoubtedly change, I already see tickets and revisions relating to the removal of those nasty tables...

This functionality should be in the core code. A settings section is a ''section'' and it should be possible to output them one at a time to allow for styling.

Thanks for considering my proposal.

(Also, the Iris color picker does not play nice with jquery-ui - it needs its own css scope or something - that will be a separate ticket once I have a better understanding of what is wrong with it and have searched for existing tickets on the subject.)


"	auniquename		has-patch
Enhancements Awaiting Review	52281	Updating plugin by upload and replace current should run activation hook function		Plugins	normal	enhancement	new	2021-01-12T12:46:15Z	2021-01-12T12:46:15Z	"When installing a plugin by Add new -> Upload -> Replace existing, the registered activation hook function appears not to be called.

This may lead to unwanted behaviour when the activation function calls dbDelta().

The request is to run the activation hook function in this case, making this way to install a dfifferent version functionally equivalent to the regular update procedure."	opajaap	5.6	
Enhancements Awaiting Review	52048	the functions activate_plugin and deactivate_plugin need validation		Plugins	normal	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	3.0	
Enhancements Awaiting Review	46991	Stop propagation on actions or filter		Plugins	normal	feature request	new	2019-04-19T12:05:17Z	2020-11-19T12:02:38Z	"It would be great to stop further filter-hooks/action-observer when we reached a state that should not continue.

This helps especially for custom implementations:

* Rejection actions that should not run.
* Return filtered values without giving other plugins the chance to change them.

All just for specific cases.

Possible implementation:

* Normal but impossible: Event-Class as wrapper reflecting whether to continue or stop.
* Semi-normal-way: Throwing a exception like `\WP_Stop_Propagation_Exception` telling WP_Hook to stop.
* Absolute absurd way: Setting a global variable like `$stop_propagation = true`

... and there may be more."	screamingdev		dev-feedback
Enhancements Awaiting Review	27303	"Make the ""Plugins bubble-link"" only show plugins that have an update available"		Plugins	normal	enhancement	new	2014-03-06T19:03:20Z	2020-09-23T19:51:37Z	"If I click on ""Plugins"", I get the full list of plugins. (plugins.php)
If I click on the bubble, I get the plugins with an update available. (plugins.php?plugin_status=upgrade)

It's a very small enhancement, but it will save me a click every time I go to update my plugins. :)

[[Image(https://i.cloudup.com/7UkYAUAV38.png)]]"	Fredelig	3.8.1	has-patch
Enhancements Awaiting Review	50735	Plugins Screen: introduce plugin types		Plugins	normal	feature request	new	2020-07-22T15:21:02Z	2020-07-22T15:33:07Z	"> The Plugin Block Directory is a new feature coming in WordPress 5.5 that allows specially-written Block Plugins to be instantly and seamlessly installed in the editor, without ever leaving the page.
-- https://make.wordpress.org/plugins/2020/07/11/you-can-now-add-your-own-plugins-to-the-block-directory/

WordPress 5.5 will make it easier for folks to install block plugins, as they edit their posts and pages. As a result, and as the block directory becomes more and more popular, I assume the average number of plugins installed on a WordPress site will increase. On the Plugins screen UI we know, we'll see a mix of ""regular"" plugins as well as block plugins.

I wonder if we should consider making some changes to the Plugins Screen UI to clearly separate the 2 plugin types. 

- This would help site owners quickly skim through their plugin list.
- It would help them understand how a specific plugin was added to the site.
- It may help them manage their plugin autoupdates (one could imagine a scenario where you'd want block plugins, including little PHP, to be automatically updated while ""regular"" plugins would require a manual update)."	jeherve		
Enhancements Awaiting Review	50560	"show ""recently deleted"" plugins - a safer option than ""inactive plugins"""		Plugins	normal	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		
Enhancements Awaiting Review	49626	Allow plugin developers to opt-out their plugin from auto updates		Plugins	normal	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		
Enhancements Awaiting Review	45056	Show Active plugins at the top of the plugin list in plugin-editor.php		Plugins	minor	enhancement	new	2018-10-05T18:52:50Z	2020-06-29T17:34:44Z	This is something I've thought would be useful for quite a while.  	codente		has-patch
Enhancements Awaiting Review	50211	Add Ajax to Activate/Deactivate links in the Installed Plugins screen - keep focus on the screen location		Plugins	normal	enhancement	new	2020-05-19T19:35:09Z	2020-05-21T22:32:21Z	"As we update a plugin a spinner is seen and we are kept at the same location on the Installed plugin screen.
Clicking Activate/Deactivate the focus jumps to the top and one loses connection with the screen location.
It would be very helpful to add Ajax to the Activate/Deactivate links so we are kept in the same location on the screen and not kicked to the top of the page."	paaljoachim		
Enhancements Awaiting Review	49620	Allow plugin/theme developers to utilize Beta, Alpha, Canary release channels for automatic updates		Plugins	normal	feature request	new	2020-03-10T20:22:56Z	2020-03-10T20:22:56Z	"With the changes introduced with #48850, WordPress user can now configure plugins and themes to automatically update when a new version is released. In general, this is a great feature in terms of security, and reducing overall site maintenance. 

At Wordfence, we have offered automatic updates for our plugin as a feature via the WordPress auto-update API for a number of years. Since the automatic update rolls out over the course of 24 hours, issues with a new version can end up being widespread very quickly, especially as our user base has grown in size. We've being adding more and more testing on a variety of different hosting environments and configurations to catch potential issues before we push an update to the plugin. 

One feature that would be nice to have would be to configure release channels for different stages of stability in the plugin/theme. [https://www.chromium.org/getting-involved/dev-channel Chrome/Chromium has used release channels] as a means to gradually rollout automatic updates to users. 

Plugin developers could define Beta, Alpha, and Canary tags which can be used for testing. They can be defined in the same way developers can use the `Stable Tag` header in the readme.txt. End-users of WordPress would be able to select a specific release channel when configuring automatic updates. Stable for production websites, and alpha/beta/canary for staging and development sites.

There was a fair amount of feedback from WP Tavern's recent post regarding automatic updates for plugins and themes. Quite a few users mentioned issues with updates causing a WSOD on their site, and seemed hesitant to adopt this new feature:

https://wptavern.com/automatic-theme-and-plugin-updates-slated-for-wordpress-5-5#comment-320040
https://wptavern.com/automatic-theme-and-plugin-updates-slated-for-wordpress-5-5#comment-320044
https://wptavern.com/automatic-theme-and-plugin-updates-slated-for-wordpress-5-5#comment-320049

Being able to provide release channels can allow WordPress users utilizing staging sites to know ahead of time if an update could potentially break their site, before it occurs on their production site. They could disable automatic updates in production for that plugin/theme and (hopefully) post details of their issue in the support forums."	wfmatt		
Enhancements Awaiting Review	48143	Unstyled error message when activating broken plugin		Plugins	minor	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		
Enhancements Awaiting Review	47221	Plugin Search Menu (Enhancement Suggestion)		Plugins	normal	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		
Enhancements Awaiting Review	43671	'Search installed plugins' on plugins page unneccesary and possibly misleading, possibly replace it for 'search new plugins'		Plugins	normal	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	4.9	
Enhancements Awaiting Review	42981	Sorting plugins and themes		Plugins	normal	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	4.9.1	
Enhancements Awaiting Review	46571	Fix contributors list in plugin information + duplicate CSS		Plugins	normal	enhancement	new	2019-03-20T08:28:07Z	2019-03-20T09:07:32Z	I think the contributions list can be better with this change.	mostafa.s1990	5.2	dev-feedback
Enhancements Awaiting Review	39414	New param in plugin_dir_path		Plugins	normal	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		
Enhancements Awaiting Review	43882	Introduce slug-specific hooks to manage plugin loading order		Plugins	normal	enhancement	new	2018-04-27T16:48:35Z	2019-01-24T06:55:42Z	"As already discussed in #41346, I'd like to propose a simple mechanism that can solve the loading order problems that inter-dependent plugins can have.

The main mechanism just adds an action that is named after the plugin that was just loaded. In this way, other plugins are able to initiate actions based on when another plugin was loaded.

A similar mechanism has been used in WP-CLI to solve the problems in the loading order of commands that rely on each other. You can read more about how commands can control their loading order here: https://make.wordpress.org/cli/2017/05/03/managing-command-dependencies/

Furthermore, this also allows for a small extension that can automatically resolve loading order, provided it knows about the dependency to look for. This is used in WP-CLI as well, where it is easy to deduce the parent command to look for, as described here: https://make.wordpress.org/cli/2017/05/31/command-dependencies-revisited/. For plugins, this could be solved by adding a simple plugin slug to the plugin header. I'll introduce a separate ticket to that regard.

I will upload a patch that adds the above-mentioned action, together with `pre_plugin_loaded` and `post_plugin_loaded` actions that give further control to plugins.

In case anyone wonders whether that might open the door to abuse and have plugins block loading of other plugins: that is already easily possible right now. A plugin can just remove whatever plugins it dislikes from the list of active plugins on activation hook."	schlessera		
Enhancements Awaiting Review	45439	Add a link to plugins/themes details in dashboard to translation page		Plugins	normal	enhancement	new	2018-11-28T06:48:19Z	2019-01-16T06:50:09Z	"Currently locale translators don't get credit for their contributions, I know there are pages in translate.wp.org, But WordPress users usually can't reach those pages easily, because they install plugins directly via dashboard
I think we can add a link in dashboard plugin details, a link to current language translators page,

For example: if our current language is Persian, for woocommerce plugin, we can add a link (Translation Team, Help us!) to related Persian translators page:
https://translate.wordpress.org/locale/fa/default/wp-plugins/woocommerce


And the link can be auto generate for any other active language in dashboard
This help users to find that area easily and encourage them to participate in those translations, And also help plugin/themes developers to get more translation for their product, And will give a credit to that translators

I think the dashboard credit would make more sense
So we can have more plugin translation updates and more contributors
This can be also for Themes
"	parsmizban		needs-patch
Enhancements Awaiting Review	43115	Improve plugin search results		Plugins	normal	feature request	new	2018-01-17T19:05:36Z	2018-09-14T19:40:00Z	"Hi there,

I'm not sure if I post this at the right place, but being new to 'get involved' I find this to be the most direct place to share my thoughts. Maybe someone before me has suggested my request before, but I could not find existing tickets about it.

For a long time I do miss a good filtering and sorting option in the plugin repository, both on wordpress.org/plugins and in the admin plugin section. I would like to see a filter and sorting option for the following attributes:

- WP version compatiblility (tested up to ...)
- WP version required
- number of active installs -> if this is high, it must be a quite good plugin, otherwise not so many websites would use it
- in plugin repository since -> plugin can be fairly new and therefore not yet have a high number of active installs
- last updated -> to filter out plugins that are not regularly updated
- rating

I also would like to see that 'last updated' would be added to the info for a single plugin search result (where now only the number of active installs, developer and 'tested with' is displayed), so you can see right away if a plugin is well maintained or not.

I would also suggest that plugins which have not been updated or maintained at all for over a year will be marked; for example with a traffic light: orange for 'updated more than a year ago', red for 'updated more than two years ago' (and off course green for 'updated less than a year ago'). 

I think the least plugin writers can do is test their plugin for compatibility with each new WP version and update this information if the plugin still works fine. Maybe make this mandatory if you want your plugin to be included in the plugin reporitory?

I hope this will also encourage all plugin writers to maintain their plugins better. My goal is to separate the plugins of good quality and high developer dedication from the plugins that are less well maintained. And make this visible to users.

I'm looking forward to a response from the core developers community. Thanks!"	prodefu	4.9.2	
Enhancements Awaiting Review	44073	Add functionality to search plugin with double quoted keyword		Plugins	normal	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		
Enhancements Awaiting Review	43621	Introduce `add_action_once` and `add_filter_once` sugar.		Plugins	normal	feature request	new	2018-03-23T17:49:45Z	2018-04-06T17:12:29Z	"It is often useful (especially when writing tests for filters, actions) to run a callback only once, regardless of how many times the filter/action is actually applied/done.

{{{
add_filter_once( 'test_action_once', '__return_true' );

$this->assertTrue( apply_filters( 'test_action_once', false ) );
$this->assertFalse( apply_filters( 'test_action_once', false ) );
}}}

This would allow developers to run anonymous callbacks that remove themselves from the filter after running once. This can currently be done with the following ugly workarounds:

{{{
add_action( 'run_many_times', function() {
    // do stuff once and self-destruct
    remove_action( 'run_many_times', current(﻿ $GLOBALS['wp_filter'][ current_filter() ]->callbacks[ 10 ] )['function'] );
} );
}}}

or

{{{
$once = null;
add_action( 'run_many_times', $null = function() use ( &$once ) {
    // do stuff once and self-destruct
    remove_action( 'run_many_times', $once );
} );
}}}

This is '''not''' a duplicate of #38743, the concept is different, the naming is the same, yes.

Non-clashing names here?

- `​add_self_destructing_filter()﻿`
- `add_ephemeral_filter()`
open to other suggestions :)"	soulseekah		dev-feedback
Enhancements Awaiting Review	38743	Introduce add_action_once()		Plugins	normal	feature request	new	2016-11-10T10:26:25Z	2018-03-23T20:04:13Z	"Hi there.

I was wondering if noone ever needed to add a callback to some action or filter hook only if it hasn't been added (potentially by someone else) before.

Possible use cases are:

* only add `my_callback` if it hasn't been added before, no matter with what priority;
* only add `my_callback` if it hasn't been added before with a specific priority.

Naming-wise, I'd suggest `add_action_once()` and `add_filter_once()`, respetively, although one could be more verbose (e.g., `add_action_if_not_exists()` etc.).

Here is a possible implementation of this:

{{{#!php
<?php

function add_action_once(
    $tag,
    callable $function_to_add,
    $priority = 10,
    $accepted_args = 1,
    $check_priority = false
) {

    return add_filter_once( $tag, $function_to_add, $priority, $accepted_args, $check_priority );
}

function add_filter_once(
    $tag,
    callable $function_to_add,
    $priority = 10,
    $accepted_args = 1,
    $check_priority = false
) {

    global $wp_filter;

    if ( empty( $wp_filter[ $tag ] ) ) {
        return add_filter( $tag, $function_to_add, $priority, $accepted_args );
    }

    if ( false === $check_priority ) ) {
        if ( has_filter( $tag, $function_to_add ) ) {
            return false;
        }
    } else {
        foreach ( $wp_filter[ $tag ] as $functions ) {
            foreach ( $functions as $data ) {
                if ( isset( $data['function'] ) && $function_to_add === $data['function'] ) {
                    return false;
                }
            }
        }
    }

    return add_filter( $tag, $function_to_add, $priority, $accepted_args );
}
}}}

Yes, it is possible to check whether or not a specific callback has been added to an action or filter hook by using `has_filter()`. And as you can see, the above code uses that function internally.

However, this would mean that your code, where you want to add a callback if it hasn't been added before, would have to perform `has_filter()` and `add_action()`/`add_filter()`.

And secondly, by using `has_filter()`, you cannot check if a callback has been added with a specific priority.

The two functions above take care of both as well.

'''Example:'''

{{{#!php
<?php

// Somewhere in your code... Maybe!
add_filter( 'the_title', 'add_exclamation_mark', 20 );

// Some other place, that maybe doesn't know about the place above...
add_filter( 'the_title', 'add_exclamation_mark', 10 );

// Yet another place...
echo apply_filters( 'the_title', 'Hi there' );

// Hi there!!
}}}

By using `add_filter_once()` (in this example withouth the last parameter as I'm not interested in where/when the callback gets fired), this would look like so:

{{{#!php
<?php

// Somewhere in your code... Maybe!
add_filter_once( 'the_title', 'add_exclamation_mark', 20 );

// Some other place, that maybe doesn't know about the place above...
add_filter_once( 'the_title', 'add_exclamation_mark', 10 );

// Yet another place...
echo apply_filters( 'the_title', 'Hi there' );

// Hi there!
}}}


So, what do you think?

Cheers,
Thorsten"	tfrommen		
Enhancements Awaiting Review	43058	File search in theme & plugin editor window		Plugins	normal	feature request	new	2018-01-10T13:39:58Z	2018-01-16T05:36:27Z	"Now we have using Code mirror for updating theme/plugin files. We have also create a directory tree of theme & plugin files.

It is hard to search the file in the given directory tree. So, File search filed is useful to search particular file. This patch search `file name` & `file extensions` too."	Mahesh901122		has-patch
Enhancements Awaiting Review	42773	Plugin/Theme editor does not return sufficient information when loopback request fails		Plugins	normal	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	4.9	
Enhancements Awaiting Review	33741	Remove references to my-hacks.php and the hack_file option	jorbin	Plugins	normal	enhancement	reopened	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	4.3	has-patch
Enhancements Awaiting Review	40971	Clicking More Details in Add Plugins page shows old version of Plugin Directory page		Plugins	normal	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	4.8	
Enhancements Awaiting Review	40651	Plugins: Make it easier to find plugin settings after install		Plugins	normal	feature request	new	2017-05-03T18:24:19Z	2017-05-04T14:01:14Z	"After installing new plugins, I invariably end up spending time hunting down wherever I need to configure or use it. Some plugins add a ""Settings"" link to their plugin card (very useful!) but this isn't always the case. It would be great to find a way to direct people to the settings screens upon activation. "	melchoyce		
Enhancements Awaiting Review	40156	Warning for invalid hook callback is not very useful		Plugins	normal	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	0.71	
Enhancements Awaiting Review	39772	add ajax functionality to switching tabs and pagination in plugins		Plugins	normal	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	4.8	
Reporter Feedback / Close	32422	add_menu_page() returns incorrect $hookname when using plugin filename as $menu_slug		Plugins	normal	defect (bug)	new	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	4.2.2	dev-feedback
Reporter Feedback / Close	42637	Wrong button text for plugin installation failed!		Plugins	normal	defect (bug)	new	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		close
Reporter Feedback / Close	52218	WordPress Multisite 5.5.3 All Plugins set have Auto-Updates Disabled, but they Updated themselves anyway		Plugins	normal	defect (bug)	new	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	5.5.3	reporter-feedback
Reporter Feedback / Close	61797	Sometimes show Critical error when I click “plugins” Manu		Plugins	normal	defect (bug)	new	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	6.7	reporter-feedback
Reporter Feedback / Close	44582	Notice: Undefined property:stdClass::$plugin - wordpress		Plugins	normal	defect (bug)	new	2018-07-13T19:15:50Z	2025-07-23T06:43:19Z	Notice: Undefined property: stdClass::$plugin in /hermes/bosnaweb07a/b1754/ipg.account_name/folder_name/wp-includes/class-wp-list-util.php on line 150 	sangwan4pankaj	4.9.7	reporter-feedback
Reporter Feedback / Close	61962	Admin: remove_menu_page throws PHP warning when $menu is null		Plugins	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	61525	Plugins page keeps making HTTP requests for plugin dependencies which are not in the WordPress Plugin Directory		Plugins	normal	defect (bug)	new	2024-06-28T04:23:42Z	2025-01-31T07:32:51Z	"Suppose you have two plugins installed, `foo` and `bar`, and `foo` is a dependency of `bar`.

{{{#!php
<?php

/*
Plugin Name: Bar
Requires Plugins: foo
*/
}}}

Suppose also that `foo` and `bar` are not in the WordPress Plugin Directory - they are custom plugins or third-party plugins installed from elsewhere.

Then, every time the Plugins admin page is visited, `WP_Plugin_Dependencies::get_dependency_api_data()` will make an HTTP request for information on `foo`:

{{{
https://api.wordpress.org/plugins/info/1.2/
?action=plugin_information
&request%5Bslug%5D=foo
&request%5Bfields%5D%5Bshort_description%5D=1
&request%5Bfields%5D%5Bicons%5D=1
&request%5Blocale%5D=en_US
&request%5Bwp_version%5D=6.7
}}}

Normally, for a plugin which is found in the WordPress Plugin Directory, the response to this request would be cached in a transient for 12 hours, and there would not be any need to repeat the HTTP request for plugin information during that time.  However, because `foo` is not in the Plugin Directory, the response will return 404 Not Found, and this means that the HTTP request will keep getting made over and over again every time the Plugins page is visited.

Some thoughts on how to improve this behavior:

1. Maybe `WP_Plugin_Dependencies::get_dependency_api_data()` should cache negative responses?  That is, maybe it should remember that the HTTP request returned 404 Not Found and not try the request again for 12 hours?

2. Maybe it would be wise to look at the [https://make.wordpress.org/core/2021/06/29/introducing-update-uri-plugin-header-in-wordpress-5-8/ Update URI] header field (if it exists) and, if the value is not `https://wordpress.org/plugins/{$slug}/` or `w.org/plugin/{$slug}`, then clearly the plugin is not in the WordPress Plugin Directory and the HTTP request for plugin information can be skipped?  This seems like it would work; on the other hand, this might be considered to be (ab)using the ""Update URI"" header for a purpose other than that for which it was intended."	siliconforks	6.5	close
Reporter Feedback / Close	53384	"External plugins who can auto-update are always listed under ""auto-updates"" disabled"		Plugins	normal	defect (bug)	new	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	5.7.2	reporter-feedback
Reporter Feedback / Close	61610	Hidding the dependency notice + prevent the plugin deactivation only on some case.		Plugins	normal	defect (bug)	new	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	6.5	reporter-feedback
Reporter Feedback / Close	61106	WordPress Plugin updates fail		Plugins	major	defect (bug)	new	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	6.5	reporter-feedback
Reporter Feedback / Close	60040	While installing a plugin using wordpress plugin installer, a directory seems to be missing		Plugins	normal	defect (bug)	new	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	6.3	close
Reporter Feedback / Close	44072	Plugin repository search error - cannot find plugin with Author's name		Plugins	normal	defect (bug)	new	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		close
Reporter Feedback / Close	59109	Prevent plugins from creating admin accounts		Plugins	normal	defect (bug)	new	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	6.3	close
Reporter Feedback / Close	58933	plugin-install.php search works incorrect		Plugins	normal	defect (bug)	new	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	6.2.2	reporter-feedback
Reporter Feedback / Close	57792	no way to find the plugin		Plugins	major	defect (bug)	new	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	6.1.1	reporter-feedback
Reporter Feedback / Close	57693	Browser is not recognizing font from WordPress export		Plugins	major	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	56292	Auto-update option gets enabled for plugins not hosted on WordPress.org		Plugins	normal	defect (bug)	new	2022-07-27T11:16:12Z	2022-10-06T01:08:58Z	"The option to Enable Auto-update only appears to those plugins ( Referring to plugins **NOT** hosted on WordPress.org ) if a version update is available for that plugin.

Also, if the user does bulk action auto-updates from the plugins page, auto-update gets enabled for all the plugins, including those not hosted on WordPress.org, only when an update is available for those plugins.

Is this expected behavior? If auto-update is supported for Non-WP.org plugins, those options should always be available for all plugins, irrespective of whether they are hosted on WordPress.org or Not.  "	patilvikasj	5.5	reporter-feedback
Reporter Feedback / Close	56729	Vulnerability in plugin update notification (impersonation of plugins with possible RCE)		Plugins	normal	defect (bug)	new	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		close
Reporter Feedback / Close	55415	Pluggable.php file is causing Fatal Errors		Plugins	major	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	49729	Warning: fread() expects parameter 1 to be resource, bool given in \wp-includes\functions.php on line 5785		Plugins	minor	defect (bug)	new	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	5.3.2	reporter-feedback
Reporter Feedback / Close	43716	"Not work ""option_active_plugins"" filter in front-end"		Plugins	normal	defect (bug)	new	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	4.9.5	reporter-feedback
Reporter Feedback / Close	43453	heartbeat_received filter requires data in order to execute		Plugins	normal	defect (bug)	new	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	3.6	reporter-feedback
Reporter Feedback / Close	41001	Recently Active Plugins Option does not reset when you delete a plugin.		Plugins	normal	defect (bug)	new	2017-06-11T17:25:39Z	2022-02-26T20:18:45Z	"When you deactivate a plugin like Akismet, a value gets saved into ""wp_options"" under the option name ""recently_activated"". 

The value looks like:
''a:1:{s:19:""akismet/akismet.php"";i:1497201452;}''

When you reactivate Akismet, the value is updated and resets the option back to look like this:
''a:0:{}''

'''The Bug.''' 

When you deactivate Akismet and delete akismet, the ""recently_activated"" option keeps this in the option value.
''a:1:{s:19:""akismet/akismet.php"";i:1497201452;}'' when it should reset back to ''a:0:{}''"	GeekStreetWP	4.8	close
Reporter Feedback / Close	55089	ajax `wp_ajax_update_plugin` show download failed when contain another update (eg: translations) with same process fail.		Plugins	minor	enhancement	assigned	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	5.9	reporter-feedback
Reporter Feedback / Close	52829	Getting some code when Update failed plugin		Plugins	normal	defect (bug)	new	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	5.7	reporter-feedback
Reporter Feedback / Close	37301	A way to test plugin/theme installs and updates before applying		Plugins	normal	feature request	new	2016-07-07T09:13:20Z	2020-04-15T20:41:18Z	"The # 1 reason for WordPress sites going completely down or becoming partially broken is the bad install or an update of a plugin or a theme. 

The worst case scenario being a complete white screen of death from which the only way to recover is to manually remove the culprit plugin files, which unfortunately requires remote access to the server filesystem. 

The current plugin upgrader checks if the upgrade causes errors and can in some cases recover from the most obvious cases syntax errors in the critical plugin code. This however fails to mitigate the slightly more subtle issues like incompatibilities between plugins/themes and javascript errors that may still completely wreck the site. 

Furthermore, the more seasoned WordPress users are known to avoid updating plugins and themes on their site due to the volatility of running an update in production. This of course leaves their sites vulnerable to possible security issues. 

The best practice of running staging environments to test plugins before updating requires a significant amount of technical knowledge and labour, and is not widely practiced among regular users.

I suggest we give the option for users to test plugin / theme installs and updates prior to applying them. 

This requires a sort of sandbox environment for the user where they can freely install and test plugins without worrying about breaking anything. 

I've created an example implementation of these plugin update sandboxes in (slightly hacky) plugin form. The plugin adds a ""test update"" button to the update.php admin screen, which creates a sandbox where the user can test the updated plugin without affecting the live site. Both the plugin directory and the database are separated from the live ones.

https://github.com/anttiviljami/wp-safe-updates

Screenshots:

The ""test update"" button in update.php

[[Image(https://github.com/anttiviljami/wp-safe-updates/raw/master/assets/screenshot-1.png)]]

Updating the plugin in an alternate heap (sandbox)

[[Image(https://github.com/anttiviljami/wp-safe-updates/raw/master/assets/screenshot-2.png)]]

Testing the plugin inside the sandbox

[[Image(https://github.com/anttiviljami/wp-safe-updates/raw/master/assets/screenshot-3.png)]]

--

I would love more discussion about this. I feel the safety of theme / plugin updates is definitely among the most important issues to solve for the future of WordPress security.

Love, 
@anttiviljami"	Zuige	4.4.3	ui/ux
Reporter Feedback / Close	49454	Plugins list page update available shows 3 plugin to update but actually have only 2 plugins to update		Plugins	normal	defect (bug)	new	2020-02-17T12:15:11Z	2020-02-17T13:19:36Z		vivek5512	5.3.2	reporter-feedback
Reporter Feedback / Close	41910	Update plugin/theme maintenance message		Plugins	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	43949	Need filter in get_metadata		Plugins	normal	enhancement	new	2018-05-03T13:19:13Z	2018-05-23T13:55:22Z	"When accessing get_post_meta('ID_HERE') 

Need to filter the output array. 

Existing get_{$meta_type}_metadata filter works before fetching data. 

The filter required before returning or Processing value of $meta_cache"	fitehal		reporter-feedback
Defects Awaiting Review	43613	Default post format setting does not respect theme support		Post Formats	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62958	Pasting in text into the block editor with emoji breaks the saving		Post Formats	normal	defect (bug)	new	2025-02-13T09:27:15Z	2025-02-20T08:09:13Z	"I was pasting in some text see below. 

Chars 🎨✨

If I look at it in edit mode it looks the same to the emojiis isn't converted to images or something else.

[[Image()]]

The error I'm getting is that the post can't be saved to the database"	freddynord	6.7.2	
Enhancements Awaiting Review	34552	Remove default post format setting		Post Formats	normal	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		
Reporter Feedback / Close	66140	Post Add Media Button Not Working		Post Formats	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	43482	Draft Posts Throw 404 on Preview when Supporting post_format		Post Formats	normal	defect (bug)	new	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	4.9.4	reporter-feedback
Reporter Feedback / Close	34670	Default Post Format option lists formats that are not available in the theme		Post Formats	normal	defect (bug)	reopened	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	4.3.1	close
Defects Awaiting Review, reported against no version	39736	Thumbnail src image link to direct large image, cause low page speed		Post Thumbnails	normal	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		
Defects Awaiting Review	62729	stream_preview_image() should stream with right mime type, if filter _load_image_to_edit_path change file with different mime type	pbearne	Post Thumbnails	normal	defect (bug)	assigned	2024-12-20T21:39:57Z	2025-08-11T20:37:41Z	"Hi, im working on allowing image editor for PDF thumnbails https://core.trac.wordpress.org/ticket/62712.

in functiion stream_preview_image() in wp-admin/includes/image-edit.php - line 766
is function with filter 
{{{#!php
<?php
_load_image_to_edit_path( $post_id )
}}}

we can change filepath, but for example if we change to 
{{{
metadata['sizes']['full']
}}}
which has mimetype image/jpg, function stream_preview_image() dont send image to browser. Bug is in 

{{{#!php
<?php
return wp_stream_image( $img, $post->post_mime_type, $post_id );
}}}
should be
{{{#!php
<?php
return wp_stream_image( $img, $img['mime-type'], $attachment_id );
}}}

"	Hrohh	6.7.1	has-patch
Defects Awaiting Review	58402	Featured Image Preview breaks when an SVG image is uploaded.		Post Thumbnails	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	62712	"""Edit image"" in Media Modal not work for PSD/SVG ( mime_type image/* )"		Post Thumbnails	minor	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	6.7.1	
Defects Awaiting Review	50847	update_post_thumbnail_cache returns notice when get_the_post_thumbnail used with ID after setup_postdata()		Post Thumbnails	normal	defect (bug)	new	2020-08-04T17:23:43Z	2024-12-05T06:17:46Z	"**Situation:**
- Inside main loop
- foreach over array of (related) post_id's,
- use ''setup_postdata($post)'' for each item
- Items call get_template_part(something)
- Template parts uses ''get_the_post_thumbnail'' which allow a post_ID
- ''get_the_post_thumbnail'' calls ''update_post_thumbnail_cache'' (because in_the_loop)
- ''update_post_thumbnail_cache'' gives **notice on line 101: Trying to get property 'ID' of non-object**
- Restore main loop with wp_reset_postdata()

**Possible fix:**
Change this
{{{#!php
<?php
foreach ( $wp_query->posts as $post ) {
	$id = get_post_thumbnail_id( $post->ID );
	if ( $id ) {
		$thumb_ids[] = $id;
	}
}
}}}
To this
{{{#!php
<?php
foreach ( $wp_query->posts as $post ) {
	if (is_object($post)) {
		$post = $post->ID;
	}
	$id = get_post_thumbnail_id( $post );
	if ( $id ) {
		$thumb_ids[] = $id;
	}
}
}}}
in /wp-includes/post-thumbnail-template.php line 101

"	tomcent	5.4.2	has-patch
Defects Awaiting Review	55019	Missing the Upload Featured image and Categories option after update the WP 5.9		Post Thumbnails	major	defect (bug)	new	2022-02-01T06:06:16Z	2023-10-18T15:18:47Z	"Hello. With the update to WordPress 5.9, I discovered one significant inconvenience. I read all the descriptions, searched the forum, but did not find how to solve a problem. The only way, which is working now – to log out, delete all cookies for the website in the browser, log in back and edit ONE post. For the second post, the problem is back and I need to log out and delete cookies again.

And yes, the problem occur even when I deactivate all plugins and use the default theme.

[[Image(https://i.ibb.co/0KSmCXK/2022-02-01-08-56-27.png)]]

The point is that my theme (like many others) is designed to be used with Featured Image. Previously, it was in the right column in the admin panel, where I can select a picture and the theme displayed as the cover of the post. Also, there was a list with categories, but now it's empty. 

[[Image(https://i.ibb.co/Br330Hp/2022-02-01-08-57-14.png)]]

And of course, I have a lot of categories. And no, I can't activate the Featured image in settings, cause there is NO such setting in the preferences. Sorry for the Russian language on the screens, but you can see that these elements just don't exist.

[[Image(https://i.ibb.co/9nFgYcH/2022-02-01-08-56-54.png)]]

Now I need to add a block in the text itself with the Featured Image. But the problem is that the theme takes a picture from this block and puts it on the cover. Plus, because I inserted the image into the text, it appears in the text as well. I end up with a duplicate image on the page.


I think this is very strange. Please, fix it, cause I can't work with the 5.9 :( We need to spend doubled time on 1 post. Thank you in advance."	Kuuuzya	5.9	needs-patch
Defects Awaiting Review	45688	admin_post_thumbnail_html filter no longer works in WordPress > 5.0		Post Thumbnails	normal	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	5.0	
Defects Awaiting Review	43326	Delay when setting Featured Image		Post Thumbnails	normal	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	4.9.4	
Enhancements Awaiting Review	44542	Images: Option to control when to create different image dimensions		Post Thumbnails	major	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	4.9.7	needs-patch
Enhancements Awaiting Review	56056	Specify a Custom Array of $sizes for `wp_get_attachment_image` to Reduce HTML Bloat		Post Thumbnails	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	55024	In wp-admin, show thumbnail of featured image		Post Thumbnails	normal	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		
Enhancements Awaiting Review	40469	How to remove full size image path from srcset and more intelligent choices in srcset candidate list		Post Thumbnails	normal	enhancement	new	2017-04-16T22:41:15Z	2017-06-28T12:38:06Z	"On our site, we have a number of image sizes registered in WP, in addition to the default ones, for a variety of purposes. A large one to fill the width of our column, smaller ones for some custom image output, etc.

The result of this is a sloppy srcset candidate list filled with URLs that may make no logical sense in a particular location in the markup. WP does have an upper size limit to prevent giant images from being in srcset, and also matches aspect ratio, but nothing else.

I have been able to hack together a filter using `wp_calculate_image_srcset_meta` to unset various sizes in the `sizes` array. But if the full size of the image is smaller than the `max_srcset_width` parameter, it still gets included, and there should be some way to remove it. The full size of the image is not part of the `sizes` array in image_meta.

It actually points to a larger issue with WP srcset implementation, which is that is mindlessly fills the HTML with srcset candidates that in many instances would never be used, adding lots of excess markup that a developer wouldn't add.

For example, we have a 300px wide sidebar where we output an image. The sidebar is never larger than 300px, and even is that size in our responsive site on mobile. The srcset outputs a 150px, 200px, 300px, 600px, 768px and 1240px, based on the sizes registered in our installation and the built-in ones. Logisitically, all that is really needed for this layout is 300px and probably the 600px version. We have all sorts of examples like this where the srcset includes either smaller or larger sizes than are physically possible in a given layout.

Obviously WordPress cannot know how a site is styled, but it feels like there needs to be a more robust way of dealing with this. It is not a great feature to load up on unneeded markup.

As a theme developer, I would like the ability to constrain the srcset candidate list in an intelligent way each time I output img tags into the markup. It is easy for me to say ""at this location, this image will never be smaller than 300px, so don't give me anything smaller, and will also never be bigger than 300px, so only go up to a 2x version and skip anything larger.

I'm guessing this is exacerbated by a variety of themes and pluging that may load up on extra registered image sizes as well."	lisota	4.7.3	
Enhancements Awaiting Review	28461	Add a fallback parameter to get_the_post_thumbnail() to find images		Post Thumbnails	normal	enhancement	new	2014-06-05T06:55:46Z	2017-02-06T12:42:44Z	"In the 3.6 cycle, there was a lot of talk about grabbing various media types from the content for post format handling. #22960 is basically the end of that conversation, and includes a lot more stuff. #23593 is also related, but ended up getting closed in favor of #22960, which died with the post format UI.

Within that realm, the `get_the_image()` function from Justin Tadlock's Get The Image (https://github.com/justintadlock/get-the-image) plugin came up a bit. It's a super handy function. Although, it was mostly discussed as a piece of post formats. You can see it's got a whole bunch of functionality, but I'm mostly interested in its ability to find a fallback image in the content.

I'd like to see something like `get_the_image()` be able to be called via some kind of parameter within `get_the_post_thumbnail()` and therefore `the_post_thumbnail()`.

Justification: There are times in building out a theme where you'd want the **exact** featured image or none at all (like a big wide header banner or something), but other times it's great to have any 'ole fallback, like a more traditional square thumbnail on blog archives.

In these situations, often which are theme driven, and not custom site driven, it'd be great for the theme developer to be able to assign fallback rules when they call `the_post_thumbnail` itself. Whether that's through a new parameter, or maybe just an additional key / value for 'fallback' to the `attr` parameter... I don't know. But for a theme (where most image sizes are registered anyway) to be able to define fallback behavior for those same image sizes would be powerful."	krogsgard	3.9	needs-patch
Defects Awaiting Review, reported against no version	18264	Future private posts listed as already published with future date specified		Posts, Post Types	normal	defect (bug)	new	2011-07-27T00:05:27Z	2025-08-05T07:31:00Z	"Setting a post to private, and scheduling it for some future date or time, results in the stamp that the post was ""Published on (future date)"" in the publish module.

The discussion on tickets #5608 and #9136 suggests that all private posts are published immediately (and privately), and that this is intentional. So, it's misleading and confusing to report that it already was published on some future date.

In source:trunk/wp-admin/includes/meta-boxes.php#L163, I suggest we replace:

{{{
else if ( 'publish' == $post->post_status || 'private' == $post->post_status ) { // already published
		$stamp = __('Published on: <b>%1$s</b>'); }
}}}

with:

{{{
else if ( 'publish' == $post->post_status ) { // already publicly published
		$stamp = __('Published on: <b>%1$s</b>');
	} else if (  'private' == $post->post_status ) { // published privately
		$stamp = __('Published privately'); }
}}}"	chrisrudzki		has-patch
Defects Awaiting Review, reported against no version	20438	Custom Post Types with Post Format support aren't registered against post_format taxonomy		Posts, Post Types	normal	defect (bug)	reopened	2012-04-13T16:56:40Z	2022-05-13T22:06:11Z	"When a custom post type adds support for {{{post-formats}}}, this doesn't actually register the {{{post_format}}} taxonomy for the post_type.

Here's a quick test:

{{{
add_action( 'init', function() {
        register_post_type( 'not-post', array( 'supports' => 'post-formats' ) );
        global $wp_taxonomies;
        var_dump( 'post supports post_format:', in_array( 'post', $wp_taxonomies[ 'post_format' ]->object_type ) );
        var_dump( 'not-post supports post_format:', in_array( 'not-post', $wp_taxonomies[ 'post_format' ]->object_type ) );
} );
}}}

The {{{post_format}}} taxonomy doesn't get returned when {{{get_object_taxonomies}}} is called for the custom post type and one side-effect of this is that the {{{post_format_relationships}}} cache does not get flushed by {{{clean_object_term_cache}}} leading to stale values when a post format is changed.

(The {{{post}}} post_type is immune to this because core registers the {{{post_format}}} taxonomy with it.)

When a post_type adds support for post-formats, an explicit association should be made between the post_type and the {{{post_format}}} taxonomy."	batmoo		needs-codex
Defects Awaiting Review, reported against latest stable branch	66232	Inconsistency in date setting when changing post status		Posts, Post Types	normal	defect (bug)	new	2026-10-02T17:01:14Z	2026-10-07T17:35:41Z	"In my opinion the behaviour of WP is inconsistent regarding setting the post date when changing a post status draft to published:
– Using single post editing or Quick Edit, the former post date is being restored, while
– the current time is being set to all marked posts when using bulk editing.

This can lead to a misconception with massive impact: Expecting the known behaviour from single post editing also for bulik editing leads to the setting of a false date for quantitives of posts.

This also leads to losing direct access to the original publishing date of each post, which has to be researched using SQL on revisions´ dates in wp_posts for restoring it (this is maybe related to Component:Revisions).

My post on this in https://wordpress.org/support/forum/requests-and-feedback/ has been rejected with recommendation to post this in Trac."	TRILOS	7.1.2	has-patch
Defects Awaiting Review	56241	The post category count according post data not showing on admin side.		Posts, Post Types	normal	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		needs-patch
Defects Awaiting Review	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	normal	defect (bug)	new	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	6.6	has-patch
Defects Awaiting Review	40588	Trashing and restoring a draft post replaces the slug		Posts, Post Types	normal	defect (bug)	new	2017-04-27T20:39:43Z	2026-09-29T13:55:07Z	"Using the latest version of WordPress, if you create a draft post with a slug, lets say 'test-post', then trash it and restore it, the slug becomes 
{{{__trashed-xxx}}}, where xxx is a number

Related to https://core.trac.wordpress.org/ticket/11863"	TJNowell	4.5	has-patch
Defects Awaiting Review	59354	Unnecessary queries performed when updating a post without providing categories or tags		Posts, Post Types	normal	defect (bug)	new	2023-09-14T22:43:53Z	2026-06-20T06:32:24Z	"Given an existing post with at least some categories or tags present, updating the post via `wp_update_post()` (which calls `wp_insert_post()`) with data that does not include categories or tags, many unnecessary taxonomy-related database queries are performed. This slows down the saving significantly.

* If `$postarr` doesn't contain a `post_category` element, there's no point in calling `wp_set_post_categories()`.
* If `$postarr` doesn't contain a `tags_input` element, there's no point in calling `wp_set_post_tags()`

== Todo ==

* Need tests to verify the above is correct
* Need a list of queries that are performed before and after the change

== To reproduce ==

1. Publish a post with at least one category
2. Update the post via:
{{{#!php
<?php
wp_insert_post( [
  'ID' => $id,
  'post_content' => 'Hello, World!',
] );
}}}
3. Observe that a significant number of unnecessary taxonomy queries are performed"	johnbillion		has-patch
Defects Awaiting Review	65277	Gutenberg Gallery Flex Styles Missing		Posts, Post Types	normal	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	6.9.4	needs-patch
Defects Awaiting Review	49478	get_post_type_object has the wrong type of validator for its parameter		Posts, Post Types	normal	defect (bug)	new	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	5.3.2	dev-feedback
Defects Awaiting Review	64570	when the trash is empty we should load all posts	pbearne	Posts, Post Types	normal	defect (bug)	assigned	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		has-patch
Defects Awaiting Review	56599	"""All"" view not selected for all relevant views for custom post type"		Posts, Post Types	trivial	defect (bug)	new	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	4.2	has-patch
Defects Awaiting Review	57737	Start composing post with same title as existing post, click Preview, post_title is set to point to existing post		Posts, Post Types	normal	defect (bug)	closed	2023-02-16T19:58:43Z	2026-01-21T08:52:10Z	"1. Start composing a new post.
2. Set the title of the post to be the same as the title of another recently published post.
3. Click Preview and then Preview in new tab.
4. Go look at the post_title column for the post in the wp_posts table in the database, and observe that it's pointing at the existing post whose title you used, not the new post.

If you then publish the post, its link on your home page will be to the old post, not the new one."	jikamens	6.1.1	
Defects Awaiting Review	55895	Register custom post statuses		Posts, Post Types	normal	defect (bug)	new	2022-06-02T10:21:10Z	2025-09-22T17:44:05Z	"When a developer register a custom post status with {{{ register_post_status() }}} The post status is not added to the visual parts of a post this means you can not set the post to this new status after register the new post status.

There have been several workarounds to this adding functions to get them visible but with recent WP versions this seems to have stopped working.

Another feature to add is regarding the {{{ get_post_statuses() }}} and {{{ get_page_statuses()}}} only returns a static array instead of checking the available post statues. There should also be a filter on this function to Add The correct label for your custom post status.


Things to improve:
- Expand get_post_statuses() and get_page_statuses() to actually return the registered statuses. Add a filter to be able to label your custom post status correctly.
- When custom post status is added it should also be available:
  •  In the post list overview the post status if not published should be in the name like (draft etc)
  • When quick editing / bulk editing the options of all post status types should be available.
  • When editing a post the post status should be available in the right settings column this should also work with the classic- and Gutenberg- mode.



There is an old ticket with large thread about similar issues here: #12706."	angryjim		dev-feedback
Defects Awaiting Review	63598	Post locking takeover dialogue shows when `show_post_locked_dialog` filter returns false		Posts, Post Types	normal	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		
Defects Awaiting Review	63662	DateTimePicker in the post editor does not show posts that are published on midnight of first day of month		Posts, Post Types	normal	defect (bug)	new	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	6.8	has-patch
Defects Awaiting Review	60427	"small ""ü"" in page as anchor causes a mistake when try to save (wrong JSON-response)"		Posts, Post Types	minor	defect (bug)	assigned	2024-02-02T19:00:04Z	2025-08-09T21:16:38Z	"I tried to make some changes on a page with pre-block content. It contains some anchors and everytime I tried to save the page after some small changes I got the alert ""Aktualisierung fehlgeschlagen. Die Antwort ist keine gültige JSON-Antwort."". The well know answer that there is something wrong with JSON. 
I found the reason is that in the anchors where small ""ü"" (a german umlaut). It happened with the anchor target as well as with the anchor link. And at the same time there are some anchors with other umlauts, namely with a big ""Ü"", which do not cause the issue."	gregordoehnert	6.4.3	needs-patch
Defects Awaiting Review	63574	Post Options Divider Missing in Mobile View on Post List Page (WP-Admin) (Playground)		Posts, Post Types	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	57438	Slug is not generated when saving posts as draft		Posts, Post Types	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	56590	TypeError error in get_the_content when $elements['page'] and $elements['pages'] are null		Posts, Post Types	normal	defect (bug)	new	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	6.0.2	has-patch
Defects Awaiting Review	62948	Posts tagged with complex Emoji can't be found		Posts, Post Types	normal	defect (bug)	new	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	6.7.2	has-patch
Defects Awaiting Review	50435	In some cases wp_get_post_parent_id() = get_post_ancestors		Posts, Post Types	normal	defect (bug)	new	2020-06-19T21:00:44Z	2025-02-18T13:38:03Z	"Using wp_get_post_parent_id() while parsing gutenberg blocks in a save_post action, I found out, that when a parent page exists, and parent_id is the actual published post wp_get_post_parent_id() gives back the post_id of the parent page.

A turn around seems to be ($postParent == $postId) ? $post_current_ID : $postId;

"	chvon7thal	5.4.2	
Defects Awaiting Review	58476	preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated		Posts, Post Types	normal	defect (bug)	new	2023-06-08T00:16:08Z	2024-11-28T15:51:06Z	"== Bug Report
=== Description
Using the filter hook 'the_content' and passing an empty string or null produces the preg_split deprecation notice in the convert_smilies() function.

=== Environment
- WordPress: 6.3-alpha-55892
- PHP: 8.2.2
- Server: Apache/2.4.54 (Win64) PHP/8.2.2 mod_fcgid/2.3.10-dev
- Database: mysqli (Server: 8.0.27 / Client: mysqlnd 8.2.2)
- Browser: Chrome 114.0.0.0 (Windows 10/11)
- Theme: Seele 1.1.1
- MU-Plugins: 
  * WP Migrate DB Pro Compatibility 1.1
- Plugins: 
  * bbPress 2.6.9
  * Classic Widgets 0.3
  * Contact Form 7 5.7.7
  * Database Backup for WordPress 2.5.2
  * Envato Market 2.0.8
  * Force Plugin Updates Check 1.0.2
  * Optimize Database after Deleting Revisions 5.0.110
  * Query Monitor 3.12.3
  * Redux Framework 4.4.1.4
  * Regenerate Thumbnails 3.1.5
  * Requite Core 1.1.13
  * Slider Revolution 6.6.14
  * Slider Revolution Paint-Brush Add-On 3.0.4
  * Slider Revolution Particles Effect 3.3.2
  * Slider Revolution Slicey Add-On 3.0.4
  * Theme Check 20230417
  * Ultimate Addons for WPBakery Page Builder 3.19.14
  * WooCommerce 7.7.2
  * WordPress Beta Tester 3.4.1
  * WordPress Importer 0.8.1
  * WPBakery Page Builder 6.13.0
  * WP Crontrol 1.15.2
  * WP Migrate DB Pro 1.8.1
  * WP Migrate DB Pro CLI 1.3.2
  * WP Migrate DB Pro Media Files 1.4.9
  * WP Migrate DB Pro Multisite Tools 1.2

=== Steps to Reproduce
1. Use this filter, ensuring $content is empty or null: $content = apply_filters( 'the_content', $content );

preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated	
wp-includes/formatting.php:3482

preg_split()
wp-includes/formatting.php:3482

convert_smilies()
wp-includes/class-wp-hook.php:310

apply_filters('the_content')

x. 🐞 Bug occurs.

=== Expected Results
1.  ✅ The filtered content.

=== Actual Results
1.  ❌ The indicated deprecation error due to preg_split not liking a null value."	KProvance	6.3	
Defects Awaiting Review	62366	get_post_states() throws PHP warning		Posts, Post Types	normal	defect (bug)	new	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	6.7	has-patch
Defects Awaiting Review	62223	"""Error in moving the item to Trash"" when using Cloudflare Speed Brain (Missing/Unreachable directories)"		Posts, Post Types	normal	defect (bug)	new	2024-10-14T23:14:14Z	2024-10-17T22:39:05Z	"Cloudflare has implemented a ""Speed Brain"" feature which uses the Speculation-Rules API to make prefetch requests. It was launched on September 25, 2024.

All Cloudflare free accounts are opted into this feature by default. However during the beta period not all requests have the feature enabled.

To confirm that ""Speed Brain"" is active on the request: ""check that your HTTP response headers for your web pages include the Speculation-Rules header."" Approximately 25% to 50% of requests were observed to have this header.

Only Chromium browsers have implemented this experimental feature: https://caniuse.com/mdn-http_headers_speculation-rules

Speed Brain is designed to not hit the origin server:
""Prefetch requests will never reach origin servers. Prefetch requests only serve content that is stored in Cloudflare’s Cache. If the content is not in Cache, the prefetch request will not continue to origin servers. Without this safeguard, origin server state could be modified despite the prefetch response not being rendered in the browser. An example of this could be a prefetch GET request to a sign-out URL inadvertently triggering a sign-out action on the server."" https://developers.cloudflare.com/speed/optimization/content/speed-brain/

== Errors Observed

With Speed Brain enabled status 503 errors are generated when creating a new post.

Although this is generating 503 errors, it does not appear that the 503 requests hit the origin server.

When deleting a post, 503 errors are generated and the error message ""Error in moving the item to Trash"" is displayed.

This 500 does seem to hit the origin server:

{{{
162.158.63.78 - example.com - [14/Oct/2024:22:25:01 +0000] ""GET /wp-admin/post.php?post=163&action=trash&_wpnonce=8076b7b729 HTTP/1.1"" 302 - ""https://www.example.com/wp-admin/edit.php?post_type=post"" ""Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36""
162.158.63.78 - example.com - [14/Oct/2024:22:25:02 +0000] ""GET /wp-admin/post.php?post=163&action=trash&_wpnonce=8076b7b729 HTTP/1.1"" 500 2484 ""https://www.example.com/wp-admin/edit.php?post_type=post"" ""Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Mobile Safari/537.36""
}}}

No errors or warnings are logged by this delete.

== Steps to Reproduce

1. Ensure that Cloudflare Speed Brain is enabled on your domain: Go to Speed > Optimization > Content Optimization.
2. Visit WordPress Posts page
3. Ensure that Speed Brain is active on your requests by request by refreshing page and checking for the ""speculation-rules"" header on the document (value of ""/cdn-cgi/speculation"" when testing)
4. Create a new post using the block editor, note 503 errors 
5. Publish post, return to Posts page
6. Confirm ""speculation-rules"" header exists on request
7. Trash post
8. ""Error in moving the item to Trash."" message displayed
9. Post was successfully deleted on refresh of Posts page

With Speed Brain disabled, no 503 errors or ""Error in moving the item to Trash"" message appears.

Tested on PHP 8.0.30 with WordPress 6.6.2.

== Expected Behavior

No 503 errors when visiting Post editor or trashing the post.

== Actual Behavior

When creating the Post initially, the 503 prefetch has this header:
{{{
Status Code: 503 Service Unavailable (from prefetch cache)
cf-speculation-refused: prefetch refused: not eligible
}}}

When trashing the post, it appears that Cloudflare is sending both GET requests to the origin server, despite:
{{{
Status Code: 503 Service Unavailable (from prefetch cache)
cf-speculation-refused: prefetch refused: not eligible
}}}

This issue with Cloudflare Speed Brain potentially exacerbated issues with ticket:61114."	da5f656f		
Defects Awaiting Review	61969	Post guid for custom post type being modified		Posts, Post Types	minor	defect (bug)	new	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	3.2	has-patch
Defects Awaiting Review	31254	Post errors show success borders		Posts, Post Types	normal	defect (bug)	new	2015-02-06T22:38:59Z	2024-10-03T07:22:32Z	Similar to #31241 if a post delete/update action fails a green border shows instead of red. I'm not sure what action should be taken here since failures and successes seem to be able to be displayed in the same message box.	ninnypants	3.7	has-patch
Defects Awaiting Review	62049	Italics HTML tags in Post Titles are Being Converted to HTML Entities		Posts, Post Types	major	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	6.5.5	
Defects Awaiting Review	29999	update post overwrites slug if current_user is contributor		Posts, Post Types	minor	defect (bug)	new	2014-10-16T08:09:04Z	2024-07-22T21:50:32Z	"The [http://codex.wordpress.org/Function_Reference/wp_update_post/ wp_update_post] function calls [http://codex.wordpress.org/Function_Reference/wp_insert_post/ wp_insert_post] which is located in [https://core.trac.wordpress.org/browser/tags/4.0/src/wp-includes/post.php#L3068/ wp-includes/post.php] in posts.php at lines 3168 - 3171 there is this code:

{{{
	        // Don't allow contributors to set the post slug for pending review posts.
	        if ( 'pending' == $post_status && !current_user_can( 'publish_posts' ) ) {
	                $post_name = '';
	        }
}}}
 
this will remove post_name if the current user is a contributor without any message or notification. This creates an issue because scripts/plugins that uses wp_upadate_post usually don't handle this case (the documentation doesn't cover this also - I would update the documentation but I'm wondering if there's no other solution).

I don't see the issues that a contributor changing the slug would create (a contributor vs an editor) anybody does?"	jnhghy	4.0	dev-feedback
Defects Awaiting Review	61068	Wrong processing post_status for custom post_status		Posts, Post Types	normal	defect (bug)	new	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	6.5	has-patch
Defects Awaiting Review	61242	PHP warning when `'taxonomies'` in `register_post_type` is set to `false` instead of `array()`		Posts, Post Types	normal	defect (bug)	new	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	6.5.3	has-patch
Defects Awaiting Review	60796	An error for page and post without revisions support		Posts, Post Types	normal	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	6.4	
Defects Awaiting Review	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	normal	defect (bug)	new	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	6.3.2	has-patch
Defects Awaiting Review	59664	I have tested beta 6.4 version and some issue on mobile device		Posts, Post Types	normal	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		
Defects Awaiting Review	59610	Post modified date cannot be updated through WP-CLI		Posts, Post Types	normal	defect (bug)	new	2023-10-13T08:43:40Z	2023-10-13T19:50:31Z	"As we all know, we can update post data using WP-CLI `wp post update <post-id>`, but if we try to update post-modified-date using the same CLI, the post gets updated with the current date-time rather than the passed date-time.

This CLI uses `wp_update_post()` in its implementation, so to fix this, we need to update its implementation or update the documentation of the CLI which will explain that post-modified-date cannot be updated through CLI.  

Steps to reproduce this bug:
1. Open the post on REST endpoint where **post-modified-date** will be visible. (for e.g. https://example.com/wp-json/wp/v2/posts/1 )
2. Run the WP-CLI to update the post-modified-date: `wp post update <post-id> --post_modified='2023-10-13T10:18:04'` and reload the REST endpoint url."	shreyasikhar26	6.3.3	dev-feedback
Defects Awaiting Review	52738	Use of get_object_vars() in sanitize_post() and WP_Post constructor does not handle null byte		Posts, Post Types	normal	defect (bug)	new	2021-03-09T14:56:39Z	2023-10-04T08:36:17Z	"In places where get_object_vars is used to loop over an objects properties and then trying to access them null bytes are not handled.

There is an old bug-report (from me) for map_deep #47164 but now we are experience this in other places too; in sanitize_post and in the constructor of class-wp-post.

This is totally destroying our business and I don't know what to do. Since I reported the issue for map_deep I have had to manually patch formatting.php every time there is a WordPress update. But now, trying to handle all the places get_object_vars is used in hopeless.

Best approach to handle this would be to always filter the return values from get_object_vars. Something like:

{{{#!php
<?php
    $properties = array_filter( fn( $var ) => ord( $var ) !== 0, get_object_vars( $object )); 
}}}



"	bitcomplex	5.6.2	has-patch
Defects Awaiting Review	59348	Excerpt block length is not full customizable any more		Posts, Post Types	normal	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		
Defects Awaiting Review	59241	get_the_posts_navigation wrong functions called for prev and next links		Posts, Post Types	normal	defect (bug)	new	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	6.3.1	has-patch
Defects Awaiting Review	41949	Allow multiple values for the same meta key to be passed to `wp_insert_post()`		Posts, Post Types	normal	defect (bug)	new	2017-09-22T02:03:21Z	2023-08-25T07:51:09Z	[33910] introduced the `meta_input` argument to `wp_insert_post()`. However, there is no way to pass multiple values for the same meta key to be stored individually.	desrosj	4.4	has-patch
Defects Awaiting Review	55332	problem with quick comment discarded changes		Posts, Post Types	minor	defect (bug)	new	2022-03-07T22:56:11Z	2023-08-09T15:08:12Z	"The function discardCommentChanges in js/edit-comments.js does not seem to be working as intended. When using the quick comment editor, the function is called when an edit is started, and it does nothing at that point as expected. But if you click away from the form, nothing stops you and you lose your comment changes.

On the other hand, if a plugin enqueues edit-comment.js, buddyboss-platform does (I don't know how/why), and you are editing a post (my attached example is an event venue), the function is triggered on update. With no comments involved, the original content is an empty string and the editied comment is undefined and that triggers the popup warning that changes might be lost."	LinuxArchitect	5.9.1	
Defects Awaiting Review	46296	Posts set to 'private' and password protected should return a 403 HTTP header status		Posts, Post Types	minor	defect (bug)	new	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		has-patch
Defects Awaiting Review	35538	"AllPosts page UI: link ""All"" has incorrect color"		Posts, Post Types	trivial	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	4.4.1	
Defects Awaiting Review	41714	"wp_list_pages() - horrible performance due to eventual ""SELECT *"""		Posts, Post Types	normal	defect (bug)	new	2017-08-23T16:15:00Z	2023-07-06T14:29:05Z	"I'm investigating awful performance (MySQL slow queries logged constantly) a site which uses a plugin to display a page list.

The plugin calls wp_list_pages(). wp_list_pages() in turn calls get_posts(). And get_posts() ends up making the slow query:

{{{
SELECT * FROM wp_posts WHERE (post_type = ‘page’ AND post_status = ‘publish’) ORDER BY wp_posts.post_date ASC;
}}}

So, all the post_content fields (along with everything else) are being requested, just for the purposes of constructing a page list. (The site has ~ 1200 pages - and the above call returns 34MB from the MySQL server).

It looks like either get_posts() needs some more flexibility so that it has an option to return only specified fields."	DavidAnderson	4.9	dev-feedback
Defects Awaiting Review	43672	wp_delete_post() function ignores `$force_delete` parameter for custom post types		Posts, Post Types	normal	defect (bug)	new	2018-04-02T05:23:01Z	2023-07-05T15:55:14Z	"The `wp_delete_post()` function has a second optional parameter called `$force_delete` (default false) that decides whether to send the post to trash or delete it permanently.

But when the function is invoked with a post id that belongs to a custom post type, this parameter is ignored and the post is always deleted permanently and never sent to trash.

Here is the relevant code inside that function that does this.

{{{
	if ( ! $force_delete && ( 'post' === $post->post_type || 'page' === $post->post_type ) && 'trash' !== get_post_status( $postid ) && EMPTY_TRASH_DAYS ) {
		return wp_trash_post( $postid );
	}
}}}

I think the post types check in the above condition should not be made, but I am not sure why it is there and what are the implications of it.

Steps to replicate this issue.

- Create a post in a custom post type and note the post id.
- Make the call to the function. Assuming 42 is the post id, the call will be `wp_delete_post( 42, false)`
- Since the `$force_delete` parameter is set to `false`, the expectation is that the post should be sent to trash
- But the post will be permanently deleted

If it is agreed that it is a bug, then I can submit a patch to remove the post type check.

"	sudar		dev-feedback
Defects Awaiting Review	49355	"""Publishing failed. Error message: Could not update post in the database"" caused by encoding"		Posts, Post Types	normal	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	5.3.2	needs-patch
Defects Awaiting Review	58617	Post Status label inconsistency in get_post_statuses() and get_post_stati() functions		Posts, Post Types	minor	defect (bug)	new	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		has-patch
Defects Awaiting Review	58487	Text editor problem		Posts, Post Types	normal	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	6.2.2	
Defects Awaiting Review	56480	_add_post_type_submenus doesn't use WP_Post_Type::$menu_position		Posts, Post Types	normal	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		
Defects Awaiting Review	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	normal	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	6.1.1	
Defects Awaiting Review	57634	"Hide ""view"" link from Post List Table if empty string passed to post_link"		Posts, Post Types	normal	defect (bug)	new	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	1.5	has-patch
Defects Awaiting Review	56700	wp_update_post function not support meta update		Posts, Post Types	normal	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		
Defects Awaiting Review	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	normal	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	6.0	
Defects Awaiting Review	56059	"register_post_type()'s ""description"" argument can't be translated (gettext)"		Posts, Post Types	normal	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	6.0	
Defects Awaiting Review	55638	Undefined property: WP_Post_Type::$post_type		Posts, Post Types	normal	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	5.9.3	
Defects Awaiting Review	55665	Remove unused margin when post-body-content is empty		Posts, Post Types	normal	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		
Defects Awaiting Review	55152	Cannot delete post content if the title is empty		Posts, Post Types	normal	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	2.1	
Defects Awaiting Review	54920	Problem with blog posts updating to WordPress 5.9	audrasjb	Posts, Post Types	normal	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	5.9	
Defects Awaiting Review	54301	It is not possible to set 0 as post title		Posts, Post Types	normal	defect (bug)	reopened	2021-10-20T17:09:39Z	2022-01-27T21:35:11Z	I want to have a post and its title is 0 but when I set 0 as the post title, after saving, it shows (no title).	h71	2.5	has-patch
Defects Awaiting Review	54258	WP_Query::is_tax() returns true on custom post type archives (5.8.1)		Posts, Post Types	normal	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	5.8.1	
Defects Awaiting Review	50467	Search results not displaying all entries in Admin > Posts in certain conditions		Posts, Post Types	minor	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	5.4.2	
Defects Awaiting Review	53044	Issue on mobile device when try to post QUICK EDIT.		Posts, Post Types	normal	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	5.7.1	
Defects Awaiting Review	52950	add_meta_box issue in wordpress 5.7		Posts, Post Types	major	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	5.7	
Defects Awaiting Review	46423	Posts on wp-admin page should be ordered by date_gmt and not date		Posts, Post Types	trivial	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		ui/ux
Defects Awaiting Review	52101	Need to add trash option for Draft Reusable Blocks		Posts, Post Types	normal	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	5.6	
Defects Awaiting Review	41727	Draft page loses its hierarchy on save when other pages are drafts in hierarchy		Posts, Post Types	normal	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	4.8.1	
Defects Awaiting Review	40325	Potential bug with the “get_post_type” function		Posts, Post Types	normal	defect (bug)	new	2017-03-31T12:04:13Z	2020-12-14T12:56:20Z	"I have encountered a weird behavior in the WP code, and I want to report it, in case it is a bug.

I have posted it in the Support forum first and I was advised to make a ticket here.

'''Replication:'''

I have a custom post type created. A function is added to the '''before_delete_post''' hook. In this function, I am verifying the current post type.

I used to verify it with the '''get_post_type();''' function but I have found a problem with that in some cases. Now, I have replaced it with '''global $post_type;'''


{{{
class My_Example {
	public function build_admin() {
		add_action('before_delete_post', array($this, 'delete_post'));
	}

	public function delete_post($post_id) {
		$case1 = get_post_type();

		global $post_type;
		$case2 = $post_type;
	}
}
}}}

On the posts listing page, in the Trash table, there are 3 says of deleting posts:

1. The '''Delete Permanently''' button for each post.
2. The '''Empty Trash''' button.
3. And through '''Bulk Actions > Delete Permanently > Apply'''.

The '''get_post_type''' function returns the proper post type name only in the 1st case. For the other 2 cases, it returns '''false'''.

However, '''global $post_type''' returns the proper value in all cases.

I don’t know if it is a bug but it seems that way on the surface. If the global post type variable is set well, then the function should be able to return it too but I am not sure if something else it at play here.

A bit more info:

Looking over the source code for the [https://developer.wordpress.org/reference/functions/get_post_type/ get_post_type] function in Code Reference, I see that it is using the [https://developer.wordpress.org/reference/functions/get_post/ get_post] function to retrieve an object, instance of '''WP_Post''', from which it gets the post type.

So, the value is retrieved from different locations in the two examples.
"	ancientro	4.7.3	
Defects Awaiting Review	51867	Page Parent dropdown is a huge mess		Posts, Post Types	major	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	5.0	
Defects Awaiting Review	41857	Walker_PageDropdown doesn't set correct selected value when using value_field		Posts, Post Types	normal	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	4.8.1	
Defects Awaiting Review	47041	Custom Post type author empty		Posts, Post Types	normal	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	5.1.1	
Defects Awaiting Review	49136	White screen in password protected posts, referrer policy		Posts, Post Types	normal	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	5.3.2	
Defects Awaiting Review	49109	Array offset access notice problem with `remove_meta_box()` and `add_meta_box()` function.		Posts, Post Types	critical	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	5.3.2	
Defects Awaiting Review	39443	Search Page Template the_category() bug		Posts, Post Types	normal	defect (bug)	new	2017-01-03T07:38:03Z	2020-01-04T03:30:46Z	"Suppose If I've selected three categories following a structure HR -> Reports -> Daily Reports.

Single.php shows the structure in the right way but when I use the same the_category () function inside Search template then it shows the different result. Rather than showing it in the default structure, it shows it like Daily Reports -> HR -> Reports. In search template the structure changes to order by name. The_category working perfectly in other pages."	cybentizen	4.7	dev-feedback
Defects Awaiting Review	48410	`wp_insert_post()` can result in duplicate post data		Posts, Post Types	normal	defect (bug)	new	2019-10-23T15:04:14Z	2020-01-02T02:10:25Z	"If 2 identical calls to `wp_insert_post()` are made close enough together,  2 posts are added to the database instead of 1. These posts differ by post ID only. The slug for example is the same.

This seems to happen because `wp_insert_post()` does a fair amount of processing before the database write takes place. The check to determine if a post already exists can be _stale_ at the point of insertion."	henry.wright		
Defects Awaiting Review	45764	blog page and homepage the same list pages and not posts		Posts, Post Types	minor	defect (bug)	reopened	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	5.0.2	dev-feedback
Defects Awaiting Review	40500	Adding custom capabilities to a custom post type seems to break permalink link on post edit screen		Posts, Post Types	normal	defect (bug)	new	2017-04-20T16:28:46Z	2019-11-27T20:38:26Z	"Added custom capabilities to a wordpress custom post type to be used in conjunction with a role scoper plugin ....

see: https://www.dropbox.com/s/7gzvma9t3lm028j/Screenshot%202017-04-20%2010.27.15.png?dl=0) 

... seems to make the permalink link that shows up on the post edit screen, beneath the title, non-functional (ie, no URL is actually outputted). Also does not have the ""view [custom post type]"" link that typically appears in the black wordpress admin toolbar. 

Otherwise, everything works as designed. 

Confirmed on two separate hosts with plugins disabled and default theme. 

Confirmed that removing custom capabilities fixes the issue.

Confirmed that adding capability using alternative method of simply
'capability_type'     =>  array('print', 'prints'), also has the same result. "	finitejest	4.7.3	
Defects Awaiting Review	48512	Post editor can show wrong author, if user role was changed		Posts, Post Types	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	48106	Revisit post GUID sanitization on `&`		Posts, Post Types	normal	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	5.2.3	
Defects Awaiting Review	48006	post_date not as expected		Posts, Post Types	normal	defect (bug)	new	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	5.2.3	has-patch
Defects Awaiting Review	47742	sorting by date incorrect		Posts, Post Types	normal	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		
Defects Awaiting Review	47652	wp_dashboard_right_now() emits debug notices on unregistered core post types		Posts, Post Types	normal	defect (bug)	new	2019-07-04T20:31:23Z	2019-07-05T02:26:47Z	"When you unregister a core 'post' or 'page' post type (I know... I know...) if they have posts in the database, the dashboard ""Right Now"" widget will output a debug notice for each unregistered type:

{{{
Undefined property: stdClass::$publish; wp-admin/includes/dashboard.php:270
}}}

This is because the code inside of `wp_dashboard_right_now()` always expects a `WP_Post_Status` object as the return type of each `wp_count_posts()` key, however a `stdClass` return type is also possible when no registered type or status is currently registered at the time the widget is rendered.

----

Unregistering ""built in"" post types is normally considered to ""void the warranty"" and the `unregister_post_type()` function explicitly throws an error when you try, but the patch I'm about to attach is a small and bit of code hardening that prevents filling debug logs for those of us that frequently work with out-of-warranty installation types."	johnjamesjacoby		
Enhancements Awaiting Review	63534	Add `link_to` label to post types		Posts, Post Types	normal	enhancement	closed	2025-06-05T09:27:51Z	2026-11-11T01:57:20Z	"In order to fix the Gutenberg issue 55057, we think the best way would be to add a new label which could be used as it instead of using `sprintf`

{{{
<ToggleControl
	__nextHasNoMarginBottom
	label={
		postType?.labels.singular_name
			? sprintf(
					// translators: %s: Name of the post type e.g: ""post"".
					__( 'Link to %s' ),
					postType.labels.singular_name
			  )
			: __( 'Link to post' )
	}
	onChange={ () =>
		setAttributes( { isLink: ! isLink } )
	}
	checked={ isLink }
/>
}}}

https://github.com/WordPress/gutenberg/issues/55057"	benoitchantre		has-patch
Enhancements Awaiting Review	66547	Tests: Add unit tests for the Post Navigation Link block		Posts, Post Types	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66544	Tests: Add unit tests for the Post Template block		Posts, Post Types	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66543	Tests: Add unit tests for the Post Date and Post Excerpt blocks		Posts, Post Types	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66542	Tests: Add unit tests for the Post Title and Post Content blocks		Posts, Post Types	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66495	Tests: Add unit coverage for the post functions in post.php		Posts, Post Types	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66224	Allow remove_post_type_support() to remove individual sub-features		Posts, Post Types	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	40711	WP_Post:get_instance: Update cache if $_post->filter is empty		Posts, Post Types	normal	enhancement	new	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	4.7.4	has-patch
Enhancements Awaiting Review	66244	Improve display of post titles containing HTML in the admin.		Posts, Post Types	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66225	Allow post_type_supports() to check for individual sub-features		Posts, Post Types	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65663	Serve an overdue scheduled post instead of a 404 when its permalink is requested		Posts, Post Types	normal	feature request	new	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	7.1	dev-feedback
Enhancements Awaiting Review	65548	Audit usage of edit_post()		Posts, Post Types	normal	enhancement	new	2026-06-27T12:37:10Z	2026-07-15T14:55:58Z	"Technical debt ticket. Noticed while working on #64952

To my understanding, [https://github.com/WordPress/wordpress-develop/blob/752d544e9ab7bb5bd9948203dc65a2f97bc43015/src/wp-admin/includes/post.php#L255 edit_post()] either returns the ID of the edited post or kills execution by calling `wp_die()`.

However, there are at least 3 places in the codebase where the returned value of `edit_post()` is checked by using `is_wp_error()`. That seems totally pointless because `edit_post()` never returns a WP_Error, unless I'm missing something.
See [https://github.com/WordPress/wordpress-develop/blob/752d544e9ab7bb5bd9948203dc65a2f97bc43015/src/wp-admin/includes/ajax-actions.php#L1648-L1651 here], [https://github.com/WordPress/wordpress-develop/blob/752d544e9ab7bb5bd9948203dc65a2f97bc43015/src/wp-admin/includes/ajax-actions.php#L2891-L2895 here], and [https://github.com/WordPress/wordpress-develop/blob/752d544e9ab7bb5bd9948203dc65a2f97bc43015/src/wp-admin/includes/post.php#L2105-L2107 here]. Only in the third case the check for WP_Error may be valid as the returned value ''may'' be in some cases the value returned by `wp_create_post_autosave()`.

At the very least the two first cases should be cleaned up

TL;DR
In a way, `edit_post()` shows its age. In case of failure, it would be best it returned an explicit value to indicate a failure. I doubt it can be changed because of backward compatibility. If WordPress had a deprecation policy, this function should be deprecated and replaced with a new, better, one. I do realize it's only one of the many cases where WordPress code isn't ideal. However, as the years go by, I personally believe that a deprecation policy is the only way to ensure a better future for WordPress. "	afercia		has-patch
Enhancements Awaiting Review	65511	Introduce has_content() helper function		Posts, Post Types	normal	feature request	new	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	7.0	dev-feedback
Enhancements Awaiting Review	64423	Introduce register_content_type() API for declarative content modeling		Posts, Post Types	normal	feature request	new	2025-12-16T21:47:22Z	2026-05-20T04:22:49Z	"This ticket proposes a new `register_content_type()` function that provides a higher-level, declarative API for registering custom post types with their associated meta fields in a single call.

== Background ==

Currently, registering a custom post type with structured data requires separate calls to `register_post_type()` and multiple calls to `register_post_meta()`. This pattern is verbose, error-prone, and requires developers to manually coordinate REST API schema generation across these separate registrations.

See the full RFC: https://docs.google.com/document/d/1Z8ei9vOsj_TvyApq1EKet9BhzA4zdm8uFPd9cXJWpJs/edit

== Proposal ==

Introduce `register_content_type()` which:

* Registers a post type via `register_post_type()`
* Registers meta fields via `register_post_meta()` for each declared field
* Provides automatic REST API schema generation
* Supports field type validation (string, integer, number, boolean, array, object)
* Stores UI hints for potential editor/admin integrations

== Example Usage ==

{{{
register_content_type( 'book', array(
    'labels'       => array( 'name' => 'Books' ),
    'public'       => true,
    'show_in_rest' => true,
    'fields'       => array(
        'isbn' => array(
            'type'     => 'string',
            'required' => true,
            'label'    => 'ISBN',
        ),
        'published_year' => array(
            'type'  => 'integer',
            'label' => 'Published Year',
        ),
    ),
) );
}}}

== New Functions ==

* `register_content_type()` / `unregister_content_type()`
* `content_type_exists()` / `get_content_type_object()` / `get_content_types()`
* `get_content_type_fields()` / `get_content_type_field()`
* `get_content_type_ui()` / `get_content_type_rest_schema()`
* `validate_content_type_values()`

== Try It ==

[https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/whyisjake/content-type-api-demo/main/blueprint.json Live demo in WordPress Playground] - includes a ""Books"" content type with sample data.

== Implementation ==

Pull request: https://github.com/WordPress/wordpress-develop/pull/10617

Files added:
* `src/wp-includes/class-wp-content-type.php` - Core class
* `src/wp-includes/content-type.php` - API functions
* `tests/phpunit/tests/post/wpContentType.php` - Unit tests"	whyisjake		has-patch
Enhancements Awaiting Review	64362	Support for Faux WP_Post Objects		Posts, Post Types	normal	enhancement	new	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	6.9	dev-feedback
Enhancements Awaiting Review	37376	Make it possible for custom post type to have an archive but no single		Posts, Post Types	normal	feature request	new	2016-07-15T17:55:34Z	2026-05-07T15:32:48Z	"Very commonly we'll have testimonials, faqs, and such custom post types, which warrant an archive, but don't make sense to have a single. It's possible to have a post type with no archive and a single, but not the other way around. Funnily enough, I find that we far more often could use what isn't available versus what is.

There are workarounds. One option is to make it a non-publicly-queryable post type and use a page template or something to display the results. Another option I've seen around is to hook into template_redirect on the single and redirect the user. Chances are there's no links on the front-end, so this really only occurs when users click on the link from edit-post admin-side.

Another thing to consider here is SEO plugins and the like which look to the definition of the CPT to build the sitemap. The redirect method ends up putting useless links in the sitemap. The page template method works fine, but obviously means the CPT has to be queried separately.

Would there be a downside to adding a sibling `has_single` option? If it's true by default then it's backwards compatible, and the single rewrites simply reflect the option."	jason_the_adams	4.6	needs-unit-tests
Enhancements Awaiting Review	65042	Alter Attachment page slug behaviour		Posts, Post Types	trivial	enhancement	new	2026-04-08T18:58:23Z	2026-04-09T18:25:46Z	"Since files in the media library are stored as post types, each media file uploaded takes a unique slug with it matching its file name which is then used to create the attachment page url.

The problem is that this seldom used page hogs slugs which can’t be used in other post types like pages, posts, public custom post types etc.

Eg : If I upload an image named “Planet X” I cannot have a page /planet-x page anymore as that slug is taken by the image page (which is again rarely used)

There is no straight forward way to recover this slug back too as media library is not represented as a post type in the admin UI.

I propose that media slugs be appended by an alphanumeric string on file upload to avoid hogging valuable slugs from other public post types.

"	namith.jawahar		
Enhancements Awaiting Review	64785	Add filter for redirect_to URL in get_the_password_form()		Posts, Post Types	normal	enhancement	new	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	2.7	dev-feedback
Enhancements Awaiting Review	40650	get_pages() should accept 'any' among it's post_status arg		Posts, Post Types	normal	enhancement	new	2017-05-03T14:42:23Z	2026-03-03T12:19:16Z	"`WP_Query::get_posts()` accepts `'any'` among it's `$post_status` `$query_vars` and I think `get_pages()` should do the same.

I've combed through the 4.7.4 core code and can't find any place where this enhancement would break existing code."	pbiron	4.7.4	has-patch
Enhancements Awaiting Review	61249	The character count in the post_excerpt is fine instead of counting words.		Posts, Post Types	normal	enhancement	new	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	6.5.3	dev-feedback
Enhancements Awaiting Review	18613	get_adjacent_post() doesn't find private posts		Posts, Post Types	normal	enhancement	new	2011-09-07T15:52:25Z	2025-11-27T15:55:39Z	The status is always 'publish'.	scribu		has-patch
Enhancements Awaiting Review	63729	Fix misleading summary in PHPDoc for wp_insert_post()		Posts, Post Types	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	49708	Add a new function get_page_by_guid		Posts, Post Types	normal	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		
Enhancements Awaiting Review	63600	Enhancement: Add get_pages_args filter to allow full control over get_pages() arguments before parsing in get_pages()	vincent06	Posts, Post Types	normal	enhancement	assigned	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	6.5	needs-docs
Enhancements Awaiting Review	62954	Reassess the best way to store, hash, and check post passwords		Posts, Post Types	normal	enhancement	new	2025-02-12T17:13:48Z	2025-09-07T14:17:51Z	"Previously:

* #3316
* #19797

Post passwords are a curiosity. They are stored in plain text in the `posts.post_password` field (so they can be displayed to an editorial user on the post editing screen). When a user visits a password-protected post and enters a password, the entered value gets hashed with phpass and the hash is stored in the `wp-postpass` cookie in their browser. Validation happens server-side by validating the user-provided hash against the plain text password in the database.

This is backwards. Storing a password in plain text in the database and then providing its hash via a cookie means that the hash is user-controllable. A malicious actor could use this to exploit a weakness in the hash checking process that they would not otherwise be able to do by providing only the plain text password. There is no known such weakness in the phpass library used in core, but this does prevent us from switching to `password_verify()` for post passwords where the algorithm, cost, and hash would all be user-controlled.

Given that a post password is actually a shared secret and its hash is not tied to a session or a user, stealing the cookie achieves the same thing as discovering the plain text post password. Hashing the cookie doesn't protect against XSS stealing the cookie for the same reason.

So what is the threat model for the current post password storage, hashing, and checking mechanism? Password re-use is one potential threat, what about others? Let's assess and determine if there is a better mechanism to use for post passwords that doesn't allow the hash to be user-controlled.

Perhaps an access token system can be implemented instead of password hashing. Ideas welcome."	johnbillion		dev-feedback
Enhancements Awaiting Review	51787	Introduce dedicated function that retrieves post object by metadata		Posts, Post Types	normal	enhancement	new	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	5.5.3	dev-feedback
Enhancements Awaiting Review	24672	Remove final from WP_Post class		Posts, Post Types	normal	enhancement	reopened	2013-07-02T03:48:03Z	2025-07-15T20:23:26Z	"After discussing it with stephdau and reading through #21309, I think a discussion should be had on the validity of using the final keyword on the class.

While I agree that a decorator pattern is probably best for building the class, there is still no reason for the keyword to be used. If someone wants to extend the class then they should be allowed to do so."	carlalexander	3.5	dev-feedback
Enhancements Awaiting Review	39848	New filter 'the_title_wrap'		Posts, Post Types	normal	enhancement	new	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	4.7.2	dev-feedback
Enhancements Awaiting Review	59680	Nextpage add pagination for page		Posts, Post Types	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	62853	Order posts and terms by drag and drop from administration		Posts, Post Types	normal	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		
Enhancements Awaiting Review	62302	Post deletion hooks are not fully consistent.		Posts, Post Types	normal	feature request	new	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	6.7	has-patch
Enhancements Awaiting Review	54376	Add `is_post_publicly_viewable` filter		Posts, Post Types	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	61773	get_posts() returns posts of removed custom post type		Posts, Post Types	normal	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		
Enhancements Awaiting Review	61691	quick draft added images and categories free		Posts, Post Types	normal	feature request	new	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	6.6.1	dev-feedback
Enhancements Awaiting Review	57622	Add filter to get_page_by_path		Posts, Post Types	normal	enhancement	new	2023-02-03T07:47:30Z	2024-07-18T22:57:43Z	"Everything looks like that use `WP_Query` in `get_page_by_path` will be reverted [https://core.trac.wordpress.org/ticket/56689 56689].

Therefore, I have an idea to add a filter that allows ability to control results.

Example:
`apply_filters('get_page_by_path', $found_page, $page_path, $output_type, $post_type)`"	uzumymw		has-patch
Enhancements Awaiting Review	61695	Suggestion: Add a post_type column in the wp_postmeta table		Posts, Post Types	normal	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		
Enhancements Awaiting Review	61598	Add an interface option to let users set empty_trash_days		Posts, Post Types	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	57829	"Post ""Read"" Capability for Rest API"		Posts, Post Types	normal	enhancement	new	2023-03-01T00:56:55Z	2024-05-31T08:20:58Z	"Posttypes with the public attribute set to false are still queryable through the rest api. Since it seems there is no other capability to check for a general read permission of posts and the 'show_in_rest' attribute is needed for the block editor and to make the post queryable by authenticated users, i think it makes sense to either introduce said ""read_post"" capability or to make rest api requests only query editable posts when the posttype has public set to false.

Not having the option to have a non-public posttypes and the rest api enabled at the same time without any further workaround seems unintuitive to me. "	juvodesign		has-patch
Enhancements Awaiting Review	59986	Add a filter into the $wp_meta_boxes output loop to provide the ability to change data		Posts, Post Types	normal	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		
Enhancements Awaiting Review	60791	Pre-populate slug using URL parameters on new post edit screen.		Posts, Post Types	normal	enhancement	new	2024-03-17T06:29:23Z	2024-03-17T15:28:10Z	"get_default_post_to_edit() allows to pre-populate `post_title`, `content`, and `excerpt` from `$_REQUEST`.

This URL will pre-populate the title and the content:

/wp-admin/post-new.php?post_type=post&post_title=My+Title&content=aaaa

I have an use case where I need to do the same for the `post_name`:
https://wordpress.org/support/topic/set-title-and-slug-of-new-post-using-url-parameters/

I have a shortcode that allows me to load content from a custom post type, and it searches by slug (it needs to be this way for UX reasons).

If the post with the provided slug doesn't exist, I register an admin notice alerting that the shortcode is trying to load an unexisting post, and offer a link to create the missing post with the specified slug. I need the slug to be pre-populated with the URL parameter, just as it is possible to do for title, content, and excerpt."	gerardreches		has-patch
Enhancements Awaiting Review	14558	Separate Database Table Support for Custom Post Types		Posts, Post Types	normal	enhancement	reopened	2010-08-07T06:55:07Z	2024-03-04T09:51:27Z	"While working on custom post types, I felt need for this enhancements.

This can be achieved by adding an extra argument to the register_post_type function like below...

{{{
register_post_type( 'acme_product',
    array(
      'labels' => array(
        'name' => __( 'Products' ),
        'singular_name' => __( 'Product' )
      ),
      'public' => true,

      /* Database separation */
     'db_tables' => array(
        'prefix' => '', //by default, value of $table_prefix will be used. If user sets this value to something, it will be used as prefix for both of following tables
        'base_prefix' => '' , //this will control it tables are to be kept sitewide or per blog 
        'posts_name' => 'acme',
        'postmeta_name' => 'acmemeta',
      ),
  );
}}}

This small enhancement (not from coding perspective) will help more plugins authors go for custom post type.
Reasons are - first they will get option to have separate data storage.
Second - if some other badly coded plugin manipulates wp_posts table in some wrong way, it won't have sideeffect on third-party data.
Third - Plugin authors will get more space to experiment as at any time they will be dealing with their own plugin's data.

Of course, one of the goal of this nice feature must be to abstract database layer, but as a developer I feel it would be better if I can have some control over database without loosing power of this new (custom post type) feature."	rahul286		dev-feedback
Enhancements Awaiting Review	55087	Published environment and published versions for posts/pages to be able to work on the same post/page without affecting the production version until the changes are ready to become the next version of the production post/page.		Posts, Post Types	normal	feature request	new	2022-02-05T08:28:57Z	2023-10-30T23:38:16Z	"Imagine you have several environments - dev, stage and production and you are working on several pages at once. Some of them are ready to be shown to the client and you are deploying code and database to the stage from dev, but some of them are not ready and the client will be unhappy to see unfinished work on the stage, so, you are hiding them for a while and you are starting to reverse changes you did filing that you messed up somewhere.
And then the client is telling you that some of the pages need to be published straight away but others need additional work and to publish a part of the work you've done you are messing further with revisions hoping not to get confused by all this published, unpublished and reversed changes. This leads you to more work and more stress. As a result, you will publish something that isn't ready and lose something that was ready and start to think that you need to change processes to avoid this mess in future.

The solution is to publish a certain version for a certain environment assuming that if the version is published for the production it is also published for stage and dev if there is no later version published for a particular env. "	oglekler		
Enhancements Awaiting Review	43347	Introduction of 'has_single' register_post_type parameter		Posts, Post Types	normal	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		
Enhancements Awaiting Review	28463	Need core concept of the first publication of a post/comment.		Posts, Post Types	normal	feature request	new	2014-06-05T17:21:56Z	2022-07-15T14:35:48Z	"Because status transitions are permitted to occur in a cyclic fashion, it is possible to publish a post/comment more than once. The first publication event has unique significance, e.g. to push-based subscription delivery systems, but this concept is not represented anywhere in WordPress.

Restricting status transitions to a directed acyclic graph is a non-starter.

What I have done in plugins (and Nacin also suggests) is to mark the initial publication in meta: if transitioning to publish/approved, try adding the meta; if the add succeeds, this is the initial publication. I suspect that a significant number of plugins duplicate this.

It would be even more useful to keep the history of changes to post_status in revisions rather than put ""inherit"" in that field. This would have repercussions in the already complex system for revisions, which has no facility for dealing with changes to non-content fields. It may also conflict with the existing uses of the ""inherit"" status, such as calling get_post_status() on a revision with the intention of getting the parent's status.

Status revisions may have other uses as well (see #23314, #12706) but comment revisions don't exist yet. Ultimately what I want is a hook that fires only on the initial publication of a post or comment. The add_post_meta/add_comment_meta system can accomplish this much more easily."	andy		dev-feedback
Enhancements Awaiting Review	55920	Ability to query by post author in post_exists()		Posts, Post Types	normal	enhancement	new	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	6.0	has-patch
Enhancements Awaiting Review	31154	register_post_type function does not check reserved post_types		Posts, Post Types	normal	enhancement	new	2015-01-28T11:13:28Z	2022-02-21T15:39:56Z	"the function register_post_type() in wp-includes/post.php does not check for reserved post types. But later on this will cause malfunctions or unexpected behaviour and bugs.

I wrote a very simple patch that checks if any of the reserved post_types are being registered and if so it notifies the developer by _doing_it_wrong and WP_Error as a fallback.

Projects and plugins that are using reserved post_types in the wild will not break. But the developers will be notified via the logs or on their development environments where WP_DEBUG is true.

ps. I will submit a similar ticket for taxonomies after this one.
"	sebastiaandegeus	4.2	needs-patch
Enhancements Awaiting Review	28798	htaccess and protected option		Posts, Post Types	normal	enhancement	reopened	2014-07-09T08:50:25Z	2021-10-15T13:25:45Z	"I already tried to solve this problem in the forum and was told that it is a matter of the core. So here is not a bug but my suggestion for an improvement of the following matter:

For security reasons I use htaccess to protect my wp-login.php.

Now I'd like to protect a single page by using the WordPress password protected option. Unfortunately the /wp-login.php?action=postpass is needed by this option. In the consequence all the visitors that want to see my password protected page need as well my htaccess password for wp-login or I can't use htaccess to protect my wp-login.

Would it be possible to use the password protection for single pages and posts without using wp-login.php. Maybe by creating an extra transfer page for protected content naming differently as wp-login? 

I'm no developer and just talking from the perspective of a WordPress user. In case this idea is foolish I excuse myself in advance. 

"	YU.Design	4.0	
Enhancements Awaiting Review	54020	Add a filter to allow updating post without changing the modified dates		Posts, Post Types	normal	enhancement	new	2021-08-26T22:40:11Z	2021-09-29T21:12:15Z	"wp_update_post calls wp_insert_post which has code that always changes the modified date
this causes problems when trying to fix posts via batch/wp-cli type operations 


{{{#!php
<?php
if ( $update || '0000-00-00 00:00:00' === $post_date ) {
   $post_modified     = current_time( 'mysql' );
   $post_modified_gmt = current_time( 'mysql', 1 );
} else {
   $post_modified     = $post_date;
   $post_modified_gmt = $post_date_gmt;
}
}}}


So you end with code like this to work around this

{{{#!php
<?php
// get the date from the current post and reset it via the filter
$function = function ( $data ) use ( $id ) {
	$post = get_post( $id );
	$data['post_modified']     = $post->post_date_gmt;
	$data['post_modified_gmt'] = $post->post_date_gmt;

	return $data;
};

add_filter( 'wp_insert_post_data', $function, 10, 2 );
$updated = wp_update_post( $args );
remove_filter( 'wp_insert_post_data', $function );
}}}

This function needs to make get_post() call for each insert and this slows the process in a big way

I have added a filter that allows us to turn off the modification and set the date if needed

{{{#!php
<?php
if ( $update || '0000-00-00 00:00:00' === $post_date ) {
		/**
		 * Filters whether to preserve the modified dates when updating posts.
		 * Optionally allow you to set the date
		 *
		 * @since 2.9.0
		 *
		 * @param bool $trigger whether to preserve the modified date default: false
		 * @param array $postarr that will be saved.
		 *
		 * @return Bool|string|array true to keep the current date, String to set both date to same value
		 * keyed array to set both array( 'post_date' => date1, 'post_date_gmt' => date2 )
		 */
		$update_date = apply_filters( 'wp_update_post_preserve_dates', false, $postarr );
		if( false === $update_date ) {
			$post_modified     = current_time( 'mysql' );
			$post_modified_gmt = current_time( 'mysql', 1 );
		} elseif ( ! is_array( $update_date ) && strtotime( $update_date ) ){
			$post_modified     = $update_date;
			$post_modified_gmt = get_gmt_from_date( $update_date );
		} elseif ( is_array( $update_date ) && isset( $update_date['post_modified'] ) && isset( $update_date['post_modified_gmt'] ) ){
			$post_modified      = $update_date['post_modified'];
			$post_modified_gmt  = $update_date['post_modified_gmt'];
		} else {
			$post_modified     = $postarr['post_modified'];
			$post_modified_gmt = $postarr['post_modified_gmt'];
		}
	} else {
		$post_modified     = $post_date;
		$post_modified_gmt = $post_date_gmt;
	}
}}}


"	pbearne	5.9	dev-feedback
Enhancements Awaiting Review	39439	Should wp_insert_attachment() update GUID		Posts, Post Types	normal	enhancement	new	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	4.8	dev-feedback
Enhancements Awaiting Review	38599	Allow verbose rewrite rules with custom post types		Posts, Post Types	normal	enhancement	new	2016-11-01T00:08:41Z	2021-07-27T05:50:55Z	"Every time I create a custom post type (say, Book) I invariably want a structure like this:

/books/ - static page where I can write all sorts of overview content with all of the formatting provided by the theme's page template (not a basic post type archive)

/books/book-1/
/books/book-2/ - custom post type permalinks

This is possible by using a rewrite slug of books. 

However, if someone then creates a subpage of books, they'll get a 404 error, full stop.

This has been around a long time, and many workarounds have been provided in trying to get verbose rules triggered, such as: https://gist.github.com/mattberridge/2960966

Rewrite rules underwent some major changes a while ago for improved performance (to get %postname% permastructures working well, then there were pretty attachment URLs, etc), which results in these workarounds no longer working. (Custom post type rules get inserted at a place which isn't easy to reorder and conflicts with other rules).

Instead, I have to keep using unique prefixes which make things look messy and confusing to visitors:

/books/
/book/book-1/ (even though there is no /book/ page on my site)

Having a nicer structure seems like a very common use case (especially given the number of search results you'll find about workarounds).

I'd like to suggest allowing custom post types to trigger verbose rules in a way that will work."	smerriman		needs-patch
Enhancements Awaiting Review	35416	List children pages of another (in dashboard)		Posts, Post Types	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	49644	Move logic from register_post_type() into WP_Post_Type->register()		Posts, Post Types	normal	enhancement	new	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	5.4	dev-feedback
Enhancements Awaiting Review	41893	Add URL filter in posts list table get_edit_link()		Posts, Post Types	normal	enhancement	new	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	4.9	dev-feedback
Enhancements Awaiting Review	48375	Introduce a separate capability for trashing a post		Posts, Post Types	normal	enhancement	new	2019-10-20T20:40:44Z	2020-01-06T20:06:53Z	"Related: #41674

It's sometimes desirable to allow users to trash posts but not permanently delete them once trashed, nor empty the trash.

There should be a meta capability, `trash_post|trash_posts`, which by default maps to `delete_post|delete_posts` which is used when a post is trashed instead of deleted. This would allow a plugin to grant a user the ability to trash posts but not permanently delete them."	johnbillion		needs-patch
Enhancements Awaiting Review	43287	"The text ""immediately"" should be capitalize in publish meta box."		Posts, Post Types	normal	enhancement	new	2018-02-11T08:55:48Z	2019-11-18T17:36:21Z	"If we see in the ""Publish"" metabox, Status and Visibility texts are capitalize. So ""immediately"" text should also be capitalize."	jainnidhi	4.9.4	has-patch
Enhancements Awaiting Review	48370	"Add ""next/previous"" links to Edit Post screen"		Posts, Post Types	normal	feature request	new	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		dev-feedback
Enhancements Awaiting Review	32545	"Adding actions before and after ""Add New"" button"		Posts, Post Types	normal	enhancement	reopened	2015-06-01T05:33:27Z	2019-05-30T00:04:12Z	"We need a proper action to add new customs options (button, link, information) before and after the ""Add New"" button  of post pages. 
Such as http://stackoverflow.com/questions/29811433/wordpress-add-custom-button-on-post-type-list-page

on #wp-admin/edit.php line 281
on #wp-admin/edit-form-advanced.php line 395

This is just a addition of actions to make wordpress more customizable and modular. 

Few use-case scenarios
[[Image(screenshot1.png)]]
[[Image(screenshot2.png)]]

'''Solution'''
We can use the following sample code to solve the problem.

{{{#!php

/**
 * Fires before the Add New button is added to screen.
 *
 * The before_add_new- hook fires in a number of contexts.
 *
 * The dynamic portion of the hook name, `$pagenow`, is a global variable
 * referring to the filename of the current page, such as 'edit.php',
 * 'post.php' etc. A complete hook for the latter would be
 * 'before_add_new-post.php'.
 */
do_action('before_add_new-'.$pagenow);
if ( current_user_can( $post_type_object->cap->create_posts ) )
	echo ' <a href=""' . esc_url( admin_url( $post_new_file ) ) . '"" class=""add-new-h2"">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
/**
 * Fires after the Add New button is added to screen.
 *
 * The after_add_new- hook fires in a number of contexts.
 *
 * The dynamic portion of the hook name, `$pagenow`, is a global variable
 * referring to the filename of the current page, such as 'edit.php',
 * 'post.php' etc. A complete hook for the latter would be
 * 'before_add_new-post.php'.
 */
do_action('after_add_new-'.$pagenow);
}}}
"	vivekbhusal	4.2.2	dev-feedback
Reporter Feedback / Close	49164	Page List Order		Posts, Post Types	major	enhancement	new	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		close
Reporter Feedback / Close	65520	Improve type safety in get_the_ID() to prevent property access on non-WP_Post values		Posts, Post Types	normal	enhancement	new	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	0.71	close
Reporter Feedback / Close	65501	Password Protected Page Text		Posts, Post Types	normal	enhancement	new	2026-06-21T19:19:55Z	2026-06-29T23:37:06Z	"When you use the option to create a Password-Protected Page, you obviously have the opportunity to select the Password, but the text that appears on the page when opened by a site visitor is not editable. Although the provided text is clear, it is not necessarily what the site owner wants to provide to a visitor, and I have also seen requests for this to be in a different language. I know it can be edited with a PHP script.

Surely, there must be a simple way to provide a means for the text on this page to be made into an editable item without the necessity of adding code or a snippet?"	adrian33000		close
Reporter Feedback / Close	65078	get_page_by_title should not be deprecated		Posts, Post Types	normal	enhancement	new	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	6.2	close
Reporter Feedback / Close	43740	Filter WP_Post methods (vs. removing final/'get_post' filter)		Posts, Post Types	normal	enhancement	new	2018-04-11T21:33:26Z	2026-02-04T16:26:08Z	"There has been a lot of demand to remove `final` from `WP_Post` and to add a `get_post` filter, for good reason.  There as also be a lot of pushback on those actions, also for very good reason.  Both sets of reasons can be found in ticket #24672 and #12955, respectively.  

In a nutshell for, there are many valid use-cases where being able to extend `WP_Post` would make for more robust and maintainable code. In the against case, removing `'final'` could easily resolve in an explosion of incompatible child classes making plugin interoperability challenging, and backward compatibility almost impossible if code decided to evolve WP_Post in any way.  And the `'get_post'` filter would be almost as bad as removing `final`, and I am one who advocated for both for years.

However, we actually already have an extensibility mechanism that has shown the test of time and that is the use of filter hooks. Given a judicious use of filter hooks we could actually allow developers to extend `WP_Post` in a compossible manner thus minimizing plugin integration problems and also safeguarding core's ability to add enhancements in the future.

The proposal is basically to add filter hooks in the methods of `WP_Post`, and to add a `__set()` and `__call()` magic method as a companion to the existing `__get()` magic method. Here are the filters I am proposing:

||= Filter Hook=||=Method=||
|| `'wp_post_supports_instance'` ||  `__construct()`|| 
|| `'pre_wp_post__isset'` ||`__isset()`|| 
|| `'wp_post__isset'`  ||`__isset()` ||
|| `'wp_post__call'`  || `__call()` ||
|| `'wp_post__set'`  || `__set()` ||
|| `'pre_wp_post__get'`  || `__get()` ||
|| `'wp_post_filter'`  ||`filter()` ||
|| `'wp_post_to_array'`  || `to_array()` ||

And then this action hook:

* `'wp_post__construct'` in `__construct()`

I have attached a patch for `class-wp-post.php` that would implement these hooks."	MikeSchinkel		dev-feedback
Defects Awaiting Review	44151	Personal data exports - lower priority exporters should place their data after the higher priority ones		Privacy	normal	defect (bug)	new	2018-05-18T16:55:40Z	2026-10-21T07:56:14Z	"When two exporters are registered that export the data for the same group_id and the same item_id the data from the lower priority exporter is placed higher in the resulting file than the higher priority one. 

For example, this code:
{{{#!php
function exporter_1( $email_address, $page = 1 ) {
	return array(
		'data' => array(
			'group_id'    => 'group-1',
			'group_label' => __( 'Orders', 'woocommerce-services' ),
			'item_id'     => 'item-1',
			'data'        => array(
				array(
					'name'  => __( 'Exporter 1' ),
					'value' => 1234,
				),
			),
		);,
		'done' => true,
	);
}

function exporter_2( $email_address, $page = 1 ) {
	return array(
		'data' => array(
			'group_id'    => 'group-1',
			'group_label' => __( 'Orders', 'woocommerce-services' ),
			'item_id'     => 'item-1',
			'data'        => array(
				array(
					'name'  => __( 'Exporter 2' ),
					'value' => 4567,
				),
			),
		);,
		'done' => true,
	);
}

add_filter( 'wp_privacy_personal_data_exporters', 'exporter_1', 5 );
add_filter( 'wp_privacy_personal_data_exporters', 'exporter_2', 10 );
}}}
should result in a file where 'Exporter 1' appears before 'Exporter 2' (see the priority attribute passed to the add_filter call), but this isn't the case.

CC @allendav @jeffstieler"	robobot3000	4.9.6	has-patch
Defects Awaiting Review	64282	Erase personal data does not remove biographical info		Privacy	normal	defect (bug)	new	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	6.8.3	needs-unit-tests
Defects Awaiting Review	65735	"""Complete request"" on the Erase Personal Data screen is easily mistaken for an instruction to erase"		Privacy	normal	defect (bug)	new	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	5.6	has-patch
Defects Awaiting Review	59025	Incorrect error message when changing the screen options after erasing personal data		Privacy	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	59479	'Erase Personal Data' simply doesn't work		Privacy	critical	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	6.3.1	
Defects Awaiting Review	55140	Erase Personal Data Email Validation Issue		Privacy	normal	defect (bug)	new	2022-02-10T23:34:17Z	2022-09-27T14:11:42Z	"Erase Personal Data work fine with invalid username but not working with email.

When i added random text email auto inserted.
"	ravipatel		dev-feedback
Defects Awaiting Review	48265	The privacy export files cleanup can run unlink on directories throwing an error.		Privacy	normal	defect (bug)	new	2019-10-09T18:02:19Z	2021-11-24T09:25:40Z	"Looking into some test failures on VVV flagged in Slack here;
https://wordpress.slack.com/archives/C02RQBWTW/p1570445063460400

It was found that the `wp_privacy_delete_old_export_files` function runs `unlink` on all files and subdirectories older than `wp_privacy_export_expiration`, this becomes an issue as directories can't be removed via `unlink` and will throw an Operation is not permitted error.

This occurs as the `$export_files` list is collected from a `list_files` call which has a level of 100 resulting in subdirectories being included.

So the question for me is should the export cleanup only do files in the current `$export_dir`, or should it recurse into subdirectories and if so should the directories also be cleaned up if older than `wp_privacy_export_expiration`. If we do go to the extent of removing subdirectories should the `list_files` call be updated with an exclude filter so plugins can have custom directories in that location which would be avoided during the cleanup?
Note: If subdirectories are to be removed as well we'll have to recursively traverse them and remove their contents so `rmdir` will work.

Along with addressing the issue in `wp_privacy_delete_old_export_files` the cause of the original VVV test failures should also be addressed. What lies in the privacy unit test that creates the test_contents folder but doesn't clean it up here;
https://github.com/WordPress/wordpress-develop/blob/master/tests/phpunit/tests/privacy/wpPrivacyGeneratePersonalDataExportFile.php#L244
* simply removing this directory at the end of the test should suffice."	garrett-eclipse	4.9.6	dev-feedback
Defects Awaiting Review	52070	Erase Personal Data & Export Personal Data Table Nav Free Space Issue		Privacy	normal	defect (bug)	new	2020-12-14T19:20:28Z	2021-01-28T21:45:41Z	"Hello
Erase Personal Data & Export Personal Data Ui Design Mistake 
https://www.screenpresso.com/=87BDf
please remove Free Space of ""tablenav - top ""
apply CSS Display: none;
I think also need to check into the RTL language also.

Thanks."	urvik1	5.6	
Defects Awaiting Review	14682	Privacy leakage: gravatars leak identity information		Privacy	normal	defect (bug)	reopened	2010-08-24T14:54:42Z	2020-07-01T19:18:00Z	"If a commenter on a blog leaves a comment without having a log in to the site, and the ""Comment author must fill out name and e-mail"" preference is enabled for the blog, the author must provide an email address. The form for this says ""Mail (will not be published) (required)""

It's true that the email address itself is not published, but if the site has gravatars enabled, the persistent identity of the commenter is nonetheless revealed. Together with inspection of other posts where the commenter has chosen to reveal their identity, on the same blog or other blogs, or a brute-force approach taking a known email address to find postings attributed to them (using a global search engine) this results in a complete loss of anonymity.

At the bare minimum, the user should be aware of this, so that they can choose not to comment; preferably, the software should be changed so that gravatars are not used for these sorts of posts (or made configurable, in combination with the user being made aware)."	jmdh	3.0	
Defects Awaiting Review	44258	Inconsistency in Export and Erase Personal data behavior		Privacy	normal	defect (bug)	new	2018-05-29T12:01:21Z	2020-01-10T09:53:46Z	"I am not sure if it is done on purpose but I have noticed an inconsistency in selecting contents for `Erase Personal Data` tool compared to `Export Personal Data` tool.

I have made a few comments as well as uploaded some images through Media Library.

My account display name is Subrata Sarkar and the email address is gdpr-tester@emailprovider.com

I created an Export Request for gdpr-tester@emailprovider.com and downloaded the `.zip` file. I see both comments and media files are considered in index.html as a part of Personal Data.

On the contrary, Erase Personal Data for the same email address does not consider Media Files. In Media Library the images uploaded by me are still showing uploaded by Subrata Sarkar!

Comment author is updated to `Anonymous` though.

Am missing something?

One more thing I have noticed. May be this is done to comply with GDPR regulations. That is, in users' list the email addresses are no longer appearing for each user, although I am logged in as the admin. Just wanted to know if this is the case."	subrataemfluence	4.9.6	
Defects Awaiting Review	44010	Add general filters for registering various privacy policy information (cookies) from plugins		Privacy	normal	defect (bug)	new	2018-05-08T19:04:24Z	2019-07-22T16:35:53Z	"I didn't see it mentioned but during testing of integrating a real plugin, I found that it seems extremely complicated and out of order without some explicit filters for listing things like cookies.

To be clear when a plugin adds additional suggested text it appears below the core text in a completely separate box. This is so detached it means if you have 10+ plugins this is gonna be an all-day process for any user to go through generating a policy for their needs.

If I just append our plugin suggested text to the end and it has cookies, they will be separate from the other ""Cookies"" sections further up.

I think the smarter approache is to implement something to the effect that we could register our cookies, analytics etc, just like the exporters.

{{{#!php
<?php
add_filter( 'wp_privacy_policy_cookies_list', function ( $cookies = array() {
    $cookies['cookie_name'] = [
        'label' => __( 'Cookie Label' ),
        'reason' => __( 'Used for reason x, y & z' ),
    ];

    return $cookies;
});
}}}

Then it could automatically be output via a shortcode or block or whatever to a table of

|   Cookie Name    |  Cookie Label - Cookie Description  |
|  wp_cookie_test  |  WP Test Cookie - Used to determine if cookies are available for use.  |

The same would apply to several other sections. I think outputting those into a simple 2 column table would be easy to work with, clean output and easy enough for plugins & themes to integrate with.

You could do similar and register user meta info collected, or even specific analytics plugins could output label and info on how they use the data directly under the Analytics heading.

Monster Insights, for instance, might add

Google Analytics: Tracks visitor engagement with the site anonymously for use in marketing & improvement."	danieliser		
Defects Awaiting Review	44381	GDPR V2 - Anticipate front-end only sites for confirm actions		Privacy	normal	defect (bug)	new	2018-06-15T22:30:30Z	2019-06-03T16:54:06Z	"Hello,

This is spawned from #44376 as I realized that the confirmaction living in wp-login.php means that front-end only sites that block wp-login.php won't have the ability to execute the action. As GDPR V2 is expected to introduce front-end versions of the request forms it would make sense that these could operate without any backend or wp-login.php available.

The code that drives this lives in wp-login.php here;[[BR]]
https://github.com/WordPress/WordPress/blob/3ee58b55b14683af4c568bce1845c37408c88fbb/wp-login.php#L862

Cheers
"	garrett-eclipse		
Defects Awaiting Review	44215	Personal data exports - Empty values are included in the report		Privacy	normal	defect (bug)	new	2018-05-24T14:37:40Z	2019-06-03T16:42:31Z	"Empty values should not be included in the report. Otherwise, the report will be cluttered with empty values.

Use the following code in `mu-plugins` to reproduce:

{{{
<?php
function exporter_1( $email_address, $page = 1 ) {
	return array(
		'data' => array( array(
			'group_id'    => 'group-1',
			'group_label' => __( 'Orders', 'woocommerce-services' ),
			'item_id'     => 'item-1',
			'data'	=> array(
				array(
					'name'  => __( 'Exporter 1' ),
					'value' => 1234,
				),
				array(
					'name'  => __( 'Exporter 2' ),
					'value' => '',
				),
				array(
					'name'  => __( 'Exporter 3' ),
					'value' => '0',
				),
				array(
					'name'  => __( 'Exporter 4' ),
					'value' => 0,
				),
			),
		) ),
		'done' => true,
	);
}

function register_exporter_1( $exporters ) {
	$exporters['exporter_1'] = array(
		'exporter_friendly_name' => __( 'Exporter 1' ),
		'callback' => 'exporter_1',
	);
	return $exporters;
}

add_filter(
	'wp_privacy_personal_data_exporters',
	'register_exporter_1'
);
}}}

Results:

Before proposed patch:
[[Image(https://cloudup.com/iPJ8ocUnyiz)]]

After proposed patch:
[[Image(https://cloudup.com/i7MqWkMZjrj)]]"	bor0	4.9.6	dev-feedback
Defects Awaiting Review	46905	Erase Personal Data without verify enable erase option and change status issue		Privacy	normal	defect (bug)	new	2019-04-13T06:41:39Z	2019-04-15T05:13:16Z	"Erase Personal Data

1) without verify request enable erase data option
2) Personal data but when erase data then display massage no personal data.
3) pending request change status completed when erase data without verify.

See attached images
1) No personal data issue.png
2) change status automatically without varify.png
3) completed status.png"	mehulwpos		dev-feedback
Enhancements Awaiting Review	44001	oEmbed two click / local emoji scripts		Privacy	major	enhancement	new	2018-05-08T06:10:40Z	2026-09-19T16:03:40Z	"Hi,

the first beta release 4.9.6 has a few optimziations due to the GDPR, but I think, WordPress is missing two very relevant features. With the latest beta release, WordPress would not be legal for use within the EU - except you´re using WordPress as private notepad!

1) oEmbed two click solution: similar to the shariff plugin, all embedded items via the core WordPress oEmbed function need a two click privacy. Only when the user first clicks on the embedded item, the scripts should be active and the user can view / listen to the embedded item.

2) The emoji script is loaded from Automaticc. There is no possibility to disable this behaviour or the best would be: load all scripts locally. This is one of the relevant of GDPR: you cannot tell your users or lawyers, why it is relevant for using your site, when specific scripts like emoji are loaded from a CDN. There is no need for a CDN.

It would be great, if you could still imagine to implement those both things, because they are rather important than a general privacy policy page, which the most users of WordPress had already created as a single page. And I think not all related core features needs an extra plugin, when it´s time to develop the core further. WordPress should go ahead and implement more features to the core than letting even more plugins used for a proper website.

Thanks and regards,"	yoursql719	4.9.6	has-patch
Enhancements Awaiting Review	44370	wp_privacy_delete_old_export_files runs too much on some setups		Privacy	normal	enhancement	new	2018-06-14T14:38:31Z	2026-05-15T04:51:23Z	"The `wp_privacy_delete_old_export_files` cron job added in [43046] #43546 runs on an hourly schedule. On large multisite networks, this means that these cleanup are running more or less constantly. Yet they're almost never needed.

It's possible to write a plugin that modifies the behavior, by changing the way that scheduling is done so that it conforms better to the needs of a large network. However, I thought it might be worth considering whether there are changes that WP itself could make that would mitigate the problem for all installations. A few ideas, some of which are mutually compatible:

1. Instead of scheduling the event on 'init', only schedule it when an export file is generated. 
2. During the cleanup routine, check for the existence of export files. If none are found, unschedule the recurring event (or don't schedule the next one)
3. In combination with the above, use single events rather than recurring ones
4. Perhaps the cleanup routine itself would be a single event, while a less-frequent (say, daily) recurring event would be to check whether specific cleanup events need to be scheduled (these would be cases missed by 1)

If the team thinks this is too complex, or should be left up to the maintainer of the site in cases where it makes a difference, feel free to close the ticket."	boonebgorges	4.9.6	has-patch
Enhancements Awaiting Review	49602	New design for Privacy settings page and hooks		Privacy	normal	enhancement	new	2020-03-08T19:15:39Z	2026-01-30T16:03:53Z	"I proposed a year ago some changes on privacy settings page

Hereattached are the updated screenshots 

Can it be possible to add a hook on this page for plugins to add some simple settings.

Thank you"	arena		dev-feedback
Enhancements Awaiting Review	44161	Expired session tokens need to be removed from database because GDPR		Privacy	normal	enhancement	new	2018-05-20T15:12:32Z	2025-08-27T10:19:34Z	"WordPress stores the IP address (which is considered personal information) as part of its session tokens in the usermeta table. When the session expires, GDPR would seem to require the IP address to be removed from the database, as there is no longer a reason to keep it.

There should be some kind of garbage collection that removes expired session tokens on a daily basis."	mechter	4.9.6	dev-feedback
Enhancements Awaiting Review	44539	Notify the admin when no personal data is found for a user		Privacy	normal	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	4.9.6	
Enhancements Awaiting Review	60805	Reading Settings: add option to discourage AI services from crawling the site		Privacy	normal	feature request	new	2024-03-19T12:06:28Z	2025-01-13T21:01:37Z	"I'd like to suggest a new addition to the bottom of the Reading Settings screen in the dashboard:

[[Image(https://cldup.com/p6xw24IFff.png)]]

This new section would help site owners indicate whether or not they would like their content to be indexed by AI services and used to train future AI models.

There have been a lot of discussions about this in the past 2 years: content creators and site owners have asked whether their work could and should be used to train AI. Opinions vary, but at the end of the day I believe most would agree that as a site owner, it would be nice if I could choose for myself, for my own site.

In practice, I would imagine the feature to work just like the Search Engines feature just above: when toggled, it would edit the site's `robots.txt` file and disallow a specific list of AI services from crawling the site.

----

There are typically 4 main approaches to discouraging AI Services from crawling your site:

1. You can add `robots.txt` entries matching the different User Agents used by AI services, and asking them not to index content via a `Disallow: /`.
    - **This seems to be the cleanest approach, and the one that AI services are the most likely to respect.**
    - This also has an important limitation ; it relies on a list of AI User Agents that would have to be kept up to date. It would obviously be hard for that list to ever be fully exhaustive. ''See an example of the user agents we would have to support below.''
2. You can add an `ai.txt` file to your site, as [https://site.spawning.ai/spawning-ai-txt suggested by Spawning AI] here.
    - However, we have no guarantee AI services currently recognize and respect this file.
3. You could add a meta tag to your site's `head`: `<meta name=""robots"" content=""noai, noimageai"" />`. This is something that was apparently first [https://www.deviantart.com/team/journal/UPDATE-All-Deviations-Are-Opted-Out-of-AI-Datasets-934500371 implemented by DeviantArt].
    - I do not know if this is actually respected by AI services. It is not an HTML standard today. In fact, discussions for a new HTML standard are still in progress, and suggest a different tag ([https://github.com/whatwg/html/issues/9334 reference]).
    - If a standard like that were to be accepted, and if AI Services agreed to use it, it may be the best implementation in the future since we would not have to define a list of AI services.
4. You can completely block specific User Agents from accessing the site.
    - I believe we may not want to implement something that drastic and potentially blocking real visitors in WordPress Core. This is something that is better left to plugins.

----

Some plugins already exist that implement some of the approaches above. It shows that there may be interest to include such a feature in Core.

- [https://wordpress.org/plugins/cellarweb-chatbot-blocker/ ChatBot Blocker]
- [https://wordpress.org/plugins/simple-noai-and-noimageai/ Simple NoAI and NoImageAI]
- [https://wordpress.org/plugins/block-ai-crawlers/ Block AI Crawlers]
- [https://wordpress.org/plugins/block-chat-gpt-via-robots-txt/ Block Chat GPT via robots.txt]
- [https://wordpress.org/plugins/block-common-crawl-via-robots-txt/ Block Common Crawl via robots.txt]
- [https://github.com/thefrosty/wp-block-ai-scrapers WordPress Block AI Scrapers]

----

If we were to go with the first option, here are some examples of the User Agents we would have to support:

- `Amazonbot` -- https://developer.amazon.com/support/amazonbot
- `anthropic-ai` -- https://www.anthropic.com/
- `Bytespider` -- https://www.bytedance.com/
- `CCBot` -- https://commoncrawl.org/ccbot
- `ClaudeBot` -- https://claude.ai/
- `cohere-ai` -- https://cohere.com/
- `FacebookBot` -- https://developers.facebook.com/docs/sharing/bot
- `Google-Extended` -- https://blog.google/technology/ai/an-update-on-web-publisher-controls/
- `GPTBot` -- https://platform.openai.com/docs/gptbot
- `omgili` -- https://webz.io/blog/web-data/what-is-the-omgili-bot-and-why-is-it-crawling-your-website/
- `omgilibot` -- https://webz.io/blog/web-data/what-is-the-omgili-bot-and-why-is-it-crawling-your-website/
- `SentiBot` -- https://sentione.com/
- `sentibot` -- https://sentione.com/

This list could be made filterable so folks can extend or modify that list as they see fit."	jeherve		
Enhancements Awaiting Review	43811	Licence & Policy notice during installation	xkon	Privacy	normal	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		needs-patch
Enhancements Awaiting Review	52903	Consent Management within WordPress Core		Privacy	normal	feature request	new	2021-03-24T15:31:29Z	2022-10-14T19:56:55Z	"**Website visitor / user Privacy choices:**

a. Users who are not registered on a site, or who choose not to log in when prompted, can set their consent preferences via a simple banner (Gutenberg block) on the front end, which will set a (functional) cookie value for consent.
It should be possible for plugins to filter the banner contents and to change the appearance.

b. Registered users can set their consent preferences via an interface in wp-admin, after logging in.
The interface should extend the ""Edit Profile"" page.

Once a registered user logs out, the consent cookie value should be updated to reflect their preferences as per the database (sync).

**(Sane) Defaults:**

Five default consent categories have been proposed: Functional; Preferences; Anonymous Analytics; Analytics and Marketing.

Website owners / admins should be able to set site-wide defaults by setting a site option value, or by using a plugin to do so.
[An alternative would be to allow them to do so via filter.]

It should be possible for site owners / admins to add additional consent categories, or to add nested sub-categories, or to allow a plugin to do so.

As privacy legislation varies across the globe, I believe that WordPress should default to TRUE for each category, if not overridden, to maintain backwards compatibility and avoid unexpected behaviour.

**Proposed Consent Management hierarchy:**

1. If the user is logged in and has set consent preferences, obtain their preferences via an extension of the REST API.
Using the REST API will allow us to cater for cookies that are set in JavaScript, rather than in PHP.

The basic logic:
{{{#!php
<?php
$user_id = get_current_user_id();
if (is_user_logged_in() === TRUE) { $consent = get_user_meta($user_id, 'consent_preferences', FALSE); }
if ( $consent !== NULL ) { return $consent; }
}}}

2. If the user is logged out and has set consent preferences in a (functional) cookie, obtain the (functional) cookie consent value.

The basic logic:
{{{#!php
<?php
if ( isset($_COOKIE['consent_cookie']) ) { return $_COOKIE['consent_cookie']; }
}}}


3. If the user has not set consent preferences, obtain the site privacy defaults from a site option value.

The basic logic:
{{{#!php
<?php
$consent = get_option('site_consent_preferences');
if ($consent !== FALSE) { return $consent; }
}}}

4. Otherwise, return WordPress defaults - i.e. an associative array where the default values are TRUE.

The basic logic:
{{{#!php
<?php
$consent = array(""functional"" => TRUE, ""preferences"" => TRUE, ""anon_stats"" => TRUE, ""stats"" => TRUE, ""marketing"" => TRUE);
return $consent;
}}}

**How to integrate all of this into the Developer community:**

This would require a number of approaches and mechanisms, including:

New functions:

Creating a wp_setcookie(); function in PHP and a corresponding function in JavaScript that checks for consent before placing a cookie;
Use of wp_setcookie(); can then be required for new plugin submissions to the WordPress.org repository.

Updating existing functions:

Updating other functions like wp_mail(); and the HTTP and REST APIs to check for the appropriate consent.
In the case of wp_mail(); for example, this can be done by adding a new parameter variable for $consent_purpose.
We can add a _doing_it_wrong(); if this variable is not present.
In the case of the REST API, consent could possibly be integrated into a permission callback, but that is something we'd need Timothy's (and others) input on.

Education drive:

Voluntary compliance is preferred. By providing documentation, resources and discussing with as many stakeholders as we can (primarily on Slack), we can encourage adoption through education.

**Related tickets:**

I will be closing #51188 in favour of this ticket to make it easier for new contributors to get involved. Please do feel welcome to read the closed ticket if you need / want background.
#51110 deals with the design of a wp-admin interface.
There is not a ticket for the design of a Gutenberg block (as a front end ""interface"") yet."	carike		needs-patch
Enhancements Awaiting Review	56542	"Should not allow to unregistered user be able to make a ""Export Personal Data"" Request"		Privacy	normal	enhancement	new	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	4.9.6	has-patch
Enhancements Awaiting Review	49357	Admin intervention for personal data export really needed?	xkon*	Privacy	normal	enhancement	accepted	2020-02-04T11:30:58Z	2021-11-17T00:01:07Z	"Currently, the required intervention of the administrator for the sole purpose of clicking on ""Send Export Link"" after the user has confirmed the action via e-mail seems to add a workload completely unnecessary.

I have to highlight that, once the request has been confirmed by e-mail by the user, the administrator has to enter the panel and click individually on each user to have their zip file sent with their data.

**Is the administrator intervention -for clicking the ""Send Export Link"" button- really required here?
Is the administrator doing something / verifying something apart of clicking a button?**

I think it creates a completely avoidable workload.

Why can we simply send the export link to the users that have confirmed the export action?"	rconde	5.4	
Enhancements Awaiting Review	54390	Privacy Policy should be generated on the site language (locale) and not on users language		Privacy	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	44261	Export User Data includes media URLs, not the actual media files in zip file		Privacy	normal	enhancement	new	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	4.9.6	dev-feedback
Enhancements Awaiting Review	44678	Introduce Bulk Copy or Copy All to Privacy Policy Guide		Privacy	normal	enhancement	new	2018-07-30T18:24:52Z	2020-10-16T22:41:24Z	"As @desrosj pointed out in #44588 it would be nice to have a method for bulk copy of all privacy snippets.

This could be a 'Copy All to Clipboard' button at the top of the guide. Or if the selective copy is preferred maybe checkboxes beside the copy actions with a 'Bulk Copy to Clipboard' at the bottom."	garrett-eclipse	4.9.6	
Enhancements Awaiting Review	44806	If commenter doesn't check (cookie) consent checkbox, don't use Gravatar.		Privacy	normal	enhancement	new	2018-08-16T15:07:38Z	2020-10-16T22:41:12Z	"I think it would be a safe assumption that if a user doesn't want cookies, they most likely don't want their image or a hash of their email to be publicly facing.
  
If this is done, I propose we change the string for the checkbox, to specify this in particular.

Related to #44067, #14682

"	lakenh		
Enhancements Awaiting Review	44645	Expose download link		Privacy	normal	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		
Enhancements Awaiting Review	48009	Expand upon the Media item data in Export Requests		Privacy	normal	enhancement	new	2019-09-10T06:26:41Z	2019-12-13T06:33:29Z	"Hello,

While reviewing an export containing Comment items and Media items it came to my attention the lack of information provided for media items. Currently, it's just the Media URL.

It would be nice to use some of the attachment meta and possibly EXIF data if present to supplement that information. As EXIF data can possess PII (Personally Identifiable Information) such as location it would be good to disclose to the user what information is known if available.

Thank you"	garrett-eclipse	4.9.6	has-patch
Enhancements Awaiting Review	47488	"add ""extensibility"" to WP_Privacy_Requests_Table"		Privacy	normal	enhancement	new	2019-06-05T20:09:01Z	2019-06-06T23:53:37Z	"`WP_Privacy_Requests_Table` (and its 2 sub-classes `WP_Privacy_Data_Removal_Requests_List_Table` and `WP_Privacy_Data_Export_Requests_List_Table`) lack some of the ""extension"" points that other list tables (e.g., `WP_Posts_List_Table`) in core have.

A short list of what is missing includes:

* an `extra_tablenav()` method and the `restrict_manage_xxx` and `manage_xxx_extra_tablenav` actions that accompany it
* the ability to add custom columns (via a `xxx_columns` filter)
* the ability to add/remove row actions (via a `xxx_row_actions` filter)
* the ability to add ""display states"" (via a `display_xxx_states` filter)

I do **not** have a concrete use-case for needing any of the above **at this time**, but feel that **all** core list tables should support them **unless there is a concrete reason not to**.

I'll add a patch shortly."	pbiron		needs-patch
Enhancements Awaiting Review	44067	Refactor get_avatar and related functions to make Gravatar a Hook instead of a Default		Privacy	normal	enhancement	new	2018-05-14T03:24:43Z	2019-02-13T19:51:55Z	"The design of get_avatar and related functions is a problem for a variety of reasons. It creates a dependency on gravatar even when a gravatar isn't being used. 

However, gravatar is such a long-standing part of WordPress it would hurt more to remove it. So, the logical solution is a refactoring.

We've added filters are various levels. Gravatar should be hooked onto these filters, and if someone removes the hook, everything will return an anonymous image hosted in Core, that can be overridden by a plugin. 

Identicon, wavatar, and monsterIDs were originally plugins for WordPress that were absorbed by Gravatar(https://blog.gravatar.com/2008/04/22/identicons-monsterids-and-wavatars-oh-my/). They generate anonymous icons from the provided email or hash. Mystery person can be stored locally, and maybe we can add a few options for this. 

It would not change any functionality. It might pave the way for local avatars, waiting in #16020 for seven years.

Gravatars are implemented are problematic from a privacy standpoint, which has come out locally as a priority issue. As noted in an 8 year old ticket, #14682, it does share your information with gravatar.

5 Years Ago, in #23179, it waas suggested that gravatars should only be used for registered users.

So, we have people saying that this should be addressed. Local avatars continues to be a request, but this isn't that.

While I set out a bigger agenda here to host the default icons, the scope of this ticket would be that if you remove the gravatar hunting hook from WordPress, it would just return false, as the signature of the function already has as an option.

"	dshanske		
Enhancements Awaiting Review	43993	Provide indication to admin when user downloads privacy export		Privacy	normal	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	4.9.6	
Enhancements Awaiting Review	43588	Anonymize commenter IP address once a comment is no longer pending		Privacy	normal	enhancement	new	2018-03-20T19:06:12Z	2019-01-09T19:17:26Z	"A commenter's IP address is stored with each comment.  The commenters IP address can often be used to identify a single individual or device at a location.

To enhance commentor's privacy, and to reduce the amount of personal data stored by a WordPress site in preparation for upcoming laws like the GDPR, this issue proposes that once a comment transitions out of pending, core WordPress should zero the commentor's IP address final octet similar to how Google Analytics Anonymizes IP addresses

The rationale for keeping it while a comment is pending is to continue to allow anti-spam access to the IP address which can be used to detect spam.

The rationale for keeping all but the last octet is to still allow statistics to be gathered about the general geographic location of commenters based on the first three octets of the IP address."	allendav		needs-unit-tests
Enhancements Awaiting Review	44186	Possibles enhancements to 4.9.6 privacy tools		Privacy	normal	enhancement	new	2018-05-22T13:53:05Z	2018-06-20T19:03:47Z	"-- User should start a request from frontend

User can create his own request starting from privacy page. Form are similar to the change password and login forms. 
Maybe, in first time, wordpress do not provide directly the form, but let developer start a request from a form submission hooking to a specific hook or using a function provided by the core.

-- Automatic request processing

User could receive first email without admins starts or confirm the process as for change password request. For large websites is unthinkable they rely on the wordpress system to manage privacy requests if tasks of this kind has to be done by admins, they will go for other plugins to do that. We need to include an options to disable automatic request processing and let things as in 4.9.6.

-- Automatic send data

As for request processing, user could confirm the link on the second email and get directly the datas without admins work.

-- User should see their data on a webpage (Frontend Personal Data Profile Page?)

I guess the zip download has been long discussed.. but in my personal opinion is a real bad practice. We are talking about privacy and data protections and we should not stimulate the proliferation of pieces of personal datas spreading in internet and devices.

I’m thinking of a request started from a mobile device, the user can have his own datas and can delete it from your website. But this in some case this is not a real data erasure, but it is just a data transfer as, after the request, on his download folder of the mobile device it has a PDF containing a lot of personal informations like Addresses, Family Status, Accounts name, Phone numbers, etc…
People are not educated to take care of their personal datas..

Using a web page to show the personals data we could achieve more than one goal:
- we strength the overall privacy avoiding data proliferations
- people will remain on the website (marketers will love it)
- we could get granular erasure of datas
- user can update datas

-- Granular erasure of data

As 4.9.6 the request of deleting personal data is an all or nothing actions. People can request to delete all the data from the website and maybe delete his / her account.
People may want to delete just some part of the datas (maybe a second address, the family status, their phone number) but let other to be processed for their sake (they want to be in your interest based newsletter).

And again for the sake of the website admins, the relationship with the user will continue.


Example of an overall process.

- User start a data export request
- Website send an email to be confirmed
- User confirm the email
- Website send a second email with the link to see (and eventually download and erase) the personal datas
- On the Frontend Personal Data Profile Page the user delete an address, his marital status and update the phone number.

Every single step in the process could be automatic or manual depending on admins preferences.
"	mnzhc	4.9.6	
Enhancements Awaiting Review	44268	GDPR concerns on the core commenting flow		Privacy	normal	enhancement	new	2018-05-29T18:41:11Z	2018-05-30T15:15:21Z	"The checkbox on the comment template it's not GDPR compliant.

1. The act of submitting content implied informed consent (possible to edit this message)
2. It must be required
3. It must be have a link to privacy policies (possible to edit this link)
4. It must be to store the consent
5. It must be possible to change, export and delete this data

Possible to edit this

Thanks.

Best regards.

Patrice"	patricedefago	4.9.6	
Reporter Feedback / Close	61194	Duplicate Query for getting Privacy Policy Page		Privacy	normal	defect (bug)	closed	2024-05-11T07:12:23Z	2026-05-31T14:52:20Z	"WP stores the privacy policy page id in wp_options table under ""wp_page_for_privacy_policy"" option_key.

If it has value like ""3"" and if that page id doesnot exist then it is firing approx 78 duplicate query.
SELECT * FROM wp_posts WHERE ID = 3 LIMIT 1

This query is running only in UI side.

If I select a page from Settings > Privacy then duplicate query is not showing.
"	aftab.alam8028	6.2	reporter-feedback
Reporter Feedback / Close	43910	Add actions and filters so plugins can easily extend export/erasure functionality		Privacy	normal	enhancement	new	2018-04-30T22:24:35Z	2018-08-13T21:47:01Z	"Splitting this from #43481 .

We're waiting for some feedback first to add more thoughts into this, but it needs it's own ticket at the moment."	xkon	4.9.6	dev-feedback
Defects Awaiting Review, reported against no version	41226	"Static ""posts page"" preview not working"		Query	normal	defect (bug)	reopened	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		needs-unit-tests
Defects Awaiting Review, reported against no version	43445	Wildcard `LIKE` support for `WP_Meta_Query` (and maybe other queries?)		Query	normal	defect (bug)	new	2018-03-01T04:09:44Z	2018-03-02T16:15:22Z	"Passing `LIKE` as the `compare` parameter for a meta query (or `compare_key`, after [42768]) results in what is essentially a ""contains"" query for the literal `value` (or `key`) string. So:

{{{
array(
    'compare' => 'LIKE',
    'value' => 'foo',
)
}}}

becomes `WHERE ... value LIKE '%foo%'`.

MySQL `LIKE` wildcard characters `%` and `_` are escaped, so it's not possible to do a non-standard anchored search, or any other custom `LIKE` query.

It would be nice if you could pass a string like `foo%` and have the wildcard characters respected.

A few considerations:
1. Syntax. A potential solution is suggested in https://core.trac.wordpress.org/ticket/42409#comment:14. Another possibility is a filter for enabling the ""non-escaped"" version
2. Security. I'm unsure that there's a way to do this without introducing security issues, specifically around the `%` character. Any potential patch would need serious review."	boonebgorges		
Defects Awaiting Review, reported against no version	41196	add _doing_it_wrong to get_query_var and prevent fatal errors		Query	normal	defect (bug)	new	2017-06-28T20:32:21Z	2017-11-12T15:15:18Z	"The following scenario will throw a fatal error:

{{{#!php
<?php
function parse_query_fail_test(){
	get_query_var('some_var_name', false);
}
add_action('parse_query', 'parse_query_fail_test');

function parse_query_fail_trigger(){
	get_posts();
}
add_action('plugins_loaded', 'parse_query_fail_trigger');
}}}

this could easily be avoided with a check and _doing_it_wrong function, similar to functions further down such as is_tax();

I would argue that the same could be done for get_queried_object(), get_queried_object_id() and set_query_var()"	netweblogic		has-patch
Defects Awaiting Review, reported against no version	40903	Filtered posts_request query can break found_posts query		Query	normal	defect (bug)	new	2017-06-01T16:54:45Z	2017-06-01T18:40:57Z	"Suppose the `posts_request` query is built with `SQL_CALC_FOUND_ROWS`. The stage is set for `WP_Query::set_found_posts` issue `SELECT FOUND_ROWS()` because `$limits` is non-empty.

Now suppose a plugin filters `posts_requests` to the empty string because it gets results another way. WP_Query will still go ahead and issue `SELECT FOUND_ROWS()` erroneously.

Some plugins avoid this by filtering `found_posts_query` to the empty string. However, it seems like there is a better way to write the logic of `set_found_posts` so that it respects the filtered `posts_request` query and avoids the problematic statement: simply check the filtered query for `SQL_CALC_FOUND_ROWS` instead of looking at `$limits`.

Proposed fix:

{{{
 	private function set_found_posts( $q, $limits ) {
 		global $wpdb;
 		// Bail if posts is an empty array. Continue if posts is an empty string,
 		// null, or false to accommodate caching plugins that fill posts later.
 		if ( $q['no_found_rows'] || ( is_array( $this->posts ) && ! $this->posts ) )
 			return;
 
-		if ( ! empty( $limits ) ) {
+		if ( substr( $this->request, 0, 26 ) === 'SELECT SQL_CALC_FOUND_ROWS' ) ) {
 			/**
 			 * Filters the query to run for retrieving the found posts.
 			 *
}}}"	andy		
Defects Awaiting Review, reported against latest stable branch	66633	Сounter based wp-elements-N classes lose or swap their styles after Interactivity API client-side navigation		Query	normal	defect (bug)	new	2026-11-09T14:26:31Z	2026-11-11T01:59:44Z	"The Elements block support assigns CSS classes to blocks to style their heading, link, and button colors. These classes use a per-request counter: `wp_get_elements_class_name()` calls `wp_unique_prefixed_id( 'wp-elements-' )`, so the same block can get a different class name on each request (e.g. `wp-elements-5` on one request and `wp-elements-4` on another).

When the Interactivity API router navigates for example Query Loop enhanced pagination, it replaces the router region's markup and the `core-block-supports-inline-css` stylesheet, but keeps the markup outside that region unchanged.

This creates a mismatch: the kept markup still uses class names from the previous request, while the stylesheet contains class names generated by the new request. If the number of `wp-elements-*` blocks rendered before a given block changes (for example, the last Query Loop page has fewer posts, or a filter returns fewer results), the counter shifts.

As a result:
- A class may no longer exist in the new stylesheet, causing the block to lose its styles.
- A class may now belong to a different block, causing the block to inherit incorrect styles.

Tested on latest WP 7.1.4 and Twenty Twenty-Five without ANY thirdparty plugins

Steps to reproduce
Open the reproduction in [https://playground.wordpress.net/#%7B%22$schema%22:%22https://playground.wordpress.net/blueprint-schema.json%22,%22preferredVersions%22:%7B%22php%22:%228.3%22,%22wp%22:%22latest%22%7D,%22features%22:%7B%22networking%22:false%7D,%22landingPage%22:%22/%22,%22steps%22:%5B%7B%22step%22:%22runPHP%22,%22code%22:%22%3C?php%5Cnrequire%20'/wordpress/wp-load.php';%5Cnwp_set_current_user(%201%20);%5Cn%5Cnfor%20(%20$i%20=%201;%20$i%20%3C=%2010;%20$i++%20)%20%7B%5Cn%5Ctwp_insert_post(%20array(%20'post_title'%20=%3E%20'Post%20'%20.%20$i,%20'post_content'%20=%3E%20'Content%20'%20.%20$i,%20'post_status'%20=%3E%20'publish'%20)%20);%5Cn%7D%5Cn%5Cnfunction%20repro_group(%20$label,%20$color%20)%20%7B%5Cn%5Ctreturn%20'%3C!--%20wp:group%20%7B%5C%22style%5C%22:%7B%5C%22elements%5C%22:%7B%5C%22heading%5C%22:%7B%5C%22color%5C%22:%7B%5C%22text%5C%22:%5C%22'%20.%20$color%20.%20'%5C%22%7D%7D%7D%7D%7D%20--%3E%3Cdiv%20class=%5C%22wp-block-group%5C%22%3E%3C!--%20wp:heading%20--%3E%3Ch2%20class=%5C%22wp-block-heading%5C%22%3E'%20.%20$label%20.%20'%3C/h2%3E%3C!--%20/wp:heading%20--%3E%3C/div%3E%3C!--%20/wp:group%20--%3E';%5Cn%7D%5Cn%5Cn$item%20=%20'%3C!--%20wp:group%20%7B%5C%22style%5C%22:%7B%5C%22elements%5C%22:%7B%5C%22heading%5C%22:%7B%5C%22color%5C%22:%7B%5C%22text%5C%22:%5C%22blue%5C%22%7D%7D%7D%7D%7D%20--%3E%3Cdiv%20class=%5C%22wp-block-group%5C%22%3E%3C!--%20wp:post-title%20%7B%5C%22level%5C%22:3%7D%20/--%3E%3C/div%3E%3C!--%20/wp:group%20--%3E';%5Cn%5Cn$content%20=%20repro_group(%20'Before%20the%20query%20(red)',%20'red'%20)%5Cn%5Ct.%20'%3C!--%20wp:query%20%7B%5C%22queryId%5C%22:1,%5C%22query%5C%22:%7B%5C%22perPage%5C%22:3,%5C%22pages%5C%22:0,%5C%22offset%5C%22:0,%5C%22postType%5C%22:%5C%22post%5C%22,%5C%22order%5C%22:%5C%22desc%5C%22,%5C%22orderBy%5C%22:%5C%22date%5C%22,%5C%22inherit%5C%22:false%7D,%5C%22enhancedPagination%5C%22:true%7D%20--%3E%3Cdiv%20class=%5C%22wp-block-query%5C%22%3E%3C!--%20wp:post-template%20--%3E'%20.%20$item%20.%20'%3C!--%20/wp:post-template%20--%3E%3C!--%20wp:query-pagination%20--%3E%3C!--%20wp:query-pagination-previous%20/--%3E%3C!--%20wp:query-pagination-numbers%20/--%3E%3C!--%20wp:query-pagination-next%20/--%3E%3C!--%20/wp:query-pagination%20--%3E%3C/div%3E%3C!--%20/wp:query%20--%3E'%5Cn%5Ct.%20repro_group(%20'After%20the%20query%201%20(green)',%20'green'%20)%5Cn%5Ct.%20repro_group(%20'After%20the%20query%202%20(purple)',%20'purple'%20)%5Cn%5Ct.%20repro_group(%20'After%20the%20query%203%20(orange)',%20'orange'%20);%5Cn%5Cn$page_id%20=%20wp_insert_post(%20array(%20'post_title'%20=%3E%20'Repro',%20'post_content'%20=%3E%20$content,%20'post_status'%20=%3E%20'publish',%20'post_type'%20=%3E%20'page'%20)%20);%5Cnupdate_option(%20'show_on_front',%20'page'%20);%5Cnupdate_option(%20'page_on_front',%20$page_id%20);%5Cn%22%7D%5D%7D WordPress Playground]. The blueprint creates 10 posts and a front page that contains, in this order:

- a Group with a heading text color red (set through the block's Color > Heading control
- a Query Loop with enhanced pagination on, 3 posts per page, where every Post Template item is a Group with heading color blue containing a Post Title, followed by Query Pagination with page numbers;
- three more Groups with heading colors green, purple, orange.
Then click page 4 in the pagination (page 4 has 2 posts, pages 1-3 have 3).

**Expected**
All headings keep their colors (red, blue, green, purple, orange). Client-side navigation must not change the look of markup that it did not replace.

**Actual**
When clicking on page 4, the last three groups change their colors.

"	bigdigitala	7.1.4	
Defects Awaiting Review	66656	Docs: Clarify how to access results of an existing WP_Query		Query	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	52971	WP_Query's meta_query With Multiple EXISTS keys and OR Relation Doesn't Work Properly		Query	critical	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	5.7	needs-patch
Defects Awaiting Review	44964	`redirect_guess_404_permalink` doesn't support array in `post_type` var		Query	normal	defect (bug)	new	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	4.9	dev-feedback
Defects Awaiting Review	50871	When exact is true and orderby set to relevance, there is a DB error on search results page		Query	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	39945	WP_Query::get_posts fails to correctly sanitize 'posts_per_page'		Query	normal	defect (bug)	new	2017-02-22T21:34:01Z	2026-10-27T22:07:44Z	"WP_Query::get_posts fails to correctly sanitize the 'posts_per_page' argument when a negative value in range (-2, -1) is supplied.

== Example ==
The following get_posts query causes an exception:

{{{
get_posts(array('posts_per_page' => '-1.5'));
}}}

Exception: 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 '-1' at line 1 for query SELECT   wp_posts.ID 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 LIMIT 0, -1 made by get_posts, WP_Query->query, WP_Query->get_posts
 
== Cause ==
Incomplete sanitization in WP_Query::get_posts(), line 1775 - 1779:

{{{
    $q['posts_per_page'] = (int) $q['posts_per_page'];
    if ( $q['posts_per_page'] < -1 )
        $q['posts_per_page'] = abs($q['posts_per_page']);
    elseif ( $q['posts_per_page'] == 0 )
        $q['posts_per_page'] = 1;
}}}

 
== Impact ==
Some plugins (e.g. Woocommerce) initialize the posts_per_page argument with user supplied values and may suffer from an information disclosure vulnerability, depending on the webserver configuration.
 
Confirmed on the latest Wordpress version 4.7.2.

First reported at 19.02.2017 to security[at]wordpress.org without response (not nice!), so I assume you do not consider this security relevant in accordance with e.g. https://make.wordpress.org/core/handbook/testing/reporting-security-vulnerabilities/#why-are-there-path-disclosures-when-directly-loading-certain-files"	biisent	4.7.2	dev-feedback
Defects Awaiting Review	63768	WP_Query will generate an unexpected SQL query when using switch_to_blog and post_type = any		Query	normal	defect (bug)	new	2025-07-30T10:33:58Z	2026-10-27T03:37:55Z	"When running a `WP_Query` with the `post_type` argument set to `any`, WP_Query will write out the registered post types which aren't excluded from search into WHERE clauses: https://github.com/WordPress/wordpress-develop/blob/6.8.2/src/wp-includes/class-wp-query.php#L2600-L2606

However, it does so by calling `get_post_types()`, which gets data from the `$wp_post_types` global. This global, as expected, doesn't get updated when using `switch_to_blog()`. 

In turn, if you want to run a WP_Query in a switched-blog contents to fetch posts from a site which has different registered post types to the site handling the request itself, you must set the post_type param manually to a value other than 'any', to avoid WP_Query interpreting your 'any' value itself and populating the query in the context of the site ''handling the request''. 

This is only relevant in cases where there is a difference between post types which get registered on different sites in the network, but breaks expectations around the meaning of the 'post_type=any' argument.

Example:

{{{
#!php
<?php
include 'wp-load.php';

$query_args = [
  'post_type' => 'any';
];

$q1 = new WP_Query($query_args); // returns all post types not excluded from search on the site handling the request

// Assume site 2 has the same post types as the site handling the request
switch_to_blog(2);
$q2 = new WP_Query($query_args); // returns all the expected results, as the post types match the site handling the request.
restore_current_blog();

// Assume site 3 has no shared post types with the site handling the request, but instead has entirely different post types.
switch_to_blog(3);
$q3 = new WP_Query($query_args); // returns nothing, as no post type that exists on site 3 exists on the site handling the request
restore_current_blog();
}}}
 

I couldn't find a single reference to this multisite-specific behaviour in documentation, so I believe that this is a bug. If not, perhaps this behaviour should be documented in a clear way."	mbmjertan		has-patch
Defects Awaiting Review	49284	WP_Meta_Query's 'compare_key' does not support 'NOT EXISTS' when used with WP_User_Query		Query	normal	defect (bug)	new	2020-01-24T13:30:25Z	2026-10-16T17:16:47Z	"The following snippet:

{{{#!php
<?php
function test_get_users() {
	$meta_query = array(
		'relation' => 'OR',
		array(
			'key' => 'learner_calculated_version',
			'value' => '3',
			'compare' => '!=',
		),
		array(
			'key' => 'learner_calculated_version',
			'compare_key' => 'NOT EXISTS',
		)
	);

	$user_args = array(
		'meta_query' => $meta_query
	);

	$users = get_users( $user_args );
	
	global $wpdb;
	print_r($wpdb->queries);
}

add_action('admin_init', 'test_get_users');
}}}

produces the following error:


{{{
WordPress database error: [Unknown column 'mt1.post_ID' in 'where clause']
SELECT DISTINCT wp_users.* FROM wp_users INNER JOIN wp_usermeta ON ( wp_users.ID = wp_usermeta.user_id ) INNER JOIN wp_usermeta AS mt1 ON ( wp_users.ID = mt1.user_id ) WHERE 1=1 AND ( ( wp_usermeta.meta_key = 'learner_calculated_version' AND wp_usermeta.meta_value != '3' ) OR NOT EXISTS (SELECT 1 FROM wp_postmeta mt2 WHERE mt2.post_ID = mt1.post_ID AND mt2.meta_key = 'learner_calculated_version' LIMIT 1) ) ORDER BY user_login ASC 
}}}

The issue is that in the subquery, wp_postmeta is queried instead of wp_usermeta."	gikaragia	5.1	has-patch
Defects Awaiting Review	37645	Changes made to certain is_*() functions generates PHP Notices when arrays or objects are present		Query	normal	defect (bug)	new	2016-08-12T16:12:38Z	2026-10-15T12:07:09Z	"The patch added by #35902 can generate PHP Array to string conversion notices if an array is passed that contains sub-arrays or objects that don't implement `__toString()`.

The supplied patch applies the `strval` conversion taking those special conditions into account.

Functions affected:
is_attachment()
is_author()
is_category()
is_tag()
is_page()
is_single()

I came across this using plugin I built which adds custom data, in the form of an array, to the WP_Post object for my templates to use.  When `strval` is run (by post_class() calling is_attachment()) it throws notices when it comes across the arrays."	Enchiridion	4.5	has-patch
Defects Awaiting Review	63359	Are ignore_sticky_posts working as expected?		Query	major	defect (bug)	reviewing	2025-04-27T11:28:10Z	2026-09-17T15:29:35Z	"== Bug Report
=== Description
According to the docs 

> `ignore_sticky_posts` (boolean) – ignore post stickiness (available since version 3.1, replaced caller_get_posts parameter). false (default): **move sticky posts to the start of the set**. true: do not move sticky posts to the start of the set.

Something feels to be going wrong with `ignore_sticky_posts` behaviour.

=== 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: Windows 10/11
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
  * Test Reports 1.2.0

=== Steps to Reproduce
1. Install this simple plugin for testing: https://raw.githubusercontent.com/SirLouen/wp-query-tester/refs/heads/main/wp-query-tester.php
2. Create some posts in this order: 
- First 1 sticky post
- Second 1 not sticky post
- Third 1 sticky post 
- Fourth 1 not sticky post 

3. Run the plugin in the menu
4. 🐞 Bug occurs

=== Expected Results
1.  ✅ According to the docs, sticky should go first

=== Actual Results
1.  ❌ Sticky results and the same as regular results. 

=== Additional Notes
This topic is somehow correlated with this issue #63307 just as a reference.

=== Supplemental Artifacts
Plugin repo: https://github.com/SirLouen/wp-query-tester/


"	SirLouen		dev-feedback
Defects Awaiting Review	65671	is_page() and is_single() do not match a path that begins with a slash		Query	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65412	Namespace collision in WP 7.0 Font Library query var overrides custom router page_slug		Query	normal	defect (bug)	new	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	7.0	dev-feedback
Defects Awaiting Review	53495	incorrect (and confusing) DocBlock for get_page_by_title()		Query	normal	defect (bug)	new	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	5.3	has-patch
Defects Awaiting Review	65072	Registering a query_var called 'preview_nonce' stops previews from working.	dsas	Query	normal	defect (bug)	assigned	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		has-patch
Defects Awaiting Review	63659	"Adding the ""order"" or ""orderby"" query argument to the front page causes the latest news to be displayed"		Query	normal	defect (bug)	new	2025-07-03T05:18:51Z	2026-03-02T12:33:55Z	"If the homepage displays a static page, adding ""order"" or ""orderby"" GET parameters leads to showing the latest news or, in their absence (in my case), just the header and footer. 

I believe that main site settings should be the priority, and these parameters (and any parameters that do not match what is expected) should be ignored.

Related ticket: #45666"	oglekler		has-patch
Defects Awaiting Review	63360	ignore_sticky_posts generating a wrong behaviour in WP_Query		Query	blocker	defect (bug)	reviewing	2025-04-27T16:05:54Z	2026-02-06T23:22:18Z	"== Bug Report
=== Description
According to the docs:
> `ignore_sticky_posts` (boolean) – ignore post stickiness (available since version 3.1, replaced caller_get_posts parameter). false (default): **move sticky posts to the start of the set**. true: do not move sticky posts to the start of the set.
 
Something is going wrong with `ignore_sticky_posts` behavior when certain `WP_Query` args are being used (the `__in` ones more specifically).

More importantly, since, `ignore_sticky_posts` is `false` by default, it can be easily reproduced as soon as we use any of these arguments for the query.

=== 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: Windows 10/11
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
  * Test Reports 1.2.0

=== Steps to Reproduce
1. Install this simple plugin for testing: https://raw.githubusercontent.com/SirLouen/wp-query-tester/refs/tags/1.0.1/wp-query-tester.php
2. Create a second username
3. Create some posts in this order: 
- First post, make sticky
- Second not sticky post. Call it exactly, ""Not Sticky 1"", with slug ""not-sticky-1"".
- Third, make sticky post 
- Fourth not sticky post 
- Fifth a sticky post, with second username as author
- Sixth, not sticky with second username as author

3. Create another post and add the short code `[wp_query_tester]`
4. 🐞 Bug occurs

=== Expected Results
- Query 1: All posts with sticky on top
- Query 2: All posts ignoring the stickyness
- Query 3: All posts from Author 1
- Query 4: The post with slug ""not-sticky""

=== Actual Results
1. Query 1 is ✅
- Query 2 is ✅
- Query 3 is ❌. Queried only author 1. A post from author 2 appears (because its sticky)
- Query 4 is ❌. Queried just the slug not-sticky-1. All sticky posts appear, the last one is the one queried.

=== Additional Notes
This topic is seriously correlated with this issue #63307 just as a reference.

=== Supplemental Artifacts
Plugin repo: https://github.com/SirLouen/wp-query-tester/

Screenshot Sample

[[Image(https://i.imgur.com/ILiKfgs.png)]]"	SirLouen	6.8	needs-patch
Defects Awaiting Review	47068	get_queried_object() returns null date archives and on homepage with blog on front settings		Query	normal	defect (bug)	reopened	2019-04-29T12:12:22Z	2025-12-03T15:35:39Z	get_queried_object() returns null if permalink is plain.	bplv	4.7	has-patch
Defects Awaiting Review	61621	WP_Query get_posts should be call its property not again execute all caculations		Query	normal	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		
Defects Awaiting Review	63998	Undefined variable warnings in WP Class		Query	trivial	defect (bug)	new	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		has-patch
Defects Awaiting Review	60963	Custom query, inherit main query, show scheduled posts		Query	major	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		
Defects Awaiting Review	63902	wp_get_post_autosave() uses a non-limited SQL query		Query	minor	defect (bug)	new	2025-09-01T00:42:10Z	2025-09-02T09:59:30Z	"In [59715] via #62658 wp_get_post_autosave() was switched from a raw SQL (with a `LIMIT 1`) to a cached WP_Query instance with `posts_per_page=1`

However, as `name=...` is specified, WP_Query doesn't apply the posts_per_page limitation.

This is because a `name=...` sets `is_singular`, which then causes the post pagination to be skipped:
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-query.php?rev=60697&marks=2797-2798,2811#L2797


''This is not a problem at present, as the `name` being queried '''should''' only have a singular result.''

For example ''(Returns false, as there's no autosave, but it's the query we're interested in, noting the lack of limit)''
{{{
wp> wp_get_post_autosave( 123 );
bool(false)

wp> $wpdb->last_query;
SELECT   wp_posts.ID
FROM wp_posts
WHERE 1=1  AND wp_posts.post_name = '123-autosave-v1' AND wp_posts.post_parent = 123  AND wp_posts.post_type = 'revision' AND ((wp_posts.post_status = 'inherit'))

ORDER BY wp_posts.post_date DESC
}}}

This could have other side effects for plugin code, where instead of using the core `wp_get_post_revisions()` a WP_Query similar to `post_type=revision&post_name=$ID-revision-v1&posts_per_page=1&order=DESC` is made, expecting a singular result but getting all revisions. (Querying by `name=...` is not expected here, and should be `post_type=revision&post_parent=$ID`, but I can imagine a world where someone queries by name to avoid image attachments or something that wouldn't ever be returned anyway)


Two options as I see it:
1. LIMIT 1 for all singular queries (Although, as noted, revisions break the notion of a singular post_name per post_type)
2. Respect the posts_per_page given for singular queries, if provided. This may mean having to set a default of `1` when `name` is set.

''Thanks to @vortfu for raising this, fyi @spacedmonkey since you were the committer of above''"	dd32	6.8	has-patch
Defects Awaiting Review	63406	Lack of mutex for query object values like is_category and is_author can result in warnings		Query	normal	defect (bug)	new	2025-05-07T11:37:50Z	2025-08-06T09:53:21Z	"We're seeing warnings triggered by attempts to request pages that match both {{{is_category()}}} and {{{is_author()}}}.  These aren't legitimate requests, we're assuming this is an attacker trying to trigger unexpected behaviour.

I'm seeing this on sites with co-authors-plus installed, but it feels like an issue in core.

To reproduce (assuming ""admin"" is an author of at least one post):

{{{
wp plugin install co-authors-plus
wp plugin activate co-authors-plus
wp co-authors-plus create-guest-authors
curl ""http://localhost/author/admin/?a=1&cat=2"" > /dev/null
}}}

Produces the following warnings:

{{{
PHP Warning:  Undefined property: stdClass::$name in /var/www/html/wp-includes/general-template.php on line 1610
PHP Deprecated:  strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-includes/class-wp-hook.php on line 324
PHP Warning:  Undefined property: stdClass::$name in /var/www/html/wp-includes/general-template.php on line 3412
PHP Warning:  Undefined property: stdClass::$term_id in /var/www/html/wp-includes/general-template.php on line 3415
}}}

This happens because {{{is_category()}}} returns true, but then attempts to use an object that isn't a category.

If a call to {{{is_category()}}} uses an object that is not a category object, then the result should be false.

This might be patched by adding a check in {{{is_category()}}}

{{{
--- class-wp-query.php.dist	2025-05-07 11:11:36.000000000 +0000
+++ class-wp-query.php	2025-05-07 11:20:58.315628592 +0000
@@ -4269,5 +4269,10 @@
 
 		if ( empty( $category ) ) {
-			return true;
+			if ( empty($this->taxonomy) || $this->taxonomy != 'category' ) {
+				$this->is_category = false;
+				return false;
+			} else {
+				return true;
+			}
 		}
}}}"	leedxw	6.8	
Defects Awaiting Review	63666	Multiple tags in URL broken in 6.8		Query	normal	defect (bug)	new	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	6.8	has-patch
Defects Awaiting Review	62044	WP allows to inject random strings into archive page urls, still returning 200		Query	critical	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		
Defects Awaiting Review	63098	Passing array in term query arg triggers fatal error		Query	normal	defect (bug)	new	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	6.7.2	has-patch
Defects Awaiting Review	63106	The loop can throw warning if `WP_Query::have_posts()` not called.		Query	normal	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		
Defects Awaiting Review	62931	Inconsistency When Querying and Sorting by meta_key with Multiple Values		Query	normal	defect (bug)	new	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	6.7.1	dev-feedback
Defects Awaiting Review	62401	WP_Query add extra JOINs after calling get_posts() with category__in in query arguments		Query	normal	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	6.6.2	
Defects Awaiting Review	59252	is_front_page returns false when a static blog page has been set.	joedolson*	Query	normal	defect (bug)	accepted	2023-08-31T07:51:12Z	2025-02-04T21:29:42Z	"Hi

I have a question. I do not know if this is a bug or not, but the behaviour of the `is_front_page()` function is bit ackward.

If no static homepage has been set and you call on the home page the function `is_front_page()`  it returns true. If you call `is_home()` it also returns true.

However the moment you set a static blog page (not home page) that same call for `is_front_page` on the home page returns false, but `is_home()` still returns true.

Is this a bug?  It does not seem consistent to me as there is no static home page set why does `is_front_page()` return true when no static blog page has been set and return false the moment a static blog page is set.  

What has the static blog page set in the reading settings to do with the `is_front_page()` function?

Can somebody please explain this to me as it does not make sense given the description of `is_front_page()` function? 

Thank you

see image 

[[Image(https://share.getcloudapp.com/4guXkxZy)]]

**STEPS TO CREATE THE SAME RESULTS!**

Tested with wp 6.4 latest trunk build clean wordpress. 20-21 theme and php 8.0.x

just add this code to the `index.php`

{{{#!php
<?php 
if ( is_home() ) echo '---------------> this is home.';
if ( is_front_page() ) echo '---------------> this is frontpage.';
?>
}}}

see image below  where i added the php code

[[Image(https://share.getcloudapp.com/lluXB459)]]


The complete altered index.php of the 20-21 theme below

{{{#!php
<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage Twenty_Twenty_One
 * @since Twenty Twenty-One 1.0
 */

get_header(); ?>

<?php if ( is_home() && ! is_front_page() && ! empty( single_post_title( '', false ) ) ) : ?>
	<header class=""page-header alignwide"">
		<h1 class=""page-title""><?php single_post_title(); echo 'HELLO WORLD'; ?></h1>
	</header><!-- .page-header -->
<?php endif; ?>
<?php 
if ( is_home() ) echo '---------------> this is home.';
if ( is_front_page() ) echo '---------------> this is frontpage.';
?>

<?php
if ( have_posts() ) {

	// Load posts loop.
	while ( have_posts() ) {
		the_post();

		get_template_part( 'template-parts/content/content', get_theme_mod( 'display_excerpt_or_full_post', 'excerpt' ) );
	}

	// Previous/next page navigation.
	twenty_twenty_one_the_posts_navigation();

} else {

	// If no content, include the ""No posts found"" template.
	get_template_part( 'template-parts/content/content-none' );

}

get_footer();

}}}

"	neo2k23	2.5	has-patch
Defects Awaiting Review	60984	WP_Query is returning the two same post instead of one		Query	normal	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	6.5	
Defects Awaiting Review	60027	Post patterns show no posts		Query	major	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		
Defects Awaiting Review	50873	Search query parameter causes 404 on pagename match rules		Query	normal	defect (bug)	new	2020-08-07T14:55:32Z	2024-02-15T06:36:19Z	"With permalinks turned on, visit a post or page. Then append `?s=test` to the url. It should look like this: `https://example.com/post-slug/?s=test`. You will probably hit the 404 page. 

The expected behavior is to get to the post or page you hit, ie `https://example.com/post-slug/`

Instead, you hit a 404 page. 

This is due to both the search query and post slug query getting combined instead of one taking priority over the other. 

The resulting query is a combination of a search query and post slug query which results in no posts being found, unless the search term is also in the post slug. See below:
{{{
SELECT wp_posts.*
FROM wp_posts
WHERE 1=1
AND wp_posts.post_name = 'post-slug'
AND (((wp_posts.post_title LIKE '%test%')
OR (wp_posts.post_excerpt LIKE '%test%')
OR (wp_posts.post_content LIKE '%test%')))
AND wp_posts.post_type = 'post'
ORDER BY wp_posts.post_title LIKE '%test%' DESC, wp_posts.post_date DESC
}}}
This is using `https://example.com/post-slug/?s=test` as the example url.

I would expect the search query string to be ignore unless the visitor is on the search page (front/home page by default)."	MikeNGarrett	5.4.2	has-patch
Defects Awaiting Review	60468	"WP_Query matches any post when query parameter ""name"" is an empty string"		Query	minor	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		
Defects Awaiting Review	60395	Filtering posts by open ping_status returns posts with closed ping_status		Query	normal	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		
Defects Awaiting Review	60274	Query loop showing too many posts		Query	normal	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	6.4.2	
Defects Awaiting Review	58200	Empty result when meta_query is supposed to select date less than certain date		Query	normal	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		
Defects Awaiting Review	33341	WP_Meta_Query IN operator with empty array does not return expected result		Query	critical	defect (bug)	reopened	2015-08-11T18:32:26Z	2023-10-17T19:18:10Z	"When using the `IN` compare mode in a `WP_Meta_Query` where the value is an empty array, this query is evaluated with an unexpected behavior.

For example, I have some posts with a meta field called `'some-textfield'`:

{{{
$posts = get_posts( array(
	'posts_per_page' => -1,
	'post_type' => 'post',
	'post_status' => 'publish',
	'meta_query' => array(
		array(
			'key'	 => 'some-textfield',
			'value' => array(),
			'compare' => 'IN',
		),
	),
) );
}}}

This code returns all posts although I would rather expect it to return no posts at all since the value of `'some-textfield'` (whatever it may be) is not ''in'' those provided in the `value` field.

I discovered it when I needed to perform a meta query where the value was an array that was returned by a previous operation. It is obviously a minor issue since we can simply check if the array is empty (and in that case do not make the query at all) - but I thought it's not really the expected result of such a query.

The solution would be to:
* ignore this condition if the `relation` is set to `OR` and there are other conditions available
* evaluate this condition to false otherwise (and thus return no results)"	flixos90	3.2	dev-feedback
Defects Awaiting Review	58806	Unexpected ordering result when ordering based on multiple clauses		Query	normal	defect (bug)	new	2023-07-14T08:17:52Z	2023-07-14T08:17:52Z	"I am not sure if this is a bug or this is a mis-understanding from my side on how the ordering works but
Consider the following `WP_Query`:
{{{#!php
<?php
$query = new WP_Query(
    [
        'fields' => 'ids',
        'post_type' => 'post',
        'post_status' => 'publish',
        'posts_per_page' => -1,
        'meta_query' => [
            'relation' => 'OR',
            'sticky_clause' => [
                'key' => '_sticky',
                'type' => 'UNSIGNED',
            ],
            [
                'key' => '_sticky',
                'compare' => 'NOT EXISTS',
            ],
        ],
        'orderby' => [
            'sticky_clause' => 'desc',
            'title' => 'asc',
        ],
    ]
);
}}}

The expected behavior is that the query should show posts that have a `_sticky` meta first, then shows the rest of the posts sorted by their title alphabetically.
However it doesn't happen.


{{{
array(7) {
  [0]=>
  string(20) ""A guide to WordPress""
  [1]=>
  string(27) ""Brotherhood of creativeness""
  [2]=>
  string(30) ""Gather all information you can""
  [3]=>
  string(16) ""Yet another post""
  [4]=>
  string(12) ""Hello world!""
  [5]=>
  string(36) ""Opera browser released a new version""
  [6]=>
  string(27) ""Zebras are cool and relaxed""
}
}}}

In the above output of post titles, the `""Hello World!""` has `_sticky` meta, but the sorting isn't correct (nor alphabetically and nor by `_sticky` meta first)

This is the SQL query generated by this query:

{{{#!php
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 
    AND mt1.meta_key = '_sticky'
  ) 
WHERE 
  1 = 1 
  AND (
    wp_postmeta.meta_key = '_sticky' 
    OR mt1.post_id IS NULL
  ) 
  AND wp_posts.post_type = 'post' 
  AND (
    (wp_posts.post_status = 'publish')
  ) 
GROUP BY 
  wp_posts.ID 
ORDER BY 
  CAST(
    wp_postmeta.meta_value AS UNSIGNED
  ) DESC, 
  wp_posts.post_title ASC
}}}

If I am not wrong the issue happens at the position `ORDER BY CAST(wp_postmeta.meta_value AS UNSIGNED) DESC`, it should use the alias instead of the table name here (should be `mt1.meta_value`)"	pelentak	6.2.2	
Defects Awaiting Review	58553	Two query blocks on home template (FSE) breaks the second one		Query	normal	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	6.2	
Defects Awaiting Review	37251	Not return 404 on front-page with option page and url `/page/2`		Query	normal	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	4.5.3	
Defects Awaiting Review	57505	"category archive url ending with ""/0"" should be 404"		Query	normal	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		
Defects Awaiting Review	58147	bugfix: rewind_posts when posts array index != 0		Query	normal	defect (bug)	new	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	6.2	has-patch
Defects Awaiting Review	57678	Missing use of placeholders and $wpdb->prepare()		Query	major	defect (bug)	new	2023-02-09T08:59:21Z	2023-02-27T06:51:26Z	"Use placeholders and $wpdb->prepare(); found interpolated variable $prefix at ""SELECT $prefix""

**file path:** wordpress/wp-admin/setup-config.php
**Line Number:** 325

"	mahekkalola		dev-feedback
Defects Awaiting Review	49550	is_home is set to true even for cron jobs, which causes sticky posts to get prepended to all WP_Query results		Query	normal	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	5.3.2	
Defects Awaiting Review	57767	SQL query error with multiple order specifications in pre_get_posts.		Query	critical	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	6.1.1	
Defects Awaiting Review	57766	filter query_loop_block_query_vars repeater 4 times		Query	normal	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	6.1.1	
Defects Awaiting Review	57412	Uncaught TypeError: Cannot read properties of undefined (reading 'length'): jquery migrate		Query	critical	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	6.1.1	
Defects Awaiting Review	56165	Bogus query parameters force WordPress to drop query limit and exhausts memory		Query	normal	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	6.0	
Defects Awaiting Review	56081	Query Loop block with selection causes Sticky Posts setting to be ignored		Query	normal	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	6.0	
Defects Awaiting Review	52094	Queries with perm readable/editable will not work for multiple post types and status queries		Query	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	55748	wp_query post_type taxonomies doesn't accept array in url if hierarchical		Query	minor	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	5.9.3	
Defects Awaiting Review	43238	`suppress_filters` not set in `pre_get_posts` hook		Query	normal	defect (bug)	reopened	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	4.9.4	dev-feedback
Defects Awaiting Review	55649	Block Query with full post content do not display properly		Query	normal	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	5.9.3	
Defects Awaiting Review	43372	$wp_query->max_num_pages return value as float		Query	trivial	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	4.9.4	
Defects Awaiting Review	54853	Search only searching phrases and not searching individual terms		Query	normal	defect (bug)	new	2022-01-19T03:00:51Z	2022-01-19T07:46:09Z	"
{{{
get_posts(array(
  ""post_type"" => ""fruit"",
  ""s"" => ""apple orange banana""
));
}}}

should search for each term separately, but it does not. It searches the entire string as a phrase.

Issue is within /wp-includes/class-wp-query.php line 1398. It's a simple change: 


{{{
$searchand = ' AND ';
to
$searchand = ' OR ';
}}}


"	jchang	5.8.3	needs-patch
Defects Awaiting Review	54436	Sorting issue- when sorting via a custom meta key		Query	normal	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	5.5.2	
Defects Awaiting Review	54268	Using `author_name` in URL parameter gives unexpected results when logged into contributor account		Query	minor	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	5.8.1	
Defects Awaiting Review	41745	Uncaught Error in get_query_var when $wp_query is null		Query	normal	defect (bug)	new	2017-08-28T16:24:01Z	2021-10-01T22:58:19Z	When `get_query_var()` is called without the global $wp_query being set an Uncaught Exception is thrown.	kbjohnson90	4.8.1	has-patch
Defects Awaiting Review	51794	An author_name query with nonexistent user returns posts with no author		Query	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	47802	WP_Query get_posts sometimes inserts contradictory taxonomy queries		Query	normal	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		
Defects Awaiting Review	41446	The PHP notice displayed after the overwriting global $posts by a new empty query.		Query	normal	defect (bug)	new	2017-07-26T07:57:45Z	2020-08-25T12:46:57Z	"'''Tested in WordPress 4.8, twentyseventeen theme with default configuration (just installed).'''

After the overwriting a global variable {{{$posts}}} by a new {{{get_posts()}}} query (which return an empty array (no posts)) there is a PHP notice displayed:

{{{
Notice: Undefined offset: 0 in /.../wp-includes/class-wp-query.php on line 3162
}}}

The overwriting is not a best choice, but some themes and plugins do it, so we should solve this problem.

The problem is in {{{WP_Query}}} class in {{{rewind_posts()}}} method in {{{wp-includes/class-wp-query.php}}} file.

'''The original method:'''

{{{#!php
<?php
public function rewind_posts() {
	$this->current_post = -1;
	if ( $this->post_count > 0 ) {
		$this->post = $this->posts[0];
	}
}
}}}

'''The problem:''' the global query has at least one posts, but a new query has not. So the {{{$this->post_count}}} property is always positive, but the {{{$this->posts[0]}}} is not exists. In this step, the PHP notice is displayed.

'''An example of solution:'''

{{{#!php
<?php
public function rewind_posts() {
	$this->current_post = -1;
	if ( $this->post_count > 0 && isset( $this->posts[0] ) ) {
		$this->post = $this->posts[0];
	}
}
}}}

Right now the method checks that the query has posts and the first post is set and is not null."	danielpietrasik	4.8	
Defects Awaiting Review	50885	Setting a pre_get_posts query post_type to array results in broken wp-admin filters		Query	normal	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	5.4.2	
Defects Awaiting Review	50070	'post_type' query variable not set for taxonomy queries		Query	normal	defect (bug)	new	2020-05-03T17:12:19Z	2020-05-27T20:56:06Z	"When a standard taxonomy query is executed on the front-end (for example loading a category term archive page to see all posts associated with that term), the `$wp_query` object constructed in the `get_posts()` function omits the `post_type` query variable.

The `$q['post_type']` is empty initially (line 1848 wp-includes/class-wp-query.php), however, when the query is identified as a taxonomy query, a search is done to find which post_type is registered with this taxonomy (line 2132 wp-includes/class-wp-query.php) and the `$post_type` is set within the scope of the function, but the referenced query variable `$q['post_type']` isn't updated.

this causes a problem to identify queries when hooking filters such as `posts_orderby` / `posts_where` / `posts_join`

"	aurovrata	5.4	dev-feedback
Defects Awaiting Review	48029	WP_Query::query only using a single post_status		Query	normal	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		
Defects Awaiting Review	49911	WP_Tax_Query generates incorrect SQL		Query	normal	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		
Defects Awaiting Review	48360	`meta_value` is ignored when empty string is provided		Query	normal	defect (bug)	new	2019-10-17T16:40:23Z	2020-02-13T12:30:59Z	"When trying to create a custom query using `meta_*` parameters, `WP_Meta_Query` will ignore `meta_value` if it is an empty string.

This does appear to be somewhat intentional, since `WP_Query` will set the default value for `meta_value` to an empty string. This can be seen here: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-meta-query.php#L255

The problem comes when you want to write a query that specifically targets meta keys that have empty values. The `'meta_value' => ''` parameter is stripped, and then the query does not behave properly. Here's an example query:

{{{#!php
<?php
$args = array(
    'post_type'      => 'product',
    'posts_per_page' => 10,
    'meta_key'       => '_regular_price',
    'meta_value'     => '',
    'meta_compare'   => '=',
);

$query = new WP_Query( $args );
}}}


I would like to propose that an empty string be allowed for `meta_value`. Alternatively, the fact that an empty value will be stripped should at least be documented more clearly so that developers know to expect that behavior.

Props also to @richardbuff for helping identify the issue."	JPry	3.2	
Defects Awaiting Review	48280	orderby meta_value breaks with newer versions of MySQL		Query	normal	defect (bug)	new	2019-10-10T19:01:27Z	2020-01-30T23:03:53Z	"When running a query like this:
{{{#!php
<?php
$posts = new WP_Query(array(
  'post_type'           => 'course_record',
  'posts_per_page'      => -1,
  'orderby'             => 'meta_value',
  'meta_key'            => 'start_date'
));
?>
}}}

which results in the following SQL query:
{{{#!sql
SELECT   wp_posts.* FROM wp_posts  INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1  AND ( wp_postmeta.meta_key = 'start_date' ) AND wp_posts.post_type = 'course_record' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value DESC
}}}

On MySQL v5.7.25, it works fine and returns posts as expected.
On MySQL v8.0.16, it returns zero posts without any errors.

The weird thing is, if I try to run the SQL statement from above directly into the MySQL console '''on either MySQL version''', I get the following error:
{{{#!text
ERROR 1055 (42000): Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'wp_artofed.wp_postmeta.meta_value' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
}}}

I also get the same error if I try the SQL statement directly in PHP outside of WordPress '''again, on either MySQL version''':
{{{#!php
<?php
$conn = new mysqli($db_host, $db_user, $db_pass, $db_name);
if ($conn->connect_error) die(""Connection failed: $conn->connect_error"");
if (!$results = $conn->query(""SELECT   wp_posts.* FROM wp_posts  INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1  AND ( wp_postmeta.meta_key = 'start_date' ) AND wp_posts.post_type = 'course_record' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value DESC"")) {
  die(""Query Error: $conn->error"");
}
?>
}}}

However it works if I use `$wpdb->get_results` '''on MySQL v5.7.25''' but not v8.0.16:
{{{#!php
<?php
global $wpdb;
$results = $wpdb->get_results(""SELECT   wp_posts.* FROM wp_posts  INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1  AND ( wp_postmeta.meta_key = 'start_date' ) AND wp_posts.post_type = 'course_record' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_postmeta.meta_value DESC"");
?>
}}}

I was able to get everything working however by adding `wp_postmeta.meta_value` to the `GROUP BY` clause:
{{{#!php
<?php
add_filter('posts_groupby', 'fix_wp_only_full_group_by', 10, 2);
function fix_wp_only_full_group_by($groupby, $query) {
  if (
    !empty($groupby) &&
    array_key_exists('orderby', $query->query_vars) &&
    $query->query_vars['orderby'] === 'meta_value'
  ) {
    global $wpdb;
    $groupby .= "", {$wpdb->postmeta}.meta_value"";
  }
  return $groupby;
}
?>
}}}"	KodieGrantham	5.2.3	
Defects Awaiting Review	49168	is_post_type_archive( $post_types = '' ) doesn't work with underscore (_)		Query	normal	defect (bug)	new	2020-01-11T04:18:59Z	2020-01-11T05:04:34Z	"I define my custom post type slug using underscore, e.g. 'post_type'. But it always returns false when I try to check with `is_post_type_archive( 'post_type' )`. It turns out I have to use hyphen (-) instead of underscore (_), e.g. `is_post_type_archive( 'post-type' )`.

It is confusing because I defined the CPT using underscore, but the `is_post_type_archive()` doesn't accept underscore.

The issue is `is_post_type_archive()` uses `$post_type_object->name` instead of `$post_type_object->slug` to check against. For backward compatibility, should we accept both underscore (_) and hyphen (-) in the `is_post_type_archive( $post_types )`?"	maurisrx	5.3.2	has-patch
Defects Awaiting Review	48768	WordPress 5.3 ajax bug with Elementor 2.7.5		Query	critical	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	5.3	
Defects Awaiting Review	40335	using 'pre_get_terms' is confusing when it comes to ordering by meta		Query	normal	defect (bug)	new	2017-04-02T09:41:03Z	2019-10-12T00:18:14Z	"There's a  `pre_get_terms` hook. One might think that it works in the same way how `pre_get_posts` works, but it doesn't.

I wanted to order terms by a meta field, so I did something like this:

{{{#!php
<?php
add_action('pre_get_terms', function (\WP_Term_Query $query) {

    if ( SOME_CONDITION_HERE ) {
        return;
    }

    $queryVars = $query->query_vars;

    $args = [
        'meta_key' => 'my_meta_key',
        'orderby' => 'meta_value',
        'order' => 'ASC',
    ];

    $query->query_vars = array_merge($queryVars, $args);
});
}}}

And for `pre_get_posts` this technique would work. But with `pre_get_terms` it's different.  Digging into `WP_Term_Query` class code I found that this code would cause `parse_orderby()` method to set the `$maybe_orderby_meta` variable to `true`. But it doesn't mean that terms will be sorted by a meta field. It only means that terms '''maybe''' will be sorted by meta.

There's an another filter required. At the end of the `parse_orderby()` method there's an another filter applied: `get_terms_orderby`. 

So in order to sort terms by meta field there's one more thing required. Something like:

{{{#!php
<?php
add_filter('get_terms_orderby', function ($orderby, $args) {

    if ( SOME_CONDITION_HERE ) {
        return $orderby;
    }

    return 'meta_value';
}, 10, 2);
}}}

This is unintuitive and confusing, and what's the most important: it's not documented. The documentation should be very clear about it. Because of the filter name, that's very similar to the `pre_get_posts` filter name, users might expect it to work in the same way.  It might be even considered as a bug. So I'll mark it as a bug, because from the user's perspective this is how it looks like.
"	wujek_bogdan	4.7.3	
Defects Awaiting Review	48078	Some WP_XXX_Query::query() methods produce incorrect results when called in a loop		Query	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	44848	Ensure that empty author profiles have proper 404 behaviour		Query	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	48020	Queries display in inconsistent order when ordering by meta_value_num		Query	normal	defect (bug)	new	2019-09-11T17:00:10Z	2019-09-11T18:22:09Z	"So I caught this the other day. When ordering a query by 
{{{meta_value_num}}}, multiple posts sharing the same meta value display in a random order such that if you run two identical queries, the order of the posts could differ between the two.

Example use case. I have a custom {{{class}}} post type with a {{{date}}} post meta. Many classes share the same date. On the frontend, I am displaying 12 classes at a time, ordered by date, and when users select to load more I fetch more posts from the server with and query more classes with 
{{{'offset' => $classes_showing}}} and {{{'orderby' => 'meta_value_num'}}}. Classes belonging to the same show up in different orders from query to query, which occasionally results in multiple classes shown on the frontend.

Hopefully that was clear enough. Let me know if you need more code. Thanks."	truheart		
Defects Awaiting Review	44695	WP_Term_Query unexpected 'orderby' behaviour.		Query	normal	defect (bug)	new	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	4.9.7	needs-unit-tests
Defects Awaiting Review	47493	Meta Query Sorting with relation => OR not behaving as expected		Query	normal	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	4.8.2	
Defects Awaiting Review	40166	query_vars bug sets is_home to false.		Query	normal	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	4.7.3	
Defects Awaiting Review	47211	using amp in search show all post / pages with the &		Query	normal	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		
Defects Awaiting Review	47009	WP_Query bug with author=0		Query	normal	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		
Defects Awaiting Review	38062	SELECT DISTINCT ... ORDER BY ...		Query	normal	defect (bug)	new	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	4.6	has-patch
Defects Awaiting Review	28568	Can't get private posts/pages via WP_Query when not logged in as administrator		Query	normal	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	3.9	
Defects Awaiting Review	46347	WP_Term_Query where sql_clauses oddity		Query	normal	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		
Defects Awaiting Review	46285	Search colums of WP User Query vars is not updated after applying user_search_columns filter		Query	trivial	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	4.9.8	
Defects Awaiting Review	43634	WP_Query returns wrong result if 10+ search terms and all negative.		Query	normal	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		
Defects Awaiting Review	45894	is_home conditional tag returns incorrect value with home pagination		Query	normal	defect (bug)	new	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	5.0.2	has-patch
Defects Awaiting Review	39140	Taxonomies - operator AND doesn't work properly for taxonomy hierarchies		Query	normal	defect (bug)	new	2016-12-07T08:54:32Z	2019-01-08T19:56:52Z	"Hi,

This is a problem discovered using WooCommerce shortcodes but has its core problem in the WP core according to my findings. I've already implemented a fix for this in a customer project.

I’ve ran into problems using one of the Woo shortcodes and operator ‘AND’. This is questioned by others several times before (see links below) but it seems like the core of the problem is not solved. I’ve worked with the issue on WP 4.6.1 installation and come to what I believe is a solution (changes in file class-wp-tax-query.php).

Even if the issue is found using Woo product categories I believe this is an issue for taxonomies in general.

Problem:
Using shortcode to retrieve a filtered product list and filtering on two or more product categories using operator “AND” fails when using one or more non-leaf (i.e. parent) product categories. There even seemed to be additional problems when using more than two leaf keywords. In general the ""AND"" didn't behave as expected.

Other reports on the issue:
[https://wordpress.org/support/topic/operator-and-on-product_category/]
[https://wordpress.org/support/topic/woocommerce-display-products-from-two-categories-combined/]
[https://wordpress.org/support/topic/woocommerce-product_category-and-operator-returns-no-results/]


Examples using Woo shortcodes:

Taxonomies (product categories) for Product1: '''Leaf'''CatA, '''Leaf'''CatB

[product_category category=”'''Parent'''CatA, '''Leaf'''CatB” operator=”AND”] => '''Fails''' - shows nothing. Should show Product1

[product_category category=”'''Leaf'''CatA, '''Leaf'''CatB” operator=”AND”] => '''Ok''' - shows Product1


Reason:
There is no individual and complete hierarchial evaluation of each taxonomy/category keyword specified in the shortcode.

Solution that worked for me:
The issue is found in the WP-core file class-wp-tax-query.php. I’ve modified three functions to correct the issue. This includes changes to the SQL-statements generated. 

Changes to file class-wp-tax-query.php:
class WP_Tax_Query
- function get_sql_for_clause – code
- function clean_query – input params and code
- function transform_query – input params and code

You find my modified and running code/functions with my comments here (tagged with // BF): [https://gist.github.com/Nettsidespesialisten/5d4596e18dced3c7d97501f195ffe02e]

This is my first ticket here so please notify me how to contribute the best way with this issue (providing code into SVN or other).


Kind regards

Brede



"	bredefladen	4.6.1	needs-patch
Defects Awaiting Review	45666	"adding ""order"" as query arg to the homepage url you are redirected to the last posts page"		Query	normal	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		
Defects Awaiting Review	45376	Search not working as described in codex		Query	normal	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		
Defects Awaiting Review	45400	last of query_vars contains anchor		Query	normal	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	4.9.8	
Defects Awaiting Review	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	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		
Defects Awaiting Review	44372	WP_Query cannot properly order by nested Parent/Child relationships		Query	minor	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	4.9.6	
Defects Awaiting Review	43391	WP_User_Query bug		Query	normal	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	4.9.4	
Defects Awaiting Review	40397	PHP 7.1.x problem in WP_Query		Query	normal	defect (bug)	new	2017-04-08T23:08:20Z	2018-01-11T03:59:56Z	"I believe I have found another instance of the defect reported in Trac #37772. This was reported in my plugin's support forum:

https://wordpress.org/support/topic/warning-parameter-2-to-mlaquery

The first post there includes the PHP message:

Warning: Parameter 2 to MLAQuery::mla_query_posts_search_filter() expected to be a reference, value given in /home/prodport/staging/1/wp-includes/class-wp-hook.php on line 298

A later post from @adrianb includes a call trace showing the call to `apply_filters()` from line 1995 in WP_Query."	dglingren	4.7.3	
Defects Awaiting Review	42732	Problem with usage of WP_Term_Query inside WP_Tax_Query		Query	normal	defect (bug)	new	2017-11-28T15:15:21Z	2017-11-28T15:15:21Z	"This problem started on WP 4.9 because of #37038.

In WPML plugin, we filter the tax queries in order to convert the term IDs to their translations in the current language (if any).

In WP 4.8.3, `WP_Tax_Query::transform_query` was making direct calls to the DB.

In WP 4.9, `WP_Tax_Query::transform_query` is using `WP_Term_Query` to fetch the terms of the meta query.

The problem is that we have filters on `WP_Term_Query` (on `get_terms_args`) which applies to this.

This is usually not a problem, except for a post query with tax queries and `suppress_filters` set to `true`.

Here's an example:

{{{
$args = array(
    'post_type' => 'post',
    'suppress_filters' => true,
    'tax_query' => array(
        array(
            'taxonomy' => 'category',
            'field'    => 'term_id',
            'terms'    => [ 3, 4 ] // 3 is the English category and 4 is the translation in French
        ),
    )
);

$wp_query = new WP_Query( $args );
}}}

'''What is expected (and actual behavior in 4.8.3):''' This query should return all the posts attached to the category 3 or 4, whatever the current language.

'''What we have now:''' The query returns the posts attached to 3 OR the posts attached to 4 (depending on the current language).

So we need a way to flag that `WP_Term_Query` is used inside `WP_Query` (via `WP_Tax_Query`) and `suppress_filters` is set to `true`."	strategio	4.9	
Defects Awaiting Review	41546	WP Query order by meta_clause not working correctly for decimal values		Query	normal	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	4.2	
Defects Awaiting Review	41224	"WP strips query vars if post contains ""wp-admin"""		Query	normal	defect (bug)	new	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	4.9	has-patch
Defects Awaiting Review	40984	Possible Bug with Named Orderby Meta Query SQL		Query	normal	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	4.8	
Defects Awaiting Review	40630	"Advanced meta compare ""like"" in WP_Query"		Query	normal	defect (bug)	new	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	4.7.4	has-patch
Defects Awaiting Review	40387	WP_Query bug with product post type with search parameter on		Query	normal	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	4.7.3	
Defects Awaiting Review	40327	Wrong SQL request for 'EXIST' OR 'NOT EXIST' on same post meta		Query	normal	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	4.7	
Defects Awaiting Review	40300	`title` parameter causes `WP_Query` to return sticky posts.		Query	normal	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	4.7.3	
Defects Awaiting Review	39914	'orderby' date results differs depend on 'post_status'		Query	normal	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	4.7.2	
Enhancements Awaiting Review	63614	pre_get_lastpostdate filter		Query	minor	enhancement	new	2025-06-23T03:13:16Z	2026-11-04T08:14:18Z	"This was suggested long ago in #40789, but the original reason for that ticket was to modify a post type, so it was closed because a different solution had resolved the problem.

However, this filter would also be useful for avoiding the massive performance problems of `get_lastpostdate()`. Regardless of which timezone argument you pass to `get_lastpostdate()`, it queries the unindexed `post_date_gmt` column of wp_posts, which requires a full scan of all published posts of the given post type. This could be tens of thousands of rows for large sites.

It would be better if `_get_last_post_time()` used the `post_date` column instead, but I understand that would be a breaking change (although, I think a trivial one). A `pre_get_lastpostdate` filter with a short-circuit, like the patch offered in #40789 would at least allow power users or a plugin to provide a more performant workaround.

There is a `get_lastpostdate` filter, but it runs after the expensive query so it does not help."	gddrt		has-patch
Enhancements Awaiting Review	58593	Slow list of posts in the admin panel (with a large wp_posts table)		Query	normal	enhancement	new	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	6.2.2	has-patch
Enhancements Awaiting Review	61008	Allow searching of extra post fields		Query	normal	enhancement	new	2024-04-15T07:24:36Z	2026-09-28T20:46:51Z	"#43867 / [55248] introduced the 'post_search_columns' filter and 'search_columns' parameter to select which fields are searched by WP_Query, but this is limited to the 3 fields it searches by default, `post_title, post_excerpt, post_content`.

If one wants to search an additional field, such as `post_name`, you are required to use the SQL filters instead.

It would be helpful for WP_Query to be expanded to cover additional fields, where viable.

Additionally; as it currently searches a post meta field, it might be possible to additionally add that.

See https://meta.trac.wordpress.org/changeset/13522 for an example of a SQL filter for this."	dd32		
Enhancements Awaiting Review	51811	Query inconsistency between WP_Query and WP_Term_Query		Query	normal	enhancement	new	2020-11-18T01:25:43Z	2026-09-23T06:49:09Z	"For the sake of standardization and simplicity would it be beneficial to use 's' for searches in WP_Term_Query rather than using 'search'?


{{{
$wpquery = new WP_Query( array( 's'=>'search term' ) );
}}}

{{{
$wptermquery = new WP_Term_Query( array( 'search'=>'search term' ) );
}}}


Not entirely sure why there's a differentiation between how a search term is used in the query args.  For the sake of standardization and a reduction in confused developers (like I was about 30 minutes ago) I think this is worth some consideration."	tonydjukic	4.6	has-patch
Enhancements Awaiting Review	57303	"wp_get_posts() for post_type=""any"" + post__in creates not optimized database query"		Query	normal	enhancement	new	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	6.2	has-patch
Enhancements Awaiting Review	58447	Posts with ‘Stick to the top of the blog’ should also stick to the top of the categories it belongs to		Query	normal	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		
Enhancements Awaiting Review	62953	Add post_ancestor as query var to WP_Query class	bbpaule	Query	normal	enhancement	assigned	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		has-patch
Enhancements Awaiting Review	63094	Allow ordering by meta_id in a meta query		Query	normal	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		
Enhancements Awaiting Review	63044	Add method to test whether currently viewing the site home page in WP_Query		Query	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	40434	Optimize SQL in Admin - In the Post/CPT List `wp-admin/edit.php` > the function get_posts()		Query	normal	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	4.7.3	needs-patch
Enhancements Awaiting Review	61632	Allow ordering of posts by `status`		Query	normal	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		
Enhancements Awaiting Review	40341	Make search possible in custom fields		Query	normal	enhancement	new	2017-04-02T17:36:06Z	2024-05-24T10:57:06Z	"Currently when performing a search query with `WP_Query` using `s` parameter, WordPress only searches in post_title, post_content and post_excerpt. I suggest to extend search to custom fields.

Say I added a ""my_description"" custom post field to my posts. I would like a regular search to return every post containing the searched word(s) in any of the fields post_title, post_content, post_excerpt or my_description.

Currently the supposed way of doing this is by using a `WP_Meta_Query`:

{{{
new WP_Query(array(
  's' => 'foo',
  'meta_query' => array(array(
    'key'     => 'my_description',
    'value'   => 'foo',
    'compare' => 'LIKE',
  )),
))
}}}

The problem is that the meta query and the search WHERE clauses are going to be joined by AND, not by OR. The resulting query is going to be something like that:

{{{
SELECT [...] WHERE 
(
  posts.post_title LIKE '%foo%' 
  OR posts.post_content LIKE '%foo%' 
  OR posts.post_excerpt LIKE '%foo%'
) AND (
  postmeta.meta_key = 'my_description' AND postmeta.meta_value LIKE '%foo%'
) AND [...]
}}}

But I'd need:

{{{
SELECT [...] WHERE 
(
  posts.post_title LIKE '%foo%' 
  OR posts.post_content LIKE '%foo%' 
  OR posts.post_excerpt LIKE '%foo%'
  OR (postmeta.meta_key = 'my_description' AND postmeta.meta_value LIKE '%foo%')
) AND [...]
}}}

which is impossible to achieve with a regular `WP_Meta_Query`. Actually it's pretty hard to do: it involves to hook into WHERE and JOIN clauses, and to rewrite almost the whole search mechanism.

That's why I suggest to implement into core a simple way of doing this:

{{{
new WP_Query(array(
  's' => 'foo',
  'meta_search' => array('my_description', 'my_other_field', 'etc')
))
}}}

This `meta_search` parameter would accept an array of meta_key strings and would just be ignored when not set.

Please have a look into my attached solution."	max345	4.8	
Enhancements Awaiting Review	61048	order sticky posts using the same order for posts		Query	major	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	6.5	
Enhancements Awaiting Review	60154	Add filter hook to either get_post_stati or WP_List_Util::filter		Query	normal	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	6.5	
Enhancements Awaiting Review	60490	Add 'author__in' option to WP_Query 'orderby' options		Query	normal	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		
Enhancements Awaiting Review	48193	Improve the WordPress loop		Query	normal	enhancement	new	2019-10-01T18:53:57Z	2024-01-20T15:01:13Z	"Currently, there are a number of ways that the ""loop"" can be handled in WordPress. Each depends on whether you are using the WP_Query global, a custom WP_Query instance, or an array of posts. 

I propose that we add a PHP 5.6+ compatible generator function called `wp_loop()` that will simplify all of these use cases into a single, more modern approach. See [https://wpscholar.com/blog/creating-better-wordpress-loop/]"	wpscholar		dev-feedback
Enhancements Awaiting Review	59351	Add support for querying by an exact date with WP_Date_Query		Query	normal	enhancement	new	2023-09-14T20:45:11Z	2023-09-15T23:08:04Z	"WP_Date_Query lacks the ability to query for posts with a specific date. Currently, to query for a post with a specific date string you would need to break it down to multiple arguments:

{{{#!php
<?php
$date = strtotime( '2023-08-13 20:12:50' );

$posts = new WP_Query( [
  'date_query' => [
    'year' => date( 'Y', $date ),
    'month' => date( 'm', $date ),  
    'day' => date( 'd', $date ),
    'hour' => date( 'H', $date ),
    'minute' => date( 'i', $date ),
    'second' => date( 's', $date ),
  ],
] );
}}}

There is no argument on WP_Date_Query that accepts a `strtotime()`-compatible string for an exact date match. One workaround is to use a combination of before/after to get a simplified query. 

Adding support for an exact match can be used when querying for posts from a specific date as well as including/excluding posts from a specific date for a complex query. Suggested syntax:

{{{
// Query for posts after January 1st, 2013 OR exactly on November 7th, 2010
[
  'date_query' => [
    'relation' => 'OR',
    [
      'after' => 'January 1st, 2013',
    ],
    [
      'exact' => 'November 7th, 2010',
    ],
  ],
]
}}}

Relates to #18694."	sean212		
Enhancements Awaiting Review	37463	Abstract Query Class		Query	normal	enhancement	new	2016-07-25T20:50:02Z	2023-04-20T13:32:38Z	All of the query classes WP_Comment_Query, WP_Network_Query, WP_Site_Query, WP_Term_Query and WP_User_Query are based on WP_Query class. For that reason they have a lot of similar methods and variables. As all the classes basically do the same thing, we can use an abstract class, so all related methods and variables are on the abstract class. If all query classes extend this abstract class, we can keep structure and consistency. It would also mean, for example, we could just add filters and actions in the abstract class and these would filter down.  	spacedmonkey		has-patch
Enhancements Awaiting Review	41678	Make sure all field returns use filters in WP Query		Query	normal	enhancement	new	2017-08-20T13:01:32Z	2023-04-20T13:19:18Z	Currently if fields is set to either `id` or `id=>parent`, it doesn't run through all the filters as these return early.	spacedmonkey	1.5	needs-unit-tests
Enhancements Awaiting Review	56105	Call update_post_parent_caches in the_post function in WP_Query class		Query	normal	enhancement	new	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		needs-unit-tests
Enhancements Awaiting Review	56168	Add a way easily perform advanced post fields queries		Query	trivial	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		
Enhancements Awaiting Review	55630	add array input to meta_query key		Query	normal	enhancement	new	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	5.9.3	has-patch
Enhancements Awaiting Review	53060	Data Deletion - comments		Query	normal	feature request	new	2021-04-19T16:44:31Z	2021-04-20T17:59:19Z	"**Data Deletion - comments**
Can we add a WP_Query parameter so that we can pull comments by author email or author user_id? 

**Why?**
For better user privacy, I am creating a profile page for users where they can see all the comments they have made and easily delete those comments -- but in a post loop so that they have the context of the comments that they have made. 

**Reference**
https://developer.wordpress.org/reference/classes/wp_query/#comment-parameters
It seems there is no WP_Query parameter for pulling posts by comment author. I think there should be for privacy. 

Of course, I can make it happen the other way round with a custom DB query to find all comments by author and then get the post_id and loop the ids in_array but maybe it should be easier and more standard as to encourage user privacy respect.

"	megphillips91		
Enhancements Awaiting Review	52167	WP_Query: always convert `any` post type values to public values.		Query	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	51155	Default Order and Order By for Post Types and Taxonomies		Query	normal	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		
Enhancements Awaiting Review	50154	About date and time request of version 5.4.1		Query	normal	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	5.4.1	
Enhancements Awaiting Review	49149	Write tests for WP_Query		Query	normal	enhancement	assigned	2020-01-07T22:01:10Z	2020-02-20T02:32:06Z	"WP_Query is one of the most critical classes in WordPress. It holds a lot of features and complicated rules to generate the SQL queries to fetch posts from the databases.

Working on bug fixes and new features for it is very tricky because one is always afraid that any change to it could silently break things and tear the world apart.

One way to make us feel more secure when working with this class is to have better test coverage for it. Looking at the tests we currently have I found very few tests for this class.

I've created this ticket to organize and receive patches to add tests to this class. 

Below I organized the WP_Query parameters we should, at first, create tests for. Once we have tests for them individually, we can think of a way to write tests that combine different parameters.

{{{
* Author params
 * author
 * author_name
 * author__in
 * author__not_in

* Category params
 * cat
 * category_name
 * category__and
 * category__in
 * category__not_in

* Tag params
 * tag
 * tag_id
 * tag__and
 * tag__in
 * tag__not_in
 * tag_slug__and
 * tag_slug__in

* Tax_query

* Meta_query

* date_query

* post_mime_type

* fields

* name

* page_id

* pagename

* post_parent

* post_parent__in

* post_parent__not_in

* post__in

* post__not_in

* post_name__in

* has_password

* post_password

* post_type

* post_status

* comment_count

* nopaging

* posts_per_page

* offset

* paged

* ignore_sticky_posts

* order and orderby paramaters
}}}

PS - what motivated me to open this ticket (and start working on these tests) was #48556 and #44737"	leogermani		needs-unit-tests
Enhancements Awaiting Review	49429	There seems to be no way to check query value for NULL		Query	normal	enhancement	new	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	5.3.2	dev-feedback
Enhancements Awaiting Review	49296	Split up WP_Query into more manageable classes		Query	normal	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	5.3.2	
Enhancements Awaiting Review	49057	Add tag for any WP_Query for simple access in pre_get_post action		Query	normal	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		
Enhancements Awaiting Review	47694	Adding a filter for $searchand variable		Query	normal	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		
Enhancements Awaiting Review	41843	Provide more flexibility to the `get_{$adjacent}_post_where` hook		Query	normal	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	4.9	
Enhancements Awaiting Review	42907	Meta Queries: support ordering by meta_value but still including items without that key		Query	normal	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		
Enhancements Awaiting Review	43324	query_vars is not necessarely representative of the final query_vars used to build the SQL query		Query	normal	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		
Enhancements Awaiting Review	44602	meta_query to support FIND_IN_SET		Query	normal	enhancement	new	2018-07-18T17:22:08Z	2018-07-18T17:29:14Z	I got `FIND_IN_SET` working in meta_query. 	donjajo		has-patch
Enhancements Awaiting Review	39708	Provide suppress_actions argument on WP_Query::get_posts or apply suppress_filters to pre_get_posts		Query	normal	enhancement	new	2017-01-26T18:03:33Z	2018-07-03T16:12:19Z	"{{{#!php
<?php
	public function get_posts() {
		global $wpdb;

		$this->parse_query();

		/**
		 * Fires after the query variable object is created, but before the actual query is run.
		 *
		 * Note: If using conditional tags, use the method versions within the passed instance
		 * (e.g. $this->is_main_query() instead of is_main_query()). This is because the functions
		 * like is_main_query() test against the global $wp_query instance, not the passed one.
		 *
		 * @since 2.0.0
		 *
		 * @param WP_Query &$this The WP_Query instance (passed by reference).
		 */
		do_action_ref_array( 'pre_get_posts', array( &$this ) );

		// Shorthand.
		$q = &$this->query_vars;
}}}

I'm proposing that, just like we have `$q['suppress_filters']` that we add a `$q['suppress_actions']` to prevent actions like `pre_get_posts` from running (which is essentially a filter) on my query (if I want). 

We could also apply `$q['suppress_filters']` to the `pre_get_posts` action since the user can modify the query since it's passed by reference, and may not create another argument, but it is not really a filter.

I'm not sure how this idea could be problematic, nor can I think of any reason why we couldn't do anything like this, but I thought I'd at least open it up for discussion and see what becomes of it. I guess my question really is why can I suppress filters but not actions?"	aubreypwd	4.7.1	
Enhancements Awaiting Review	39120	Add get/set methods to remaining main query classes (comments and terms)		Query	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	42082	Support compare custom fields in WP_Meta_Query		Query	normal	enhancement	new	2017-10-04T01:30:51Z	2018-02-28T13:32:39Z	"The syntax of `WP_Meta_Query` currently is limited to values you already know.

It's not possible to compare between two meta_values:

{{{
SELECT posts WHERE meta_value_one > meta_value_two
}}}

I propose allow compare two meta_fields. For example, the pseudocode above would be represented as a meta_query argument that looks like this:

{{{#!php
<?php
array(
    'key'       => 'meta_value_one',
    'value'     => 'meta_value_two',
    'compare'   => '>',
    'type'      => 'META_VALUE'
),
}}}

A workaround can be found [https://wordpress.stackexchange.com/a/164041 here] and [https://gist.github.com/mariovalney/e8646d8c64db36e9f239e6d05f2e5923 here] hahaha.

Feedback is welcome."	mariovalney	4.9.4	needs-patch
Enhancements Awaiting Review	43356	create is_403 function		Query	normal	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	4.9.3	
Enhancements Awaiting Review	41797	max_num_pages for WP_User_Query		Query	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	39632	Adding Query identifier attribute		Query	normal	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		
Enhancements Awaiting Review	37837	Extend WP_Query author parameters to filter by role		Query	normal	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	4.7	
Reporter Feedback / Close	42164	Conditional Tags not working when using ugly URL		Query	normal	defect (bug)	new	2017-10-10T10:23:14Z	2026-10-25T05:20:22Z	"When accessing a category archive via its pretty URL e.g. 
{{{
example.com/category/whatever
}}}
the conditional tag
{{{
is_category()
}}}
returns '''true'''.

Accessing the same category archive via its ugly URL
{{{
example.com?cat=whatever
}}}
the conditional tag
{{{
is_category()
}}}
returns '''false'''.

I'm pretty sure this concerns other conditional tags too. This is not only a cosmetic flaw because it causes WP to use the wrong template. I've tested it with Twenty Seventeen and the homepage template was used in case of using an ugly URL.

Due tue the ugly URL always work independently of permalink settings this is a bug in my opinion."	petersplugins	4.8.2	reporter-feedback
Reporter Feedback / Close	40660	the_post_navigation not excluding terms - wp 4.7.4		Query	normal	defect (bug)	new	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	4.7.4	close
Reporter Feedback / Close	44349	Posts show up multiple times in backend when they have the exact same date		Query	normal	defect (bug)	new	2018-06-11T15:46:38Z	2026-10-05T10:20:13Z	When I import for example 200 posts with the Import WordPress tool and then go to wp-admin>posts, the posts show up in the query multiple times (for instance on page 1 and page 2). Seems like others are left out.	wzshop	4.9.6	dev-feedback
Reporter Feedback / Close	43842	get_children() function enhancement.		Query	normal	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	55287	Allow for DISTINCT in WP_Query method		Query	normal	feature request	new	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		reporter-feedback
Reporter Feedback / Close	48047	Querying (non-CPT) posts from more than one (native) category only returning posts from first category		Query	normal	defect (bug)	new	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	5.2.3	close
Reporter Feedback / Close	63619	Cached WP_Term_Query result attempts object conversion to int		Query	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	62484	Multiple selection of post type in Query loop block		Query	normal	enhancement	new	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		close
Reporter Feedback / Close	63315	Docs: Improve the `prepare()` function inline docs		Query	normal	defect (bug)	new	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		close
Reporter Feedback / Close	58234	sanitize_title_with_dashes fatal error when query var value is an array in php 8		Query	normal	defect (bug)	new	2023-05-02T13:38:13Z	2025-01-31T16:24:06Z	"Using latest WordPress development version 6.3-alpha-55505-src, when submitting a form with field values that are array, and the array key is one of WordPress query vars, that causing sanitize error for 'post_name' parameter in get_posts function.

Example to replicate:
- make sure to register custom post type E.g custom_post_type.
- submit the following form on your test WordPress website.
{{{
<form method=""post"" action="""">
<input type=""text"" name=""custom_post_type['post_title']"" value=""This is a test post"">
<input type=""submit"" value=""Send"">
</form>
}}}
"	mouhdev		needs-unit-tests
Reporter Feedback / Close	61763	"get_posts($args) returns ""auto-drafts"" even when ""post_status=>publish"""		Query	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	52732	'get_posts' has been waiting for so long to have a hook		Query	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	59235	AJAX request returns critical error in class-wp-date-query.php		Query	normal	defect (bug)	new	2023-08-29T08:35:27Z	2023-10-30T21:34:07Z	"This is due to the mktime gets the $year variable as string and not int. 

This is the error code given: 
{{{
PHP Fatal error:  Uncaught TypeError: mktime(): Argument #6 ($year) must be of type ?int, string given in /wp-includes/class-wp-date-query.php:320
}}}

The code is:
{{{#!php
<?php
		// Days per year.
		if ( array_key_exists( 'year', $date_query ) ) {
			/*
			 * If a year exists in the date query, we can use it to get the days.
			 * If multiple years are provided (as in a BETWEEN), use the first one.
			 */
			if ( is_array( $date_query['year'] ) ) {
				$_year = reset( $date_query['year'] );
			} else {
				$_year = $date_query['year'];
			}

			$max_days_of_year = gmdate( 'z', mktime( 0, 0, 0, 12, 31, $_year ) ) + 1;
		} else {
			// Otherwise we use the max of 366 (leap-year).
			$max_days_of_year = 366;
		}
}}}

To fix this one can be sure to use intval:
{{{#!php
<?php
		// Days per year.
		if ( array_key_exists( 'year', $date_query ) ) {
			/*
			 * If a year exists in the date query, we can use it to get the days.
			 * If multiple years are provided (as in a BETWEEN), use the first one.
			 */
			if ( is_array( $date_query['year'] ) ) {
				$_year = intval(reset( $date_query['year'] ));
			} else {
				$_year = intval($date_query['year']);
			}

			$max_days_of_year = gmdate( 'z', mktime( 0, 0, 0, 12, 31, $_year ) ) + 1;
		} else {
			// Otherwise we use the max of 366 (leap-year).
			$max_days_of_year = 366;
		}
}}}


"	reklwera	4.1	reporter-feedback
Reporter Feedback / Close	58600	wp_query Enhancement		Query	normal	feature request	new	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	6.2	close
Reporter Feedback / Close	58515	Need to use $wpdb->prepare instead of sprintf		Query	normal	defect (bug)	new	2023-06-12T13:04:00Z	2023-06-22T07:25:46Z	"Need to use $wpdb->prepare instead of sprintf in ""_prime_comment_caches"" functions.

File: wp-includes/comment.php"	hiren1094		dev-feedback
Reporter Feedback / Close	57083	wp_list_authors and WP Search Users		Query	normal	defect (bug)	new	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	6.1	reporter-feedback
Reporter Feedback / Close	48524	Notice: Undefined variable: matches		Query	minor	defect (bug)	new	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	3.3	reporter-feedback
Reporter Feedback / Close	45394	get_posts fails to return results when accessing admin with a custom user role		Query	normal	defect (bug)	new	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	4.9.8	reporter-feedback
Reporter Feedback / Close	44903	Multisite - Archive Main Query Duplicate Paged Posts		Query	normal	defect (bug)	new	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	4.9.8	reporter-feedback
Reporter Feedback / Close	42256	Skip SQL_CALC_FOUND_ROWS when using post__in whose count matches posts_per_page		Query	normal	defect (bug)	new	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		reporter-feedback
Defects Awaiting Review	53195	Add $post or $post_id to the quick_edit_custom_box hook		Quick/Bulk Edit	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	54720	WP_List_Table Inside Metabox With Bulk Actions Not Working on Submit		Quick/Bulk Edit	normal	defect (bug)	new	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	5.8.2	dev-feedback
Defects Awaiting Review	62229	"post_status dropdown in Quick Edit incorrect if the admin user's timezone is ""behind"" the site's timezone"		Quick/Bulk Edit	normal	defect (bug)	new	2024-10-15T16:28:34Z	2025-09-02T20:47:50Z	"[55560] introduced a bug of its own.

Steps to reproduce:

1. set the site's **Timezone** to something East of admin user's timezone (e.g., admin user's timezone is ''America/Denver'' and the site's new Timezone is ''America/New York'').
2. create a post and publish it
3. Quick Edit the newly published post and see that the options in the **Status** dropdown are ""Scheduled"", ""Pending Review"", and ""Draft""...with ""Scheduled"" selected.

Expected result: the options should be ""Published"", ""Pending Review"", and ""Draft""...with ""Published"" selected.
"	pbiron	6.3	has-patch
Defects Awaiting Review	63453	Inconsistent confirmation for deleting taxonomy term (Single vs Bulk Action)		Quick/Bulk Edit	normal	defect (bug)	new	2025-05-16T08:11:46Z	2025-07-11T08:41:47Z	"There is an inconsistency in the behavior of taxonomy term deletion in the WordPress admin.

When deleting a single taxonomy term (e.g., a category) from the Posts > Categories screen, WordPress displays a JavaScript confirmation prompt. However, when deleting multiple categories via the Bulk Actions dropdown, no confirmation is shown, the categories are deleted immediately.

This inconsistent behavior can lead to accidental, permanent deletion of terms. The confirmation behavior should be consistent across both single and bulk deletion actions.

=== Steps to Reproduce

1. Navigate to Posts > Categories in the WordPress admin.

2. Add a few categories.

3. Click the Delete link for an individual category.
- ✅ A confirmation dialog appears.

4. Now, select multiple categories using checkboxes.

5. Choose Delete from the Bulk actions dropdown and click Apply.
- ❌ Categories are deleted immediately, with no confirmation.

=== Expected Behavior ===
When performing a bulk delete, WordPress should prompt a confirmation dialog, just like it does for single deletion.

=== Actual Behavior ===
Bulk deletion deletes the selected categories immediately, without any prompt."	pmbaldha		dev-feedback
Defects Awaiting Review	60945	"""Quick Edit"" in Posts and Pages doesn't work in 6.5"		Quick/Bulk Edit	normal	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	6.5	
Defects Awaiting Review	61409	JQMIGRATE warnings for bulk edit		Quick/Bulk Edit	normal	defect (bug)	new	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	6.5.4	has-patch
Defects Awaiting Review	60329	Quick Edit tags-input drop-down selection box hangs exactly over the Published/Draft/Queud selection-box		Quick/Bulk Edit	normal	defect (bug)	new	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	6.4.2	has-patch
Defects Awaiting Review	59971	Publishing a post in QuickEdit forces Date to NOW		Quick/Bulk Edit	normal	defect (bug)	new	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	6.4	dev-feedback
Defects Awaiting Review	52501	Bad date format in data picker, depends on time format settings		Quick/Bulk Edit	normal	defect (bug)	reopened	2021-02-11T21:52:54Z	2023-03-15T13:21:29Z	"Datepicker in publish area, and in quick edit, depends on time format.

In europe is usual format dd.mm.yyyy, it works with setting of time format is setted to 'g:i A'.
After change to 24 hour format ('G:i'/'H:i') is datepicker setted to mm-dd-yyyy 
https://test.olsavsky.cz/dp.jpg ('Únor' is 'February' in CS).

Thank You"	MarekTP	5.6.1	needs-patch
Defects Awaiting Review	57753	Quickedit characters on date fields		Quick/Bulk Edit	trivial	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	6.1.1	
Defects Awaiting Review	29821	bulk_edit_custom_box hook causes tags to display within created fieldset		Quick/Bulk Edit	normal	defect (bug)	new	2014-10-01T23:04:40Z	2023-02-07T18:53:00Z	"I have a custom post type that I am trying to add some fields to for bulk editing. My fieldset displays, but the tags field somehow is getting inserted into the fieldset being generated. It's extremely strange.

Bulk Edit panel without my fieldset:
[[Image(https://www.dropbox.com/s/fg3tcowz25rdqu1/Screenshot%202014-10-01%2018.53.56.png?dl=1)]]

Bulk Edit panel with my fieldset:
[[Image(https://www.dropbox.com/s/mlb4zr6mbvkbnmq/Screenshot%202014-10-01%2018.54.38.png?dl=1)]]

My code to generate the bulk edit custom box:

{{{
	/**
	 * Display the custom bulk edit box
	 *
	 * @since 3.0
	 * @access public
	 * @action bulk_edit_custom_box
	 */
	public function bulk_edit_custom_box( $column_name, $post_type ) {
		if ( $post_type != MP_Product::get_post_type() || $column_name != 'product_price' ) {
			return;
		}
		?>
<fieldset id=""bulk-edit-col-product-price"" class=""inline-edit-col-left"" style=""clear:left"">
	<div class=""inline-edit-col clearfix"">
		<label class=""alignleft""><span class=""title""><?php _e('Price', 'mp'); ?></span><span class=""input-text-wrap""><input type=""text"" name=""product_price"" style=""width:100px"" /></span></label>
		<label class=""alignleft"" style=""margin-left:15px""><span class=""title""><?php _e('Sale Price', 'mp'); ?></span><span class=""input-text-wrap""><input type=""text"" name=""product_sale_price"" style=""width:100px"" /></span></label>
		<input type=""hidden"" name=""bulk_edit_product_nonce"" value=""<?php echo wp_create_nonce('bulk_edit_product'); ?>"" />		
	</div>
</fieldset>
		<?php
	}
}}}

This is the code that is being generated in my debugger:

{{{
<fieldset id=""bulk-edit-col-product-price"" class=""inline-edit-col-left"" style=""clear:left""><label class=""inline-edit-tags"">
				<span class=""title"">Product Tags</span>
				<textarea cols=""22"" rows=""1"" name=""tax_input[product_tag]"" class=""tax_input_product_tag""></textarea>
			</label>
	<div class=""inline-edit-col clearfix"">
		<label class=""alignleft""><span class=""title"">Price</span><span class=""input-text-wrap""><input name=""product_price"" style=""width:100px"" type=""text""></span></label>
		<label class=""alignleft"" style=""margin-left:15px""><span class=""title"">Sale Price</span><span class=""input-text-wrap""><input name=""product_sale_price"" style=""width:100px"" type=""text""></span></label>
		<input name=""bulk_edit_product_nonce"" value=""5e55f56276"" type=""hidden"">		
	</div>
</fieldset>
}}}

Notice how the tags field is being inserted into my fieldset. It seems as thought the tags field is being inserted via javascript into whatever the last fieldset in the panel is.

Here's the same fields in the quick edit panel:
[[Image(https://www.dropbox.com/s/haju5pkzu4f80ih/Screenshot%202014-10-01%2019.02.36.png?dl=1)]]

This is how it ''should'' show up."	webgeekconsulting	4.0	needs-patch
Enhancements Awaiting Review	54378	Admin Pages - The dropdown of 'Main Page (no parent)' on QuickEdit query is slow		Quick/Bulk Edit	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	59374	"Bulk Edit does not let me remove ""Uncategorized"" for categorized posts"		Quick/Bulk Edit	normal	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	6.3.1	
Enhancements Awaiting Review	63198	Post Quick Edit section Date and Author Stylings	audrasjb	Quick/Bulk Edit	normal	enhancement	reviewing	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		has-patch
Enhancements Awaiting Review	56137	Excerpt in Quick Edit		Quick/Bulk Edit	normal	enhancement	new	2022-07-05T00:32:54Z	2024-06-04T23:28:58Z	"Pretty simple request and hoping to see it in a future version of WordPress:
the ability to edit the excerpt in the Quick Edit screen on the Posts page.
Seems everything else, including Tags, can be edited there, so why not the Excerpt?
Thanks!"	saladgoat		dev-feedback
Enhancements Awaiting Review	60898	'Change Author' as a bulk action in media library		Quick/Bulk Edit	normal	feature request	new	2024-04-03T08:33:27Z	2024-06-04T21:02:28Z	"I am missing the function to (bulk) change the author(s) of media files.

We can do so one by one, but that's not an admin friendly solution.
I'd love to see a bulk action for this :)"	pixelverbieger		
Reporter Feedback / Close	39946	Private posts can be sticky when bulk editing them from wp-admin/edit.php		Quick/Bulk Edit	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	48496	Filters post_row_actions and page_row_actions not apply at AJAX inline-save action		Quick/Bulk Edit	normal	defect (bug)	new	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	5.2.4	reporter-feedback
Defects Awaiting Review, reported against no version	41358	Shutdown hooks can significantly slow down REST API responses		REST API	normal	defect (bug)	new	2017-07-18T16:36:56Z	2026-01-07T23:13:30Z	"If you have a site with some slow, maybe deferred actions hooked into `shutdown`, these actions will slow the response from the REST API unnecessarily.

To test, simply add the following then do a request to the WP Rest API:

{{{#!php
<?php
add_action( 'shutdown', 'delay_shutdown' );

function delay_shutdown() { sleep( 3); }
}}}

The response will not be sent out until all of these shutdown hooks are completed. In our case, we found that some heavy sync functions ran on shutdown would cause our API calls to WooCommerce API timed out, when really the response could have been sent much earlier so these calls could run afterwards. 

This is semi-related to https://core.trac.wordpress.org/ticket/27122 in that the fix could be along those lines.

This isn't a solution we feel should be merged into WooCommerce itself because it would be more consistent to have it in WP itself, but see https://github.com/woocommerce/woocommerce/pull/16158/files

So on shutdown, it ends any sessions, uses `fastcgi_finish_request` if available, and falls back to flushing. The response is sent and received, and shutdown continues on in the background. The response is sent before the `sleep(3`) in this test case.

This could be applied to just REST API requests, or everywhere, depending on everyones feedback. If REST API only, it may make sense to fire an action after the response is sent to avoid `shutdown` hook altogether.


"	mikejolley		dev-feedback
Defects Awaiting Review, reported against latest stable branch	66652	Lack of type checking in posts API can trigger fatal error		REST API	normal	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	7.1.4	
Defects Awaiting Review	61842	Uncaught TypeError in /wp-json/wp/v2/menu-items REST API POST operation		REST API	normal	defect (bug)	new	2024-08-08T10:00:13Z	2026-11-10T16:21:08Z	"Upon creating a fresh instance of WordPress and setting up the REST API a malformed post request REST API endpoint /wp-json/wp/v2/menu-items results in an exception in the endpoint. 

Arises from an array being given in request when a string is expected. Would expect a 400 Bad Request for any unexpected types.


=== Command to reproduce 
  curl -X  POST ""http://[WORDPRESSDOMAIN]/wp-json/wp/v2/menu-items"" -d '{""title"":""fuzzstring"",""type"":""fuzzstring"",""status"":""fuzzstring"",""parent"":0,""attr_title"":""fuzzstring"",""classes"":[""fuzzstring""],""description"":""fuzzstring"",""menu_order"":0,""object"":""fuzzstring"",""object_id"":0,""target"":""fuzzstring"",""url"":{ ""fuzz"" : false },""xfn"":[""fuzzstring""],""menus"":0}' -H 'Content-Type: application/json'



=== Stacktrace
{{{
<b>Fatal error</b>:  Uncaught TypeError: ltrim(): Argument #1 ($string) must be of type string, array given in /var/www/html/wp-includes/formatting.php:4415
Stack trace:
#0 /var/www/html/wp-includes/formatting.php(4415): ltrim(Array)
#1 /var/www/html/wp-includes/formatting.php(4540): esc_url(Array, NULL, 'db')
#2 /var/www/html/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php(856): sanitize_url(Array)
#3 /var/www/html/wp-includes/rest-api/class-wp-rest-request.php(911): WP_REST_Menu_Items_Controller::{closure}(Array, Object(WP_REST_Request), 'url')
#4 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1018): WP_REST_Request-&gt;has_valid_params()
#5 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(443): WP_REST_Server-&gt;dispatch(Object(WP_REST_Request))
#6 /var/www/html/wp-includes/rest-api.php(410): WP_REST_Server-&gt;serve_request('/wp/v2/menu-ite...')
#7 /var/www/html/wp-includes/class-wp-hook.php(308): rest_api_loaded(Object(WP))
#8 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook-&gt;apply_filters('', Array)
#9 /var/www/html/wp-includes/plugin.php(565): WP_Hook-&gt;do_action(Array)
#10 /var/www/html/wp-includes/class-wp.php(399): do_action_ref_array('parse_request', Array)
#11 /var/www/html/wp-includes/class-wp.php(780): WP-&gt;parse_request('')
#12 /var/www/html/wp-includes/functions.php(1334): WP-&gt;main('')
#13 /var/www/html/wp-blog-header.php(16): wp()
#14 /var/www/html/index.php(17): require('/var/www/html/w...')
#15 {main}
  thrown in <b>/var/www/html/wp-includes/formatting.php</b> on line <b>4415</b><br />
}}}"	mlf20	6.2.2	has-patch
Defects Awaiting Review	66531	REST API: Attachment source_url values are not URL-encoded, unlike the media modal		REST API	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65251	Response from media library API query includes an empty array rather than an empty object		REST API	normal	defect (bug)	new	2026-05-15T14:29:06Z	2026-10-30T22:12:53Z	"In the response to a media library query over the REST API, I am seeing that $wpimage->media_details->sizes is an empty array when there are no sizes, rather than an empty object (as a non-empty instance is an object). This discrepancy is inconsistent and breaks my recipient code. It's characteristic of json_encode being used on a keyed PHP array, when it can't tell the difference between keys and numeric indexes when empty.

I asked claude.ai to locate the bug to make it easy for you to fix. It agreed with my diagnosis and said:

File: wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

Method: prepare_item_for_response()

The bug: when wp_get_attachment_metadata() returns metadata with an empty sizes array (image too small for sub-sizes), the method populates `$data['media_details']` from that metadata but never explicitly sets `$data['media_details']['sizes']` to new stdClass. The `else { $data['media_details']['sizes'] = new stdClass; }` branch is only reached when $metadata itself is empty/falsy. The result is that sizes is either absent or an empty PHP array `[]` in the JSON output, rather than `{}`.

Prior art: reference Trac #51393, which addressed a related inconsistency but didn't fix this code path.

Your fix suggestion: initialise `$data['media_details']['sizes']` to `new stdClass` (or cast with (object)) before the loop that populates it, so the empty case is covered unconditionally.
"	frankieandshadow	6.9.4	
Defects Awaiting Review	66409	REST API: Raw-body media upload leaves its temporary file behind when the multisite size check fails		REST API	normal	defect (bug)	new	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	4.9.8	has-patch
Defects Awaiting Review	66374	Media endpoint returns 500 when an upload is rejected for a client reason		REST API	normal	defect (bug)	new	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	4.7	has-patch
Defects Awaiting Review	61444	REST API: If Super Admin does not exist in subsite, retrieving users is rejected		REST API	normal	defect (bug)	new	2024-06-14T13:05:05Z	2026-10-28T11:09:44Z	"I submitted this ticket based on this issue in Gutenberg: https://github.com/WordPress/gutenberg/issues/62574

The block editor retrieves the list of users via the REST API and generates the author dropdown. The author of the post (`postAuthor`) is also respected and included in the list. Here is the code.

https://github.com/WordPress/gutenberg/blob/2917269cf70405990ab4b1cd3f961a714dc5f5f6/packages/editor/src/components/post-author/hook.js#L28-L30

However, if the super admin does not exist as a user in the subsite, the REST API request will return `undefined`, and so any posts created by the super admin in the subsite will have an empty author field.

When I investigated why the REST API was not returning the user data, I found that the request was being rejected at this point.

https://github.com/WordPress/wordpress-develop/blob/8f273362c85678da666ce9f19e958d87f1c3eeea/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php#L425-L427

I'm thinking of adding an exception for super admins only, like this:

{{{
if ( is_multisite() && ! is_user_member_of_blog( $user->ID ) && ! is_super_admin( $user->ID ) ) {
	return $error;
}
}}}

I would be grateful if you could advise whether this approach would cause any unintended problems and whether it even makes sense."	wildworks		has-patch
Defects Awaiting Review	66230	REST API: rest_filter_response_fields() fatals on PHP 8 when response data is stdClass (e.g. /wp/v2/taxonomies?type=…&_fields=…)		REST API	normal	defect (bug)	new	2026-10-02T12:50:05Z	2026-10-26T16:32:48Z	"On PHP 8+, requesting a taxonomy collection with _fields can fatal instead of returning a trimmed JSON response.

rest_filter_response_fields() passes response data into _rest_array_intersect_key_recursive(), which calls array_intersect_key() without ensuring the value is an array. When WP_REST_Response::get_data() is a stdClass (seen with /wp/v2/taxonomies?type={post_type}&_fields=…), PHP throws:

TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, stdClass given
in wp-includes/rest-api.php (_rest_array_intersect_key_recursive)
Related: for slug-keyed collections such as /wp/v2/taxonomies and /wp/v2/types, _fields intersects top-level keys (taxonomy/type slugs) with field names (name, slug, …), so a successful response is often an empty array [] even when taxonomies exist. Filtering should be applied per item in the collection.

== Steps to reproduce
Site on PHP 8.0+ with at least one public custom post type that has a REST-visible taxonomy (e.g. CPT UI testimonial + testimonial_category), or any setup that yields object-shaped taxonomy collection data for a type filter.
While logged in (or with sufficient caps), open or request:
GET /wp-json/wp/v2/taxonomies?type=testimonial&_fields=name,slug,rest_base,hierarchical,types
(Substitute any post type slug that has associated taxonomies.)

Observe HTTP 500 and the TypeError above in the error log.
Also compare:

`GET /wp-json/wp/v2/taxonomies`
`GET /wp-json/wp/v2/taxonomies?_fields=name,slug,types,rest_base`

The second often returns [] even though the first returns a non-empty object keyed by taxonomy slug.

== Expected behavior
No fatal.
_fields returns a trimmed representation of each taxonomy in the collection.
Non-array response data is coerced to an array (or skipped) before array_intersect_key().
Actual behavior
Uncaught TypeError in _rest_array_intersect_key_recursive() when data is stdClass.

== Environment
WordPress 6.x / 7.x (reproduced with current rest_filter_response_fields / _rest_array_intersect_key_recursive)
PHP 8.x (strict types on array_intersect_key())
Triggered from the block editor / CPT UI (User-Agent: node) hitting the taxonomies endpoint after editing a CPT
Code pointer
wp-includes/rest-api.php:

rest_filter_response_fields()
_rest_array_intersect_key_recursive() — assumes $array1 is always an array
rest_api_default_filters() re-registers rest_filter_response_fields on rest_api_init.

== Suggested fix
Guard/coerce in _rest_array_intersect_key_recursive() / rest_filter_response_fields():

{{{#!php
<?php
if ( is_object( $data ) ) {
    $data = get_object_vars( $data ); // or recursive array cast
}
if ( ! is_array( $data ) ) {
    return $response;
}
}}}

For non-numeric collections whose values are arrays/objects and whose keys are not in the _fields list, apply _rest_array_intersect_key_recursive() to each item (same idea as the wp_is_numeric_array() branch).
"	eeeeeeeeeeeee		has-patch
Defects Awaiting Review	66377	REST API: Sending null for an unset meta key fails with rest_invalid_stored_value	maxdevagency	REST API	normal	defect (bug)	assigned	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		has-patch
Defects Awaiting Review	66351	Notes: A reply or status change to a deleted note is saved and lost		REST API	normal	defect (bug)	new	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	6.9	has-patch
Defects Awaiting Review	64670	WP_REST_Posts_Controller::update_item() not passing parent to wp_unique_post_slug() for draft child		REST API	normal	defect (bug)	new	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	6.9.1	has-patch
Defects Awaiting Review	53828	Nullable registered meta with format does not display in JSON schema		REST API	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	59425	REST API: Preserve boolean values when generating next/prev Link headers		REST API	normal	defect (bug)	new	2023-09-21T20:26:00Z	2026-10-08T09:21:38Z	"When generating `rel=""next""` and `rel=""prev""` values for the `Link` header in the terms, users, search, revisions, posts, global styles, and comments controllers, existing parameter data is passed to `urlencode_deep()`, which converts boolean `false` to an empty string.

The example I'm focused on is a request for terms with `hide_empty` set to `false`.

An initial URL like:

{{{
https://example.org/wp-json/wp/v2/tags?hide_empty=false&per_page=100&context=edit&_locale=user
}}}

Returns a response with a `Link` header of:

{{{
<https://example.org/wp-json/wp/v2/tags?hide_empty&per_page=100&context=edit&_locale=user&page=2>; rel=""next""
}}}

When this URL is followed, a `400` response is returned from the REST API with the error: ` is not of type boolean.`

When `hide_empty=true` is passed with the URL instead, the REST API converts the parameter to `1` in the `Link` header, which it then seems to accept in future requests as if it was `boolean`.

The cause of this is the use of `urlencode_deep()` [https://github.com/WordPress/wordpress-develop/blob/e486ac07458d36182ee75091eac06f9a99a5ae2a/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php#L361 on request params when generating the header]:

{{{
$base = add_query_arg( urlencode_deep( $request_params ), $collection_url );
}}}

{{{
wp> urlencode_deep( true );
=> string(1) ""1""
wp> urlencode_deep( false );
=> string(0) """"
// which is really
wp> map_deep( true, 'urlencode' );
=> string(1) ""1""
wp> map_deep( false, 'urlencode' );
=> string(0) """"
}}}

Which is really just `urlencode()` making sure it's dealing with a `string`, as expected.

I _think_ the answer is for the REST API to restore boolean values in the request params back to URL-compatible strings before building the `Link` header. While `false` being altered breaks things, it is also strange that `true` is altered as well.

I set the version as 5.2, as this is when the `urlencode_deep()` change was made. (See [45267] via #46199) I haven't investigated further, but before that change, `hide_empty` would just be dropped from the `rel=""next""` link entirely."	jeremyfelt	5.2	has-patch
Defects Awaiting Review	43149	WP-API JS Client not triggering change event when using setMeta/setMetas helpers		REST API	normal	defect (bug)	new	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	4.9	has-patch
Defects Awaiting Review	66136	REST API: batch/v1 fires rest_pre_dispatch with a WP_REST_Request whose route is null		REST API	normal	defect (bug)	new	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	5.6	has-patch
Defects Awaiting Review	66167	REST API Themes Endpoint Allows Directory Traversal to Read style.css Outside the Themes Directory		REST API	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	64248	REST API: Logic to only change comment status never runs		REST API	normal	defect (bug)	new	2025-11-13T09:00:59Z	2026-08-26T12:58:08Z	The `::update_item` method has [https://github.com/WordPress/wordpress-develop/blob/f99957fa1ecfe8c7707c9d930a700dddc6506cbf/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php#L899-L910 special condition] for when only comment status is changed, that code path never runs. The `$prepared_args` always includes [https://github.com/WordPress/wordpress-develop/blob/f99957fa1ecfe8c7707c9d930a700dddc6506cbf/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php#L1423-L1430 fallback values] for user IP and agent.	Mamaduka	4.7	has-patch
Defects Awaiting Review	65855	REST API: Taxonomy REST bases can overwrite existing post item properties despite conflict warning		REST API	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65694	REST autosave controller silently ignores post_title updates matching the published post's title, leaving stale title in the autosave revision		REST API	normal	defect (bug)	new	2026-07-22T18:10:21Z	2026-07-24T07:03:02Z	"When creating an autosave via the REST API (POST /wp/v2/posts/{id}/autosaves), if the submitted `title` value is identical to the parent post's currently published `post_title`, the controller silently skips writing that field to the revision row — while still updating `post_modified` on the same revision as if the write succeeded.

This leaves a stale, previously-autosaved title value permanently stuck on the revision, because no subsequent autosave request can overwrite it as long as the ""correct"" title being sent matches the published post.

**Steps to reproduce:**

1. Open the block editor for an already-published post.
2. Change the title to some temporary/test value (e.g. append ""!!"") and trigger an autosave (e.g. via Preview, or `wp.data.dispatch('core/editor').autosave()`). Confirm via `GET /wp/v2/posts/{id}/autosaves` that the revision now has `title.raw` = the temporary value.
3. Change the title back in the editor to exactly match the currently published `post_title` (i.e., revert your test edit).
4. Trigger another autosave, either through the UI or directly via:

```
await wp.apiFetch({
     path: '/wp/v2/posts/{id}/autosaves',
     method: 'POST',
     data: { title: '<the exact published title>' }
   });
```

5. Inspect the response, or run `GET /wp/v2/posts/{id}/autosaves` again.

**Expected behavior:**
The autosave revision's `title` should be updated to match what was submitted (the published title), since that is the value that was explicitly sent in the request.

**Actual behavior:**
The response (and subsequent GETs) still show the *previous, stale* title (the one from step 2), even though `modified`/`modified_gmt` on the revision advances to the current timestamp, indicating the write was otherwise processed. Confirmed directly against the database via WP-CLI:

wp post get {autosave_id} --field=post_title

...returns the stale title, not the one submitted in the most recent autosave request.

**Why this matters:**
The block editor's Preview feature reads from this autosave revision whenever one exists for the current post/user. As a result, once this stale-title state occurs, Preview will keep showing an incorrect title for the post indefinitely — even after repeated attempts to ""fix"" it by editing and previewing again — as long as the title being tested happens to match the live published title. The only way to clear it is either a full post update (which writes directly to `wp_posts`, bypassing this code path) or manually deleting the autosave revision.

This is confusing to reproduce because the symptom looks intermittent: titles that *differ* from the published title autosave and preview correctly every time; only the specific case of reverting to the exact published title triggers the stale-field bug.

**Environment:**
- WordPress 7.0.2 (site running behind Cloudflare, confirmed cf-cache-status: DYNAMIC on the relevant requests, ruling out CDN/edge caching as a factor)
- Reproduced in Firefox and via direct REST API calls (browser cache also ruled out)
- Default block editor (Gutenberg core, no relevant custom REST filters on this site for post_title)

Happy to provide the full request/response payloads and WP-CLI output from my investigation if useful."	rfischmann	7.0.2	has-patch
Defects Awaiting Review	60055	Array to string conversion warning after r50157		REST API	minor	defect (bug)	new	2023-12-12T21:59:14Z	2026-05-20T11:20:05Z	"When using the new REST API feature that allows one to add the `include_children` parameter to a taxonomy-term-filtered request, like 

{{{
const query = {
    categories: {
        terms: [ 3, 5, 7 ],
        include_children: true,
    },
};
}}}
(example taken from https://make.wordpress.org/core/2021/02/23/rest-api-changes-in-wordpress-5-7/)

I'm encountering the warning:
PHP Warning:  Array to string conversion in /Users/cavinsd/Local Sites/caresnet/app/public/wp-includes/class-wp.php on line 361

The error refers to this line:
{{{
$this->query_vars[ $t->query_var ] = str_replace( ' ', '+', $this->query_vars[ $t->query_var ] );
}}}
which is expecting a flat taxonomy parameter, not a multidimensional array.

Thanks for adding the `include_children` parameter; it makes working with the REST API much simpler in some cases!

"	dcavins	6.4.2	has-patch
Defects Awaiting Review	65045	Duplicate 'Comment' entry in trashableTypes array in wp/api.js		REST API	normal	defect (bug)	new	2026-04-09T06:54:14Z	2026-05-19T20:54:04Z	"While reviewing the file `src/js/_enqueues/wp/api.js`, I noticed that the `trashableTypes` array contains a duplicate entry for 'Comment'.

Current code:
trashableTypes = [ 'Comment', 'Media', 'Post', 'Page', 'Status', 'Taxonomy', 'Type' ];

The presence of duplicate values in this array is unnecessary and may lead to redundant checks or confusion during maintenance.

Proposed fix:
Remove the duplicate 'Comment' entry to ensure the array contains only unique values.

This change improves code clarity and avoids potential redundancy in logic that relies on this array.


== Steps to reproduce

1. Navigate to src/js/_enqueues/wp/api.js
2. Locate the trashableTypes array
3. Observe duplicate 'Comment' entry"	baikare.sandeep007		has-patch
Defects Awaiting Review	65240	REST API: WP_REST_Plugins_Controller::create_item() fatals when plugins_api response lacks language_packs property		REST API	normal	defect (bug)	new	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	6.9.4	has-patch
Defects Awaiting Review	62671	REST API Plugins Endpoint: Plugins are activated before language packages are installed		REST API	normal	defect (bug)	new	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	6.7	has-patch
Defects Awaiting Review	63635	Tests: rest-posts-controller hooks blow under certain circumstances		REST API	blocker	defect (bug)	reviewing	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	4.8	dev-feedback
Defects Awaiting Review	64541	In GET requests, interfaces containing the `search` parameter can be vulnerable to logic errors triggered by the input `%2500`.		REST API	major	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	6.9	
Defects Awaiting Review	64032	wp_die() status code Rest API component updates (parent ticket: #64009)		REST API	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	64045	/wp-json/wp/v2/menus incorrectly emits 403 for invalid `post` param		REST API	normal	defect (bug)	new	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	6.8.2	has-patch
Defects Awaiting Review	60618	REST API: Meta update fails if unrelated unchanged field is a multi-item array		REST API	normal	defect (bug)	new	2024-02-23T09:32:02Z	2025-05-12T01:38:18Z	"In some plugins there may be code which repeatedly calls `add_post_meta` without registration, e.g. calling


{{{#!php
<?php
add_post_meta( 1, 'example_meta_key', 'A' );
add_post_meta( 1, 'example_meta_key', 'A' );
add_post_meta( 1, 'example_meta_key', 'A' );
}}}

In the case where this bug was observed, the meta value was always retrieved as `single`, but the `add_post_meta()` call never utilized the `unique` flag. This results in multiple rows in the database for meta_key `example_meta_key` and meta_value `A`, for the post `1`.

If the plugin later ''adds'' meta registration for this field, and both

- registers the post meta field as `'single' => true`
- exposes the post meta field as `'show_in_rest' => true`

then subsequent saves to this post through the REST API will fail.

The reason is that the REST API iterates through post meta that is passed back in the REST post, and checks whether the incoming value is the same as the stored value using this check in `WP_REST_Meta_Fields::update_meta_value`:

{{{#!php
<?php
if ( is_array( $old_value ) && 1 === count( $old_value )
	&& $this->is_meta_value_same_as_stored_value( $meta_key, $subtype, $old_value[0], $value )
) {
	return true;
}
}}}
In our case the `$old_value` will be an array, but the count will be 3, so we never opt in to our similar-data check.

This means that the incoming value will be passed through and will call `update_meta`, which will return `false` because update_meta returns `false` ""on failure **or if the value passed to the function is the same** as the one that is already in the database."" (emphasis added)

If a ''new'' value is passed for the existing meta, all rows will be updated as expected. It is only unchanged values which fail the comparison.

Summary: Our logic in our update meta function is problematic, and doesn't handle existing arrays of metadata properly when checking for an identical existing value."	kadamwhite	4.7	has-patch
Defects Awaiting Review	57973	Can not delete custom template when name contains non-Latin characters		REST API	normal	defect (bug)	new	2023-03-23T14:23:48Z	2025-05-12T01:38:06Z	"I can create a custom template whose name contains non-Latin characters.

But when I delete this template.

It failed without any message in the front-end.

I can only find out the error message in the developer tools.

The ajax post request '/wp/v2/templates/theme_name//template_name' returns 404.

I think the problem is caused by the two slashes before none-Latin template_name.


To reproduce:
1. create a new template with non-Latin characters in post editor.
2. save the template, re-enter a post editor.
3. choose the template, and click 'edit template'.
4. open your browser's developer tools with the network tab.
5. click 'delete template', then you will see the 404 error in your developer tools."	funway	6.1.1	
Defects Awaiting Review	61838	Uncaught TypeError in multiple REST API endpoints from a single bug		REST API	normal	defect (bug)	new	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	6.2.2	has-patch
Defects Awaiting Review	61843	REST API endpoint /wp-json/wp/v2/categories returns 500 instead of 400		REST API	normal	defect (bug)	new	2024-08-08T10:12:52Z	2024-08-09T08:18:55Z	"When sending a request to the /wp-json/wp/v2/categories endpoint, it returns a 500 response. Seems like it should return a 400 response code for bad formatting instead of a 500, seeing as no exception is generated and its handled cleanly by the server.

=== command to reproduce
  curl -X  POST ""http://[WORDPRESSDOMAIN]/wp-json/wp/v2/categories"" -d '{""description"": ""ZD4ZDAJF"", ""name"": """", ""slug"": ""VZXC6HFM"", ""parent"": 1}' -H  'Authorization: Basic [ACCESSTOKWN]' -H 'Content-Type: application/json'

=== Server Response
{{{
 {""code"":""empty_term_name"",""message"":""A name is required for this term."",""data"":null}
}}}
"	mlf20	6.2.2	has-patch
Defects Awaiting Review	57879	fix rest_get_endpoint_args_for_schema() to allow user-defined sanitize and validate callbacks.		REST API	normal	defect (bug)	new	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	4.7	dev-feedback
Defects Awaiting Review	54832	_doing_it_wrong should write into debug.log		REST API	normal	defect (bug)	new	2022-01-16T05:49:11Z	2024-02-14T14:26:27Z	"I was created a plugin that called to `register_rest_route()` without `permission_callback` argument. It worked fine until WordPress 5.5 that this argument is now required.

However, the errors is not appears anywhere except in the REST API headers but it is very hard to notice about that.

I keep using the old code because I didn't know about this change as it is not showing in the debug.log.
Until one day that WordPress 5.8 released and I was entered to the new widget management and BOOM!
All errors appears on the debug.log now.

This function (`_doing_it_wring()`) is useful and **should** write the details into debug.log file no matter where it is called.

Example:

{{{
add_action('rest_api_init', 'myplugin_register_routes');
function myplugin_register_routes()
{
    register_rest_route('myplugin', '/allitems', [
        'args' => [
            'mycustom' => 'args',
        ],
        'methods' => \WP_REST_Server::READABLE,
        'callback' => 'myplugin_get_items_function',
        // 'permission_callback' => 'is_missing',// should always showing error in debug.log
    ]);
}
}}}
"	okvee	5.8.3	
Defects Awaiting Review	60349	Rest API media upload utf8 urlencoded filename not decoded on server		REST API	normal	defect (bug)	new	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	6.4.2	has-patch
Defects Awaiting Review	56919	REST API term embed 401 - not allowed to view terms for this post		REST API	blocker	defect (bug)	new	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	6.0.3	dev-feedback
Defects Awaiting Review	58710	REST: media (images) deleted or replaced are returned by their new id when requested by their old id		REST API	major	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	6.2.2	
Defects Awaiting Review	56494	REST API: Fix and test rest_default_additional_properties_to_false		REST API	normal	defect (bug)	new	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	6.0.2	has-patch
Defects Awaiting Review	57312	pattern validation fails in case of multitype validation using WP JSON REST		REST API	normal	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		
Defects Awaiting Review	57088	Rest API improve time response with cache		REST API	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	56668	REST API calls are failed when cookies are cleared from the site		REST API	normal	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	6.0.2	needs-patch
Defects Awaiting Review	54740	REST API: oneOf validation behaves unexpectedly with strings/arrays		REST API	normal	defect (bug)	new	2022-01-04T20:01:59Z	2022-09-05T19:17:33Z	"I'm trying to validate block.json files against [https://github.com/WordPress/gutenberg/blob/trunk/schemas/json/block.json the block.json schema], which uses `oneOf` in a few places ([https://github.com/WordPress/gutenberg/blob/b7b62d2d3db4395ce5d2ad42bd1fc0f1c3c2f12d/schemas/json/block.json#L428 for example, ""style""]). Using `rest_validate_value_from_schema`, I end up with this error: ""[style] matches more than one of the expected formats."".

I think this is a bug in the validation, because `style` can be one of a string or an array of strings, but the code that checks the value (`rest_is_array`) converts the string to an array, forcing it to match both options."	ryelle	5.6	
Defects Awaiting Review	54753	Wrong post content when uploading raw post data via REST API when html data url is used		REST API	normal	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	5.8.2	
Defects Awaiting Review	55128	REST API /media leaves holes in the result, making it virtually impossible to paginate through them		REST API	normal	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	5.9	
Defects Awaiting Review	53942	Non-single post meta multiple value update breaks post save through REST API		REST API	blocker	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	5.8	needs-patch
Defects Awaiting Review	53117	Post types which are not public, but which are show_in_rest and publicly_queryable and not exclude_from_search, do not appear in REST API search endpoint		REST API	normal	defect (bug)	new	2021-04-30T14:39:32Z	2021-04-30T15:40:44Z	"I have a custom post type ""tease"" which is registered with the following code:


{{{
	register_post_type(
		'tease',
		array(
			'menu_icon'           => 'dashicons-update',
			'exclude_from_search' => false, // allow us to include these in query results.
			'publicly_queryable'  => true,
			'show_in_nav_menus'   => false, // Don't allow to slot in nav.
			'show_ui'             => true, // Show in admin UI.
			'has_archive'         => false,
			'show_in_rest'        => true,
			'supports'            => array( 'title', 'editor', 'custom-fields' ),
			'map_meta_cap'        => true, // Set to true, so that default capabilities are mapped from posts to Teases.
			'capability_type'     => 'post',
			'taxonomies'          => array( 'category', 'post_tag' ),
		)
	);
}}}

Given that it is publicly queryable, shows in the REST API, and is not excluded from search, I would expect to be able to perform a search using the REST API for posts of this type.

However, a search for posts or teases matching the word ""patience"" returns an error message: /wp-json/wp/v2/search?search=patience&subtype=post,tease

    {“code”:“rest_invalid_param”,“message”:“Invalid parameter(s): subtype”,“data”:{“status”:400,“params”:{“subtype”:“subtype[1] is not one of post, page, category, post_tag, and any.“},“details”:{“subtype”:{“code”:“rest_not_in_enum”,“message”:“subtype[1] is not one of post, page, category, post_tag, and any.“,”data”:null}}}}

I get the same error message when I replace ""tease"" in that URL with a nonexistent post type.

If I modify the post-type registration with 'public' => true, then the search completes.

I'd like to credit @delipeelia for finding the potential cause: WP_REST_Post_Search_Handler only looks for post types which are public or show_in_rest: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php#L32


Changing /wp-includes/rest-api/search/class-wp-rest-post-search-handler.php to the following allows the search to work as I would expect it to, but I'm not sure that this is the right way to handle it.


{{{
				get_post_types(
					array(
						'exclude_from_search' => false,
						'show_in_rest'        => true,
					),
					'names'
				)
}}}

It does seem kind of weird to want to be able to search a non-public post type; the use case here is building a post-picker in the Block Editor that can pick posts or teases, without exposing the existence of teases to visitors to the site. For now, I've marked the post type as public, but that the REST API doesn't allow searching of posts which are marked as searchable does seem like a bug."	benlk	5.0	
Defects Awaiting Review	50964	WordPress view/preview links + post editor don't get along with SPA frontend		REST API	major	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	5.3	
Defects Awaiting Review	51909	REST API inconsistencies		REST API	normal	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	4.8	
Enhancements Awaiting Review	66644	WP_REST_Blocks_Controller renders pattern content that it then removes from the response		REST API	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66562	Tests: Add unit tests for the failures of WP_REST_Plugins_Controller		REST API	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66381	REST API: Template and template part collections fetch every template again to build its links		REST API	normal	enhancement	new	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	6.4	has-patch
Enhancements Awaiting Review	64019	"Improve clarity of REST API meta field error message ""The %s property has an invalid stored value, and cannot be updated to null."""		REST API	normal	enhancement	new	2025-09-22T09:45:27Z	2026-10-25T10:08:46Z	"The current error message for invalid meta field values in REST API is unclear and not actionable.
This message could be displayed to end user(e.g. in the block editor)

**Current message**:


{{{
""The %s property has an invalid stored value, and cannot be updated to null.""
}}}


**Related Files**:

- [wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php#L208](https://github.com/WordPress/wordpress-develop/blob/ebd415b045a2b1bbeb4d227e890c78a15ff8d85e/src/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php#L208)
- [wp-includes/rest-api/fields/class-wp-rest-meta-fields.php#L170](https://github.com/WordPress/wordpress-develop/blob/ebd415b045a2b1bbeb4d227e890c78a15ff8d85e/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php#L170)
- [wp-includes/rest-api/fields/class-wp-rest-meta-fields.php#L188](https://github.com/WordPress/wordpress-develop/blob/ebd415b045a2b1bbeb4d227e890c78a15ff8d85e/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php#L188)


**Issues**:

1. Unclear what ""property"" refers to (meta field? custom field?)
2. Doesn't explain what makes the value invalid
3. No guidance on how to fix the issue

**Proposed improvement**:

{{{
'The field ""%s"" contains an invalid value, and cannot be updated. Please enter a valid value or contact your site administrator.'
}}}

This message is used in 2 different controllers, so it's also possible to make variations for each class:

- For settings controller: 'The setting ""%s"" contains an invalid value...'
- For meta fields: 'The meta field ""%s"" contains an invalid value...'

**Related Issues:**

Gutenberg #17864: ""Saving a certain meta key saves other unmodified keys"" https://github.com/WordPress/gutenberg/issues/17864

This error often appears when Block Editor sends unintended empty values.
It's also possible to change Block Editor's error handling in Gutenberg project.
"	Takahashi_Fumiki	6.9	has-patch
Enhancements Awaiting Review	66317	REST API: Add search_columns parameter to the search endpoint		REST API	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	39473	get_routes() called multiple times within single REST request causing the rest_endpoints() filter to also fire more than once		REST API	normal	enhancement	new	2017-01-04T21:59:38Z	2026-10-08T09:01:21Z	"Hi all,

Many thanks for creating the REST API, and also for getting it into core! :)

When I had a closer look at how to integrate this in our projects I noticed something peculiar with the rest_endpoints() filter: it is called multiple times over; in some cases twice, in others three times.

So I did a little digging around and found that the root cause seemed to be the use of get_routes() at multiple locations:
- in the rest_pre_dispatch filter (rest_handle_options_request)
- in the rest_post_dispatch filter (rest_send_allow_header)
- in the dispatch() itself
- in the get_index() method
- in the get_namespace_index() method

After looking how these locations interact with each other, I couldn't detect any code which altered the generated route map between consecutive calls to get_routes().

I will add a patch in which I propose to store the generated route map in the class, and re-use that one instead of generating yet again the same array (and also re-filtering the same array).

Since the name 'endpoints' is already taken, and being used in the initialization as well, I thought it would be prune to use another variable name: $route_map, which is also being used in the current doc-block.

I did not profile this patch (not really sure how to do that), so I'm not sure if storing this rather large associative array is a good thing to do. However generating it multiple times (and re-filtering it also) may also be quite 'expensive'.

Thanks,
Ruud


"	ruud@…	4.4	has-patch
Enhancements Awaiting Review	40988	Use objects for `get_item_schema()` calls	pbearne	REST API	normal	enhancement	assigned	2017-06-10T06:07:54Z	2026-09-29T21:06:52Z	"The `get_item_schema()` method of a REST API controller always returns a dynamically generated array of schema information. This dynamic nature is needed, because some keys/values can change based on the current environment/controller.

This incurs a large performance penalty because the arrays need to be set up again and again, and as a side-effect, the translations that are being used for the `'description'` field are being loaded every single time. On a fresh, empty install of WordPress 4.8, making a request to `GET /wp-json/wpv2/posts` can spend a third or more of its time translating strings. Most of these translations are done multiple times, every single time an item schema is being requested. See blackfire profiling run here: https://blackfire.io/profiles/20516863-50e3-4df2-938a-7fa2f462abc8/graph

I suggest turning the arrays that `get_item_schema()` returns into a collection of smart objects that implement `ArrayAccess`. This offers the following benefits:

* Objects use up the memory for their keys once.
* Objects can be cloned (with the possibility to make changes after the clone), making sure that translations will at the most be loaded only once for every individual string.
* Objects can be extended and/or decorated, making it easy and clean to provide different structures for different use case, to get around `if/else` edge case handling.
* Objects can provide ""lazily-loaded"" keys (through magic methods or the proxy pattern), allowing the descriptions to only be processed when they are actually being requested. This would avoid the translation work completely for a use case like I tested above.

I expect this to shave around 30% off of the execution time of the above test case. It also makes the code more scalable, as large response sets might even incur yet a bigger performance penalty than the one I have recorded."	schlessera	4.7	
Enhancements Awaiting Review	65616	Support the HTTP `QUERY` method for read/search REST endpoints (RFC 10008)		REST API	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	63946	Introduce a mechanism for lazy-loading REST routes and handlers		REST API	normal	enhancement	new	2025-09-08T16:08:04Z	2026-06-19T16:36:57Z	"Registering REST API routes through controllers introduces additional overhead on every REST request. Benchmarking shows that the default routes registered during `create_initial_rest_routes()` take approximately 8.5–10ms in local testing. While this cost is relatively small in isolation, it is incurred on every request regardless of the endpoint being accessed. The impact grows even more as plugins register their own endpoints on top of core routes.

The main performance cost is not from `register_rest_route()` itself, but from preparing the arguments passed into it. Approximately 20% of this overhead is attributed to translation handling.

One possible solution would be to introduce a function such as `register_rest_namespace()`. This would allow a namespace to be declared during `rest_api_init` without requiring route arguments to be constructed immediately. At request time, during `rest_pre_dispatch`, a namespaced hook could be fired for the relevant namespace(s), enabling just-in-time registration of only the routes required for that request.

For API discovery requests, all namespaces would still need to be fully registered to ensure complete endpoint visibility. For most other requests, however, this approach could significantly reduce the cost of processing for all other requests by avoiding argument construction for unused routes."	prettyboymp		has-patch
Enhancements Awaiting Review	65486	Performance: Avoid redundant cache invalidation in WP_REST_Meta_Fields during batch meta updates		REST API	normal	enhancement	new	2026-06-18T20:50:54Z	2026-06-19T05:15:16Z	"== The Problem ==
The `WP_REST_Meta_Fields` class handles updating, adding, and deleting metadata for various object types via the REST API. When a request modifies multiple meta keys at once, it iterates through them and performs the updates individually.

These operations trigger Core's cache invalidation hooks via the underlying `added_*_meta`, `updated_*_meta`, and `deleted_*_meta` hooks. 

When a REST API request updates a large batch of meta fields for an object, the object's `last_changed` cache is cleared and reset repeatedly in the same request execution. This creates unnecessary overhead for database and object cache layers.

== The Proposed Solution ==
We should temporarily unhook the `_last_changed` invalidation functions before processing multiple meta updates inside `WP_REST_Meta_Fields`, and re-hook them once the operations are complete.

To do this cleanly across different object types, each subclass extending `WP_REST_Meta_Fields` should define its specific cache invalidation callback function as a property. For example:

{{{#!php
<?php
class WP_REST_Post_Meta_Fields extends WP_REST_Meta_Fields {
    // ...
    protected $cache_callback = 'wp_cache_set_posts_last_changed';
}
}}}

Then, in the base `WP_REST_Meta_Fields` class, we can dynamically target the hooks using `get_meta_type()` and the subclass property:

{{{#!php
<?php
$meta_type = $this->get_meta_type(); // e.g., 'post', 'user', 'comment', 'term'
$hook_name = ""updated_{$meta_type}_meta"";

// Temporarily unhook the redundant cache invalidation callback
$has_action = false;
if ( ! empty( $this->cache_callback ) ) {
    $has_action = remove_action( $hook_name, $this->cache_callback );
}

// ... existing code that loops through and updates/deletes multiple meta keys ...

// Re-hook after the batch operations complete
if ( $has_action ) {
    add_action( $hook_name, $this->cache_callback );
}
}}}

== Scope of Impact ==
* `WP_REST_Meta_Fields` abstract class and its extending subclasses (`WP_REST_Post_Meta_Fields`, `WP_REST_User_Meta_Fields`, `WP_REST_Comment_Meta_Fields`, `WP_REST_Term_Meta_Fields`).
* This optimization will significantly reduce object cache thrashing during complex REST API `POST` or `PUT` requests carrying heavy meta payloads."	spacedmonkey		has-patch
Enhancements Awaiting Review	41554	REST API: Use `wp.apiRequest` helper to build URLs for media embed requests		REST API	normal	enhancement	new	2017-08-03T17:41:04Z	2026-04-09T04:25:13Z	"Follow-up to #40919.

Let's explore getting rid of the `oEmbedProxyUrl` [https://github.com/WordPress/wordpress-develop/blob/1c28b4a/src/wp-includes/media.php#L3449 property] used to pass a REST API URL down to `wp-admin` code that calls out to this endpoint ([https://github.com/WordPress/wordpress-develop/blob/1c28b4a/src/wp-includes/js/media/views/embed/link.js#L56 example]).  We can use the helper library introduced in #40919 instead:

{{{#!js
wp.apiRequest( {
    namespace: 'oembed/1.0',
    path: '/proxy',
    // ...
} );
}}}

This helper will allow us to eliminate all `rest_url` calls passed to client code through script localization.  This will eventually lead to a lot of duplication, but it seems like it should be very clear from the requesting code which API endpoint is being called."	jnylen0		has-patch
Enhancements Awaiting Review	64073	Attachments REST API: extend to support ordering by `mime_type`.		REST API	normal	enhancement	new	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	6.9	has-patch
Enhancements Awaiting Review	54293	Expand functionality of themes REST API		REST API	normal	enhancement	new	2021-10-20T09:30:08Z	2025-08-04T13:09:21Z	"Current the REST API for themes is extremely limited. It only allows for listing themes and getting the current theme. However, there are lots theme related functions that are not possible to access via this api. This includes ( but it not limited to )

- Installing new themes
- Network activating theme ( multisite only )
- Network deactivating theme ( multisite only )
- Active ( switch to theme ) 
- Deleting theme

Any themes api should allow the patterns / structure of the plugins REST API, in it's params and responses. 

It is also worth noting, that have a multisite element, as themes can be network activated / deactivated."	spacedmonkey	4.7	needs-unit-tests
Enhancements Awaiting Review	46238	REST API: Allow conditional field registration		REST API	normal	enhancement	new	2019-02-12T00:42:00Z	2025-07-28T14:58:01Z	"`register_rest_field()` allows us to add additional fields to API call responses but it doesn't allow us to do so conditionally. in prior art we add a field and then remove it later when it's not needed.

why would inclusion of a field be conditional? what is wrong with returning `null`?

we came across this when wanting to add metadata to video files, which are `post` types and conflated with posts and other media attachments. we'd like to be able to just add fields to video file media requests and not pollute the responses for all of the other ""subtypes."" we'd also like to do it without resorting to surprising behaviors like adding and later removing them.

in this ticket I'd like to propose two approaches to accomplishing this goal. the first is a bit clever but should make it possible to extend existing behaviors without breaking any code and without introducing further confusion on how to add fields. it uses a ""sentinel value"" passed into the `get_callback()` function which can be returned to indicate that the field should not exist.

the second approach creates a new function `register_conditional_rest_field()` and provides a wrapped response format to indicate whether the field should be added. this approach is less idiomatic in my opinion as we're not used to returning wrapped values.

---

I thought for sure I'd seen a discussion around this before but I couldn't find any tickets with my search. that being said I'm curious why this doesn't already exist as it seems like it could be a common need, though I'm not sure how the fact that media attachments are a bit odd in comparison to custom post types comes into play."	dmsnell		needs-unit-tests
Enhancements Awaiting Review	62604	Prevent false-positive in validate_callback() in REST API		REST API	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	62855	Add object_id to WP_REST_Meta_Fields::prepare_value_for_response()		REST API	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	63056	Add Missing rest_prepare_ Filters to Several REST API Controllers	vipulpatil	REST API	normal	enhancement	assigned	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		has-patch
Enhancements Awaiting Review	63130	Add comment_count Support to REST API for Enhanced Sorting and Gutenberg Integration		REST API	blocker	enhancement	new	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		has-patch
Enhancements Awaiting Review	63402	Query Posts without URL parameters to avoid running into character limit with many filters		REST API	normal	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		
Enhancements Awaiting Review	63253	"Theme REST API: expose ""has_theme_json"" field"		REST API	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	39037	Should REST API support multiple orderby values?		REST API	normal	enhancement	new	2016-12-03T00:15:46Z	2025-03-27T15:27:45Z	WP_Query features the ability to query by multiple orderby parameters as well as independent orderby parameters (https://core.trac.wordpress.org/ticket/17065). The API does not have this ability yet. I looked through GitHub issues to find any discussion regarding this and could not find any. Should the REST API also support multiple orderby parameters or is that deemed to be plugin territory?	ChopinBach	4.6.1	has-patch
Enhancements Awaiting Review	63092	REST API: Support preloading 'HEAD' requests	Mamaduka	REST API	normal	enhancement	assigned	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		has-patch
Enhancements Awaiting Review	63074	Automated Output Escaping Based on REST API Schema		REST API	normal	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		
Enhancements Awaiting Review	44694	Extra and un-neccessary query when no posts found in Posts Rest Controller		REST API	normal	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@…	4.9.7	needs-patch
Enhancements Awaiting Review	62333	Simplify code structure and optimize conditional logic in REST API controllers		REST API	minor	enhancement	new	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	6.7	has-patch
Enhancements Awaiting Review	61978	Managing Dynamic Search, Category Filtering, and Pagination for Bulk Patterns		REST API	normal	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	6.0	
Enhancements Awaiting Review	61205	Add support for relative paths to theme assets in theme.json		REST API	normal	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		
Enhancements Awaiting Review	60142	wordpress api not returns category descriptions in embedded data of post		REST API	normal	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		
Enhancements Awaiting Review	54387	trailing slash in the url /wp-json		REST API	minor	enhancement	new	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	5.8.1	dev-feedback
Enhancements Awaiting Review	55675	Improve performance Themes REST API endpoint		REST API	normal	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		
Enhancements Awaiting Review	60608	Missing REST API users endpoint orderby parameters		REST API	normal	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		
Enhancements Awaiting Review	59903	Add user pattern categories to the pattern categories API response		REST API	normal	enhancement	new	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	6.5	has-patch
Enhancements Awaiting Review	59635	Revise the regular expressions defining endpoints for template revisions, template autosaves, template part revisions, and template part autosaves endpoints	antonvlasenko	REST API	normal	enhancement	assigned	2023-10-16T17:39:10Z	2023-12-04T13:26:00Z	"Currently known issues:

1. The controllers expect the `template_id` and `template_part_id` to always follow the format `theme_name//<template(_part)_name>`. In practice, it's not possible to retrieve a template or template part using only their template name (i.e., `post_name`). The `get_block_template()` function, employed by both REST controllers, presumes that the ID is divided into two parts separated by `//`. The theme's name must always be included in the request alongside the template (part) name.

2. The controllers also should not accept URLs that consist of more than two parts; for example, `theme_name//<template(_part)_name//some_arbitrary_value` shouldn't be allowed. (props @ironprogrammer).

3. Inline comments in the controller classes need to be fixed to correctly reflect the format of accepted URLs.

4. Unit tests need to be added to cover the cases mentioned above.

Follow-up from https://core.trac.wordpress.org/ticket/56922 and https://github.com/WordPress/wordpress-develop/pull/3533."	antonvlasenko	6.4	has-patch
Enhancements Awaiting Review	55961	Add embed to WP_REST_Request class		REST API	normal	enhancement	new	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	4.7	has-patch
Enhancements Awaiting Review	43428	Improve CORS headers sent to REST Api requests		REST API	normal	enhancement	new	2018-02-27T14:24:18Z	2023-04-24T13:21:03Z	"Currently some CORS headers are not sent correctly for REST API requests. This doesn't break anything yet, but can be improved for better performance.

The problematic headers are these:
- `Access-Control-Allow-Headers` and `Access-Control-Allow-Methods` need to be sent just to preflight requests, meaning just on requests with OPTIONS method. Now they are sent back on any REST API request, which is unnecessary
- `Access-Control-Allow-Methods` doesn't need to list the OPTIONS method. Preflight requests are made to check what's allowed, and OPTIONS requests are allowed by default. Current setup says something like 'I allow myself', as the preflight request is already a OPTIONS request

There's more detailed info here https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS, but the relevant part is this (it doesn't have an anchor for direct link):
  (Note: as described below, the actual POST request does not include the Access-Control-Request-* headers; they are needed only for the OPTIONS request.)



The proposed changes are:
1. Move header `Access-Control-Allow-Headers` from `serve_request` https://core.trac.wordpress.org/browser/trunk/src/wp-includes/rest-api/class-wp-rest-server.php#L239 to `rest_send_cors_headers` https://core.trac.wordpress.org/browser/trunk/src/wp-includes/rest-api.php#L536 making it easier to control the CORS headers from only one place, with one hook
2. Remove OPTIONS keyword from `Access-Control-Allow-Methods`
3. Send `Access-Control-Allow-Headers` and `Access-Control-Allow-Methods` only on request with OPTIONS method (preflight), as it's the place where they are necessary
4. While sending the Allow headers, include `Access-Control-Max-Age: 600` for caching the preflight requests, thus improving the performance for next requests (less requests between browser & server when requesting same data). Timing can be changed
5. ''Optional'' - Include `Content-Disposition` in `Access-Control-Allow-Headers`, enabling direct file upload (requested in other tickets as well)

Why?
To follow recommended specs for CORS and make the REST API work as expected with web apps

All proposed changes were tested in the last few months on a fleet of ~500 websites with different web clients for managing WordPress data. Everything works fine"	andrei.igna		
Enhancements Awaiting Review	58034	Post API can't get image URL on Endpoint		REST API	normal	feature request	new	2023-03-31T11:05:42Z	2023-04-06T10:09:15Z	"We need to add the featured image URL to the endpoint of the POST API
Instead of getting the featured_media id, we should get the attachment URL, which will be better for everyone"	nodeweb	6.2	dev-feedback
Enhancements Awaiting Review	57361	WP_REST_Attachments_Controller::get_media_types not returning existing mime types, but the ones allowed for upload		REST API	normal	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	4.7	
Enhancements Awaiting Review	57223	Comments Controller : Should max/total be pre- or post- filtering? It is pre-. Reconsider?		REST API	normal	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	6.2	
Enhancements Awaiting Review	57221	Opportunity for optimization on invalid query to REST API Search Controller		REST API	minor	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	6.2	
Enhancements Awaiting Review	56593	Post meta validation error messages are not helpful to end users		REST API	normal	feature request	new	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	6.0.2	dev-feedback
Enhancements Awaiting Review	56587	REST API sanitize and validate order / priority		REST API	normal	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	6.0.1	
Enhancements Awaiting Review	56368	Unable to use enum with array data type - REST API		REST API	normal	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		
Enhancements Awaiting Review	55672	Media endpoint allows multiple media types on request, but only returns image in response		REST API	minor	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	6.0	
Enhancements Awaiting Review	44862	Create REST API endpoints to lock, release and takeover post edition	timothyblynjacobs	REST API	normal	feature request	assigned	2018-08-29T13:05:41Z	2022-01-07T18:58:06Z	"**Context** 

In this Gutenberg PR, we're trying to introduce post locking https://github.com/WordPress/gutenberg/pull/4217

To do so, we're reusing the existing ajaxActions, and the the non-REST API URLs to take over the posts. Ideally, we'd like to be able to lock, unlock and takeover edition of posts without the need of a page refresh or usage of ajax actions.

**Questions**

 - I wonder if we should return an error in the PUT/DELETE requests on single posts if the post is locked by another user. (Not required for the ticket as a V1 but might be good to think about it).

"	youknowriad		
Enhancements Awaiting Review	53836	Option to additionally format API response		REST API	normal	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	5.8	
Enhancements Awaiting Review	52590	Consider increasing the limit of the perPage argument in paginated requests.		REST API	normal	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		
Enhancements Awaiting Review	52384	WordPress API - Add Limit / Block API Access Features		REST API	normal	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		
Enhancements Awaiting Review	51757	REST API: Add const validation		REST API	normal	enhancement	new	2020-11-12T00:42:21Z	2021-01-25T17:08:10Z	"The `const` keyword is a useful shorthand for pattern matching with `oneOf`.

> Use of this keyword is functionally equivalent to an ""enum"" with a single value. 

See https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.1.3"	ajlende		has-patch
Enhancements Awaiting Review	46267	Add generated_slug to REST API autosaves endpoint		REST API	normal	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		
Enhancements Awaiting Review	41740	"Add comment count to ""replies"" link in post responses"		REST API	normal	enhancement	new	2017-08-28T02:42:10Z	2020-10-25T03:26:37Z	"Right now, you can preload comments using embedding with the linked ""replies"" resource. This is great, but there's no way to know whether you should try loading more. Fetching the resource directly would give you the total in the `X-WP-Total` header, but you lose this when embedding.

While this is generically a problem with the loss of headers from embedded resources, I don't think we really need a generic solution. Even when not embedding, a comment count is useful for archive display of a list of posts.

We should add the comment count (using `wp_count_comments`) to the ""replies"" link:
{{{
{
    ""replies"": [
        {
            ""href"": "".../wp/v2/comments?post=42"",
            ""embeddable"": true,
            ""count"": 12,
        }
    ]
}
}}}"	rmccue		
Enhancements Awaiting Review	48822	Indicate partial success/error of a REST API request		REST API	normal	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	4.7	
Enhancements Awaiting Review	50239	REST API Debug/Dev Mode		REST API	normal	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	4.4	
Enhancements Awaiting Review	48816	Use get_bloginfo in the REST API index		REST API	normal	enhancement	new	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	4.4	dev-feedback
Enhancements Awaiting Review	45252	Reconsider the `context` argument in REST API calls		REST API	normal	enhancement	new	2018-11-01T12:20:51Z	2019-11-21T16:50:32Z	"When creating an abstraction on top of the REST API, the line is often blurry between `edit`  context and `view` context. 

This issue is made visible in https://github.com/WordPress/gutenberg/issues/11335

The data module of Gutenberg is an abstraction layer allowing the consumer (logged-in users) to fetch WordPress data organized in entities (posts, taxonomies, ...). Each entity in the abstraction layer has a well-defined ""format"". At the moment, this format is defined by the returned value of the REST API in the `edit` context. This makes it impossible for users that don't have access to the `edit` context to use the data layer because conceptually the data layer is not a layer on top of the REST API, it uses the REST API as just an implementation detail, it's a layer to retrieve WordPress data.

So while I think we should rethink if we need the `context` argument entirely, I propose to do this iteratively and not change everything at the moment.

Can we consider this?

 - Instead of returning 403 when users don't have access to the `edit` context, consider returning 200 but limiting the returned fields to the fields the current user has access to.

An argument for context could be to limit the size of the response or the time spent to compute all the fields, for me this is redundant with `_fields` and we shouldn't mix both use-cases: Security and Performance."	youknowriad		
Enhancements Awaiting Review	47962	Allow apiRequest to do requests on external WordPress sites		REST API	normal	enhancement	new	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	5.3	has-patch
Enhancements Awaiting Review	39863	HTML description property of term in WP_REST_Terms_Controller lacks display filters	joehoyle	REST API	normal	enhancement	assigned	2017-02-13T17:13:48Z	2019-07-11T18:13:16Z	"Working with the REST API i've noticed that with terms, either from custom taxonomies or default categories and tags, their descriptions are different within REST requests compared to outputting within a theme template.

Tracking it down and I've noticed that within themes these term descriptions are having `term_description` filters applied, whereas within WP_REST_Terms_Controller the term description is used as is from the database. 

At its most basic example a user can add HTML to a term description (either manually or via a plugin that adds a visual editor), and paragraphs will be applied for a theme, but not for the REST requests.

But the schema for Terms says that it's the `HTML description of the term`, which IMO is slightly wrong without all the term description filters.

Comparing to the WP_REST_Posts_Controller it further raises the question, should the Term controller be providing a `raw` and `rendered` version of the term description to match Post content? Or should the filters simply be added as it's a smaller change?"	davecpage		
Enhancements Awaiting Review	41735	Include titles for JSON Schema properties		REST API	normal	enhancement	new	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	4.7	has-patch
Enhancements Awaiting Review	39972	REST API: Allow querying posts by post format		REST API	normal	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	4.7	
Enhancements Awaiting Review	40556	REST API: Allow for server generating a user's password		REST API	normal	enhancement	new	2017-04-24T18:47:07Z	2017-04-27T14:30:59Z	"Currently the REST API requires the client to send a password when creating a user. Ideally, the server should generate a random password when none is provided.

In WP Admin contexts this can be worked around by using the existing WP Ajax action to generate a password, but this does require a separate round trip.

In non WP Admin contexts this forces the client to generate their own password securely and it also means filters like `random_password` won't be called.

Patch incoming to automatically generate a password if the request parameter is omitted. If an empty string is passed, that still errors."	TimothyBlynJacobs	4.7	has-patch
Enhancements Awaiting Review	39954	REST API: Improve date updates if both `date` and `date_gmt` are set		REST API	minor	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	4.7	
Reporter Feedback / Close	65953	Fatal PHP error tested on PHP8.2 & 8.3 inside the file class-wp-rest-server.php (Can be fixed and improved)		REST API	normal	defect (bug)	new	2026-08-24T16:05:05Z	2026-08-26T18:29:04Z	"Hello and best regards.
I am a WordPress plugin developer. I was working on a plugin when, following a PHP update from version 7.4 to 8.2 (or higher), I encountered a strange error:

{{{
Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /.../wp-includes/rest-api/class-wp-rest-server.php:1166
Stack trace:
#0 /.../wp-includes/rest-api/class-wp-rest-server.php(1166): array_merge(NULL)
}}}

In fact, line 1166 of the `class-wp-rest-server.php` file attempts to perform an `array_merge` without considering the variable's value or applying any specific validation; I resolved the error quite simply with a minor change:

Original: `$routes = array_merge( ...$with_namespace );`
Edited (Fixed): 
{{{
                        //Fixed by MDesign
			foreach ( $with_namespace as $namespace_routes ) {
				if ( is_array( $namespace_routes ) ) {
					$routes = array_merge( $routes, $namespace_routes );
				}
			}
			/**/
}}}"	mdesignfa		dev-feedback
Reporter Feedback / Close	63294	Got this error when send image via REST API on WP 6.8		REST API	critical	defect (bug)	new	2025-04-16T12:46:23Z	2026-03-16T15:03:10Z	"{""code"":""rest_upload_image_type_not_supported"",""message"":""The web server cannot generate responsive image sizes for this image. Convert it to JPEG or PNG before uploading."",""data"":{""status"":400}}
"	Astraport	6.8	reporter-feedback
Reporter Feedback / Close	63493	Timezone string doesn't return in REST API /wp-json/wp/v2/settings		REST API	normal	defect (bug)	new	2025-05-28T02:01:21Z	2025-05-28T14:05:57Z	Timezone string in REST API /wp-json/wp/v2/settings always return as an empty string even set any timezone from Admin panel -> Settings.	phakphumvis		needs-unit-tests
Reporter Feedback / Close	62903	permission_callback should be called before validate_callback in REST API		REST API	normal	defect (bug)	new	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	6.9	close
Reporter Feedback / Close	62577	WordPress Rest API broken in 6.7.1		REST API	normal	defect (bug)	new	2024-11-26T18:54:37Z	2024-12-11T00:58:04Z	"The rest API /?rest_route=/wp/v2/users/me
returns 502 bad gateway in 6.7.1
Downgrading to 6.6.2 fixes the issue.
All plugins are up to date in both versions."	DoingSomeWordpress	6.7.1	close
Reporter Feedback / Close	62232	WordPress Application Password CORS error when Headless WordPress URL and Site URL are different		REST API	critical	defect (bug)	new	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	6.6.2	reporter-feedback
Reporter Feedback / Close	57945	Locale bug in short-circuited WP REST API request via rest_pre_dispatch?		REST API	normal	defect (bug)	new	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	6.1.1	close
Reporter Feedback / Close	56483	Weird oneOf behaviour upon validation of post meta value upon GET retrieval via REST API		REST API	major	defect (bug)	new	2022-08-31T23:21:28Z	2022-12-11T15:54:52Z	I've been checking for a significant amount of time with some other developers, and we can't find reasonable explanations for the behavior described here: https://wordpress.stackexchange.com/questions/409131/oneof-json-schema-validation-not-properly-working-for-custom-post-meta-value	joeyojoeyo12	6.0.1	reporter-feedback
Reporter Feedback / Close	55946	`post_tag` is not supporting in rest api for custom meta		REST API	normal	defect (bug)	new	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	5.9.3	reporter-feedback
Reporter Feedback / Close	54240	WP REST API Users Endpoint Search		REST API	normal	defect (bug)	new	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	5.8.1	reporter-feedback
Reporter Feedback / Close	53242	Potential private information leak in REST API doing it wrong		REST API	normal	defect (bug)	new	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		reporter-feedback
Defects Awaiting Review, reported against no version	27244	'Restore This Autosave' immediately updates a published post		Revisions	normal	defect (bug)	new	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		ui/ux
Defects Awaiting Review, reported against no version	29920	Autosave breaks if post revision fields contains a value that isn't a string		Revisions	normal	defect (bug)	new	2014-10-10T14:11:32Z	2019-06-04T18:12:47Z	"This isn't exactly a bug...

Its possible to filter '_wp_post_revision_fields' to add more fields. I am using this to track revisions for some meta fields.

However the value of this must be an string otherwise you get notices when trying to create an autosave - as this calls `normalize_whitespace` on an array.

It would be nice if this didn't completely break things. I've added a patch that only calls normalize whitespace if both values are strings - otherwise just do a simple comparison.

If you think i'm doing_it_wrong - feel free to tell me so!

I guess this is related to #20564 and any other meta revision fields."	mattheu		has-patch
Defects Awaiting Review, reported against latest stable branch	66095	Opening the revisions screen for a page with very long lines may cuase an execution timeout crash		Revisions	normal	defect (bug)	new	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	7.1	has-patch
Defects Awaiting Review	53417	The revisions endpoints provide an incorrect JSON schema		Revisions	normal	defect (bug)	new	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	4.7	has-patch
Defects Awaiting Review	44684	Page/Post revisions don't seem to load into preview		Revisions	normal	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	4.9.7	
Defects Awaiting Review	51374	The initial revision of an imported post goes missing		Revisions	normal	defect (bug)	new	2020-09-22T09:58:24Z	2025-09-11T18:59:33Z	"There are two problems relating to revisions when making a change to an imported post.

1. The first change does not cause the Revisions meta box to appear. A second change is required.
2. The first change gets ""lost"" and appears as if it was part of the first version of the post.

Steps to reproduce:

* Import a published post
* Make a change to it
* Observe that the ""Revisions"" meta box does not show up even after reloading the editing screen
* Make a second change to the post
* Click the ""2 Revisions"" link and observe that the second revision is recorded correctly, but that the first revision shows the entire contents of the post being added. The first change made ""disappears"" as it's incorrectly included in the entire contents of the first revision.

I think the root cause here is that imported posts do not create an initial revision.

A possible solution might be to create an initial revision at the point where a user makes a change to a post and there isn't an existing revision.

I assume this can also be reproduced by deleting all the revisions from your database and then making changes to a post."	johnbillion		needs-patch
Defects Awaiting Review	53607	Loading or saving a post with enough (large) revisions exhausts available memory		Revisions	normal	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	5.7.2	
Defects Awaiting Review	41029	The changed author is not making the coming revisons	adamsilverstein	Revisions	normal	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	4.8	
Defects Awaiting Review	48973	wp_text_diff() out of memory with 10GB memory limit on certain revisions		Revisions	normal	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	5.3.1	
Defects Awaiting Review	44540	Revision restoring redirect issue when using custom wp_query inside shortcodes		Revisions	normal	defect (bug)	assigned	2018-07-07T10:43:11Z	2019-03-11T20:44:02Z	"Using a custom WP_Query inside page content shortcodes leads to weird ""revisions restoring"" behavior which is redirecting to improper page id. However the page content is restored correctly. Have found this lines 55, 56 in revision.php

	
{{{
wp_restore_post_revision( $revision->ID ); 
$redirect = add_query_arg( array( 'message' => 5, 'revision' => $revision->ID ), get_edit_post_link( $post->ID, 'url' ) )
}}}

While wp_restore_post_revision( $revision->ID ) returns a correct post_id, the redirect is made to get_edit_post_link( $post->ID, 'url' ) and $post->ID may be broken by custom wp_query loop. Why not using wp_restore_post_revision( $revision->ID ) returned result to perform a correct redirect?

"	vendetta90	4.9.7	
Defects Awaiting Review	44929	Revisions: wp_get_revision_ui_diff only displays existing meta fields of the current post		Revisions	normal	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		
Defects Awaiting Review	43189	Restoring page revision doesn't restore page template previously used		Revisions	normal	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	4.9.2	
Enhancements Awaiting Review	66607	Tests: Add unit tests for wp_prepare_revisions_for_js()		Revisions	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	66513	Tests: Add unit tests for WP_Text_Diff_Renderer_inline::_splitOnWords()		Revisions	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	56576	When post is switched from published to draft, create revision		Revisions	normal	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		
Enhancements Awaiting Review	62690	"Add ""Copy to Clipboard"" button to Revision Viewer"		Revisions	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	59419	"Revisions page: how to support varying ""Go to editor"" link templates"		Revisions	normal	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		
Enhancements Awaiting Review	57641	Need functionality to preview revisions for the post such as preview		Revisions	normal	feature request	new	2023-02-06T10:19:46Z	2023-11-20T18:01:09Z	"Can we add some feature requests to WordPress core that is to preview the different revisions for the posts exactly as the preview while creating the new post? 

This would help editors to review the revision full of content instead just checking normally content in revisions tab. With new Gutenberg editor, revisions are hard to check because blocks are not parsed while checking the revisions.

We can have a preview button over the revisions page for which we are checking the revisions and can be previewed as whole content with all parsed blocks. This can help editor to review perfectly and restore the revision if needed.

Current Revisions page have this kind of markup,
[[Image(https://user-images.githubusercontent.com/58802366/216945642-5b5324f7-07cb-47a5-811c-ff53808de3d0.png)]]

Need this type of markup with a preview button, so on click of that button, user can view the revision with that content.
[[Image(https://user-images.githubusercontent.com/58802366/216946179-cb9c2a12-e4b5-4cbc-90f1-b8d244ac230c.png)]]
"	hbhalodia		
Enhancements Awaiting Review	48315	Scheduling already published posts or pages causes 404 error on page		Revisions	normal	enhancement	new	2019-10-15T20:44:41Z	2023-10-12T14:21:33Z	"Scenario: If you have a live published page and need to make some changes to it but those changes shouldn't be visible until a certain time.

**Steps**
1. Edit a published post
2. Change the publish date to future date and click update

Result: The post is now unpublished! (404 error)

Expected: New changes I made to update/appear on the scheduled date without taking down the page with a 404 error in the meantime.

Solution: Draft a revision of a published post without un-publishing it?

There is discussion about it here from a while ago, but none of the solutions or plugins are good:

https://wordpress.stackexchange.com/questions/3986/is-there-any-way-to-draft-a-revision-of-a-published-page-or-post-what-workaroun

https://redearthdesign.com/help-center/update-live-wordpress-page-post/

This seems like a common workflow?"	wpfed		
Enhancements Awaiting Review	57395	Improve wp_die message when previewing post revision with expired nonce and unauthenticated requests		Revisions	normal	enhancement	new	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	6.1.1	has-patch
Enhancements Awaiting Review	47518	Add an explanatory message to the Revisions screen for locked posts	adamsilverstein	Revisions	normal	enhancement	assigned	2019-06-10T15:30:43Z	2021-04-30T17:44:27Z	"It's possible for a user to navigate to the revisions screen for a post that's locked due to another user editing it, and not be able to restore any revisions due to the fact that the post is locked. In this situation no message is shown on the Revisions screen that explains why the `Restore This Revision` button is disabled.

Under normal operating procedure it's not easy to get to the Revisions screen for a locked post, but it is possible. A workflow related plugin, audit trail, or revisions list can make it possible to navigate directly to a revision without going via the otherwise locked editing screen.

1. User A navigates to the revisions screen for a non-locked post.
2. User B visits the editing screen for the post.
3. User A clicks `Return to editor` on the revisions screen.
4. User A chooses not to take over, and clicks `Go back`.

User A is now shown the revisions screen for a locked post and the `Restore This Revision` button is disabled for all revisions but with no explanatory information."	johnbillion		needs-patch
Enhancements Awaiting Review	42086	Option to view condensed diffs for post revisions		Revisions	normal	feature request	new	2017-10-04T16:08:37Z	2020-09-01T16:16:59Z	"Viewing a revision of a post which has a lot of content in it can result in a very long screen. It would be great if there was a toggle somewhere on the revisions browser so a condensed diff view was shown.

The condensed view would more closely resemble a traditional VCS diff view, which highlights only the changed lines and a handful of lines above and below each change.

I haven't checked to see if the `Text_Diff` library that core uses supports such diff generation, I doubt it does but I'd like to be wrong."	johnbillion		needs-patch
Enhancements Awaiting Review	29276	Ability to edit and preview any revision, not just autosaves		Revisions	normal	enhancement	new	2014-08-20T14:30:38Z	2020-01-10T21:02:56Z	"It would be great if the revision management functionality could include a way to preview any revision. From a quick look at the source code, wp-includes/revision.php declares a function called 
{{{
_set_preview($post)
}}}
By default it loads the most recent autosave with:
{{{
$preview = wp_get_post_autosave($post->ID);
}}}
I would like to propose that that line be changed into:
{{{
$preview = !empty($_GET['preview_id'])?get_post($_GET['preview_id']):wp_get_post_autosave($post->ID);
}}}
The nonce has already been verified in `_show_post_preview()`, so there should be no security implications of this change.

With this change, the Revisions meta box (Edit Post screen) could display a ""preview"" icon/link that includes the appropriate nonce and does the same thing as the main ""Preview"" button."	coolmann	3.9.2	needs-patch
Enhancements Awaiting Review	47831	Compare any two revisions: Improve the distinction of From/To columns		Revisions	normal	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		
Enhancements Awaiting Review	48574	Create better post diff screens		Revisions	normal	enhancement	new	2019-11-12T19:45:19Z	2019-11-12T23:54:46Z	"Post diffs showing the difference between post revisions have always been in raw form, showing differences in post HTML and not ''visual'' differences. With the addition of the Gutenberg editor to WordPress, there is now even more HTML shown due to the inclusion of block settings as comments. Additionally, Gutenberg blocks such as figures or lists create one-line HTML strings so small changes to list items result in one huge line change on the diff screen. It seems like now is the time to consider improving the post diff screen, and changing the way Gutenberg blocks generate their HTML to allow for cleaner diffs.

See the attached image for an example of a block that could have been generated across multiple lines such that the addition of a link didn't generate 12 lines of diff.

I suppose this feature request is twofold:

 - Improve the diff page UI to show visual diffs (but keep the current ""raw"" mode as an option).
 - Make sure Gutenberg block HTML is cleanly formatted across multiple lines to improve line-based diffs used on the post diff screen."	seanleavey	5.3	
Enhancements Awaiting Review	38368	Add front-end revision browsing		Revisions	normal	enhancement	new	2016-10-19T16:17:04Z	2018-03-08T20:14:27Z	"This patch will add a live-updating revision browser to single post view when the current user can edit posts.

This feature requires the post and post revision routes of the WordPress REST API, as well as the JavaScript client for the REST API.

Here is demo of this patch:
[[Image(https://github.com/Shelob9/revisions-browser/blob/master/CvIKaDdWcAAtRSa.gif?raw=true)]]

Currently this is a functional prototype, as a plugin -- https://github.com/Shelob9/revisions-browser -- prepared by myself with guidance from @adamsilverstein and contributions from @mrahmadawais + @websupporter + @kadamwhite + @circlecube "	Shelob9		
Reporter Feedback / Close	60099	Fix revisions system	adamsilverstein	Revisions	minor	defect (bug)	assigned	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	6.4.2	reporter-feedback
Reporter Feedback / Close	44786	Autosave: Conditionally allow revisions to be saved		Revisions	normal	enhancement	new	2018-08-13T22:45:46Z	2019-01-16T06:50:09Z	"As is, when the `DOING_AUTOSAVE` constant is truthy, calling `wp_save_post_revision` immediately exits.

One of the first things that endpoints responsible for `autosave`s are doing is set this constant -- making it impossible to save a revision using the Revisions API during the same request context.

See:
- [https://github.com/WordPress/gutenberg/blob/751a2fcdd7952fd4359984af292cc669cee065c8/lib/class-wp-rest-autosaves-controller.php#L169 Gutenberg]
- [https://github.com/Automattic/jetpack/blob/585238715b2d3ff0a10615562001a729f12ed477/json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php#L165 Jetpack] 

Endpoints (& other plugins) would benefit from a filter allowing revisions to be saved.

A particular use case is to occasionally save revisions for drafts during an `autosave` call (so there is less chance of irrecoverable data loss when the autosave is overwritten)."	jblz		reporter-feedback
Defects Awaiting Review, reported against no version	43676	.htaccess rules don't work with Plain		Rewrite Rules	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review, reported against no version	41891	Bug when changing $(comments_)pagination_base of WP_Rewite instance to string with non-ASCII characters		Rewrite Rules	normal	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		
Defects Awaiting Review	40339	If $home_path=='wp' then WP::parse_request() will remove 'wp' from 'wp-json/wc/v1/products' in $pathinfo		Rewrite Rules	critical	defect (bug)	new	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	4.7.3	has-patch
Defects Awaiting Review	49510	Regular expression metacharacters in category and tag base lead rewrite rules to fail.		Rewrite Rules	normal	defect (bug)	new	2020-02-25T09:47:00Z	2026-08-23T16:56:20Z	"Steps to reproduce (theme Twenty Twenty):

1. Go to ''Settings > Permalinks'', search for the ''Category base'' and/or a ''Tag base'' with some [RegExp meta-characters](https://www.php.net/manual/en/regexp.reference.meta.php), for example:

[[Image(permalinks.png)]]

2. Try to access a category archive page, either by typing its URL directly in your web browser, or by clicking on a generated link for this category:

[[Image(category-page.png)]]

3. Same for tag archive page:

[[Image(tag-page.png)]]

I've done some research, and it seems that a similar bug happen with feeds URL: #43571

The proposed solution in the above patch is to escape the rewrite rules with PHP built in function `preg_quote()`, which would solve this problem too if we apply it in the correct location. But what is the correct location? And could other parts of the rewrite rules generation/evaluation benefits of escaping too?

I don't know if it should be discussed in the same ticket, but after solving this issue, this would allow WordPress administrators to use reserved characters (as defined in [RFC 3986](https://tools.ietf.org/html/rfc3986#section-2.2) in their URLs..."	raaaahman	5.3.2	has-patch
Defects Awaiting Review	41791	Unicode + add_permastruct breaks rewrite rules		Rewrite Rules	normal	defect (bug)	new	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	4.9	dev-feedback
Defects Awaiting Review	47686	Always flush rewrite rules when active plugins changes & on plugin upgrades		Rewrite Rules	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	57858	If permalink structure is set to /%category%/%postname% , WordPress will match a /0/ path as a category archive		Rewrite Rules	normal	defect (bug)	new	2023-03-02T22:30:38Z	2026-07-28T17:19:03Z	"Issue:

When the post permalink structure (Settings > Permalinks > Permalink Structure > Custom Structure ) is set to /%category%/%postname% , any path containing /0/ will be matched as a category archive page. 

eg. 
example.com/wp-content/0/ will not return a 404, and resolve to category archive template.
example.com/wp-includes/0/ will not return a 404 and resolve to category archive template.
example.com/wp-admin/0/ will not return a 404 and resolve to category archive template.
example.com/some-post-name/0/ will resolve to some-post-name
example.com/0/ will properly resolve to the site_url, but still wont 404

Setting the permalink to anything but that, eg. /%author_name%/%postname% it will properly 404. 

I'm guessing somewhere in the permalink structure, 0 is seen as a valid category and not empty/null. 


Steps to reproduce:
1. Spin up a fresh WordPress
2. Go to Settings > Permalinks > Permalink Structure > Custom Structure
3. Set the Custom Structure to: /%category%/%postname%
4. Visit one of the example URLs above. 


We found this issue as we noticed Google was indexing a page like example.com/wp-content/uploads/2011/0/ 

"	krdevio	6.1.1	has-patch
Defects Awaiting Review	65411	Don’t let ?s= override singular URLs		Rewrite Rules	normal	defect (bug)	new	2026-06-04T13:55:38Z	2026-06-05T15:06:20Z	"When a post URL is shared from Twitter/X, the app may append a source-tracking parameter such as `?s=20`.

For example, a valid post URL like https://www.example.com/some-article/ can become https://www.example.com/some-article/?s=20 (where `20` varies by device/location/context) when shared.

A visitor clicking that link expects to see the article. Instead, WordPress may treat `s=20` as an internal search query. Depending on the site, theme, plugins, and rewrite state, this can load search results for `20`, change the template context, or produce a 404 error.

That is a bad outcome for users, and often an expensive one for sites. Singular content is commonly cached. Search results and 404s often are not.

== Broader issue ==

The `s` query var is a long-standing part of WordPress search behaviour, and URLs like https://www.example.com/?s=example and https://www.example.com/some-taxonomy/?s=filter (which filters the existing request) continue to work.

But `s` is also a very short, generic parameter. WordPress cannot assume that every external use of `?s=` is intended to trigger site search.

Twitter/X is the clearest current example, but the same failure mode can occur whenever another platform, app, email client, CMS, analytics system, or sharing tool appends `s` to an otherwise valid WordPress URL.

A third-party tracking parameter should not be able to override a request that already resolves to a post, page, attachment, or other singular object.

== Proposed change ==

Could WordPress prefer the resolved singular object when a request contains both `/some-existing-post/` and `?s=<value>`?

In practice: https://www.example.com/some-article/?s=20 should load the post at `/some-article/`, not a search results page for `20`.

This should not remove or deprecate normal search URLs. URLs like https://www.example.com/?s=example and https://www.example.com/search/example/ should continue to behave as search results.

The change should apply only where the path portion of the request already resolves to a singular object.

== Possible implementation direction ==

This may be best handled during request parsing or main query resolution.

At a high level:

- If the request path resolves to a singular object, do not let `s` turn the main query into a search.
- Preserve the raw `s` value in `$_GET` for plugins and custom code that need to inspect it.
- Ensure template selection, conditional tags, and canonical behaviour match the resolved singular object.
- Consider a filter for sites that intentionally use `?s=` on singular URLs.

== Compatibility considerations ==

Some sites may intentionally use `?s=` on singular URLs for custom behaviour, for example:

https://www.example.com/product/example-product/?s=blue

For that reason, the safest approach may be to change only the main query interpretation, while preserving the raw request parameter.

It is also worth discussing whether this should apply to all `s` values, or only to values that look like third-party source identifiers, such as numeric values. Applying it consistently to all `s` values may be simpler and less surprising: if the path resolves to a singular object, the singular object wins.

== Questions for discussion ==
- At what level should this be addressed (given that we can't rely on `is_search()` etc)?
- Should the rule apply to all `s` values, or only source-like values such as numbers?
- Is a compatibility filter needed?


== Why this belongs in Core ==

This is a Core routing and query interpretation issue, not a theme-specific or plugin-specific problem.

A valid shared URL to a singular object should not become a search or 404 because a third-party platform appended a generic `s` parameter. WordPress can make this more resilient by allowing the resolved singular path to take precedence over accidental search parameters."	jonoaldersonwp		dev-feedback
Defects Awaiting Review	39442	Custom rewrite endpoints and wp_old_slug_redirect		Rewrite Rules	normal	defect (bug)	new	2017-01-03T00:21:03Z	2026-06-03T06:57:29Z	"Previously: #33920

{{{wp_old_slug_redirect}}} currently only handles core rewrite endpoints (like {{{feed}}} and {{{embed}}}). If you have a custom rewrite endpoint, you end up redirected back to the new permalink.

You can use the [old_slug_redirect_url https://developer.wordpress.org/reference/hooks/old_slug_redirect_url/] filter to redirect correctly but the filter does not pass the post id, which makes things a bit challenging (especially if you need to do any processing beyond just appending the endpoint).

It would be nice if the post id was passed into the {{{old_slug_redirect_url}}} filter:

{{{
$link = apply_filters( 'old_slug_redirect_url', $link, $id );
}}}

It would be even nicer if the redirect handled custom endpoints automatically as well."	batmoo	4.7	has-patch
Defects Awaiting Review	51662	Pagination adds extra trailing slash at the end of some URLs		Rewrite Rules	normal	defect (bug)	new	2020-10-29T10:20:37Z	2025-06-04T10:33:33Z	"WordPress 5.5.1 pagination adds extra trailing slash at the end of some URLs.

Normally, our website's URLs don't have trailing slash at the end of the URL.

We have found some bug on the_posts_pagination() function on WordPress 5.5.1.

[At page 2 of a category]https://stepstraining.co/strategy/page/2:
**Previous link** = https://stepstraining.co/strategy/
**Page 1 link** = https://stepstraining.co/strategy/

[At page 3 or more than page 3 of a category]https://stepstraining.co/strategy/page/3:
**Page 1 link** = https://stepstraining.co/strategy/

All of the above URLs will 301 redirect to https://stepstraining.co/strategy --it should not have trailing slash at the end of the URL in the first place.



[At page 2 of a tag]https://stepstraining.co/seo/page/2:
**Previous link** = https://stepstraining.co/seo/
**Page 1 link** = https://stepstraining.co/seo/

[At page 3 or more than page 3 of a tag]https://stepstraining.co/seo/page/3:
**Page 1 link** = https://stepstraining.co/seo/

All of the above URLs will 301 redirect to https://stepstraining.co/seo --it should not have trailing slash at the end of the URL in the first place.


The bug was gone when we tested adding **untrailingslashit()** to below code:
**File** : /wp-includes/general-template.php
esc_url( apply_filters( 'paginate_links', untrailingslashit($link) ) ),"	thornsteps	5.5.1	has-patch
Defects Awaiting Review	63353	Invalid type false for permalink_structure property		Rewrite Rules	trivial	defect (bug)	new	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		has-patch
Defects Awaiting Review	36486	is_apache in vars.php does not always work		Rewrite Rules	normal	defect (bug)	new	2016-04-11T22:42:10Z	2024-07-31T18:20:32Z	"The $is_apache variable does not always work when using an Apache module like security2_module with the SecServerSignature option. By removing the word ""Apache"" from the name of the server vars.php will no longer detect that the server is Apache.

A simple solution is to add an addition check: || function_exists('apache_get_version')!== false

Any Apache only function will work.

See attached patch from WP 4.4.2

I discovered this caused issues with the RewriteRules, randomly WordPress would add index.php/ within the permalinks when editing the permalink options in the wp-admin.

Not sure if this should be called a bug or an enhancement, leave it up to core team to decide that.

I would not remove the first 2 checks though, it is possible that the apache_get_version is disabled in the php.ini. I would recommend adding the option to the current checks just to be 100% sure."	amandato	4.4.2	has-patch
Defects Awaiting Review	60713	remove  'array_merge(...)' is used in a loop and is a resources greedy construction. from generate_rewrite_rules	pbearne	Rewrite Rules	normal	defect (bug)	assigned	2024-03-07T00:06:18Z	2024-04-10T15:21:38Z		pbearne		has-patch
Defects Awaiting Review	60330	redirect that working incorrectly!		Rewrite Rules	normal	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		
Defects Awaiting Review	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	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		
Defects Awaiting Review	58516	url_to_postid does not return post id for static Posts page		Rewrite Rules	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	56381	WordPress creates invalid web.config -file		Rewrite Rules	normal	defect (bug)	new	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	6.0	has-patch
Defects Awaiting Review	54654	Can flush_rewrite_rules() be called automatically after changing the site URL?		Rewrite Rules	normal	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		
Defects Awaiting Review	54161	"WordPress destroy iis web.config when using ""location"" config."		Rewrite Rules	critical	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	5.8.1	
Defects Awaiting Review	53545	Domain Mapping not working with page as homepage		Rewrite Rules	normal	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	5.7.2	
Defects Awaiting Review	52969	Permalink for /wp-includes falls back to blog post		Rewrite Rules	normal	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	5.6.1	
Defects Awaiting Review	52419	Pagination adds trailing slash when it shouldn't		Rewrite Rules	minor	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	5.6	
Defects Awaiting Review	44773	Non Existing Child Page of Custom Post Redirects Instead of 404		Rewrite Rules	critical	defect (bug)	new	2018-08-10T19:33:17Z	2020-09-11T05:07:03Z	"Steps to reproduce: 

1. Register Custom Post Type with hierarchical set to true (We'll call it events)
2. Create the following structure in the CPT: 
* Test
* Test 2
 * Child (Child of Test 2)
3. Go to https://localhost/events/test/child and this will redirect you to https://localhost/events/test-2/child instead of returning a 404. 

Extra Step: 
If you create a normal page of ""Test"" and try to navigate to https://localhost/test/child, it will redirect to https://localhost/test-2/child. 

All this was done on vanilla WordPress on Twenty Seventeen theme. 

{{{
function register_my_cpts_events() {

	/**
	 * Post Type: Events.
	 */
	
	$labels = array(
		""name"" => __( ""Events"", """" ),
		""singular_name"" => __( ""Event"", """" ),
	);
	
	$args = array(
		""label"" => __( ""Events"", """" ),
		""labels"" => $labels,
		""description"" => ""Event overview and resource pages"",
		""public"" => true,
		""hierarchical"" => true,
		""menu_icon"" => ""dashicons-calendar-alt"",
		""supports"" => array( ""title"", ""editor"", ""thumbnail"", ""excerpt"", ""revisions"", ""page-attributes"" ),
	);
	
	register_post_type( ""events"", $args );
}

add_action( 'init', 'register_my_cpts_events' );
		
}}}
"	Asitha	4.9.8	dev-feedback
Defects Awaiting Review	50943	add_rewrite_rule() sample codes don't work for passing multiple params		Rewrite Rules	critical	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	5.5	
Defects Awaiting Review	50726	Pagination error on 4 digit page when category and year are in the permalink structure		Rewrite Rules	minor	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	5.5	needs-patch
Defects Awaiting Review	34683	Default .htaccess config creates rewrite infinite loops for path-based multisite installations		Rewrite Rules	normal	defect (bug)	new	2015-11-14T20:16:54Z	2020-03-27T14:11:01Z	"Default .htaccess config for path-based multisite installations looks like that:
{{{
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L] 
}}}

The problem is in these lines:

{{{
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
}}}

`?` sign makes expression `([_0-9a-zA-Z-]+/)` optional, so rule works also for request like `http://example.com/wp-config/file.png` and basicly try to internal redirect request to the same address. If file does not exist, it creates infinite internal loops that causes internal server errors.

There is no sense create rewrite rules for main site of network and site prefix should no be optional for rewrites. Correct .htaccess content should be:

{{{
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
}}}
"	rob006	4.3.1	needs-patch
Defects Awaiting Review	40719	iis7_add_rewrite_rule and iis7_delete_rewrite_rule create malformed web.config		Rewrite Rules	normal	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	4.7.4	
Defects Awaiting Review	49155	WP_HOME constant will force-redirect static front page but not posts on front page		Rewrite Rules	normal	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	5.3.2	
Defects Awaiting Review	42120	htpasswd protection not working due to .htaccess rewrite rules		Rewrite Rules	normal	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	4.8.2	
Defects Awaiting Review	38518	Rewrite Rules rebuilding on parse_request		Rewrite Rules	normal	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	4.6.1	
Defects Awaiting Review	46000	non empty post object in case of error 404		Rewrite Rules	normal	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	5.0.3	
Defects Awaiting Review	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	normal	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	5.0.3	needs-patch
Defects Awaiting Review	43881	url_to_postid doesn't works with custom post type in PhpUnit Test		Rewrite Rules	normal	defect (bug)	new	2018-04-27T14:10:38Z	2018-12-21T02:32:13Z	"In the {{{functions.php}}} I have the following code:

{{{#!php
<?php
function post_type_products()
{
    register_post_type(
        'products',
        [
            'labels' => [
                'name'               => 'products',
                'singular_name'      => 'products',
                'add_new'            => 'Add New',
                'add_new_item'       => 'Add New Product',
                'edit_item'          => 'Edit Product',
                'new_item'           => 'New Product',
                'all_items'          => 'All Product',
                'view_item'          => 'View Product',
                'search_items'       => 'Search for Product',
                'not_found'          => 'No product found',
                'not_found_in_trash' => 'No product found in the Trash',
                'menu_name'          => 'products',
                'parent_item_colon'  => '',
            ],
            'description'   => 'Product description',
            'public'        => true,
            'rewrite'       => ['slug' => 'products'],
            'menu_position' => 5,
            'supports'      => ['title', 'editor', 'excerpt'],
            'has_archive'   => true,
            'menu_icon'     => 'dashicons-id-alt',
        ]
    );
}

add_action('init', 'post_type_products');
}}}

Then I need to test it. And for this test I create the test record via factory class:

{{{#!php
<?php
$post_data = [
            'post_title'     => 'Test Post',
            'post_content'   => 'Test Post Content',
            'post_excerpt'   => 'Test Post excerpt',
            'post_type'      => 'products'
        ];

      $this->factory->post->create($post_data);
}}}

The problem is when I got URL from following code:
{{{$url = get_permalink($this->factory->post->create($post_data));}}}
The function {{{url_to_postid}}} return {{{0}}}

{{{#!php
<?php
$id = url_to_postid($url) // this will return 0;
}}}

This is big problem because in my backend code I use the URL of the custom post type for determinate the ID of this URL. When it works outside of the context of the unit test it's work very well. And I can got ID from the URL from custom post type products. But when this is in the unit test context the function {{{url_to_postid}}} doesn't work as well.

"	skarabeq		
Defects Awaiting Review	44039	attachment rewrite rule redirects to posts instead of showing 404		Rewrite Rules	minor	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		
Defects Awaiting Review	19493	post and archive pagination don't work with custom endpoints		Rewrite Rules	normal	defect (bug)	new	2011-12-09T23:55:09Z	2018-01-25T20:22:02Z	"Archive pagination and post pagination are not endpoint-aware, so they break when endpoints are added to them.  

The following example code creates an endpoint, and then uses a filter to add that endpoint to various links on the rendered page:

{{{
add_action( 'init', function() {
	global $wp_rewrite;
	add_rewrite_endpoint( 'foo', EP_ALL );
	$wp_rewrite->flush_rules(false);
} );

add_filter( 'post_link', 'gist_add_endpoint_to_url', 99 );
add_filter( 'get_pagenum_link', 'gist_add_endpoint_to_url', 99 );
function gist_add_endpoint_to_url( $url_base ) {
	$endpoint = 'foo';

	$url_parts = parse_url( $url_base );

	$url = ( isset($url_parts['scheme']) && isset($url_parts['host']) ) ? $url_parts['scheme'] . '://' . $url_parts['host'] : '';

	$url .= isset($url_parts['path']) ? $url_parts['path'] : '';

	$url = user_trailingslashit( $url );

	if ( '' === get_option('permalink_structure') ) {
		$url .= isset($url_parts['query']) ? '?' . $url_parts['query'] : '';

		$url = add_query_arg( $endpoint, 'true', $url );
	} else {
		$url .= $endpoint . '/true';
		$url = user_trailingslashit( $url );
		$url .= isset($url_parts['query']) ? '?' . $url_parts['query'] : '';
	}

	$url .= isset($url_parts['fragment']) ? '#' . $url_parts['fragment'] : '';

	return $url;
}
}}}

You'll see that it works perfectly using the theme unit test, except that paginated posts produce URLs like this:
http://example.com/2008/09/layout-test/foo/true/2/ 
...which doesn't work.  The inverse -- http://example.com/2008/09/layout-test/2/foo/true/  -- also doesn't work, and produces a 404 on top of it. 

Also, the older posts / newer posts produce this format of link:
http://example.com/page/2/foo/true/
.. .which also doesn't work.

If you change gist_add_endpoint_to_url() to add a querystring param, older posts/newer posts links work fine, but post pagination still breaks:
{{{
function gist_add_endpoint_to_url( $url_base ) {
	$endpoint = 'foo';
	$url_base = add_query_arg( $endpoint, 'true', $url_base );
	return $url_base;
}
}}}

If you don't use a permalink structure at all, it works fine, since the pagination params are passed directly in the URL.

I'm not sure if the fix lies in modifying add_rewrite_endpoint() so that it creates pagination urls in wp_rewrite, or modifying the way _wp_link_page() and get_next_posts_link() work.  "	mintindeed	2.1	needs-patch
Defects Awaiting Review	42478	Add_permastruct ignores EP_NONE and other args if %post_id% is present in struct		Rewrite Rules	normal	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	4.9	
Defects Awaiting Review	42328	directory listing, missing index.html		Rewrite Rules	normal	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	4.8.2	
Defects Awaiting Review	19896	Non-WP rewrites not saved on a multisite install		Rewrite Rules	normal	defect (bug)	new	2012-01-25T16:14:20Z	2017-08-22T14:29:46Z	"The following code adds a rewrite rule which is classed as a non-WP rewrite rule because its redirect doesn't begin with `index.php`, and is stored in the `non_wp_rules` member variable of the `WP_Rewrite` class.

{{{
function my_rewrite() {
	add_rewrite_rule( 'login/?$', 'wp-login.php', 'top' );
}
add_action( 'init', 'my_rewrite' );
}}}

On a single site install, this rewrite rule gets saved directly to the .htaccess file rather than being added to WordPress' internal rewrite array.

On a multisite install, this doesn't happen and the rewrite rule has no effect (probably because once a site is multisite-d WordPress no longer writes to .htaccess). The rule has to be manually added to .htaccess.

Likely introduced in 3.0, reproduced in 3.3 and trunk."	johnbillion	3.0	needs-patch
Defects Awaiting Review	41680	Added rewrite tags using add_rewrite_tag() not working on static front-page		Rewrite Rules	normal	defect (bug)	new	2017-08-20T19:46:58Z	2017-08-20T19:46:58Z	"Hello everyone,

the following ticket is a little bit similar to the issue described here: #25143

== Introduction ==

I am working on a plugin which provides a shortcode. This shortcode generates some content/output on a page where it is placed on. The shown output depends on optional URL-parameters. For example those two URLs result in different outputs:

- my-site.com/my-page
- my-site.com/my-page?'''foo'''=''bar''

In preparation for pretty URLs I have to register a new rewrite-tag '''foo''':

{{{#!php
add_rewrite_tag('%foo%', '([^/]*)');
}}}

This allows me (in combination with the corresponding rewrite rules) to use pretty URLs like this:

- my-site.com/my-page/'''foo'''/''bar''

As expected you can access the assigned value ''bar'' of '''foo''' with the following code:

{{{#!php
$value_of_foo = get_query_var('foo'); // returns: bar
}}}

== Problem ==

This all works fine as long as the page which includes the shortcode is not set as the sites static front-page. In this case your URLs will usually look like that:

- my-site.com (the content of the static page is shown)
- my-site.com/?'''foo'''=''bar'' (from here it is broken)

So, whats happening? Instead of generating and showing the content based on the URL parameter, the second URL loads the front-page but instead of showing the content of the static page, it acts like the blog page and shows the list of the latest posts.

The problem is that {{{is_home}}} is improperly set to {{{true}}} because we now have a custom query-var in our URL which basically makes the content of a ''static'' page not ''static'' anymore. But this fact shouldnt let WordPress showing the list of the latest posts-page instead. This problem makes it impossible for users to place and show the content of a shortcode - which is based on (prettyfied) URL-parameters - on their static front-page.

At the moment I am using the following code as a workaround but I think this is not an optimal long-term solution for this problem:

{{{#!php
function fix_query_vars_on_front_page($query) {
    // Dont do this workaround when we are in the administration area or when we are not inside the main query.
    if (is_admin() || !$query->is_main_query()) {
        return;
    }

    // Cache the actual query vars first.
    $queryVarCache = $query->query;

    // Only continue when our query vars are not already empty.
    if (!empty($queryVarCache)) {
        // Remove our query vars from the cache when they are set.
        if (isset($queryVarCache['foo'])) {
            unset($queryVarCache['view']);
        }

        // When our cache is empty, we are on a front-page (is_home() or is_front_page()). Ensure that the following filtering only happens on a static front page.
        if (empty($queryVarCache) && get_option('show_on_front') === 'page') {
            // Get the ID of the front page and add it to the query vars.
            $query->query['page_id'] = get_option('page_on_front');

            // Reparse the query.
            $query->parse_query($query->query);
        }
    }
}

add_action('pre_get_posts', 'fix_query_vars_on_front_page');
}}}

Maybe some way to add custom rewrite tags without adding them as a query var would be a possible solution for this. Of course there would be a need to add a function to access them, for example {{{get_rewrite_var('foo')}}} instead of {{{get_query_var('foo')}}}.

I am looking forward that WordPress will make this possible in a future version. :-)"	Asgaros	4.8.1	
Enhancements Awaiting Review	66496	Tests: Add unit coverage for the permalink methods of WP_Rewrite		Rewrite Rules	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	34136	Allow register_post_type's rewrite to remove CPT slug		Rewrite Rules	normal	enhancement	new	2015-10-02T23:20:58Z	2025-09-30T11:05:28Z	"Not sure if there are reasons (outside of naming conflicts) why register_post_type's rewrite does not allow an empty value as an argument to remove the post type slug from its future post URL's.

After a lot of research and some code from @JanBeck at my wordpress.stackexchange question: [http://wordpress.stackexchange.com/questions/203951/remove-slug-from-custom-post-type-post-urls] its clear that naming conflicts between a CPT and Page type URL's are being avoided.

I propose:

{{{
'rewrite' => array( 'slug' => '', 'with_front' => false ),
'has_archive' => 'something',  // will now default to false to avoid possible conflict
}}}

then proper rewrite rules should be added to allow for the removal of this CPT slug and disallow the CPT to create conflicting URLs in the future. eg publishing ones that match page URL's the same as native posts append a '-1' to a conflicting URL.

This will solve a large problem where users are trying to hack around this by creating their own rewrite rules, hacking post.php, and pre_get_posts solutions.




"	BenRacicot	4.3.1	
Enhancements Awaiting Review	64037	New filters for managing rewrite rules		Rewrite Rules	normal	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		
Enhancements Awaiting Review	46283	Allow filtering post-type archive rewrites		Rewrite Rules	normal	enhancement	new	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	3.1	has-patch
Enhancements Awaiting Review	29118	Registering rewrite rules is hard, so let's introduce remove_rewrite_rule.		Rewrite Rules	normal	enhancement	new	2014-08-05T15:20:27Z	2024-08-14T08:42:25Z	"A plugin cannot use the current Rewrite API to register/deregister rewrite rules on plugin activation/deactivation elegantly, without being extremely hacky. 

Current best practice is to add rewrite rules via init, and flush properly on activation/deactivation hooks in your plugin:

{{{
#!php
function add_some_rewrite_rules() {
	add_rewrite_rule( ... );
}
add_action( 'init', 'add_some_rewrite_rules' );

register_activation_hook( __FILE__, function() {
	add_some_rewrite_rules();
	flush_rewrite_rules();
} );

register_deactivation_hook( __FILE__, function() {
	flush_rewrite_rules();
} );
}}}

However, there is a race condition on the deactivate request: init triggers first, adding your rewrite rule, so when you flush rewrite rules in the deactivation function, the rewrite rule persists.

You have some dirty options: checking the script being run in add_some_rewrite_rules() to sniff for a request for the plugin being deactivated comes to mind, I'm sure there are others.

This would be much easier if we had a remove_rewrite_rule() function we could hit on deactivation, and probably read better. "	ericlewis		has-patch
Enhancements Awaiting Review	56592	Add filter to wp_redirect_admin_locations()		Rewrite Rules	normal	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	6.0.2	
Enhancements Awaiting Review	40395	New action: pre_generate_rewrite_rules		Rewrite Rules	normal	feature request	new	2017-04-08T13:20:38Z	2019-09-02T09:00:02Z	"I suggest add new action in WP_Rewrite class.

Why? I need add new permastruct. I can use for example admin_init, but I think it isn't optimal if rewrite rules in saved in permalink page or via call function."	sebastian.pisula		has-patch
Enhancements Awaiting Review	47526	Flagging system needed to help flush rewrite rules on post type registration from a plugin		Rewrite Rules	normal	feature request	new	2019-06-11T16:31:51Z	2019-07-11T21:59:40Z	"When activating or deactivating a plugin with post types or taxonomies the timing of flushing rewrite rules is very cumbersome. There are also inconsistencies on how flushing rewrite rules ""should"" be handled when activating vs deactivating.

Further, some plugins remove the rewrite rules added for a post type by other plugins.

I think it is worth considering the implementation of a unified API for flushing rewrite rules to help plugin developers flush permalinks registering with post types and taxonomies.

I believe a good starting point would be to add a flagging system to the database. The flagging system would allow authors to check for the flag and execute code when the flag is available. This seems to be a common practice already.

Example implementation:

{{{#!php
<?php
// Plugin Name: My Plugin

add_action( 'init', function() {
    register_post_type('book', ['public' => true]);
});

function my_plugin_activate() {
    update_site_state_changed( 'flush_rewrite_rules' );
}

function my_plugin_deactivate() {
    update_site_state_changed( 'flush_rewrite_rules' );
}

register_activation_hook(__FILE__, 'my_plugin_activate');
register_deactivation_hook(__FILE__, 'my_plugin_deactivate');

}}}

The applied patch is for proof of concept. Not intended to be final.
"	kevindees	5.2.1	dev-feedback
Enhancements Awaiting Review	46087	Short-circuit `page_on_front` check during site creation		Rewrite Rules	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	18450	New safe action to add rewrite rules on		Rewrite Rules	normal	enhancement	new	2011-08-16T19:56:10Z	2018-09-21T18:07:32Z	"Currently I don't believe it's possible to meet the following two criteria:

* Not flush rewrite rules on every page load
* Ensure that you always have your rewrite rules available

The problem arises when Plugin A has not yet added it's rewrite rules, but Plugin B calls ```flush_rewrite_rules```. Plugin A is a good citizen, and doesn't call ```flush_rewrite_rules``` unless it needs to and so now it's rewrite rules are no longer present. (See http://wordpress.stackexchange.com/questions/26029/when-to-call-add-rewrite-rule-for-safety for more.)

Westi suggested that hooks on delete_option and get_option of 'rewrite_rules' might work. This covers almost all situations, except the one where permalinks are off and then get turned on again when neither the delete_option or get_option actions/filters are fired.

Devs could hook the new action for their ```add_rewrite_rule``` calls, and use their own methodology to determine when to call ```flush_rewrite_rules```.

Two attachments:

* Example plugin, showing (hopefully) the problem with the existing situation
* Diff showing where the hook might be added

"	simonwheatley	3.2.1	dev-feedback
Enhancements Awaiting Review	43678	Add indents to default .htaccess rules		Rewrite Rules	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	34776	Introduced the `$site_root` and `$home_root` parameter in `mod_rewrite_rules`		Rewrite Rules	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	41946	Option to delete_with_markers		Rewrite Rules	normal	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	4.8.2	
Reporter Feedback / Close	40440	Clarify behavior of `options-permalink.php` in documentation		Rewrite Rules	normal	defect (bug)	new	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		close
Reporter Feedback / Close	43544	Pages over 999 in archive return 404		Rewrite Rules	normal	defect (bug)	new	2018-03-14T11:09:15Z	2025-10-27T12:12:32Z	Whenever you have more than 3 digits page numbers WordPress returns a 404.	catalinnita	4.9.4	reporter-feedback
Reporter Feedback / Close	57507	function wp_unique_post_slug inconsistent for numerical page slugs, e.g. 404		Rewrite Rules	minor	defect (bug)	new	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	6.1.1	close
Defects Awaiting Review, reported against no version	40340	"""Attach to existing content"" modal shows posts and pages of other users"		Role/Capability	normal	defect (bug)	reopened	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		has-patch
Defects Awaiting Review, reported against no version	40950	wp_terms_checklist() does not pass $post_id to current_user_can()		Role/Capability	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	47338	is_super_admin() should check a different capability		Role/Capability	normal	defect (bug)	new	2019-05-21T14:07:18Z	2026-10-21T11:46:10Z	"Currently is_super_admin() returns true in case the user has the delete_users cap (in case of a single site). 
Since admins may want to delegate users managemente capability, IMHO a more appropriate capability to check is 'activate_plugins' or, better, check more than a single capability."	lllor		dev-feedback
Defects Awaiting Review	40197	meta cap 'publish_post' is not being used	johnbillion	Role/Capability	normal	defect (bug)	reviewing	2017-03-18T14:48:43Z	2024-10-25T17:29:58Z	#21288 adds ''publish_post'' to meta cap but it is not being called anywhere. I tried to log it using ''map_meta_cap'' at the post edit page. There is only ''publish_posts'' called but not ''publish_post''	panjmp	3.5	has-patch
Defects Awaiting Review	50123	Roles & Caps: give anonymous users the `read_post` meta cap for public posts.		Role/Capability	normal	defect (bug)	new	2020-05-07T23:30:23Z	2024-01-26T07:45:24Z	"The meta capability `read_post` is used to determine if a user is permitted to read a post. For public posts (ie, both a public post type and public post status), it returns the `$post_type->cap->read` as the required primitive capability.

As logged out users do not have any primitive capabilities, this causes `current_user_can( 'read_post', $post_id )` to return a false negative for logged out users wishing to read a public post.

**Approach one:**

For public posts the `read_post` meta capability returns an empty array of primitives.

**Approach two:**

Logged out users are given the `$post_type->cap->read` capability for public post types. 

**Approach three:**

WP gives logged out users the `read` primitive capability, if a developer uses an alternative primitive for public custom post types, then the developer is responsible for ensuring anonymous users have the capability.

**Notes:**

* ~~Private multisite sites should not allow logged out users to see such posts~~ ''Edit: removed as it's not a core feature of Multisite''
* Many, many unit tests will be required

"	peterwilsoncc		needs-unit-tests
Defects Awaiting Review	59585	Unchecked variable creates fatal error in wp-includes/class-wp-user-query.php		Role/Capability	normal	defect (bug)	new	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	6.3.2	needs-unit-tests
Defects Awaiting Review	50260	Multisite - Getting actual user capabilities with get_role_caps() different with current_user_can()		Role/Capability	normal	defect (bug)	new	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	5.4.1	needs-docs
Defects Awaiting Review	50252	Capability issue with admin menu		Role/Capability	normal	defect (bug)	new	2020-05-26T04:20:02Z	2023-06-24T05:55:23Z	"An answering of a question on Stack Exchange ([https://wordpress.stackexchange.com/questions/367518/how-do-i-code-access-to-the-built-in-ui-of-a-cpt-when-its-placed-as-submenu-of]) led to the reporting of this bug.  Please refer to it for further explanation and coding examples.

When a custom post type is registered, the {{{show_in_menu}}} option allows for the UI link of the custom post type to be nested under the menu of a second custom post type.  However, if the user is authorized to view/edit the first post type, the UI of said nested post type is unavailable if the user does not also possess the capabilities required of the post type represented in the parent menu.

The bug is this:  the admin menu is properly displaying the links to pages which the user is capable of viewing, but the user is not permitted to access those pages.  The same can be said of any page whose link is nested in the admin menu under a page which the user does not possess the required capabilities of that parent."	mort1305	5.4.1	
Defects Awaiting Review	19747	Roles add_cap should call update_user_level_from_caps()		Role/Capability	normal	defect (bug)	reopened	2012-01-05T11:17:32Z	2022-05-13T22:08:51Z	"Hey guys,

I've created a new user role, which didn't appear in the Author drop down list due to #16841. The workaround is to add a level_1 capability to that user, but because wordpress doesn't call update_user_level_from_caps() function when you add_cap, that isn't actually applied to existing users on the role, and you have to move them to a different role and back again if you want to apply the changed user role.

I'd suggest adding a call to update_user_level_from_caps() to add_cap (and remove_cap) to fix this in wp-includes/capabilities.php"	lgladdy	3.3.1	
Defects Awaiting Review	54966	Inconsistent checking of read permission for singular vs non-singular queries		Role/Capability	normal	defect (bug)	new	2022-01-28T04:42:50Z	2022-02-03T02:21:12Z	"Apologies if this has already been reported, as I wasn't sure exactly what to search for, but I expect it's a very old behaviour.

When performing a singular query, the `read_post` meta capability is [https://github.com/WordPress/WordPress/blob/5.9/wp-includes/class-wp-query.php#L3190 checked] and the post not returned if the user is not allowed to read it.

The same does not happen for non-singular queries. Instead, a primitive capability is [https://github.com/WordPress/WordPress/blob/5.9/wp-includes/class-wp-query.php#L2593 checked], which may not always yield an accurate result if the post type is using some non-standard capability mapping.

It would be good if `read_post` could be checked individually on each of the posts being returned."	manfcarlo		
Defects Awaiting Review	51651	The `read_post` meta capability returns an incorrect result for the inherit post status.		Role/Capability	normal	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	3.4	
Defects Awaiting Review	52247	Author role unable to set featured image (Error 403)		Role/Capability	normal	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	5.6	
Defects Awaiting Review	49345	User with admin privileges cannot edit some pages/posts		Role/Capability	normal	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	5.3.2	needs-patch
Defects Awaiting Review	49287	Users with no page deletion capabilities can delete homepage in multisite		Role/Capability	normal	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		
Defects Awaiting Review	47897	Introduce method to introduce new roles and caps independently of db upgrades.		Role/Capability	normal	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		
Defects Awaiting Review	38714	Taxonomy meta boxes do not work right with Custom Post Types that use custom capabilities		Role/Capability	normal	defect (bug)	new	2016-11-08T18:42:31Z	2019-03-25T23:52:11Z	"Category and tag taxonomies have the capability required for ""assign_terms"" set to ""edit_posts"", as in the global `$wp_taxonomies['category']->cap->assign_terms` for example. This becomes a problem with custom post types that define a custom capabilities array specifying a different edit capability and the usual ""edit_posts"" capability for particular roles is removed, though they have the proper edit CPT capability. Then the corresponding meta box on the CPT edit screen is not properly interactive.

For example, I create a CPT called ""Contributions"" and map the ""edit_posts"" capability to ""edit_contributions"". I also create a ""Contributor"" role that has all the expected capabilities for Contributions posts, including ""edit_contributions"" This role does not have the usual ""edit_posts"" and other default post and page capabilities, other than ""read"". The role also has ""manage_categories"" capability.

When logged in as a user with only the Contributor role, when I go to the edit contributions screen, I can see the categories meta box, but cannot assign any terms to the current contributions post. The checkboxes are inactive. Similarly for tags, I can see the tags meta box, but it has no content.

This issue was brought up in this forums post: https://wordpress.org/support/topic/custom-post-type-with-categories-and-tags-checkbox-disabled/"	bcworkz	4.6	
Defects Awaiting Review	46440	WP_Roles data doesn't load correctly when 'switch_to_blog' is called in a multisite.		Role/Capability	normal	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	5.1	
Defects Awaiting Review	45879	WP_User::set_role() does not remove previous roles		Role/Capability	normal	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		
Defects Awaiting Review	43877	Do not run unnecessary `user_has_cap` filter if the caps to check for include `do_not_allow` already		Role/Capability	normal	defect (bug)	new	2018-04-27T12:27:30Z	2018-09-17T11:21:33Z	"`do_not_allow` is a fake capability used essentially as a blacklist, saying that nobody can perform that action. It's typically returned in the `map_meta_cap()` result for an actual capability check. If `do_not_allow` is part of that array, it is immediately clear that the final result of the `WP_User::has_cap()` method will be `false`.

Currently however, the following code in the function still executes, including a `user_has_cap` filter. Since we already know the return value if `do_not_allow` is present in the `$caps` array checked for, everything happening afterwards is entirely unnecessary overhead. Especially since [40993] it should be clear that nothing can get around a `do_not_allow` being present.

For efficiency and possibly performance reasons, I suggest we check for `do_not_allow` right after the `map_meta_cap()` call, and if it is present, return false."	flixos90		needs-unit-tests
Defects Awaiting Review	42136	manage_links should be a custom capability not a default		Role/Capability	minor	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	4.8.2	
Defects Awaiting Review	40214	Some WP instances  prematurelly try to do capability tests, before the user object is loaded		Role/Capability	normal	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	4.7.3	
Enhancements Awaiting Review	43885	WP_Role and WP_Roles::get_role() missing Display Name		Role/Capability	normal	enhancement	new	2018-04-27T21:19:41Z	2026-11-07T00:48:23Z	"Hello,

While working with roles I found it odd that you can add a Display Name for a role but the WP_Role class and the WP_Roles function get_role don't provide this information.

Please add $display_name as a public attribute of WP_Role so it's available on that object and would be returned in the get_role function.

Thank you
P.S. Currently to access this information you have to use the WP_Roles as follows;
{{{#!php
<?php
$wp_roles->roles[$role]['name'];
}}}
"	garrett-eclipse		dev-feedback
Enhancements Awaiting Review	5942	Add Owner role		Role/Capability	normal	feature request	reopened	2008-02-21T10:13:08Z	2026-09-09T19:14:31Z	"This patch adds a new 'owner' role.  The owner is an administrator who cannot be demoted, deleted or edited by other administrators.  Owner is a secondary role - the user is both an administrator and an owner.

In the current implementation there is only one owner at a time.  The current owner can transfer ownership of the blog to another administrator on the Transfer Ownership tab (under Users).  I implemented this as a plugin because some site owners won't want the feature there at all.

This is of most interest for MU, but it's also probably useful for some regular WordPress blogs with multiple users.

This would be particularly useful in conjunction with the user_role table from #5541, but it works fine with or without it."	tellyworth	3.1	
Enhancements Awaiting Review	64306	Enhancements: Add 'designer' user role, Collaborator groups/teams, display multiple contributor types and co-authors, contributor heirarchy on posts/pages		Role/Capability	trivial	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		
Enhancements Awaiting Review	41674	More granular capabilities for restoring and permanently deleting trashed posts		Role/Capability	normal	enhancement	new	2017-08-19T16:00:27Z	2025-09-01T20:41:31Z	"Currently the user capability required for restoring a trashed post or permanently deleting a trashed post is `delete_post`, which maps to `delete_posts`. There should be a separate capability for each of these actions.

Suggestion:

* `restore_trashed_post` which maps to `restore_trashed_posts` which maps to `delete_posts`.
* `delete_trashed_post` which maps to `delete_trashed_posts` which maps to `delete_posts`.

Emptying the trash should use the `delete_trashed_posts` capability.

This allows for more granular control over which users can or cannot restore or permanently delete posts."	johnbillion		needs-unit-tests
Enhancements Awaiting Review	40320	Feature idea: Rename roles		Role/Capability	normal	enhancement	new	2017-03-30T21:16:48Z	2023-02-02T16:11:56Z	"There are some help topics available online where users manipulate the role names (not the slug but the display label).
Why not make a simple helper function rename_role() for this?"	keraweb	4.8	dev-feedback
Enhancements Awaiting Review	56373	La EDICION de Contenidos y los ROLES de Usuario		Role/Capability	normal	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		
Enhancements Awaiting Review	55106	Split publish_posts in publish_posts and publish_others_posts		Role/Capability	normal	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		
Enhancements Awaiting Review	17924	Make Integrating Multiple Roles Per User Easier for Plugin Authors		Role/Capability	major	enhancement	new	2011-06-28T23:40:48Z	2021-07-20T16:41:38Z	"WordPress supports multiple role per user, however to use this feature is very difficult for plugin authors to integrate well, and often requires adding plugin admin pages instead of integrating with the pre-existing user-edit.php. Due to the difficulty of this, and the fact that most plugins that allow this aren't very user-friendly, I believe users are staying away from multiple roles.

This ticket aims to change how easy it is to work with the current role management system, as well as to add a couple role-based filters and actions, while still keeping the front-end of the administrative interface single-role only. (Because it seems to be the prevailing opinion the multiple roles per user is plugin territory.) In addition, I completely agree that the vast majority of sites can best function with one role per user, however in some cases (such as the site I'm working on now) you simply need to be able to choose multiple roles.

= Changes =

== First Patch File ==
attachment:Replace_Admin_Role_Dropdown.patch
The first patch file moves the code for the role dropdown off of /wp-admin/user-edit.php, /wp-admin/includesclass-wp-users-list-table.php, /wp-admin/users-new.php, /wp-admin/options-general.php and into /wp-admin/includes/template.php where two new functions are created:

=== {{{wp_get_dropdown_roles()}}} ===
This function does what {{{wp_dropdown_roles}}} used to do, but it returns the value instead of echoing it. (Note that {{{wp_dropdown_roles()}}} now acts as a wrapper for {{{wp_get_dropdown_roles()}}}. (The old function is still in place for backwards compatibility.)

=== {{{wp_user_role_selector()}}} ===
This function creates the full dropdown and applies a new {{{'user_role_selector'}}} filter to the markup before echoing it out. This way the default dropdown can be overridden by something else (perhaps checkboxes). 

== Second Patch File == 
attachment:Create_Role_Update_Actions_Filters.patch 
The second patch file changes the functions that handle user creation and updating so they can be hooked into and a developer could make this work with multiple roles. This file affects /wp-admin/includes/users.php and /wp-includes/user.php.

=== {{{wp_sanitize_user_role()}}} ===
A new {{{sanitize_user_role}}} filter was created and sanitation of {{{$_POST['role']}}} in /wp-admin/includes/user.php when user-edit.php is submitted was moved there. The new function is called {{{wp_sanitize_user_role()}}}. (This is so that if user-edit.php is submitted and {{{$_POST['role']}}} were to contain a value other than a string (perhaps an array of roles) it can be sanitized and worked with accordingly.

=== {{{pre_user_role}}} ===
A new {{{pre_user_role}}} filter was added to {{{wp_insert_user()}}} in /wp-includes/user.php. This was mainly done because almost every other field that this function processes has a matching filter like this, and I thought maybe {{{$roles}}} felt left out as it did not. :(

I supposed somebody could also use it for something useful as well.

=== {{{apply_user_role}}} ===
A new {{{apply_user_role}}} action was added to {{{wp_insert_user()}}}. The function itself no longer uses {{{$user->set_role()}}}, instead saving user role changes is now handled by this new action. A matching function {{{wp_apply_user_role()}}} was added to set the user role like {{{wp_insert_user()}}} used to do. This way however, a plugin author could simply hook into {{{apply_user_role}}} to apply multiple roles to a user.

= Conclusion =
All in all, this patch was designed so that the average user would never even notice that a change has been made to user management, however a plugin author looking to add an easy way for people to select multiple roles for a user can quickly hook into this and have a nice, easy, well integrated and WordPress-like plugin.

I have done a few tests adding users and changing roles around with these patches applied on a fresh installation with no plugins and the only changes to WordPress being those that are in the attached patches, and everything seems to work seamlessly.

By the way, I am quite new to WordPress, so I added the needs-testing tag, because it does, but I also want to make sure I've done everything the 'WordPress' way and I want to make sure I havn't missed anything that is broken because of these small changes."	mobius5150	2.0	dev-feedback
Enhancements Awaiting Review	52350	Add documentation about meta capabilities		Role/Capability	normal	enhancement	new	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		needs-docs
Enhancements Awaiting Review	51334	Implement enhanced post_status transition capabilities		Role/Capability	normal	feature request	new	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		dev-feedback
Enhancements Awaiting Review	23391	User in contributor role can add images to post only via the text editor		Role/Capability	normal	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		needs-patch
Enhancements Awaiting Review	44476	Backend section Access based on Role/User		Role/Capability	normal	feature request	new	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	4.9.6	dev-feedback
Enhancements Awaiting Review	43210	Introduce singular capabilities for managing individual options		Role/Capability	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	36691	"Ability to disable ""Password Protected"" post option"		Role/Capability	normal	enhancement	new	2016-04-27T19:19:02Z	2018-03-10T17:59:50Z	"We don't want any of our posts accidentally being published as ""password protected.""

It would be helpful to have a filter to disable that part of the UI."	paulschreiber		needs-patch
Enhancements Awaiting Review	38276	"""Is thing public/accessible"" API"		Role/Capability	normal	feature request	new	2016-10-10T16:13:16Z	2017-09-23T20:45:44Z	"'''Question:''' How do you check if a non-logged-in user is allowed to view something in WordPress? (Posts specifically, and also in general?)

'''Answer:''' Within WordPress there is no API for checking whether a non-logged-in user is allowed to view a post or other object.

== Capabilities API

There is the role and capabilities API, but only logged-in users will have a role or any capabilities. A visitor to the site who is not logged-in will thus not have even the `read` capability. `WP_User::has_cap( 'read' )`, and thus `current_user_can( 'read' )`, will return `false`, while `user_can()` will peremptorily return `false` if the user ID passed does not exist before even calling `WP_User::has_cap()`.

''Thus, while we can check if a logged-in/existing user can view a post via the capability API, we cannot use it to check whether a non-logged-in user can view the post.''

== Underlying Philosophy

The underlying philosophy that is used within WordPress is that objects such as posts are public by default. '''Everything is accessible to everyone unless specifically restricted.'''

This is, in a word, a blacklist-style approach. The object is public, unless it blacklists/restricts itself in some way.

When an object is public, the capabilities API, and the concept of capabilities in general, no longer applies as to whether that object is accessible. The object is accessible by default.

The question becomes “is this post publicly visible?” rather than “does this user have the ability to view this post?""

The capabilities API, on the other hand, operates on a whitelist philosophy—nobody is allowed to do anything (and thus nobody has any capabilities), unless specifically granted permission.

These two different approaches make sense in different scenarios. However, it starts to get sticky when the two intersect. And that is exactly what happens with the `read` capability: we're now checking the whitelist to check a blacklist. And when the user isn't logged in, the capability isn't in the whitelist, which causes everything to get blacklisted—they don't have the capabilities to read any posts at all.

== Why doesn't this explode?

Obviously, WordPress has gotten along quite well up to this point without everything flying apart though. Non-logged-in users ''can'' view public posts—otherwise you and I wouldn't be able to see about 25% of the web right now. So yes, of course non-logged-in users do get to view those posts. They are public, they aren't restricted. But they get to view them despite not having the `read` capability.

In other words, usually this doesn't cause any issues. That's why nobody has brought it up before (that I know of—probably they have). Why? Because usually posts are retrieved for display via `WP_Query`, and it bypasses the `read` capability. Instead, it works from the philosophy of public by default discussed above, and internally handles all of the logic for checking if the post is publicly visible or restricted from the current user. So, any time that you are using `WP_Query`, you will automatically get all of the posts, minus those that were restricted in some way (blacklisting, as it were).

== Okay, so then who cares?

Good question. After all, shouldn't we always be using `WP_Query` to retrieve posts?

=== People not using `WP_Query`

Well, yes. But, what if we aren't retrieving a post? What if we have a plugin where we are storing some information that relates to a post in a separate table, and we want to display that information publicly on the site. But because that information references the post in a potentially identifying manner, we can't show it to users who can't view the post. I'd say that's a perfectly valid use-case.

So how would we check if the current user can see the information for a particular post? I know what you were about to suggest: ""Use `current_user_can()`!"" But yeah, now you know why that won't work: that's a capability check, and non-logged-in users will not have any capabilities. So non-logged-in users wouldn't be able to view the information for any of the posts, even those that they can view publicly on the site.

Now, you might say, ""Just check if the post is public."" Yes, and thanks for telling my how to do that. Should I use the `just_check_if_the_post_is_public()` function? :-) That's what this ticket is about.

=== People adding accessibility restrictions

Another reason to care about this is that it means that when somebody wants to restrict the visibility of posts they have to hook-in multiple places: in the capabilities API for the `read` cap, and for the post retrieval logic in `WP_Query`.

That is not the main focus of this ticket, and it may not really be practical to solve at all. However, I'm not sure how many developers realize that they need to consider both of these things.

== So what do you propose?

In this ticket, I'm '''not''' really suggesting that we:

- throw out the `read` capability. (Back-compat nightmare.)
- modify the caps API to handle non-logged-in users differently. (Fundamental change in an API, probably not practical.)

I ''am'' suggesting that there is a need for a new API, to formally provide a means of determining whether a post (or any object) is publicly accessible. This API would include a function like `is_thing_accessible( $thing_id )` (and perhaps `is_thing_accessible_for_user( $user_id, $thing_id )`).

== Is that ''really'' needed?

Now, I know that some might suggest that this really isn't needed, because you can just check if the post has a public status. That is true in theory, but in practice things are more complex.

First, let me reiterate that what I'm proposing isn't just for posts, it is for any objects, of which posts are one, comments another, users another.

Secondly, using posts as an example,a plugin can add extra restrictions that cause posts with otherwise public stati to not be publicly accessible to all users. So it isn't a viable solution to just duplicate each core check that would normally apply to posts—others might be added by plugins.

For capability checks I don't have to worry about that. I just check for a particular cap and anything that affects that cap will just hook into `map_meta_cap` and I never have to know. But if the user is logged out I can't use the capability API, and suddenly the onus is on me to know about every possible restriction that could ever apply to a post, in order to check if the post is public. I should be able to check `is_thing_accessible( $post_id )` and just forget it, same as I can do with `current_user_can( 'read_post', $post_id )`.

We are talking about non-logged-in users here after all. If a restriction isn't taken into account, it doesn't just mean that some less privileged users can view the object, it means that everybody can.

----

I [https://wordpress.slack.com/archives/core/p1476106801005182 brought this up] and [https://wordpress.slack.com/archives/core/p1476107282005192 discussed it with @johnbillion] in the `#core` channel on Slack before creating this (admittedly long-winded) ticket.

"	jdgrimes	4.7	dev-feedback
Enhancements Awaiting Review	41778	Archive page for user roles		Role/Capability	normal	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	4.8.1	
Reporter Feedback / Close	60026	Strange behavior WordPress in multisite environment wicustomizer		Role/Capability	normal	defect (bug)	new	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	6.4.2	close
Reporter Feedback / Close	37917	Users without the edit_private_posts capability can still create private posts		Role/Capability	normal	defect (bug)	new	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	2.1	close
Reporter Feedback / Close	44017	Add filter to display edit post link without 'edit_post' capability		Role/Capability	major	enhancement	new	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		reporter-feedback
Reporter Feedback / Close	39939	A Contributor cannot preview their own post if it's scheduled		Role/Capability	minor	defect (bug)	new	2017-02-22T12:52:02Z	2025-09-20T06:31:26Z	"Steps to reproduce:

1. A Contributor writes a post and submits it for review. At this point they can preview their post.
2. An Editor or Administrator approves the post and schedules it for publication at a later date.
3. The contributor viewing the Posts listing table can no longer preview their post.

Previously: #33694
"	johnbillion		needs-unit-tests
Reporter Feedback / Close	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	major	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	49673	Mass select change of role is bugged.		Role/Capability	normal	defect (bug)	new	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		reporter-feedback
Reporter Feedback / Close	42532	Custom post type : redirection bug after publish when cap edit_published_cpt is not set		Role/Capability	normal	defect (bug)	new	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		reporter-feedback
Defects Awaiting Review	63693	wp_should_load_block_assets_on_demand doing it wrong too early		Script Loader	normal	defect (bug)	new	2025-07-11T18:27:45Z	2026-10-20T13:41:22Z	"`wp_should_load_block_assets_on_demand()` calls `wp_is_rest_endpoint()` which generally only works after `parse_request` hook (since that's where the constant gets defined) https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/script-loader.php#L2644 since it will always return false before that hook.

The same thing also for `wp_should_load_separate_core_block_assets()`  https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/script-loader.php#L2609

However it's often called way too early, e.g. on ""init"" hook, e.g. in WooCommerce https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/src/Blocks/BlockTypesController.php#L632 and https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/src/Blocks/BlockTypesController.php#L633

Or in WP core itself, e.g. when calling `wp_register_style(` on ""init"", it will subsequently call `wp_default_styles()` and then the load block assets on demand function.
The same also in WP core `register_block_type_from_metadata(`, essentially all the stuff on init in ""blocks"" wp-includes, e.g. `register_block_core_archives()` on init
Or for example even in the file that's declaring those: https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/script-loader.php#L1798

I guess that all those ""init"" registered block things should be moved to run later on ""parse_request"" (or ""wp"") hook? Or alternatively, remove the ""wp_is_rest_endpoint()"" check since at the point in time it's called on ""init"", it's not ready yet and always returns false.

Possibly add a ""doing_it_wrong"" in wp_is_serving_rest_request for ! did_action( 'parse_request' )"	kkmuffme		has-patch
Defects Awaiting Review	66156	W3C Error : Element style not allowed as child of element body in this context.		Script Loader	minor	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		
Defects Awaiting Review	63179	Dependencies should load in the footer if the script is loaded in the footer		Script Loader	normal	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		
Defects Awaiting Review	63043	script-loader 'colors' src true invalid argument		Script Loader	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	62265	wp-admin honors style-sheet <=> 'SCRIPT_DEBUG' is true.		Script Loader	normal	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	6.6.2	
Defects Awaiting Review	59972	Clarify description of wp_script_add_data()		Script Loader	normal	defect (bug)	new	2023-11-27T18:21:20Z	2024-10-10T19:00:20Z	"The function description does not include `strategy` as a possible value for `$key`. Suggest to adjust to indicate function is a wrapper for `WP_Scripts::add_data()`, and then add possible values `conditional` and `strategy` to `WP_Scripts::add_data()` function description or parameter description.

> This documentation does not make it very clear that this can’t be used for adding arbitrary values attributes to the script tag. It only supports ‘conditional’ or, more recently, a “strategy” value.
>
> For adding an alternate `type` attribute, for example, you’ll still need to use older strategies like the `script_loader_tag` filter.
> 
> [https://wordpress.stackexchange.com/questions/387674/wp-script-add-data-doesnt-seem-to-work See this StackExchange post for details.]

Reported by @mrwweb via User Contributed Notes."	crstauf		has-patch
Defects Awaiting Review	61828	Global Styles: Refactor wp_add_inline_style() to use HTML API		Script Loader	normal	defect (bug)	new	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	6.7	has-patch
Defects Awaiting Review	61435	Style dependencies are not inlined		Script Loader	normal	defect (bug)	new	2024-06-13T14:24:13Z	2024-06-15T06:25:13Z	"in #50836 we added the ability to inline styles but

style dependencies to specific styles are not automatically inlined eventhough a path is provided.

The problem :

{{{
wp_register_style( 'alice', $url_alice );
wp_style_add_data( 'alice', 'path', $path_alice );
wp_register_style( 'bob', $url_bob, array( 'alice' ) );
wp_enqueue_style( 'bob' );

// output
// <link rel='stylesheet' id='alice-css' href='...' media='all' />
// <link rel='stylesheet' id='bob-css' href='...' media='all' />
}}}



The expected result is to have **alice** inline before **bob**. 
But **alice** is always loaded as external resources.

To achieve **alice** inline I have to manually wp_enqueue_style **alice**.

{{{
wp_enqueue_style( 'alice' );
wp_enqueue_style( 'bob' );

// output
// <style id='alice-inline-css'>...</style>
// <link rel='stylesheet' id='bob-css' href='...' media='all' />

}}}

Currently, wp_maybe_inline_styles only checks on enqueued styles

We should recheck if dependencies could be output inline.

 
How to reproduce: in attachment a child theme.


"	mosne	5.8	
Defects Awaiting Review	59780	Add functionality to dequeue a block style added via wp_enqueue_block_style		Script Loader	normal	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		
Defects Awaiting Review	55485	Clarify `wp_should_load_separate_core_block_assets()`, `block.json` script expectations		Script Loader	normal	defect (bug)	new	2022-03-30T00:49:10Z	2023-10-25T10:27:44Z	"In the `block.json` [https://github.com/WordPress/gutenberg/blob/45a8e6be0eb7fca87d64ce8140792b30e6bc4a20/schemas/json/block.json schema], the `script` property is described as:

> ""Block type frontend and editor script definition. It will be enqueued both in the editor and when viewing the content on the front of the site.""

From that description, I expect the `script` set in my block's `block.json` to load in the editor and on the front-end when my block is in use. I do not expect the script to load on the front-end when my block is not in use.

If I activate TwentyTwentyTwo, everything works as expected.

If I activate TwentyTwentyOne, my script appears on every front-end view, whether or not the block is loaded.

The cause of this can be tracked to `wp_should_load_separate_core_block_assets()`, which has a short description of:

> Checks whether separate styles should be loaded for core blocks on-render

This implies at the beginning of the function documentation that the function will only apply to **core** blocks.

The longer description helps a bit, but is muddied up in talking about core and third-party blocks separately when in reality it seems that they are treated the same. It mentions `block-library/style.css`, which itself implies this _might_ be talking about styles rather than all assets.

The filter inside the function, `should_load_separate_core_block_assets`, defaults to `false` for themes that are not FSE and has a short description of:

> Filters whether block styles should be loaded separately.

The longer description refers only to ""core block assets"".

-----
== Proposal

My guess is that we can't just change the filter to default to `true`, though that would be ideal. :)

I think the function docs could be clarified with something like:

{{{
/**
 * Checks whether block assets should always load or only on-render.
 *
 * When this function returns true, block assets defined by the `script` and
 * `style` properties in `block.json` are loaded on-render.
 *
 * When this function returns false, these block assets are always loaded,
 * regardless of whether the block is rendered in a page.
 *
 * This only affects front end and not the block editor screens.
}}}

And the filter docs with something like:

{{{
 * Filters whether block assets should always load or load only on-render.
 *
 * Returning false loads all block assets, regardless of whether they are rendered
 * in a page or not. Returning true loads block assets only when they are rendered.
}}}

Previously #53505
"	jeremyfelt		
Defects Awaiting Review	59539	wp_register_style and wp_register_script adds ver incorrectly		Script Loader	major	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	6.3.1	
Defects Awaiting Review	59114	Infinite loop after upgrading from WordPress 6.1.3 to 6.2		Script Loader	normal	defect (bug)	new	2023-08-15T20:20:09Z	2023-08-30T18:10:34Z	"Regeristing a function with the 'wp_video_shortcode_library' filter hook that enqueues a script causes an infinite loop, resulting in WordPress running out of memory. 

It seems that the $wp_scripts global is being set to null at some point and being reinitialized, which causes this loop since the 'wp_video_shortcode_library' filter is called as part of the wp_default_scripts function in script-loader.php. This is my theory anyways. I'm not familiar enough with the WordPress codebase to say for sure.

To recreate this issue, you can make a basic theme with an empty index.php, only the theme definition inside the style.css, an empty js file (to try to enqueue), and a functions.php that registers the hook.

{{{#!php
<?php
// functions.php
add_filter( 'wp_video_shortcode_library', 'test_video_shortcode_library_enqueue_script' );
function test_video_shortcode_library_enqueue_script() {
	wp_enqueue_script( 'basic-video-shortcode', get_parent_theme_file_uri( '/media-test.js' ), array( ), '', true );
	return 'test_video_mejs';
}
}}}

The above worked before version 6.2, and the bug is still present in version 6.3. Downgrading back to 6.1.3 fixes the problem.

"	kevincorrigan	6.3	
Defects Awaiting Review	58075	wp_enqueue_scripts action not firing at the right time with block themes		Script Loader	major	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	6.2	needs-patch
Defects Awaiting Review	54956	"[5.9] wp_block_type args - ""style"" and ""script"" are always loaded on Frontend"		Script Loader	normal	defect (bug)	new	2022-01-27T17:15:29Z	2022-07-19T13:58:22Z	"Before 5.9 - `style` and `script` are loaded when the block is added to specific page.
After 5.9 - `style` and `script` are always loaded, on all pages, all the time, everywhere, regardless if the block is displayed on specific page or not.

More info about my use case:
- `style` and `script` both reference a registered script/style, which have multiple dependencies (`wp_register_style` has `$deps` array defined that references more registered styles)

Temporary fix I did to the client code:
- Replacing `style` and `script` with `styles` and `view_script` fixed the issue

However this ""fix"" requires specific WP Core version - 5.8.3 should use `style` and `script`, while 5.9 should use `styles` and `view_script`."	pkostadinov	5.9	needs-unit-tests
Defects Awaiting Review	55030	wp_enqueue_script( 'jquery-ui-autocomplete' ) - is enqueueing a bunch of extra scripts I don't need		Script Loader	normal	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		
Defects Awaiting Review	54993	Inline output using wp_enqueue_block_style adds unnecessary paths		Script Loader	normal	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	5.9	
Defects Awaiting Review	54777	passing empty object to wp_localize_script will convert it to empty array instead of empty object		Script Loader	normal	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		
Defects Awaiting Review	53848	'is_feed was called incorrectly' notice if `wp_styles()` is called before the query		Script Loader	normal	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	5.8	
Defects Awaiting Review	49742	No longer able to enqueue multiple Google Fonts with wp_enqueue_style		Script Loader	normal	defect (bug)	new	2020-03-31T16:03:07Z	2021-11-10T00:04:08Z	"I'm using wp_enqueue_style to enqueue this Google Font file. Here is my code:

wp_enqueue_style( 'google-fonts', 'https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,700;1,400&family=Neuton:ital,wght@0,300;0,400;0,700;1,400&display=swap', [] );

This is in my functions.php file.

However, when I view source on my loaded page, the URL for that font file is cut down to: https://fonts.googleapis.com/css2?family=Neuton%3Aital%2Cwght%400%2C300%3B0%2C400%3B0%2C700%3B1%2C400&display=swap&ver=5.3.2

As you can see, the first family param has been removed after being outputted through wp_enqueue_style. Is there a way to fix this without doing anything hacky? I think there may be an outdated way to build the URL to both to come through, but I'd rather be able to use what Google now provides. My original URL inside wp_enqueue_style is the URL generated by Google Fonts for me to embed.

SO post here: https://stackoverflow.com/questions/60953810/why-cant-i-enqueue-multiple-google-fonts-in-wordpress-functions-php/60954323#60954323"	tannerm		
Defects Awaiting Review	47789	"NGINX: Request for media-view.js leads to ""zero size buf in writer"""		Script Loader	normal	defect (bug)	new	2019-07-28T13:14:52Z	2019-10-20T11:56:28Z	"I do currently have an issue loading the media-view.js file in backend, which leads to multiple js errors on pages or media grid. Checking the logs show an ""zero size buf in writer"" error for these requests.

The error occurs even on deactivated plugins and default theme. So I tried to debug this down.

I am running multiple WordPress sites locally over NGINX (laravel) in development mode, where SCRIPT_DEBUG is true; so it tries to load the unminidfied version of the file. Replacing it´s content with the minified version solves the bug.

I do currently not know, what causes the empty buffer."	d.sturm		
Defects Awaiting Review	45106	Concerns related to moving mce_external_plugins filter to WP_Scripts::__construct		Script Loader	normal	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	5.0	
Defects Awaiting Review	43900	Add hint about blocked Javascript as possible error reason in script-loader.php		Script Loader	normal	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		needs-patch
Defects Awaiting Review	42440	Uncaught TypeError: $(...).wpColorPicker is not a function		Script Loader	normal	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	4.8.3	
Enhancements Awaiting Review	66642	Command Palette: Make every admin screen faster by loading the palette only when it is opened		Script Loader	normal	enhancement	new	2026-11-10T10:15:01Z	2026-11-10T18:17:33Z	"'''This patch makes wp-admin pages ready about twice as fast for everyone who works in the dashboard, by loading the Command Palette only when someone actually opens it instead of on every page.'''

On a Settings screen, the page becomes usable in 57 ms instead of 127 ms with a warm cache, and in 299 ms instead of 910 ms on a simulated slower device, with less than half the scripts. The palette itself works exactly as before: Ctrl/Cmd+K and the toolbar button still open it, and the editors are unchanged.

=== Background

Since [61022] (#63845), `wp_enqueue_command_palette_assets()` runs on `admin_enqueue_scripts` for every admin screen. It enqueues `wp-commands` and `wp-core-commands`, which pull in most of the block editor's dependency tree: `react`, `react-dom`, `wp-element`, `wp-components`, `wp-data`, `wp-core-data`, `wp-block-editor`, `wp-blocks`, `wp-rich-text`, `wp-compose`, `moment`, `wp-api-fetch`, `wp-router`, `wp-preferences`, `wp-keyboard-shortcuts` and others, plus the render-blocking `wp-commands` and `wp-components` stylesheets.

Every classic admin screen (Dashboard, Posts, Plugins, Settings, any plugin's own page) downloads, parses and executes all of this before `DOMContentLoaded`, although the palette is only needed once someone presses Ctrl/Cmd+K or clicks its toolbar button (#64672).

=== Proposed change

The attached patch loads the palette on first use on screens that do not already load the commands package.

* `wp_enqueue_command_palette_loader()` replaces `wp_enqueue_command_palette_assets()` on `admin_enqueue_scripts`. It builds the palette settings (menu commands included) exactly as before, attaches the `wp.coreCommands.initializeCommandPalette()` call to `wp-core-commands`, and enqueues only a new 1.4 KB script, `wp-command-palette-loader`.
* `wp_print_command_palette_assets_template()` runs on `admin_print_footer_scripts` (priority 20). It prints the `wp-commands` style and the `wp-core-commands` script with `WP_Styles::do_items()` / `WP_Scripts::do_items()` into an inert `<template id=""wp-command-palette-assets"">`. Only what the page has not printed yet ends up there, and inline scripts, translations and localized data come along, since the regular printing code produces the markup.
* On Ctrl/Cmd+K or a click on the toolbar button, the loader preloads every script in the template, inserts them in their printed order (waiting for each one, so inline `before`/`after` scripts keep their order), inserts the stylesheets, and then opens the palette with `wp.data.dispatch( 'core/commands' ).open()`. After that the palette's own keyboard shortcut handler takes over.
* Screens that already load the commands package, such as the post editor and the site editor, keep loading the palette up front: if `wp-commands` is already enqueued, `wp_enqueue_command_palette_loader()` enqueues `wp-core-commands` and the `wp-commands` style as before, and no template is printed.
* `wp_enqueue_command_palette_assets()` stays for direct callers such as the boot-based Font Library and Connectors pages, and still loads everything up front.
* The toolbar button no longer has an inline `onclick` that calls `wp.data`, which would not exist yet on a classic screen; the loader handles the click on every screen.
* `wp_prefetch_admin_assets()` no longer prefetches the `wp-commands` stylesheet from the login screen, since admin screens no longer load it up front. The editor prefetch still covers it through `wp-edit-post`.

I considered the smaller step of registering the palette handles with the `defer` strategy. It would stop them from blocking the parser, but deferred scripts still download and execute before `DOMContentLoaded` fires, on every screen. Loading on demand removes the cost from screens where the palette is never opened.

=== Measurements

Local wordpress-develop environment (trunk at 7.2-beta4-65231-src, Docker, PHP latest, nginx without gzip), single site, `wp-admin/options-general.php`, `SCRIPT_DEBUG` off. Headless Chromium (Playwright 1.64), 8 rounds each; each round is a fresh browser context (empty cache) followed by a reload (warm cache). Trunk was measured first, the patch afterwards on the same server. DOMContentLoaded is `domContentLoadedEventEnd` from Navigation Timing, given as median (min–max).

||= =||= trunk =||= patch =||
|| `<script src>` on the page || 80 || 39 ||
|| stylesheets on the page || 29 || 26 ||
|| bytes transferred, empty cache (uncompressed) || 7.35 MB || 1.57 MB ||
|| DOMContentLoaded, empty cache || 251 ms (236–902) || 97 ms (95–101) ||
|| DOMContentLoaded, warm cache || 127 ms (120–144) || 57 ms (55–108) ||
|| DOMContentLoaded, empty cache, 4× CPU slowdown || 910 ms (902–928) || 299 ms (292–303) ||
|| DOMContentLoaded, warm cache, 4× CPU slowdown || 452 ms (448–463) || 135 ms (128–141) ||

The first round of the unthrottled trunk run (902 ms) is a cold-server outlier.

The cost moves to the first time the palette is opened on a page: from the key press to the visible palette took 202–261 ms with an empty cache and 97–102 ms with a warm cache (localhost, no throttling). Opening it again on the same page is instant, as before.

Earlier, on a production WordPress 7.1.4 site (single site, a plugin admin page, headless Chromium, 8 alternating rounds with and without `remove_action( 'admin_enqueue_scripts', 'wp_enqueue_command_palette_assets' )`), the palette accounted for 42 of 59 scripts, +0.57 s DOMContentLoaded with an empty cache (1.65–1.79 s vs. 1.09–1.30 s) and about 2× with a warm cache (0.31–0.36 s vs. 0.17–0.21 s).

=== Testing

* New PHPUnit tests in `tests/phpunit/tests/dependencies/wpCommandPaletteLoader.php`; `wpPrefetchAdminAssets.php` updated. The `dependencies`, `scripts`, `admin-bar` and `script-modules` groups pass on single site and multisite, and the full single-site suite passes (32,226 tests).
* New Playwright spec `tests/e2e/specs/command-palette.test.js`: the palette is not loaded up front on a classic screen, opens with the shortcut and the toolbar button, runs a menu command, opens again after loading, and is still loaded up front in the block editor.
* Checked by hand: Cmd+K and the toolbar button on Settings and Posts, searching and running ""Settings > Permalinks"", the post editor and the site editor, no console errors."	ReneHermi	6.9	has-patch
Enhancements Awaiting Review	66322	Command Palette: Add keywords to admin menu commands		Script Loader	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65607	Add font-display: swap option when enqueuing/loading Google or local fonts on the frontend		Script Loader	normal	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	6.5	
Enhancements Awaiting Review	40276	enhancement: add a $type parameter to wp_add_inline_script()		Script Loader	normal	enhancement	new	2017-03-27T16:45:16Z	2026-05-27T19:33:27Z	"It would be helpful to add a $type parameter to wp_add_inline_script().

Currently, it can only output scripts of type text/javascript. If you want something of another type, you need to either use the script_loader_tag filter (which gets run for every script), or manually add the script using a wp_head action.

This will require changing several functions:
* wp_add_inline_script()
* WP_Scripts::add_inline_script()
* WP_Scripts::do_item()
* WP_Dependencies::add_data()
* _WP_Dependency::add_data()

Along with the data structure (array) used by add_data."	paulschreiber	4.7.3	dev-feedback
Enhancements Awaiting Review	40485	Add function for retrieving metadata from registered script		Script Loader	normal	feature request	new	2017-04-19T17:15:32Z	2025-08-21T15:55:32Z	"There is currently a function for adding metadata to a registered script (`wp_script_add_data()`), but no function for retrieving that metadata.

'''My use case'''
I am trying to write a unit test for a function in my plugin that generates data and calls `wp_localize_script()` to ensure the expected data is passed for localization.

'''Other Use Cases'''
I could see other use cases where a plugin could change a metadata value or add a new key if a certain value is assigned to a certain key."	desrosj	4.2	dev-feedback
Enhancements Awaiting Review	55639	Implement Async CSS		Script Loader	normal	enhancement	new	2022-04-28T10:14:06Z	2025-06-10T15:51:15Z	"Initially created as a Performance Lab issue: https://github.com/WordPress/performance/issues/120 by @dainemawer. Copied description below:

Another pattern to possibly follow is Asynchronous CSS - this was suggested by the Filament Group at some point and has had some decent results: https://www.filamentgroup.com/lab/load-css-simpler/

It is slightly hacky, but it involves loading CSS files with media attribute set to print - this allows the browser to load the stylesheet in a non render block fashion. Using the onload attribute, we can set media back to all so that the stylesheet is applied as one would expect. As fallback, the original link is included in a a <noscript> tag incase JS borks out:


{{{
<link rel=""stylesheet"" href=""/path/to/my.css"" media=""print"" onload=""this.media='all'"" />
<noscript>
<!-- No JS -->
<link rel=""stylesheet"" href=""/path/to/my.css"" media=""all"" /> 
</noscript>
}}}

This could possibly be an extension of wp_enqueue_style by adding another parameter:

{{{#!php
<?php wp_enqueue_style( $handle, $src, $deps, $ver, $media = 'all', $async = true ); ?>
}}}
"	mihaidumitrascu		
Enhancements Awaiting Review	47285	Better Management of External Asset Dependencies		Script Loader	major	feature request	new	2019-05-15T18:36:15Z	2024-07-24T19:45:48Z	"**Tl;Dr**: there **must** be a way for WordPress Plugins to indicate compatible versions of external dependencies, so as to reduce enqueuing multiple copies of the same external library. The issue is urgent with the ecosystem's migration to Blocks.

**Problem**
We've all been there; you install 3 plugins, and your website is enqueuing four copies of FontAwesome, and two copies of Bootstrap. Plus an extra one of each from your theme. Plus 3 different datepicker libraries and two `<select>` enhancements.

For most end-users, the buck stops there a their websites are left wasting precious resources loading things they don't need, further proof for detractors that WordPress and Performance are contradictory. For tech-savvy users and developers the headache just begins, and they begin to dequeue assets by trial-and-error, making sure everything is still compatible. And again each time anything updates.

Then there's the impending nightmare scenario: with the move from encompassing plugins to individual functionality Blocks, and the encapsulated dependencies each one will inevitably need to include to function autonomously (especially if/when the new Block Installer kills the need for All-in-One block plugins), **the number of unnecessary, duplicate dependencies is about to grow exponentially**.

**Solution**
WordPress needs to allow developers to define what external libraries and compatible versions their code requires, so it can automatically load only one copy of the necessary assets.

**Proposal**
''Warning: I'm nowhere close to being a DevOps expert. While I stand by the issue and generic solution, there's a 95% chance that the the proposal is ineffecient at best, and inherently flawed at worse. This goes doubly for any functions I'm making up on the spot.''

**1.** Allow users to semantically define what external dependencies they're using.

While WordPress is smart enough not to load identical asset handles, those handles are semantically meaningless. It's bad practice to give your external asset a generic name (there are times where you ''need'' a specific version or copy of an asset, else you'll have conflicts and incompatibilities), you currently end up with `plugin-bootstrap`, `my-bootstrap`, `bootstrap-four`, and `bootstrap`, with no way to know that 2 of them are the exact same file, and the 3rd one's source will work perfectly with that version.

A function, such as `wp_define_asset_library($handle, $library_name)`, would let WordPress know that all four files are actually Bootstrap, and you probably need to enqueue only one one them.

Want to use FontAwesome Pro instead of the free version? You could then simply dequeue all of them with the `$library_name`, instead of trying to figure out what each plugin author decided to call the one they bundled.

**Bonus**: Throw in a conditional `is_library_registered($library_name)`, and Block Authors could support both jQuery.Datepicker and PickaDate, and you wouldn't need to be running two JS libraries that do the same thing just because you're using blocks from two different authors! Hashtag Open Ecosystem.

''Note: a standard naming convention for dependency names would need to be agreed upon. I'd suggest using the official repository name, but as I said in my disclaimer, I don't know squat.''

**2.** Let Developers define supported versions of the library.

By giving a extra argument to our function above, and we've solved the headache of version conflicts!

Defining `$vers`, WordPress will be able to look at all 3 different versions of `bootstrap` and automagically know which one to include! Plugin A requires `4.1.1`, Plugin B  `^4.0`, and Plugin C is still stuck with `~3.0.5`, and suddenly you've been able to drop a redundant library but your legacy plugin is still working fine! 

Imagine a world where you could use jQuery 3.4 without worrying about WordPress' precious back-compat. Heck, imagine being confident enough to get rid of jQuery as a frontend dependency althogether, because you know for certain only one plugin is using it, and it offers a vanilla JS alternative (via the conditional in #1)!

**Bonus**: If two versions need to be included, WordPress could even tell the plugin to 'auto-encapsulate' one of them! Say goodbye to manual 'No Conflict Modes' and hours of plugin support time wasted telling end-users ""Our plugin is incompatible with one of your other installed plugins. Disable them one-by-one until you find the culprit, and then bet it's developer to update it's version of select2"", and hello to increased interoperability!

''Note: suggested practice would be for the developer to include the most up-to-date version compatible with their plugin, while declaring compatibility for earlier versions. WordPress would would then include the most-recent version(s) from whichever source meets the criteria.''

**Implementation & Backwards Compatibility**
Again, I'm no expert, but from my utterly uninformed point of view, this is easy to implement both without breaking backwards compatibility, and possible improving it going forward.

`wp_register_script` and `wp_register_style` get one extra parameter: `$library_name`. `$ver` gets a check to see if it's a number or the min/max version syntax. If we're worried about human readability then you put `$library_name` as the fifth argument and if it's a boolean you treat it as the old in footer.

Ditto for if you use `wp_enqueue_whichever` to register the asset when enqueuing. If the script is already registered, it checks whether there's an associated library before doing the enqueue process (below).

A new function `wp_define_asset_library($handle, $library_name, $ver)` (yeah this shouldn't be the actual name) lets either the plugin developer, or ''more importantly'' the user, easily associate any external assets declared the old way with an external library.

The `$wp_scripts` global, essentially stays the same but with the new array value. I'm not a performance expert but maybe another global `$wp_script_libraries` contains a multidimensional array of `$library_name`s, with the defined handle and version of each.

The enqueue process checks if `$library_name` is defined, and if so begins the automagical process of figuring out which asset to enqueue:
-parses the version requirements for all the same libraries.
-If several are in the same range it enqueues the highest compatible version version.
-any versions that aren't in a range, and any assets that don't have an external library are enqueued normally.


`wp_dequeue/deregister_style_library($library_name, $versions)` and `wp_dequeue_script_library`, gets rid of all associated assets in that range.

`is_library_registered($handle, $vers)` let's you do cool things like support multiple libraries based on what other plugins, or choose whether to to register an asset altogether (e.g. use jQuery.Datepicker if it - or jQuery is enqueued, else register a vanilla JS version).

Similarly, `$is_enqueued_multiple_times(handle)`, let's authors prepend a `$noconflict_prefix` when necessary.

---------------------
Again, I'm sure there's a bunch of unseen issues with this, but end of the day the switch to Blocks (and especially the push for individual blocks decoupled from a larger plugin) is going to bring around an external library apocalypse.

We need to find and implement a solution, and soon! 
"	justlevine		
Enhancements Awaiting Review	61356	Add $is_module as an extra strategy argument when enqueueing js script.		Script Loader	normal	enhancement	new	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	6.6	dev-feedback
Enhancements Awaiting Review	60734	Deregistering Open Sans		Script Loader	normal	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	6.4.3	
Enhancements Awaiting Review	56993	I want to put a filter in the wp_enqueue_block_support_styles function.		Script Loader	normal	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	6.1	
Enhancements Awaiting Review	56425	wp_localize_script assign to const and freeze instead of var to avoid reassignments		Script Loader	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	51200	Consider a better way to deprecate JavaScript code		Script Loader	normal	enhancement	new	2020-08-31T20:56:32Z	2020-08-31T21:30:53Z	"Background: #51123

At the moment, we have some established functions for deprecating PHP functionality:
* `_deprecated_function()`
* `_deprecated_constructor()`
* `_deprecated_file()`
* `_deprecated_argument()`
* `_deprecated_hook()`
As well as some files to move deprecated functions to:
* `wp-admin/includes/deprecated.php`
* `wp-admin/includes/ms-deprecated.php`
* `wp-includes/deprecated.php`
* `wp-includes/ms-deprecated.php`
* `wp-includes/pluggable-deprecated.php`

We don't, however, have a similar way to deprecate JavaScript functionality, sometimes leading to more breakage than necessary when removing global objects or properties without backward compatibility considerations.

[48923] attempted to improve things a bit introducing `deprecatedProperty()`.

Some ideas previously suggested to further make sure we have a way to deprecate JavaScript code properly:
* Have a clear deprecation policy of when the affected code should be removed.
* Use the [https://developer.wordpress.org/block-editor/packages/packages-deprecated/ @wordpress/deprecated] package (suggested by @ocean90 in comment:33:ticket:51123).
* Create a `deprecated.js` file for the code to be moved to (suggested by @desrosj on Slack)."	SergeyBiryukov		
Enhancements Awaiting Review	47350	Add method to get JSON from a file without using file_get_contents()		Script Loader	normal	enhancement	new	2019-05-22T18:39:40Z	2019-05-22T19:51:49Z	"This came up on a discussion about the use of `file_get_contents()` in WP Themes. Right now that function is banned and for good reason on w.org themes since it can be grossly abused and lead to malicious code.
However, recently it became a recommendation in https://github.com/WordPress/gutenberg/blob/9ce596cd568d30c76fd4a0257e2872da91d4966a/packages/dependency-extraction-webpack-plugin/README.md#wordpress

There was further discussion in the #core-editor slack channel - see  https://wordpress.slack.com/archives/C02QB2JS7/p1558546491251400 for reference.

The suggestion was to add a new method/function to get what is required, without forcing plugin and theme authors to use `file_get_contents()`, and we could add any security checks required in that function."	aristath	5.3	needs-patch
Enhancements Awaiting Review	37162	wp_style_add_data and wp_script_add_data should accept SRI information		Script Loader	normal	enhancement	new	2016-06-24T01:34:38Z	2018-11-14T15:27:09Z	"Subresource Integrity Hashes (SRI) is now recommended for many CDN sourced CSS and JavaScript as provided for in http://www.w3.org/TR/SRI/ .  WordPress does not allow SRI code (or anything other than a set list) to be added via wp_*_add_data.  The same applies to javascript loading in addition to stylesheet loading.

wp_*_add_data should support these tags instead of currently silently ignoring them.  The two tag keys are crossorigin and integrity.

Example of recommended link tags that should be generated:
{{{
<link rel=""stylesheet"" href=""https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css"" integrity=""sha384
-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd"" crossorigin=""anonymous"">

<link href=""https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"" rel=""stylesheet"" integrity=""sha384-T
8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1"" crossorigin=""anonymous"">
}}}


Expected (currently non-working usage)
{{{
wp_enqueue_style('bootstrap', ""https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css"", array(), null, 'all');
wp_style_add_data('bootstrap', 'crossorigin', 'anonymous');
wp_style_add_data('bootstrap', 'integrity', 'sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd');
}}}
"	michaelkrieger	4.5.3	
Enhancements Awaiting Review	43781	adding apply_filters on $handle in localize		Script Loader	normal	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	4.9.5	
Enhancements Awaiting Review	38800	add WP_ADMIN_URL and WP_INCLUDES_URL constants		Script Loader	normal	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		
Reporter Feedback / Close	61657	"Script ""in_footer"" => false with ""defer"" will make all dependencies that are not deferred load in head"		Script Loader	normal	defect (bug)	new	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		close
Reporter Feedback / Close	44211	Add cookie domain to `userSettings` script localize		Script Loader	normal	feature request	new	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		close
Reporter Feedback / Close	61755	Use WPINC constant in script-loader.php		Script Loader	normal	defect (bug)	new	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		close
Reporter Feedback / Close	38548	Add new filters on wp_script_is/wp_style_is		Script Loader	normal	enhancement	new	2016-10-28T13:41:52Z	2025-08-13T11:54:12Z	"Minification engines tend to group dependencies and then enqueue them in a single file so enqueues handles change their names. So imagine this situation:

Handles `style-1` and `style-2` are now grouped into a file and the new handle name is `group-1`

Once grouping is done `wp_style_is('style-1', 'done')` won't work as style-1 and 2 are now inside `group-1` so `wp_style_is('group-1', 'done')` would work but this is just known by the plugin that minifies the styles/scripts. I don't know if the point is clear enough.

By adding a new filter this would help a lot to remap those handles names. The filter can be placed easily in `WP_Dependencies::query()` method like this:

{{{#!php
<?php
public function query( $handle, $list = 'registered' ) {
		$query = false;
		switch ( $list ) {
			case 'registered' :
			case 'scripts': // back compat
				if ( isset( $this->registered[ $handle ] ) ) {
					$query = $this->registered[ $handle ];
				}
				break;

			case 'enqueued' :
			case 'queue' :
				if ( in_array( $handle, $this->queue ) ) {
					$query = true;
				}
				else {
					$query = $this->recurse_deps( $this->queue, $handle );
				}
				break;

			case 'to_do' :
			case 'to_print': // back compat
				$query = in_array( $handle, $this->to_do );
				break;

			case 'done' :
			case 'printed': // back compat
				$query = in_array( $handle, $this->done );
				break;

		}
		return apply_filters( 'script_is_query', $query, $handle, $list, $this );
	}
}}}

Any thoughts?
"	igmoweb	4.7	close
Reporter Feedback / Close	59076	Proposal for removing the version numbers of the JS and CSS files when SCRIPT_DEBUG is set to true		Script Loader	normal	enhancement	new	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		close
Reporter Feedback / Close	60850	Localize script not working in WordPress 6.5-RC3-57856		Script Loader	normal	defect (bug)	assigned	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	6.5	close
Reporter Feedback / Close	59132	Create two filters in wp_scripts() and wp_styles().		Script Loader	normal	enhancement	new	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	4.2	reporter-feedback
Reporter Feedback / Close	55695	error on script_loader.php		Script Loader	normal	defect (bug)	new	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	5.9.3	reporter-feedback
Defects Awaiting Review	57447	"wp_ajax_inline_save function does not check if post has ""public"" or ""show_ui"" enabled"		Security	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	65572	Unsafe usage of href attribute in wp-admin/js/post.js		Security	normal	defect (bug)	new	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	7.0	has-patch
Defects Awaiting Review	65573	Unsafe usage of href attribute in wp-admin/js/link.js		Security	normal	defect (bug)	new	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	7.0	has-patch
Defects Awaiting Review	65054	$_GET['pagenow'] and $_GET['widget'] unsanitized in dashboard AJAX handler	rajeshcp	Security	normal	defect (bug)	assigned	2026-04-09T16:50:52Z	2026-07-18T12:12:21Z	"$_GET['pagenow'] and $_GET['widget'] unsanitized in dashboard AJAX handler
Both values are read directly without sanitize_key(). While the switch/comparison limits damage, unsanitized
  superglobal access violates WordPress coding standards unconditionally."	rajeshcp		has-patch
Defects Awaiting Review	65574	Unsafe usage of href attribute in wp-admin/js/common.js		Security	normal	defect (bug)	new	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	7.0	has-patch
Defects Awaiting Review	65052	Nonce check order flaw in post-quickdraft-save	rajeshcp	Security	normal	defect (bug)	assigned	2026-04-09T13:06:03Z	2026-05-19T20:54:37Z	"$_REQUEST['post_ID'] is used to load a post object before the referer is actually checked on line 93. A
  crafted request can cause a database lookup on an arbitrary post_ID before authorization. $_REQUEST['_wpnonce'] is
  also accessed without checking key existence."	rajeshcp		has-patch
Defects Awaiting Review	60864	URL sanitizing strips valid characters instead of encoding, documented use is invalid		Security	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	63940	Prevent POST flood cache bypass attacks		Security	normal	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	6.8.2	
Defects Awaiting Review	58679	meta key field in usermeta table should NOT use accent insensitive collations		Security	major	defect (bug)	new	2023-06-30T09:09:50Z	2025-08-19T09:41:07Z	"Looking at the latest string of vulnerability issues that came up related to the [Ultimate Member plugin](https://wordpress.org/plugins/ultimate-member/) I discovered that the usermeta table has an accent insensitive collation for the `meta_key` field. This results in queries for `wp_cãpăbilitiës` to return the actual `wp_capabilities` row! See `update_metadata()` function in wp-includes/meta.php

Imagine the attack surface this brings. In fact, don't imagine, just look at the recent attacks in the wild.

Fix: use accent insensitive collations (or even ASCII BINARY)"	madhazelnut		
Defects Awaiting Review	63259	Replace zxcvbn with zxcvbn-ts		Security	normal	defect (bug)	new	2025-04-10T11:51:15Z	2025-04-11T07:17:22Z	"The password-strength-meter in wp-admin uses the 12 year old package zxcvbn 4.4.1. 

This package has a known vulnerability: https://security.snyk.io/package/npm/zxcvbn/4.4.1

Using this package failed a pentest on a customers WordPress website.

An idea would be to switch to zxcvbn-ts (https://github.com/zxcvbn-ts/zxcvbn) which is up-to-date and has no known vulnerability. 

Migration should easily be possible: https://zxcvbn-ts.github.io/zxcvbn/guide/migration/#zxcvbn-4-4-2-to-zxcvbn-ts-0-1-0"	fseydel		
Defects Awaiting Review	62693	check if chmod is available to prevent Fatal Errors		Security	normal	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		
Defects Awaiting Review	56860	Sodium Compat library is improperly loaded		Security	normal	defect (bug)	new	2022-10-20T01:20:42Z	2024-11-19T14:26:23Z	"In #45806 the sodium compat library was added to WordPress. The library is only [https://github.com/WordPress/wordpress-develop/blob/a7a9e7602c51785de5261c15d8a720c535e829bf/src/wp-includes/compat.php#L340 loaded] if the `sodium_crypto_box` function is not defined.

This accounts for scenarios where a user doesn't have Sodium available at all in their PHP installation. However, it doesn't accomodate for users on PHP 7.2+ that have a Sodium available, but compiled against an older libsodium version.

For example, one of our users has the latest version of the Sodium extension available, but v1.0.11 of libsodium. This means that the `sodium_crypto_aead_xchacha20poly1305_ietf_encrypt` function is not available, since libsodium didn't add support for it until v1.0.12

The sodium compat library provides a polyfill for this function, but since the user's installation has `sodium_crypto_box` defined, WordPress does not load the polyfill library at all.

Based on my reading of the sodium compat library, there would be no harm in us ''always'' loading the library. The autoloader is dynamic based on the features available, and each polyfill function is wrapped in a `function_exists` check. 

However, if we still wanted to conditionally load the polyfill we could use a more specific function like `sodium_crypto_stream_xchacha20_xor`.

Related: https://github.com/WordPress/two-factor/pull/389"	TimothyBlynJacobs	5.2	needs-patch
Defects Awaiting Review	53994	REST API requests with session cookies but an invalid/missing nonce are considered authenticated for most of the request		Security	normal	defect (bug)	new	2021-08-24T17:29:07Z	2021-08-24T17:29:07Z	"**Note: the security team reviewed this and asked that I post a public report as a hardening issue.**

If a REST API request has valid session cookies but does not include a nonce, there is a significant portion of the process where the user is considered validly authenticated and signed in until the nonce is finally checked and the user account is nulled out. This period of the request is, practically speaking, the entire portion of the request where a plugin or theme would perform any operations before the REST response was sent (the obvious exception is if the REST endpoint were a custom one created by the theme or plugin, in which case, any code in direct service of dispatching the response would be after the nonce was checked). Therefore, if a request contains valid session cookies but an invalid or absent nonce, plugins and themes will almost always treat the request as if the user were validly authenticated, potentially voiding the purpose of the nonces.

In WordPress Core, the first place the user account is accessed is in `\WP::init()`. After that, the init action fires, which of course, is a common hook for plugins and themes. In addition, there is nothing stopping a plugin or theme from accessing the user account well before `\WP::init()`, e.g. immediately as it is loaded. In other words, a user session is validated as early as an mu-plugin loading. Out-of-the-box, WordPress does make some decisions based on the user's logged-in status and capabilities, e.g. which mime types are allowed for an attachments REST request and how widget content is processed. In fact, even the REST API code itself decides whether or not to send nocache headers based on the user's authentication state before the nonce is checked.

The request isn't de-authenticated again until the nonce is checked when 
`\WP_REST_Server::check_authentication()` runs, which is immediately before the response is dispatched in `\WP_REST_Server::serve_request()`.

=== Steps To Reproduce:

1. Sign into a WordPress site
2. Add the following code to your theme/plugin to confirm that you are considered ""signed in"", even though you didn't provide a nonce
{{{#!php
<?php
add_action( 'init', function() { die( is_user_logged_in() ? 'You are signed in' : 'You are not signed in' ); } );
}}}
3. Make a REST API request from the same browser, without a nonce present

=== Recommendations

My best suggestion for resolving the issue is to check the nonce as part of the `determine_current_user` filter. However, this would require that WordPress make some assumptions about the request and infer that it is a REST request before that decision is officially made, since at this point, the `REST_REQUEST` constant might not have been defined. Potentially, that makes #42061 a pre-requisite.

=== Impact

I don't believe this to be a significant security vulnerability; after all, the user would still have to be validly authenticated. But it is certainly a vector for a CSRF attack, as it can potentially circumvent nonces. As far as I can tell, nothing in WordPress core is critically impacted out-of-the-box. The real impact I can foresee is that a plugin or theme performs an action for authenticated users during the request chain, and that action is exploited in a CSRF attack.
"	mboynes		
Defects Awaiting Review	53869	Post type / Taxonomy Label Hardening: Prevent Raw HTML tags in output / Media Library eval of HTML entities in label		Security	normal	defect (bug)	new	2021-08-03T21:51:30Z	2021-08-04T13:19:44Z	"**NOTE: The security team has requested that this ticket be filed, @ehtis is quoted below --**

> The security team has discussed this internally. We feel that this can be hardened, and we'd prefer it done/discussed publicly in Core Trac.

== Overview

It's possible to send unsavory HTML in labels when calling `register_post_type()`. Whether or not that is intentional and considered a good idea on its own -- it's also possible to send unsavory HTML entities which will then get evaluated by the WordPress media library.

I think Core needs to lock this area down further or make a bigger effort in educating plugin/theme developers that `register_post_type()` and potentially `register_taxonomy()` will exhibit this behavior. I did not test `register_taxonomy()` in this POC but it has similar problems.

== Steps To Reproduce

See attached GIF for walkthrough of the JS running from the included POC plugin.

1. Pass unsavory raw HTML or HTML entities with script tags into various `register_post_type()` labels (ZIP of POC plugin included)
2. Navigate to add/edit post screen and click into Featured Image modal (media library tab) to see entities evaluate as actual HTML (the included script tag will run)
3. Navigate to all posts screen and see that list table outputs HTML unescaped (the included script tag will run)

== Recommendations: Core solution

=== Fix label output vulnerable to Raw HTML

Address the HTML output escaping in the various places these labels get used including but not limited to:

* `all_items` (admin menus)
* `name_admin_bar` (toolbar)
* `uploaded_to_this_item` (passed directly into Media Modal for featured image in add/edit post)
* `filter_items_list` (list table)
* `search_items` (list table)

=== Fix label output vulnerable to HTML entities

Address the JS media modal usage of raw HTML sent to DOM:

* `uploaded_to_this_item` (passed directly into Media Modal for featured image in add/edit post)

== Recommendations: Mitigation solutions for plugin/theme developers

There are a few mitigations options when passing untrusted labels into `register_post_type()` from CPT plugins or themes that offer CPT building.

These were just a few of the ways I tested to mitigate the problem -- these were unsuccessful as they will leave/create unsavory HTML entities:

1. `wp_strip_all_tags()` removes the unsavory HTML and contents of script tags -- Leaves unsavory HTML entities though
2. `strip_tags()` but it leaves script contents (it also leave
3. `wp_kses_post()` removes the unsavory HTML (but leaves unsavory entities)
4. `htmlspecialchars()` will convert unsavory HTML and introduce HTML entities which will get evaluated by the `uploaded_to_this_item` label usage.

The recommended solution that works for BOTH raw HTML and HTML entities, including double entity attacks (encoding twice and passing it in) on the media library `uploaded_to_this_item` label:

`htmlspecialchars( wp_strip_all_tags( htmlspecialchars_decode( $label ) ) )` will strip potential HTML tags from entities while also removing the contents of script/style tags. The final hardening by `htmlspecialchars()` will ensure nothing else makes it to the media library `uploaded_to_this_item` label output.

== Impact

This allows the attacker to insert scripts into normal code that would get passed into `register_post_type()` including core WP hooks. It can most commonly be used through CPT builders although many free ones have mitigation steps which they each much do on their side to prevent these kinds of attacks.

The largest impact I believe is in the `uploaded_to_this_item` label which has raw HTML or HTML entities evaluated directly into the DOM which I believe to be unintentional.

At minimal -- a solution to this ticket should deal with the `uploaded_to_this_item` HTML entities problem. I'd love to see HTML disallowed across the other labels as we have many other better solutions with JS that can plugins can work with instead."	sc0ttkclark	5.8	has-patch
Defects Awaiting Review	37264	Please do not chmod 666 the wp-config.php file on installation.		Security	normal	defect (bug)	new	2016-07-03T22:27:47Z	2019-03-22T13:20:31Z	"On installation, WordPress invariantly does a {{{chmod 666}}} of the {{{wp-config.php}}} file:
https://github.com/WordPress/WordPress/blob/4.5.3/wp-admin/setup-config.php#L393

This file is very sensitive; it contains the database password and authentication keys, among other things.

666 grants read, write, and execute permissions to every single user on the system. Even read permissions are too much; not only can you dump the database, but you can easily escalate to code execution via template changes (which are stored in the database and {{{eval}}}'d).

There are virtually no situations where 666 is the appropriate level of permission for this file. It should be something like 600 instead.

* On shared web hosts, other users may be able to read (or even edit!) the file, depending on what isolation the host provides. Most large shared hosting providers do it by making the home directory ~600 so that only the user can traverse it, then run the webserver as that user (and so there's no point making it 666 anyway, it might as well be 600). Other shared web hosts use suexec or suphp to achieve the same, but in these setups, 666 is incredibly dangerous and allows others to modify it (and it should be 600).

* Even on dedicated hosts with no other users or websites, these permissions mean that pretty much any compromise on the system can be elevated to full control of your site. And 600 will still work here.

If there is too much concern about this not working across diverse hosting environments, then the installer could incrementally try wider permissions until the file can be read by the PHP code (I would still argue it should never silently make files world-writable, or even world-readable, though).

Please consider changing the default to 600."	chriskuehl	1.0	has-patch
Defects Awaiting Review	41391	Links to media in password protected pages		Security	normal	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	4.7.5	
Enhancements Awaiting Review	65448	Use the new Uri\Rfc3986\Uri::parse in wp_parse_url() if PHP 8.5 is available		Security	normal	enhancement	new	2026-06-11T11:03:02Z	2026-08-31T01:12:23Z	"After seeing the [https://wordpress.tv/2026/06/06/secure-by-design-hardening-plugins-with-php-8-x/ talk] from Milan Petrović at WordCamp Europe 2026 in Krakow, I was wondering if we should follow his recommendation to use the new [https://www.php.net/class.uri-rfc3986-uri.php Uri\Rfc3986\Uri::parse] (available since PHP 8.5) instead of [https://www.php.net/manual/en/function.parse-url.php parse_url()] if it is available.

Code snippet: https://github.com/dev4press/vulnerability-lab/blob/main/forms/tab-ssrf.php

As we already have a [https://developer.wordpress.org/reference/functions/wp_parse_url/ wrapper function] for this with `wp_parse_url()` we could internally use the new PHP 8.5 feature if it is there to make this even more safe and reliable. This could prevent SSRF attacks.

I'm just not sure if something maybe is trusting the old feature set and does not expect that malformed URLs would break with this change. We could add a new parameter for opting in to this (or opt-out). Another idea could be to add this change very early in the release cycle, to get early feedback if things break.

''What do you think?''"	zodiac1978		has-patch
Enhancements Awaiting Review	51159	Let's expand our context specific escaping methods for wp_json_encode().		Security	normal	enhancement	new	2020-08-27T18:54:00Z	2026-01-15T11:11:46Z	"  This document is largely sourced from a document written by @mdawaffe. Full credit to him for the research and thoughts put forward here. What I'd like to do is move this toward some actionable functions and developer best practices moving forward.


`wp_json_encode()` is a handy helper for turning PHP into Javascript, and it is widely used in different places to serialize different variables. Imagine this hypothetical scenario:

{{{
BAD:
<pre><?php echo json_encode( $_GET ); ?></pre>
}}}

`json_encode()` serializes data into a string that can be used as a JavaScript literal* (e.g., `null`, `true`, `false`, `1234` (numbers), `""strings""`, `[ ""arrays"" ]`, and `{ ""objects"": ""oh my""}`.)

JSON serialization, though, has nothing to do with HTML, and so does not treat characters that are special in HTML (`<`, `>`, `&`, `'`, `""`) in any special way: essentially, the code above is as bad as `echo $_GET['foo']`.

Securing the above code is as simple as it always is in WordPress. We’re echoing data inside an HTML text node, so we use `esc_html()`:

{{{
OK:
<pre><?php echo esc_html( json_encode( $_GET ) ); ?></pre>
}}}

Unfortunately, while secure 😀, this code is not actually correct ☹️. For historical reasons, `esc_html()` will not touch HTML entities (`&amp;`):

|| Input || `htmlspecialchars()` || `esc_html()` ||
|| `&` || `&amp;` 😀 || `&amp;` 😀 ||
|| `&amp;` || `&amp;amp;` 😀 || `&amp;` ☹️ ||

In the example above, if there are any HTML entities in $_GET, they will be echoed verbatim to the page, which means they will appear unescaped to the page’s visitor.

=== In an HTML Text Node ===

To faithfully represent the contents of a JSON blob in an HTML text node, the following code must be used:

{{{
GOOD:
<pre><php echo _wp_specialchars(
	wp_json_encode( $value ),
	ENT_NOQUOTES, // Don't need to HTML-escape quotes (output is for a text node).
	'UTF-8',      // json_encode() outputs UTF-8 (really just ASCII), not the blog's charset.
	true,         // Do ""re-escape"" HTML entities: `&amp;` -> `&amp;amp;`
); ?><pre>
}}}

This code is only appropriate for outputting JSON in HTML text nodes. There are several other contexts where we would like to output JSON, and each of those different contexts requires different treatment.

=== As an HTML Attribute Node === 

Though the HTML5 `.dataset` API only accepts string values for `data-*` attributes, jQuery will automatically parse `data-*` attribute values that are JSON serializations. So, when using jQuery, the following pattern is often handy:

{{{
BAD:
<div data-foo='<?php echo json_encode( $foo ); ?>'>
}}}

Handy but, as we should know by now, insecure 😀. We need to HTML-escape the output.

Like `esc_html()`, `esc_attr()` also leaves HTML entities untouched, so, again, the solution is to “manually” use `_wp_specialchars()`:

{{{
GOOD:
<div data-foo='<?php echo _wp_specialchars(
	wp_json_encode( $foo ),
	ENT_QUOTES, // Must HTML-escape quotes (output is for an attriibute node).
	'UTF-8',    // json_encode() outputs UTF-8 (really just ASCII), not the blog's charset.
	true,       // Do ""re-escape"" HTML entities: `&amp;` -> `&amp;amp;`
); ?>'>
}}}

It’s important to note that this code snippet is suitable for whole HTML attributes. It is not appropriate for use on part of an HTML attribute.

In general, when we want to output a JSON blob as part of an HTML attribute, it’s because we’re trying to use it as a JavaScript literal:

{{{
BAD:
<a href=""#"" onclick=""doSomething( <?php echo json_encode( $click_data ); ?> )"">
}}}

We’ve seen that using json_encode() by itself in this context is not secure, but neither is using the above HTML attribute code (`_wp_specialchars( json_encode(), … )`). In the `data-foo` case above, we’re outputting JSON. In the `onclick` case, we’re outputting a JavaScript literal. `_wp_specialchars()` does enough to the JSON blob to make it safe for use as an HTML attribute, but it does not do anything to make it safe for use within JavaScript.

Despite claiming above that `json_encode()` outputs JavaScript literals, it’s more complicated than that.

In a `<script>` Element

The problem is that, in a <script> element, for example, we have to consider how the contents are interpreted as HTML first and then as JavaScript second.

The following pattern seems helpful. Use `json_encode()` to output a PHP string as a JavaScript string literal:

{{{
BAD:
<script>
var foo = <?php echo json_encode( (string) $foo ); ?>;
</script>
}}}

There are multiple ways in which this is insecure.

First, for some pages, HTML entities and the characters they represent are one and the same in the `<script>` element context. If `$foo` has HTML entities in it, problems will happen. For example, for some pages, the following two scripts are the same:

{{{
WAT?
<script>
var foo = ""Hello&quot;; alert(/LOL/); var foo=&quot;LOL"";
</script>
<script>
var foo = ""Hello""; alert(/LOL/); var foo=""LOL"";
</script>
}}}

Exactly how HTML entities are interpreted in <script> elements depends on Content-Type, DOCTYPE, browser, etc. So we need a way to securely use JSON in this context that does not depend HTML-escaping (`_wp_specialchars()`).

So we can’t depend on HTML-escaping to save us, and we need to make sure certain strings are never output. Luckily, there are a couple of other widely implemented transformations that can help.

{{{
GOOD:
<script>
var foo = decodeURIComponent( '<?php echo rawurlencode( (string) $foo ); ?>' );
</script>
}}}

If we’re outputting a string, we can URL-encode it in PHP and URL-decode it in JavaScript. (We do have to make sure we use the right functions: `rawurlencode()` is slightly better than `urlencode()` here, and `decodeURIComponent()` is required over JavaScript’s deprecated `unescape()`.)

The useful property of URL-encoding that we’re exploiting is that the transformed string is guaranteed not to have any characters in it that are regarded as special in the HTML context (`<`, `>`, `&`, `'`, `""`), so there’s no way to output `""` or an HTML Comment Opener.

For non-scalar data, this can be extended via json_encode():

{{{
GOOD:
<script>
var foo = JSON.parse( decodeURIComponent( '<?php
	echo rawurlencode( wp_json_encode( $foo ) );
?>' );
</script>
}}}

Rather than using the output of `json_encode()` as a JavaScript literal, the code above URL-encodes the whole serialization (braces, quotation marks and all), and we URL-decode and parse the resulting string in JavaScript to get back the structured data.

This URL-encoding is a bit tedious and results in some ugly looking JavaScript. (Ugly JavaScript is better than vulnerable JavaScript!) We can instead use JavaScript’s Unicode-escaping:

HTML Special Characters:
{{{
<script>
""<"" === ""\u003c"" // true: < is U+3C
"">"" === ""\u003e"" // true: < is U+3E
""&"" === ""\u0026"" // true: & is U+26
""'"" === ""\u0027"" // true: "" is U+27
'""' === ""\u0022"" // true: "" is U+22
</script>
}}}

PHP’s `json_encode()` has an `$options` parameter, which can be used to always Unicode-escape these HTML special characters:

{{{
ALMOST (PHP 5.3+):
<script>
var foo = <?php echo wp_json_encode( $foo, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT ); ?>;
</script>
}}}

These constants are only available as of PHP 5.3.

Also, just replacing those characters isn’t good enough. We also need to Unicode-escape `&#96;` and `$` because of their special meanings in JavaScript template literals.

{{{
GOOD (PHP 5.3+):
<script>
var message = `hello, ${<?php echo str_replace(
	array( '`', '$' ),
	array( '\\u0060', '\\u0024' ),
	wp_json_encode( $user, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT )
); ?>.name}`;
</script>
}}}"	whyisjake		
Enhancements Awaiting Review	64481	Explore Sec-Fetch Headers as a Core-Supported CSRF Mitigation Mechanism		Security	normal	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		
Enhancements Awaiting Review	43215	Allow wp_kses to pass allowed CSS properties		Security	normal	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	4.9.2	
Enhancements Awaiting Review	63727	A new function to sanitize an array		Security	normal	enhancement	new	2025-07-20T08:52:28Z	2025-07-28T13:15:31Z	"In the Plugins Team, when we review plugins, there is a custom function that many authors use in their development called recursively_sanitize. It iterates through each value, detects the data type, and executes the sanitization function that best fits the data.

If we could have such a function officially, it would cover all sanitization needs for developers. It would also reduce our review workload, as we wouldn’t need to raise issues related to sanitization, since the function would rely on core sanitization methods."	davidperez		dev-feedback
Enhancements Awaiting Review	37757	Add `allowed_classes` to `maybe_unserialize` When WordPress is running on PHP 7+		Security	normal	enhancement	new	2016-08-21T11:39:57Z	2025-04-24T07:05:33Z	"PHP 7 added an options array to unserialize: http://php.net/manual/en/function.unserialize.php

The most notable option is passing a whitelist of classes that can be unserialized which can help mitigate some remote code execution vulnerabilities.

Something like this (PHP 5.X will throw a warning if a second argument is provided to `unserialize`).

{{{#!php
if (!is_serialized($input)) {
  return false;
}

return PHP_MAJOR_VERSION >= 7 ? @unserialize($input, apply_filters('wp_maybe_unserialize_options', [])) : @unserialize($input);
}}}

By default, I don't think any whitelisting needs to be done -- would be a huge BC break. But it would be nice to give developers an option to lock down what can be unserialized via `maybe_unserialize`."	chrisguitarguy		dev-feedback
Enhancements Awaiting Review	63329	Use check_ajax_referer() instead of check_admin_referer() for AJAX requests in media form handling.		Security	normal	enhancement	new	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	6.8	has-patch
Enhancements Awaiting Review	62949	HttpOnly flag for the post password cookie		Security	normal	enhancement	new	2025-02-12T11:40:49Z	2025-02-12T11:40:49Z	"This is a follow-up to #61322.

Setting the `HttpOnly` flag on the post password cookie would help prevent an XSS vulnerability from exposing its value. The risk of setting this flag is that there may be client-side functionality in use that depends on this value being accessible to JavaScript.

Let's assess if there are any popular plugins, themes, or front-end frameworks that make use of the post password cookie in JavaScript."	johnbillion	1.5	dev-feedback
Enhancements Awaiting Review	36177	default htaccess should include security measures		Security	normal	enhancement	new	2016-03-09T08:43:09Z	2024-12-24T22:54:55Z	"Wordpress has some code that automatically creates a .htaccess file for users. This file however includes no security measures whatsoever, meaning that users who do not tighten security by themselves are left with an install that lets upload files that contain random php code and then execute them.

The real problem is that most wordpress users don't do any security tightening by themselves, either because they didn't see it in the install procedure or (more likely) because they don't have the knowledge necessary to know what measres are appropriate or not.

This is a bane to all shared hosting providers who will either need to figure out ways to tighten security for the users, while not knowing what they are or will be hosting.

This lack of basic security was already pointed out in ticket #9185 seven years ago but was discarded for reasons that I believe are not valid:

blocking php evaluation for all files in wp-content would only affect direct php file access through a URL, not inclusion of code by other php files. This means that only direct access to files would get blocked for some plugins, but plugins should not require users to load plugin-specific php files directly in the first place: those files should get included through wordpress itself.

finally, since wordpress has php code that generates these .htaccess files, there is no good reason to avoid addding some security measures in there. Some measures for htaccess are even suggested in https://codex.wordpress.org/Hardening_WordPress . It doesn't make sense to not include them by default

Drupal does include a good host of default security measures to help users have a good security level by default. More can be done by users of course depending on the requirements, but default drupal installs will not get hacked as badly as default wordpress installs frequently do. see: https://github.com/drupal/drupal/blob/8.1.x/.htaccess

What I'm suggesting is the following. Have wordpress include the following blocks in generated .htaccess files:

{{{
<IfModule mod_rewrite.c>
  RewriteRule ^wp-admin/includes/ - [F,L]
  RewriteRule !^wp-includes/ - [S=3]
  RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
  RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
  RewriteRule ^wp-includes/theme-compat/ - [F,L]
</IfModule>

<files ~ ""^.*\.([Hh][Tt][Aa])"">
  order allow,deny
  deny from all
</files>

<files wp-config.php>
  order allow,deny
  deny from all
</files>

<LocationMatch ""/wp-content/"">
  php_flag engine off
  <files ~ "".php"">
    order allow,deny
    deny from all
  </files>
</LocationMatch
}}}

note that the above example might need to be adapted to the multisite layout.

note also that the ""order"" and ""deny"" lines are only fit for apache 2.2. It's however easy to have both sets for instructions of 2.2 and 2.4 with `<IfModule mod_authz_core.c>` blocks (see drupal 8.1 default .htaccess file linked above for examples)"	lelutin		
Enhancements Awaiting Review	62384	.htaccess lacks		Security	normal	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		
Enhancements Awaiting Review	53902	Automating the creation of inline javascript and inline stylesheet nonces or hashes		Security	normal	feature request	new	2021-08-09T13:27:25Z	2024-07-03T20:33:07Z	"Inline javascripts and stylesheets are fairly common in the WordPress ecosystem. Site managers wishing to harden WordPress via a Content Security Policy have a choice between allowing such inline code via the ""unsafe-inline"" directive or must find a way to include either hashes or nonces in the CSP and, for nonces, in the code itself.

While there are means to determine hashes for static javascript or stylesheets, this is hardly possible for dynamically created code. It would help better secure WordPress sites if WP included the functionality that could automate the creation of nonces or hashes and automatically include them in a function that sends the appropriate, dynamically created, header via PHP or perhaps by writing to .htaccess or the like."	Josiah S. Carberry		
Enhancements Awaiting Review	60470	Use `filter_input` instead of superglobals where possible		Security	normal	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		
Enhancements Awaiting Review	58636	Automatic Sanitization of Nonces in wp_verify_nonce		Security	normal	enhancement	new	2023-06-26T21:28:18Z	2023-06-26T21:28:18Z	"There's a [in-depth discussion](https://github.com/WordPress/WordPress-Coding-Standards/issues/869) in the WordPress Coding Standards repository over the question of whether nonces should be sanitized prior to being passed to `wp_verify_nonce()`.

At present, developers are required to sanitize the input themselves before it's passed to `wp_verify_nonce`. This practice is mandates by the PHPCS WordPress Coding Standard:

{{{
#!php
<?php
if ( ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['my-nonce'] ), 'my-action' ) ) ) {
  return;
}
}}}

''Please note: There's a concurrent discussion on the necessity of `wp_unslash` when reading from superglobals such as $_POST and $_GET over [here](https://core.trac.wordpress.org/ticket/18322#comment:53).''

Given that WordPress generates nonces composed of hexadecimal digits, it should be feasible to sanitize the nonce before use:

`$nonce = preg_replace( '/[^a-f0-9]/i', '', $nonce );`

This level of automation would be highly convenient for developers, much in the same vein as the `$wpdb->insert` function is advantageous due to its automatic data preparation.

However, this solution does raise a potential issue with pluggable nonces. If a nonce created by `wp_create_nonce` employs characters outside of the standard range and if `wp_verify_nonce` is not also plugged to accommodate these special characters, this implementation could potentially break.

We must also assume that a plugged `wp_verify_nonce` should sanitize the nonce it receives.

While there are some concerns associated with sanitizing nonces, the benefits largely outweigh the risks. These benefits include improved development experience, and stronger security, especially given the fact that many WordPress developers do not utilize PHPCS with WordPress Core Security Rules in their codebase, and may therefore be unaware of the need for nonce sanitization. This presents an opportunity to build a safer and more developer-friendly environment."	lucasbustamante		
Enhancements Awaiting Review	55514	2FA by default for WordPress		Security	normal	feature request	new	2022-04-02T00:09:13Z	2023-03-06T10:25:11Z	"Hi WordPress!

Hope this message finds you well! I'm a senior security analyst/researcher from Sucuri and I wanted to reach out to you all with an inquiry and feature request. I initially reached out to Fio (my old colleague) from WordPress.com and he directed me here. Apologies if I should have submitted this to HackerOne instead, but it's not a specific ""vulnerability"" ''per se''.

I'm writing a piece for our Sucuri blog on how 2FA-by-default should be in WordPress, similar to how Akismet is included in a default WordPress installation to combat comment spam.

A HUGE number of website compromises that we deal with on a daily basis at Sucuri could have been avoided by a simple 2FA additional authentication. With WordPress being over 40% of the web, I think that 2FA-by-default could be a game changer in terms of making the web a much safer place and avoiding a LOT of headaches and malware issues for WordPress website admins.

Adobe made 2FA default in all new Magento2 installations, as they were dealing with exactly the same chronic issues of security (abuse of public-facing login pages with no additional authentication). You can turn it off afterwards if you want, but it's included by default during the installation process.

What are your thoughts on including 2FA by default in new wordpress.org installations? I know JetPack includes 2FA, but it's linked to wordpress.com and I understand that .com and .org need to remain rightfully separate.

I'd like to include your thoughts in my blog piece if that's ok.

Looking forward to hearing back!

Cheers,
Ben"	jamsec		
Enhancements Awaiting Review	57424	Specific hook for Content Security Policy		Security	normal	enhancement	new	2023-01-05T17:27:01Z	2023-01-05T17:27:01Z	"Right now I see several tickets discussing the Content Security Policy. At the moment I believe the most common ways to set it currently for a WordPress site are:

1) Server Side (Apache, Nginx, etc)

2) Hooking into ""send_headers""

3) Hooking into ""wp_head"" and sending as a meta tag. 

To improve reliability and prevent duplicates/bugs, I suggest we have a specific hook for the CSP header. Theme and Plugin Developers could then use this hook, to add their domains/etc to the CSP. Currently if I write a plugin that uses an external script, I could create/add a CSP to the site, but I would have no way of knowing what other domains/etc are being used that would need to be added to the header. Having a specific hook could solve this issue for site owners and developers, leading to a more secure website.

It would also make sense to support the specific arguments such as: font-src, media-src, img-src, etc.

As a bonus I could see these other security related headers benefiting from having their own hooks as well:
- permissions-policy
- referrer-policy
- x-content-type-options
- x-frame-options
- x-xss-protection
- report-to (maybe we can have this default to admin email, or a wp service?)
"	bhubbard		
Enhancements Awaiting Review	40237	Educate users about modern password best-practices		Security	normal	enhancement	new	2017-03-22T17:00:51Z	2022-06-06T10:10:15Z	"We've done several things over the past few years to encourage users to use stronger passwords, but we've never tried to educate them about ''why'' it's important. It's obvious to most of us, but I think it's common for the average user to think things like, ""Why would anybody want to hack into this small site I created for a non-profit?""

If someone doesn't understand ''why'' having a strong password is important, they're not going to be motivated to take any steps in that direction, and they may respond to any attempts to push them in that direction by adopting insecure workarounds to avoid it, like post-it notes stuck to their monitor with the password they reuse on all sites.

It seems like educating users about the risks of weak passwords, and easy ways to follow modern best practices, could be very effective.

My first thought would be something like this:

1. When a user is manually entering a password, if `zxcvbn` detects a low entropy score, then they're shown a message saying something like, `That password won't protect your account from hackers. Automated bots attempt to gain access to all accounts on the Web 24/7, no matter how small. Don't worry, though, there's an easy way to use very strong passwords, and you'll never have to type or remember them. Learn more.`
1. Clicking on `Learn more` would reveal a modal with a brief explanation of how to use password managers, with a link to a longer article (maybe [https://en.support.wordpress.com/selecting-a-strong-password/ similar to WordPress.com's], but more .org-specific).
1. The modal would also have a video embedded, since many people are more willing to watch a video than read a long article. We could put the video on WordPress.tv and subtitle it in all of the locales.

That's just one idea though, does anybody have any others?"	iandunn		ui/ux
Enhancements Awaiting Review	23165	Admin validation errors on form nonce element IDs (_wpnonce)		Security	normal	enhancement	new	2013-01-10T02:25:17Z	2021-02-08T23:28:07Z	"The `wp_nonce_field()` method has a design flaw in that the `name` parameter is optional, but its default value (""_wpnonce"") is used for the field element `id`. This wouldn't be bad if only one form is used on each page, but that is rarely the case in the admin panel. Currently, this only results in harmless HTML validation errors in admin, and in very rare situations (depending on plugins installed), can result in javascript scope-related issues breaking forms. This is an issue that keeps being reported and fixed several times (see #5962, #6564, r14737 from #13383, and the latest [http://core.trac.wordpress.org/ticket/22712#comment:11 #22712]) by simply specifying the name in all locations that don't at the time in core. There's at least three different approaches that I can see where we could prevent this from popping back up in the future and encourage better coding habits.

== A: Require the Name Parameter ==

The most obvious approach is to simply adds a `_doing_it_wrong()` call (though it could just be `_deprecated_argument()` instead) for any calls to `wp_nonce_field()` that don't specify the `name` parameter, forcing everyone to give nonce fields unique IDs (and names). A side-effect of this change is that it will also warn developers they are doing it wrong if they use `wp_nonce_field()` without the (also currently optional) `action` parameter, which is actually a good thing since the docs already warn that this is a security hole.

There are 46 locations in core that would need updated with this change that make this mistake, and the fix for each of them with this change is exactly the same as what every other commit to fix this problem has always done: just specify the `name` to give a unique ID.

The downside to this approach is that this pushes for an immediate change not only to all calls to `wp_nonce_field()`, but also their corresponding `check_admin_referer()` calls (to update the changed field name) in a single WP release, and considering how frequently it's called this way in core, I don't even have to look at plugins to see how often it happens there (it's going to be too many to count).

This approach still results in an explicitly named ID that really doesn't need to be on the field in the first place in most locations.

I gave this approach a shot anyway, and started on a patch just to see how much work it would be at least in core, but I started to find a few locations that could benefit from unique IDs, but similar field names. I also found myself already spending hours updating and testing just 9 of the 46 locations (unit tests don't cover this stuff) where I was forced to make changes to IDs that would be best left alone for now. I have attached this unfinished patch anyway if anyone is curious to see how it works, what it does, and to see what kinds of changes it ends up requiring.

It's still possible to just pass ""_wpnonce"" as the `name` with this change, so the rest of the locations could simply use that to progressively work towards unique IDs, but I just don't see this as a good solution overall, and it seems like a lot of work for very little gain on a minor issue.

== B: Use Action for ID or Remove ID Entirely ==

Another option might be to remove ID entirely, or use (and require) the action parameter as the ID. This would improve results with unique IDs fixing most locations where `wp_nonce_field()` is used without requiring a change to each one individually for most uses (except for nonces used with ajax calls). All locations in core at least use `action` already, so the case for using `action` as ID instead seems better than using `name`.

Unfortunately, either removing or using the action parameter for ID (changing the ID) would obviously break a few plugins that made the mistake of relying on the default `_wpnonce` (or the current `name` value) value for `id` from within JavaScript code for existing form endpoints. In the WP.org plugin repo, this appears to happen in the following plugins (searching up through plugins starting with 'r') for forms using the default value:

{{{
automatic-youtube-video-posts
buddypress
buddypress-backwards-compatibility
canalblog-importer
community-submitted-news
eyes-only-plus
facepress-ii
globalfeed
lazyest-gallery
lazyest-maps
maven-member
pagely-reseller-management
pluginbuddy-yourls
post-event2
qtranslate-separate-comments
repostus
...
}}}

There's likely way more plugins that post to core forms using a non-default `name` that would break though as well, and even though I think ID should have never been added to the nonce field attributes and was never necessary in the first place, compatibility rules would need to be broken if this approach was used. This of course means this option is most likely not really an option at all.

== C: Use an Option Array Parameter in Place of Name ==

To keep this concise, this last approach basically involves changing `wp_nonce_field()` to:

{{{
function wp_nonce_field( $options = array() ) { ... }
}}}

The `options` parameter is a standard arguments array used with `wp_parse_args()`. This accomplishes not just one, but two different goals. First, if `$options` is not an array or the method was called with anything other than 1 parameter, we know this is an older call that needs to use the `name` parameter for both `name` and `id`, using `func_get_args()` for the original arguments, and can do so for full 100% backwards compatibility. Second, unrelated to this issue, the function has been refactored to adhere to coding standards in regards to [http://codex.wordpress.org/WordPress_Coding_Standards#Self-Explanatory_Flag_Values_for_Function_Arguments self-explanatory flag values] as far as the `referrer` and `echo` options are concerned.

The `options` array can then be made to accept the following settings:

- action: The same unique name included in the nonce hash as is the case now.
- name: The field name (and *only* used for the name attribute). (Default: ""_wpnonce"")
- id: The field ID if this really is still desired, and can even be different than the name, but by default, the field won't have an ID at all.
- referrer: Whether to set the referer field for validation. (Default: true)
- echo: Whether to display or return hidden form field. (Default: true)

The only downside here is that each `wp_nonce_field()` call will be more verbose in most cases, especially if they do need to use an ID. For example, this:

{{{
wp_nonce_field('add-tag', '_wpnonce_add-tag');
}}}

Will now become this:

{{{
wp_nonce_field( array( 'action' => 'add-tag', 'name' => '_wpnonce_add-tag' ) );
}}}

I see plenty of benefits to this last solution though, and it requires very few changes up front, so I think it comes down to this approach ultimately. Please see attached patch."	bpetty		needs-codex
Enhancements Awaiting Review	51611	Escape echoing Core functions		Security	normal	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		
Reporter Feedback / Close	63457	WordPress 6.8 will fail creating bcrypt when entropy sources are not available		Security	normal	defect (bug)	new	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	6.8	reporter-feedback
Reporter Feedback / Close	61706	Support for storing and getting encrypted options		Security	normal	enhancement	new	2024-07-19T06:56:32Z	2025-02-18T16:19:01Z	"This trac ticket is to see if there's any interest in adding support for encrypted options. Essentially, plugins like WooCommerce store a lot of sensitive data that has implications beyond just the site, such as Payment Gateway API Keys, and other integration keys with adjacent systems.

If we had support for encrypted options, that encrypt values from a salt that's stored in a code file such as wp-config, it would add one more hoop for a malicious actor to jump through in case of inadvertent data exposure. That is, a malicious actor would need access to both data as well as code files to decrypt sensitive values.

The API itself could be as simple as `get_encrypted_option` or `set_encrypted_option` with a param to migrate an option on the fly. I'd happy to contribute PR/patches towards this, if we consider this feature."	vedjain		dev-feedback
Reporter Feedback / Close	62202	allow plugin versions to be flagged as security updates		Security	normal	feature request	new	2024-10-10T10:56:55Z	2024-10-10T23:46:35Z	"With the Cyber Resilience Act estimated to become a law within the European Union somewhere in Q4 2024 - we should take some steps early on to make it easy for plugin & theme developers to comply. 

One of the specific requirements from the CRA is to release security updates separately from functional updates. This allows the end-users to quickly patch security issues without the need to go over the rest of the changes, which may have compatibility issues or breaking changes. 

Making it possible for the plugin developers to flag a new version as a ""security update"" helps to better communicate security updates to the end-users, but also creates a new capability for the end-users to turn on automatic updates for security updates only. "	oliversild		close
Reporter Feedback / Close	31686	wp_authenticate_username_password() should check for a WP_Error object		Security	normal	defect (bug)	new	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	3.7	reporter-feedback
Defects Awaiting Review, reported against no version	43457	`wp_html_split` valid HTML attributes issues		Shortcodes	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review, reported against no version	43456	`wp_html_split` <script>		Shortcodes	normal	defect (bug)	new	2018-03-02T08:07:52Z	2018-03-02T08:07:52Z	"The following valid HTML post content yields unexpected `wp_html_split` results:

{{{
<script>1 < 4</script>
<p>Welcome</p>
}}}

Expected:

{{{
array( '', '<script>', '1 < 4', '</script>', '' )
}}}

Got:

{{{
array( '', '<script>', '1 ', '< 4</script>', '' )
}}}

Somewhat related but invalid cases: #39153, #40191"	soulseekah		
Defects Awaiting Review	35216	Return empty string from wp.shortcode.replace() callback is ignored		Shortcodes	normal	defect (bug)	new	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	3.5	has-patch
Defects Awaiting Review	59509	Shortcode attributes named 0 are ignored		Shortcodes	normal	defect (bug)	new	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	6.3.1	has-patch
Defects Awaiting Review	58397	Shortcodes in patterns are not rendered in templates		Shortcodes	normal	defect (bug)	new	2023-05-24T18:37:48Z	2026-08-25T04:57:39Z	"When a pattern is used in a template (using the pattern block), the shortcode processing is not applied to the content inside the pattern. So if you have a shortcode in a pattern, it is not rendered.

For example, a template could be:

{{{
<!-- wp:group {""tagName"":""main""} -->
<main class=""wp-block-group"">
	<!-- wp:pattern {""slug"":""theme-name/shortcode-demo""} /-->
</main>
<!-- /wp:group -->
}}}

and the pattern:

{{{
<?php
/**
 * Title: Demo
 * Slug: theme-name/shortcode-demo
 * Inserter: no
 */

?>
<!-- wp:paragraph -->
<p><?php _e( 'PHP version [recommended_php] or greater.', 'wporg' ); ?></p>
<!-- /wp:paragraph -->
}}}

Expected output: `PHP version 7.4 or greater.`

Actual output: `PHP version [recommended_php] or greater.` 

This caused [https://wordpress.slack.com/archives/C02QB8GMM/p1684947553359749 an issue with the WordPress.org download page].

This might be a duplicate of #58386, not sure if this should be handled differently for the pattern block vs 3rd party blocks."	ryelle	6.2.2	has-patch
Defects Awaiting Review	57790	Parsing of Shortcode Attributes: bug locating a final attribute		Shortcodes	normal	defect (bug)	reopened	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	6.1.1	dev-feedback
Defects Awaiting Review	40958	force_balance_tags breaks Ninjaforms and probably other plugins that output html within js.		Shortcodes	normal	defect (bug)	new	2017-06-08T21:16:48Z	2025-02-21T07:30:19Z	"If you have a shortcode for Ninjaforms and use the post in a context that runs force_balance_tags() it seriously breaks the script. For example if you have a form id=14, add this :
{{{#!php
<?php

echo 'NO BALANCE:--'. apply_filters('the_content', '[ninja_form id=14]' ) .' --END NO BALANCE. ';
echo 'BALANCED:--'. force_balance_tags(apply_filters('the_content', '[ninja_form id=14]' )) .' --END BALANCED. ';
}}}
Notice that some ending /spans, /is, and or /as are added before the end script, breaking it. Seems to not be wp version dependent."	programmin	4.7.4	
Defects Awaiting Review	44571	force_balance_tags breaks JavaScript		Shortcodes	normal	defect (bug)	new	2018-07-11T21:11:07Z	2024-09-22T05:18:47Z	"Input:
{{{
<?php
echo force_balance_tags('<script>console.log(""extest:"", 0<=1);</script>')
?>
}}}

Output:
{{{
<script>console.log(""extest:"", 0< =1);</script></script>
}}}
(no longer valid JavaScript)

Context:

I use tiny (<20KB) JS programs for interactive illustrations inside tutorials on a WP blog. These would most commonly break on pages where excerpts are shown (post list, search) and it took a little while to narrow this down to force_balance_tags running for !--more splitter in get_the_content.

Workarounds: enclosing JS code in a comment
{{{
<script><!-- code --></script>
}}}
which is a legacy part of spec https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements

Could the script-tags be treated like the comments in this regard? This is a rather unobvious behaviour."	yellowafterlife	4.9.7	
Defects Awaiting Review	61007	Shortcode aren't paste inline in paragraphs		Shortcodes	major	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	6.5	
Defects Awaiting Review	60887	After upgrade to WordPress 6.4.3, do_shortcode no longer works in page templates		Shortcodes	critical	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	6.4.3	
Defects Awaiting Review	58174	A shortcode block that evaluates to nothing, renders as a space in the HTML		Shortcodes	normal	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		
Defects Awaiting Review	58386	Shortcode generated by a block element is not executed in templates		Shortcodes	normal	defect (bug)	new	2023-05-23T15:01:57Z	2023-06-09T18:04:40Z	"Gravity Forms has a block element that inserts the final content by injecting shortcode into the page.

Since 6.2.1 (including 6.2.2) this shortcode does not execute when the Gravity Forms block is added to any sort of template."	rbrunskill	6.2.2	needs-patch
Defects Awaiting Review	58469	Changeset 55832 broke shortcodes saved in block attributes and rendered serverside		Shortcodes	normal	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	6.2.2	
Defects Awaiting Review	52567	Shortcodes in separate <p> tags appear on same line in browser		Shortcodes	normal	defect (bug)	new	2021-02-18T11:52:53Z	2023-05-25T06:18:59Z	"Please see the posts at the link below:

https://wordpress.org/support/topic/shortcodes-in-separate-tags-appear-on-same-line-in-browser/#post-14065192

This problem:

- ONLY occurs with <p> tags
- Only when no other item is between the tags except the shortcode.
- It does NOT occur when using other tags, such as headings, lists, etc.
- It does NOT occur if there is something before or after the shortcode in the same tag that is non-whitespace."	pawanahluwalia	5.6.1	needs-patch
Defects Awaiting Review	55406	Shortcodes don't work inside srcset attribute		Shortcodes	normal	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	5.8.3	
Defects Awaiting Review	49877	Content enclosed by (content enclosing) shortcode gets stripped from excerpt		Shortcodes	normal	defect (bug)	new	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	5.4	dev-feedback
Defects Awaiting Review	49955	Shortcode escaping not correctly handled when followed by enclosing shortcodes		Shortcodes	normal	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		
Defects Awaiting Review	42718	Video shortcode needs muted attribute for Autoplay to work with Safari 11.0.1+		Shortcodes	normal	defect (bug)	new	2017-11-27T21:31:45Z	2020-07-10T10:19:58Z	"Safari 11.0.1 disables autoplay on everything that isn't muted by default. Link here:

https://techcrunch.com/2017/06/05/auto-play-block/


Chrome will disable it starting next year:

https://arstechnica.com/tech-policy/2017/09/google-chrome-block-auto-play-video/


For this reason, if we're including the autoplay attribute in the video shortcode, we should add a muted attribute to make it a useable shortcode.


Other than a code change, we should also update the docs about the shortcode here:
https://codex.wordpress.org/Video_Shortcode

How to test this now:

Get on Safari 11.0.1 (or greater)
Create a post with a video shortcode and an autoplay tag.
Go to the front end version and see that it won't play.


"	deeptiboddapati	3.6	has-patch
Defects Awaiting Review	38713	Shortcodes and utf-8 no-break whitespace (\xc2\xa0)		Shortcodes	normal	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	4.6.1	
Enhancements Awaiting Review	66523	Tests: Add unit tests for the server-side rendering of the Shortcode block		Shortcodes	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	62752	Enhance Audio and Video Shortcodes with Custom Features (Tracklist, Images, Artists, Track Numbers, and Media Handling)		Shortcodes	normal	feature request	new	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	6.7.1	dev-feedback
Enhancements Awaiting Review	62454	[ wp-includes/shortcodes.php - do_shortcode() ] - fallback in case content is not a string		Shortcodes	trivial	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	60200	Search functionality does not search shortcodes		Shortcodes	normal	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		
Enhancements Awaiting Review	47984	Filter pre_do_shortcode		Shortcodes	normal	feature request	new	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		has-patch
Enhancements Awaiting Review	46412	Make shortcode attributes case-insensitive? shortcode_parse_atts		Shortcodes	normal	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	5.1	
Enhancements Awaiting Review	41086	Conditional loading of CSS files from (for example) shortcodes		Shortcodes	normal	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	4.8	
Reporter Feedback / Close	57267	wp_enqueue_style is not working under shortcode		Shortcodes	normal	defect (bug)	new	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	6.1.1	reporter-feedback
Reporter Feedback / Close	51377	Front End elements break after too many shortcodes		Shortcodes	normal	defect (bug)	new	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	5.1.1	reporter-feedback
Defects Awaiting Review, reported against latest stable branch	66060	Site health: robots.txt and WordPress in a subdir		Site Health	normal	defect (bug)	new	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	7.1	has-patch
Defects Awaiting Review	65395	"Site Health falsely reports ""Opcode cache is not enabled"" on shared hosting (WP 7.0)"		Site Health	normal	defect (bug)	new	2026-06-02T21:05:13Z	2026-10-02T16:27:00Z	"Hello,
I am experiencing a false positive/negative warning in the Site Health tool under WordPress 7.0. The tool reports that ""Opcode cache is not enabled"".

However, checking the server's phpinfo() clearly shows that Zend OPcache is ""Up and Running"" (enabled on the server level by the hosting provider).

According to my hosting support (Blueboard.cz), on shared hosting environments, direct management/clearing of OPcache via PHP functions (like opcache_reset) is restricted for security and stability reasons to prevent users from affecting other tenants on the same server.

It seems that the Site Health tool in WP 7.0 flags OPcache as disabled simply because it lacks administrative privileges to control it, even though the caching mechanism is actively running and optimizing the site. Could the check be adjusted to only look for the extension status, rather than requiring full write/reset permissions?

Thank you!"	kofwae	7.0	has-patch
Defects Awaiting Review	51230	WP_DEBUG is flagged when using the development environment type		Site Health	normal	defect (bug)	new	2020-09-03T12:43:59Z	2026-08-14T19:07:07Z	"This was a request from the comments of the New `wp_get_environment_type() function in WordPress 5.5 post from @robertreiser:

> Setting the environment to development also sets WP_DEBUG, which makes sense and I had WP_DEBUG enabled anyway on my development site.
> 
> But the site health tool still shows an error regarding the use of WP_DEBUG:
> 
> Your site is set to display errors to site visitors
> 
> In case if setting the environment to development, this should no longer be shown as an error in the site health tool.
"	desrosj	5.5	has-patch
Defects Awaiting Review	61577	health check count display bug		Site Health	normal	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	6.5.5	
Defects Awaiting Review	63058	Site Health: Directory size stuck in loading state		Site Health	normal	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		
Defects Awaiting Review	62630	Site Health plugin information display html tags in plugin name		Site Health	trivial	defect (bug)	new	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	6.7.1	has-patch
Defects Awaiting Review	61534	if debug mode is true and go to the site-heath page showing extra margin top at admin-menu		Site Health	normal	defect (bug)	new	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		dev-feedback
Defects Awaiting Review	60388	WordPress Core error message in my Website		Site Health	normal	defect (bug)	new	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		has-patch
Defects Awaiting Review	47266	Template of shutdown handler for fatal errors should not be displayed for CLI scripts		Site Health	normal	defect (bug)	new	2019-05-14T17:27:13Z	2024-05-08T20:48:13Z	"When running a CLI script that has a syntax error, the template's raw HTML and CSS are output to the command line.

I don't think that the shutdown handler for fatal errors should be loaded in a CLI context; instead, the default PHP behavior should be used instead.

This should handle the case where the CLI script is being run through WP-CLI, and also older scripts that were built before WP-CLI existed, which just load WP manually (i.e., check `'cli' === php_sapi_name()` rather than `defined( 'WP_CLI' )` )."	iandunn	5.2	has-patch
Defects Awaiting Review	55280	Unsupported operand types in Site Health		Site Health	normal	defect (bug)	new	2022-03-01T09:30:26Z	2024-02-27T09:04:35Z	"I get the following error:
{{{
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Unsupported operand types: string - int in [..]/wp-admin/includes/class-wp-site-health.php:2521
Stack trace:
0 [..]/wp-admin/includes/class-wp-site-health.php(1728): WP_Site_Health->has_missed_cron()
1 [..]/wp-admin/includes/class-wp-site-health.php(192): WP_Site_Health->get_test_scheduled_events()
2 [..]/wp-admin/includes/class-wp-site-health.php(137): WP_Site_Health->perform_test()
3 [..]/wp-includes/class-wp-hook.php(307): WP_Site_Health->enqueue_scripts()
4 [..]/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
5 [..]/wp-includes/plugin.php(474): WP_Hook->do_action()
6 [..]/wp-admin/admin-header....', referer: https://[..]/wp-admin/
}}}
This is on a WordPress 5.9.1 multisite running on PHP 8.0.13 which was just upgraded from WP 5.5.8/PHP 7.3.33."	lw5	5.9.1	
Defects Awaiting Review	52977	Consider using basic auth in https healh check.		Site Health	normal	defect (bug)	new	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	5.7	dev-feedback
Defects Awaiting Review	58819	Critical error on this website		Site Health	normal	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	6.2.2	
Defects Awaiting Review	50895	False information about writable files in Site Health Info		Site Health	normal	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	5.4.2	
Defects Awaiting Review	52343	Site Health Page: Inactive theme message is inconsistent		Site Health	normal	defect (bug)	new	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	5.6	dev-feedback
Defects Awaiting Review	48399	Recovery mode can stick the admin in a bad state		Site Health	normal	defect (bug)	new	2019-10-22T16:18:42Z	2019-11-21T10:54:55Z	"I got an error because a local class hadn't been copied to test wp directory, and got the ''Your Site is Experiencing a Technical Issue''.

I tried the enter_recovery_mode link in the email and got a different looking login, and the frontend site is blank. Even after the issue is fixed and all theme files are copied over, no fatal errors in the log, it still is blank.

When I open in new container tab or different browser, the site is fine, seems like this could cause more confusion than help since this recovery-mode can make the site blank and it is cookie-based, it probably should mention this in the email that they will be seeing not what everyone else sees, even if issue is fixed?"	programmin	5.2	
Enhancements Awaiting Review	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	enhancement	new	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		has-patch
Enhancements Awaiting Review	50055	Add more user-actionable information to the timezone health check		Site Health	normal	enhancement	new	2020-05-02T14:17:36Z	2026-11-04T13:49:49Z	"The timezone health check added in #48692 is very handy, but it doesn't provide much information for a user to action to remedy the issue.

Other health checks, such as the error display health check, provide a link to more information on the support handbook. It would be great to:

* Get a page added to the support handbook about `date_default_timezone_set()` and how you can go about finding and removing it from your site
* Adding a link to this page in the timezone health check"	johnbillion	5.3.1	has-patch
Enhancements Awaiting Review	66407	Site Health: support custom cron interval		Site Health	normal	feature request	new	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	7.1.4	has-patch
Enhancements Awaiting Review	66109	Add site health check for utf8mb3 tables and columns		Site Health	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	65891	When WordPress PHP email fails, the user often doesn't know		Site Health	normal	enhancement	new	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	7.1	has-patch
Enhancements Awaiting Review	65677	Site Health - Add a button to copy information from the Status screen		Site Health	normal	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		
Enhancements Awaiting Review	60619	Add a DNS section to Site Health (and status checks for SPF and DMARC)		Site Health	normal	enhancement	closed	2024-02-23T09:59:49Z	2026-02-20T08:59:03Z	"In February 2024 Google and Yahoo announced some changes for sending mails:
https://support.google.com/a/answer/81126?hl=en
https://senders.yahooinc.com/best-practices/

For example, both are now requiring SPF ''or'' DKIM and you need valid forward and reverse DNS record for your sending IPs.

This is the requirement for all senders (for bulk senders with more than 5000 mails per day there are even stricter rules).

So using a Gmail address within WordPress and not having a valid SPF could lead to mails getting bounced for not passing the SPF check. Important mails (Password reset, fatal error handler, etc.) are not getting attention.

Unfortunately, there is no easy way to check these settings. You need to know where you can set this up at your hoster or you need to know external tools for checking, like: https://mxtoolbox.com/SuperTool.aspx, https://www.nslookup.io or https://dnschecker.org/all-dns-records-of-domain.php

So why not adding a DNS section to the Site Health report, adding those records? And some status checks where possible?

As @swissspidy has pointed out on X/Twitter, this needs more thoughts and polishing before getting in core, so I have built a proof of concept as a plugin:

https://github.com/Zodiac1978/dns-info

This could easily be transformed to a patch for the Site Health component by me.

I am interested in feedback and what should be changed to get this in core. Here or on GitHub.

Thanks in advance!"	zodiac1978		dev-feedback
Enhancements Awaiting Review	61967	Allow site health managment		Site Health	normal	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		
Enhancements Awaiting Review	62129	Add a Site Health test for existence of sender email address		Site Health	normal	enhancement	new	2024-09-29T09:09:11Z	2025-08-07T09:36:25Z	"On many email systems today, to accept an email, the sender email adress must exists. If not this may be the reason fo rejection:
> RCPT TO:<wordpress@example.com>
> 550-Response: 550 No Such User Here""
> 550 Invalid sender <wordpress@example.com>

If not it should be a warning or recommendation to create it, as just a forwarder or full account for storing.

Related: #49687"	knutsp		dev-feedback
Enhancements Awaiting Review	63661	Display admin error message if AUTO_INCREMENT attribute is missing on WP core tables		Site Health	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	63634	Expand servehappy to detect MariaDB/MySQL versions with very short support periods		Site Health	normal	enhancement	new	2025-06-27T22:17:31Z	2025-06-27T22:42:47Z	"MySQL and MariaDB both have the concept of releases supported for a very short amount of time (typically 4 months or less) and do not come with a promise of backward compatibility.

These are called Innovation or Rolling GA releases.

When a site is running one of these releases, servehappy should display a notice to the user in the admin explaining the tradeoffs and recommending they update to a release explicitly marked as LTS."	desrosj		
Enhancements Awaiting Review	59070	child theme should not be counted as additional theme		Site Health	normal	enhancement	new	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	6.3	has-patch
Enhancements Awaiting Review	63524	Add DISABLE_WP_CRON to site health constants		Site Health	normal	enhancement	new	2025-06-04T10:07:24Z	2025-06-06T09:35:15Z	"I recently had to confirm for a site owner that {{{DISABLE_WP_CRON}}} was set, and was surprised that it's not listed as a constant in the Info section of Site Health.

Referencing piecemeal approach from #51326"	leedxw	6.8	dev-feedback
Enhancements Awaiting Review	62526	Add the theme type (block theme or non block theme) to the site health page		Site Health	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	51326	Site Health: Add all constants used by core		Site Health	minor	enhancement	new	2020-09-16T21:57:07Z	2025-04-13T07:45:09Z	"These constants seems to be missing from Site Health Info WordPress Constants section:

`WP_ACCESSIBLE_HOSTS`
`WP_HTTP_BLOCK_EXTERNAL`
`WP_AUTO_UPDATE_CORE`
`AUTOMATIC_UPDATER_DISABLED`
`WP_ENVIRONMENT_TYPE`
`WP_ALLOW_REPAIR`
`WP_POST_REVISIONS`
`FORCE_SSL_ADMIN`
`DISALLOW_FILE_EDIT`
`DISALLOW_FILE_MODS`
`AUTOSAVE_INTERVAL`
`WP_DISABLE_FATAL_ERROR_HANDLER`
`ALTERNATE_WP_CRON`
`DISABLE_WP_CRON`
`IMAGE_EDIT_OVERWRITE`

There are more, but these a most important.


The should be reported as Undefined, Enabled, Disabled (bool), or echoed as an int/string, just like the others."	knutsp	5.2	
Enhancements Awaiting Review	62994	Add a site health check for global table schemas		Site Health	normal	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		needs-patch
Enhancements Awaiting Review	47651	Provide required PHP version for plugins with minimum PHP requirement		Site Health	normal	enhancement	new	2019-07-04T16:13:52Z	2025-02-20T14:32:25Z	"Hello,

When a plugin has an update but the update bumps the minimum required PHP version to a version higher than the server's current setup it would be very helpful to provide that information in the messaging. I had to go to the plugin page to find it's minimum required PHP version.

Current messaging;
`This update doesn't work with your version of PHP. Learn more about updating PHP.`

Would be nice to have something like;
`This update requires a minimum of PHP 7.2 which is higher than your version of PHP. Learn more about updating PHP.`
OR a simpler and shorter version
`This update requires a minimum of PHP 7.2. Learn more about updating PHP.`

Appreciate any thoughts"	garrett-eclipse	5.2	dev-feedback
Enhancements Awaiting Review	62631	Add plugin dependencies to Site Health		Site Health	normal	enhancement	new	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	6.7.1	has-patch
Enhancements Awaiting Review	62304	Site Health: Allow dismissing warnings		Site Health	normal	enhancement	new	2024-10-25T21:00:01Z	2024-10-27T11:53:23Z	"Site health request:

Could you *PLEASE* add a functionality for us to either ""mark as complete"" for any issue, or ""turn off warnings"" or ""Ignore"" or something like that for some of the flags? Some are completely irrelevant OR not being used, but there's zero way for us to mark it as that.

i.e., My site status on one of my sites says ""Good, but there's still things I could do"". Why can't I just dismiss those ones I don't want? It would be super helpful.

Example A: Sometimes I get notice that ImageMagik is not installed on the site, and it's suggested to be useful. Maybe, but if I am using a site that is not image heavy in any way (like a forum), I don't particularly care to install it onto my site...

Example B: Make suggestions on HOW to fix something - i.e., I got a “Loopback request” not working error… I have zero clue why it matters or how to fix it, the system doesn’t supply anything useful, just gives the warning.

“Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability. The loopback request returned an unexpected http status code, 400, it was not possible to determine if this will prevent features from working as expected.”

So maybe actually tell people how to fix it? (Might have even been a server glitch?)

Example 3: Some have complained at the ability for Plugins to blatantly pitch people to upgrade, acting as if there is a major error in the plugin/site unless you do so. (Search the community for Site Health and you'll see discussions). My example that triggered all of this - I kept having a red flag on the side of my panel for site health. When I read it, it was my WishlistMember plugin, stating that I had a legacy version of the system and that I needed to upgrade to use Stripe properly.... only I DON'T USE Stripe through the plugin. It took a bit, but I figured out where to turn stripe off (I never turned it on in the first place at install, so this must be something they did). 

I recognize legitimate errors - I completely agree with that. But in circumstances like this, when I don't USE stripe for example on the site, then I should be able to dismiss something like that with the click of a button. (I also already pay every year to WLM for this particular version, and I'm not upgrading higher as it isn't necessary for my needs.)

Some people are starting to view this as almost malicious and intrusive.

I recognize security issues, or issues that actually affect the site, like a plugin failure. But allowing plugins to post messages like this is annoying.

It's not just me, please do a search on Google (not just your own community) for people asking how to turn it off or adjust it.

I believe it is useful and shouldn't be turned off completely. But it would be a lot better if it could have an ""ignore"" toggle on some things. "	dimeco	6.6.2	
Enhancements Awaiting Review	62214	Update Site Health to use `do_accordion_sections()`		Site Health	normal	enhancement	new	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	5.2	dev-feedback
Enhancements Awaiting Review	62119	Notice in Site Health in case revisions are disabled		Site Health	normal	feature request	new	2024-09-26T08:39:30Z	2024-10-02T13:10:43Z	"Feature request/idea: Give out a notice in Site Health in case revisions are disabled.
Feature request/idea: New setting in Settings>Writing: Limit revisions (maybe 3-300)"	cewebdesignmunchen		has-patch
Enhancements Awaiting Review	59893	Add a translation section in the Site Health report		Site Health	normal	enhancement	new	2023-11-13T09:53:42Z	2024-09-26T14:50:51Z	"In the Site Helth report, we can know if Core, plugins or theme are outdated or not.
It would be great to also know if some translations are available to be updated."	sebastienserre	6.5	dev-feedback
Enhancements Awaiting Review	61743	Capture and inform users when plugins or themes are `_doing_it_wrong()`		Site Health	normal	enhancement	new	2024-07-24T15:13:49Z	2024-07-24T15:21:09Z	"Part of a healthy website is having plugins and themes that use WordPress core's features correctly, to ensure they keep working in the foreseeable future (thanks to WordPress' dedication to backwards compatibility).

The `_doing_it_wrong()` function, and its siblings, generally always fire a ` E_USER_NOTICE` level error, this means it will be hidden away in a log file that the user may never see, or hosts may have disabled, since only `WARNING` or `ERROR` are of true value.

The Site Health Checks can help here, by capturing when these are thrown and surfacing them in a user friendly manner.

**Why add this to core, and not just as a plugin?**
The improper use of core functionality can lead to bad optics, where it looks like WordPress broke your site because they modified a function and a plugin wasn't using it 
in an expected way.

In addition, this would allow core to deprecate things, and make authors more aware that if they just keep using them because ""WordPress would never break this any way"", it will reflect poorly on them as their users would be made aware that they are doing something wrong, making it safer for core to make changes of any kind (necessary deprecations for example).

**How do we implement this in a user friendly manner?**
This is the big question, as a site health check, it should always have something actionable attached to it, I envision it surfacing a table of plugins or themes that throw these notices, each of them with a link to their WordPress.org forums (if they're hosted on WordPress.org of course), and a notice to contact whomever they purchased it from if not.

Additionally, an actionable item may be to make it forget what things it has discovered already (if you've done updates for example, and the issues may now be resolved).

A self-actuating thing is that any plugin or theme update should remove it's memory of that plugin or theme, so that it may capture any new issues, and the memory should only persist a week at most in the first place, in case they use deployments that do not trigger the normal upgrade flows."	Clorith		
Enhancements Awaiting Review	56258	Add IPv6 availability check in Site Health		Site Health	normal	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		
Enhancements Awaiting Review	60508	Add a plugin dependency section to Site Health		Site Health	normal	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		
Enhancements Awaiting Review	54338	"Site Health dashboard: ""insecure PHP"""		Site Health	normal	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		
Enhancements Awaiting Review	54116	Check ImageMagick version 6/7		Site Health	normal	enhancement	new	2021-09-13T08:52:32Z	2024-01-24T09:26:50Z	"From #52654

**Context**

WordPress uses ImageMagick to create, edit, compose, or convert digital images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, WebP, HEIC, SVG, PDF, DPX, EXR and TIFF. ImageMagick can resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.

**ImageMagick recommendation**

But, we recommend using ImageMagick, although the last WordPress versions supports WebP and ImageMagick 6 does not support it.

Moreover, a lot of OS have the version 6 by default because version 7 needs to be compiled manually (at least, at this moment).

**Site Health**

Should the Site Heath check the version?

Yes. because for some functionalities, there are some things different.

**How we can check it?**

https://www.php.net/manual/en/imagick.getversion.php

The array returns something like:

{{{
Array
(
    [versionNumber] => 1632
    [versionString] => ImageMagick 6.6.0-4 2010-11-16 Q16 http://www.imagemagick.org
)
}}}

But, we should get the version with this example:
{{{#!php
<?php
$v = Imagick::getVersion();
preg_match('/ImageMagick ([0-9]+\.[0-9]+\.[0-9]+)/', $v['versionString'], $v);
if(version_compare($v[1],'6.2.8')<=0){
   print ""Your ImageMagick Version {$v[1]} is '6.2.8' or older, please upgrade!"";
}
}}}

**Version 6 vs. version 7**

And, here is the comparison between version 6 and version 7:

https://www.imagemagick.org/script/porting.php

**Version 7 Change Summary**

Changes from ImageMagick version 6 to version 7 are summarized here:
High Dynamic Range Imaging

- ImageMagick version 7 enables HDRI by default. Expect more accurate image processing results with higher memory requirements and possible slower processing times. You can disable this feature for resource constrained system such as a cell phone with a slight loss of accuracy for certain algorithms (e.g. resizing).

Pixels

- Pixels are no longer addressed with PixelPacket structure members (e.g. red, green, blue, opacity) but as an array of channels (e.g. pixel[PixelRedChannel]).
- Use convenience macros to access pixel channels (e.g. GetPixelRed(), SetPixelRed()).
- The black channel for the CMYK colorspace is no longer stored in the index channel, previously accessed with GetAuthenticIndexQueue() and GetCacheViewAuthenticIndexQueue(). Instead it is now a pixel channel and accessed with the convenience pixel macros GetPixelBlack() and SetPixelBlack().
- The index channel for colormapped images is no longer stored in the index channel, previously accessed with GetAuthenticIndexQueue() and GetCacheViewAuthenticIndexQueue(). Instead it is now a pixel channel and accessed with the convenience pixel macros GetPixelIndex() and SetPixelIndex().
- Use GetPixelChannels() to advance to the next set of pixel channels.
- Use the metacontent channel to associate metacontent with each pixel.
- All color packet structures, PixelPacket, LongPacket, and DoublePacket, are consolidated to a single color structure, PixelInfo.

Alpha

- We support alpha rather than opacity (0 transparent; QuantumRange opaque).
- Use GetPixelAlpha() or SetPixelAlpha() to get or set the alpha pixel channel value.

Grayscale

- Grayscale images consume one pixel channel in ImageMagick version 7. To process RGB, set the colorspace to RGB (e.g. -colorspace sRGB).

Masks

- ImageMagick version 6 only supports read mask in limited circumstances. Version 7 supports both a read and write mask. The read mask is honored by most image-processing algorithms.

MagickCore API

- Almost all image processing algorithms are now channel aware.
- MagickCore, version 7, adds an ExceptionInfo argument to those methods that lacked it in version 6, e.g. NegateImage(image,MagickTrue,exception);
- All method channel analogs have been removed (e.g. BlurImageChannel()), they are no longer necessary, use pixel traits instead.
- Public and private API calls are now declared with the GCC visibility attribute. The MagickCore and MagickWand dynamic libraries now only export public struct and function declarations.
- The InterpolatePixelMethod enum is now PixelInterpolateMethod.
- To account for variable pixel channels, images may now return a different signature.

Deprecated Methods

- All ImageMagick version 6 MagickCore and MagickWand deprecated methods are removed and no longer available in ImageMagick version 7.
- All MagickCore channel method analogs are removed (e.g. NegateImageChannels()). For version 7, use pixel traits instead.
- The FilterImage() method has been removed. Use ConvolveImage() instead.
"	JavierCasares		
Enhancements Awaiting Review	56987	Site Health: add visual placeholder for checks that are still loading		Site Health	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	59362	Display deprecated function usage in Site Health		Site Health	normal	enhancement	new	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	6.3.1	dev-feedback
Enhancements Awaiting Review	57964	Sitehealth recommended improvements - utf8mb4 requires a newer client library		Site Health	normal	enhancement	new	2023-03-21T17:01:37Z	2023-03-23T08:34:22Z	"WordPress: 6.2-RC2
Sitehealth recommended improvements - utf8mb4 requires a newer client library

UTF8MB4 is the character set WordPress prefers for database storage because it safely supports the widest set of characters and encodings, including Emoji, enabling better support for non-English languages.

Your MariaDB version supports utf8mb4.

WordPress’ utf8mb4 support requires MySQL client library (libmysql) version 5.5.3 or newer. Please contact your server administrator.

{{{

from phpinfo.php
mysqli
Client API library version	3.1.20
Client API header version	10.4.28-MariaDB
mysqlnd
Version	mysqlnd 8.1.16

In WordPress site health info:
Extension	mysqli
Server version	10.4.28-MariaDB
Client version	10.4.28-MariaDB

}}}

https://php.watch/versions/8.2/mysqli-libmysql-no-longer-supported

With PHP 8.2 should this recommended be given as libmysql no longer supported in PHP 8.2. Does any version of mysqlnd support utf8mb4 instead and should be the recommendation instead? 

Note: Running PHP 8.1 on production site and my local PHP 8.2 doesn't use libmysql if this is already fixed. "	ipajen		dev-feedback
Enhancements Awaiting Review	56276	Check hosting compatibility for Mobile Application to work with the site		Site Health	normal	enhancement	new	2022-07-23T11:36:03Z	2023-03-07T05:18:43Z	"Some hosting companies are closing XML-RPC for better security, but if customers will ask for it to be white listed, it can be done. 

This way attentive user can discover that there is mobile application which can be used and also if there are obstacles for this.

For more information about this issue with hostings, recording from 'WordPress Portsmouth Online Meetup – 20th July 2022 – WordPress Mobile Apps' can be viewed."	oglekler		
Enhancements Awaiting Review	57826	Either core themes should not be automatically installed OR their presence should not be a site health issue		Site Health	minor	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	57159	Add scheduled events in the site health report.		Site Health	normal	enhancement	new	2022-11-21T10:18:15Z	2023-01-31T18:34:13Z	"Hello,

Do you think it should be possible to have a list of scheduled events in the Site Health report ?

Having this information may help to debug some ""strange"" behaviour.

Thank you"	sebastienserre		dev-feedback
Enhancements Awaiting Review	57440	"Add filter to customize the ""rest_availability"" test URL"		Site Health	normal	enhancement	new	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	5.2	has-patch
Enhancements Awaiting Review	53252	Track WP-CLI version in Site Health	wpscholar	Site Health	trivial	enhancement	assigned	2021-05-21T18:32:45Z	2022-09-05T21:20:07Z	Currently, there is no data about WP-CLI in Site Health. Assuming that WP-CLI is present, we should display the version number in the Site Health info tab.	wpscholar	5.8	dev-feedback
Enhancements Awaiting Review	47210	Allow html on site health titles and description		Site Health	minor	enhancement	new	2019-05-10T07:37:41Z	2022-09-05T20:27:28Z	"Hello there,

In /wp-admin/site-health-info.php#L115 we have this:

{{{
<?php echo esc_html( $details['label'] ); ?>
}}}

So we don't allow HTML content ? why!?
I propose the usage of wp_kses_* to allow clean html content.

Also line#141 we have this:
{{{
printf( '<p>%s</p>', $details['description'] );
}}}

We clearly allow any html, so I propose to sanitize using wp_kses_* too, we don't want embed/iframe/script here right?

Thank you for your feedback."	juliobox	5.2	dev-feedback
Enhancements Awaiting Review	52011	'The REST API encountered an unexpected result' should be a critical error		Site Health	normal	enhancement	new	2020-12-10T10:19:58Z	2022-08-28T20:12:27Z	"I deliberately made an error by replacing one of the core files with file from a previous version (such things are happening when an update went wrong for example), which results in a PHP warning, which can be hidden if debug mode is disabled but lead to critical error from REST API and it can easily be missed in recommendations because it isn't labelled as critical. 

Usually, users don't see errors which are causing through REST API, because they need to open a console firstly and they don't understand what is wrong with their site."	oglekler	5.2	
Enhancements Awaiting Review	53230	Allow nested arrays to be displayed in site health.		Site Health	normal	enhancement	new	2021-05-19T08:55:29Z	2022-08-28T13:37:14Z	Site health info, if the value is an array, it formats this as a ul / li list. This is nice, but if in the array, are other nested arrays, these are not rendered as expects. This screen should be changed to check if the value is an array and to iterate through it. 	spacedmonkey	5.2	needs-patch
Enhancements Awaiting Review	56376	Add wp_is_ini_value_changeable( 'memory_limit' ) yes or no to class WP_Debug_Data		Site Health	normal	enhancement	new	2022-08-14T17:34:09Z	2022-08-14T17:34:09Z	"If the function 
{{{
wp_is_ini_value_changeable( 'memory_limit' )
}}}
 is true or false is important to know when deciding if setting a higher value of WP_MEMORY_LIMIT or WP_MAX_MEMORY_LIMIT will have any effect on the site performance.
 
I can't find this info in the current version of class WP_Debug_Data in WP 6.0.1."	missveronicatv	6.0	
Enhancements Awaiting Review	56035	Error logging improvements		Site Health	normal	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		
Enhancements Awaiting Review	52014	Change the phrase 'Learn more about debugging in WordPress.' for a clearer instruction such as 'Follow this guide to find out the source of the problem'.		Site Health	normal	enhancement	new	2020-12-10T12:34:19Z	2022-07-28T19:06:09Z	"Some people who see this message possible don't know what the debugging is and how it can help them, so, it can address their need to solve the problem by localizing the source.

I am suggesting to change the phrase 'Learn more about debugging in WordPress.' to 'Follow this guide to find out the source of the problem and how it can be solved' or something clearer and shorter.
"	oglekler		
Enhancements Awaiting Review	50770	Facilitate async debug entries in Site Health Info		Site Health	normal	enhancement	new	2020-07-26T06:55:08Z	2022-05-27T10:30:24Z	"I noticed that loopback request test is not included in the Site Health Info. It seems that no asynchronous tests are included in the debug information with the exception of the hard-coded `wp-paths-sizes`. In the same way that `site_status_tests` allows for specific tests to be `async`, it would be great if `debug_information` allowed the same. Other existing core tests should be included in the Site Health Info as well, specifically the tests `dotorg_communication`, `background_updates`, and `loopback_requests`.

For some context: I work on the AMP plugin and loopback requests are essential for the plugin to work properly. When users create support forum topics with their Site Health info, it would be very helpful if the result of the Loopback Requests test were included in the debug info."	westonruter	5.2	
Enhancements Awaiting Review	50272	Move current admin footer reminder when running development version to Site Health		Site Health	normal	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	5.2	
Enhancements Awaiting Review	54584	Site Health should flag PHP versions in the dev-stable branch		Site Health	normal	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		
Enhancements Awaiting Review	54505	"Add ""Temp Directory"" to site health info"		Site Health	normal	enhancement	new	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		has-patch
Enhancements Awaiting Review	53572	"An ""acknowledged"" category for site health check for things managed outside of WordPress"		Site Health	trivial	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	5.1	
Enhancements Awaiting Review	54039	site health can probably do better job at detecting if imagick supports PDF		Site Health	normal	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		
Enhancements Awaiting Review	47653	Site Health plugin security check		Site Health	normal	enhancement	new	2019-07-05T04:28:58Z	2021-09-07T17:01:22Z	"Having inactive plugins is not necessarily a bad thing. It is if they're up to date, if they haven't had an update in a few months or if they're untested with the current version of WordPress core.

Also, when there are outstanding updates and inactive plugins, the main notice (H4, visible while collapsed) should be about the updates, not the inactive plugins."	galbaras	5.2	dev-feedback
Enhancements Awaiting Review	54017	Add an Update Log (to site health?)		Site Health	normal	feature request	new	2021-08-26T17:40:36Z	2021-09-01T20:37:05Z	"As of the last few major releases, WordPress _auto updates_ major releases.

I am 100% for this, however I've found it can be a total pain to try and figure out why someone was updated sometimes. Not to mention people are now getting updates with only the email as a notice, which means sometimes the non-primary admin will find a problem first and have no clue why.

This could be alleviated if we had an update log, possibly in site health, that recorded...

1. When WP was installed (this will allow you to back track ""Oh you started on WP 5.9, that means..."")
2. When a plugin or theme is updated
3. When WP is updated

That also lets people keep tabs on when things happened if their email is down or they got shunted to spam.

There are a number of plugins that do this, but having it in core allows it to be utilized by web hosts and wp-cli natively."	Ipstenu		
Enhancements Awaiting Review	51702	Warn of potentially poor/insecure password generation		Site Health	normal	feature request	new	2020-11-03T20:28:34Z	2021-06-01T13:48:56Z	"`wp_generate_password()` is responsible for generating random strings for many things in core. To name a few, [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-application-passwords.php?rev=49490#L49 Application Passwords], [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/setup-config.php?rev=49490#L324 Core salts] (as a fallback), [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/privacy-tools.php?rev=49490#L335 random file names] (Privacy), default user passwords, and more. Each scenario passes the length of the desired generated string, and whether to include 2 different sets of special characters.

In addition to being fully pluggable, there is a `random_password` filter within `wp_generate_password()` that can alter the result of the generated password. The `$length` field should always be respected and `wp_generate_password()` should never return a string shorter than requested. If this does happen, the user should be made aware that potentially insecure strings are being generated so that they can attempt to fix this."	desrosj		dev-feedback
Enhancements Awaiting Review	52916	can_perform_loopback() should not rely on wp-cron.php check		Site Health	minor	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	5.7	
Enhancements Awaiting Review	52799	Easy HTTPS Redirects in WordPress Dashboard		Site Health	normal	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		
Enhancements Awaiting Review	49188	Add a check for tables structures.		Site Health	normal	enhancement	new	2020-01-13T15:51:56Z	2021-01-29T00:46:40Z	"While reading #47714, I had this idea as I've seen a lot of sites especially after migrations/restorations where the DB structures weren't implemented as planned and nobody noticed, leading into WordPress not being able to work properly.

Core table structures shouldn't be altered I believe unless a database is customized in general so for the majority it should always be the same and as instructed by the installation (do tell me if I have this completely off :D).

I believe that managing a test for core table structures would be of great benefit as migrations/restorations can't be avoided at some point & it would also be considered a critical issue.

We could also create extra documentation to point at if there's a problem with some ""copy, modify & paste"" SQL to restore the structures as supposed to be.

Any thoughts on this? There might be plugins out there doing this already but I do believe it could be a nice addition to Site Health for checking core-related tables."	xkon		dev-feedback
Enhancements Awaiting Review	47426	Site Health should check for incompatible plugins and plugins no longer maintained		Site Health	normal	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	5.2.1	
Enhancements Awaiting Review	51527	Debugging in Multisite context: list of plugins		Site Health	normal	enhancement	new	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		dev-feedback
Enhancements Awaiting Review	50745	Visualisation of site health could be better		Site Health	normal	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		
Enhancements Awaiting Review	49817	Simple Site Health Improvement to Check for Plugin Compatibility wiith Latest WP Version Release		Site Health	normal	enhancement	new	2020-04-05T06:30:00Z	2020-08-14T11:19:20Z	"Before upgrading to the latest version of WordPress (5.4), I always first check whether the plugins I'm using are compatible up to that version. To do this I have to go into each plugins' details manually and check what version of WP that it's compatible up to.
When there's 20 or so plugins on a site and I'm managing 4 or 5 sites it becomes very time consuming. It can often take a few weeks for the developers to update their plugin to be compatible with the latest version of WP, so checking multiple times on top of that. Once I know the critical plugins are compatible, only then will I upgrade WordPress to the latest version.

So my suggestion is that in the Site Health report under the Info tab under the Active and Inactive Plugins sections, that the version of WP that the plugin is compatible up to is included in the table. Possibly even the last date the plugin was updated as well, but that's not as important.

Would be a big time saver for me, and probably many others too.

Thanks"	aussiedigitalnomad	5.2	
Enhancements Awaiting Review	50389	Improve support for site health issues in WordPress		Site Health	normal	enhancement	reopened	2020-06-15T04:23:12Z	2020-06-15T20:28:10Z	"after we upgraded to wordpress 5.4, we are getting these performance issues.  this is what was mentioned in the site health report.  can you pl tell us how to fix them?

PHP modules perform most of the tasks on the server that make your site run. Any changes to these must be made by your server administrator.

The WordPress Hosting Team maintains a list of those modules, both recommended and required, in the team handbook (opens in a new tab).

    Warning The optional module, imagick, is not installed, or has been disabled.
    Warning The optional module, zip, is not installed, or has been disabled."	evapparao	5.2	dev-feedback
Enhancements Awaiting Review	47192	Allow users to enter recovery mode via their registered email		Site Health	normal	enhancement	new	2019-05-08T18:28:43Z	2020-04-22T18:11:50Z	"In WordPress 5.2 recovery mode was added. Recovery mode is entered when by clicking on a special link sent in an email. The email is sent to the `admin_email` which is stored as an option. However, the current manager / administrator may not have access to this email inbox. 

Users with the `activate_plugins` capability should be able to request a recovery link sent the user's register email via form, similar to the forgotten password form. This request recovery link form, should always be available (default recovery mode on this single page). The unique recovery link key, should likely be stored in user meta with the possibility to work with multisite setups in the future.   "	spacedmonkey	5.2	has-patch
Enhancements Awaiting Review	48331	Snoozing the admin email verification screen when a user initiates/confirms a site email change		Site Health	normal	enhancement	new	2019-10-16T19:45:01Z	2019-12-06T14:21:48Z	"When presented with the admin email verification screen, clicking update takes you to the `Settings > General` page where the user can update the email address. But, even if the user initiates an admin email address change (which requires a confirmation URL in an email to be clicked), they will continue to see the verification screen until they click to confirm the email is correct or ""Remind me later"", even if the email change request is confirmed.

When a user navigates to the Settings > General page from clicking Update on the verification screen and follows through to initiate a request to change the admin email, the verification screen should be snoozed the same as clicking ""Remind me later"".

Being consistently presented with the verification screen could cause the user to confirm the email just to get the notice to stop.

When a request to change the email is confirmed, both the old and new email receive a notification informing them of the action. The verification screen could probably be snoozed same amount of time as `admin_email_check_interval` at that point."	desrosj		dev-feedback
Enhancements Awaiting Review	47765	Email from improved fatal error protection		Site Health	minor	enhancement	new	2019-07-23T13:17:10Z	2019-12-05T09:53:21Z	"Hi WordPress team!

Your new feature about fatal error protection is really great! But I can see one thing that doesn't look good to me.

In the email sent to the administrator of the site, you tell to the user to contact his/her hoster.

In reality, a hoster won't intervene on the site/application of his customers and they won't understand why they don't receive any help whereas WordPress told them to contact their hoster.

Furthermore, there are no more logs in php error.log file, which is more often the only one accessible to the hoster.

Maybe it would be better to add some links to ""good practices"" for debugging, or to the WordPress community. Whet do you think?

xakan, a hosting support guy"	xakan	5.3	
Enhancements Awaiting Review	48051	Keeping default theme but removing inactive themes?		Site Health	trivial	enhancement	new	2019-09-16T16:46:18Z	2019-09-16T16:50:22Z	"Let me start by saying the default site-health report under Tools > Site Health is quite useful. Many of my clients have praised the addition by the WP team! 

However, while studying the site health report undert Tools >> Site Health on a couple of clients websites I found something interesting in the confusing type of way…. when there are unused themes it says “Remove inactive themes” then when you remove all unused themes it switches over and says “Have default theme available” I understand the reason it suggests this but why not add text in the “remove unused themes” suggestion accordion that says “keep one default theme” or something to that effect.

Personally, I would make the accordion title say ""Keep one default theme, remove all other unused themes"". But that is just me. 

This is a trivial thing that would make the report a bit more useful to inexperienced users. 
"	binarywc		
Reporter Feedback / Close	54598	Site Health makes downright wrong and dangerous suggestions		Site Health	normal	defect (bug)	reopened	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		close
Reporter Feedback / Close	60802	Enable debug mode / debug options in site health		Site Health	minor	feature request	new	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		close
Reporter Feedback / Close	57349	Page cache is not detected but the server response time is OK		Site Health	normal	enhancement	new	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	6.0.1	reporter-feedback
Reporter Feedback / Close	57059	add complete phpinfo() to site health		Site Health	minor	enhancement	new	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 (simila