__group__ ticket summary owner component _version priority severity milestone type _status workflow _created modified _description _reporter Comments Needs Dev / Bug Wrangler Feedback 51158 "With ACF Blocks in 5.5, ""enqueue_assets"" causes fatal error" Editor 5.5 normal blocker Awaiting Review defect (bug) new dev-feedback 2020-08-27T15:20:27Z 2020-09-03T00:49:09Z "This is related to ACF Pro, but didn't happen until the upgrade to WP 5.5. I downgraded to 5.4.2 to make sure and I can verify it's a WordPress issue, likely related to REACT or the Rest API. I don't know enough about the Gutenberg editor to know if it's specific to that, so I'm posting here with ""second-opinion"" Workflow Keyword. I have several custom blocks created using ACF Pro. One of them requires multiple javascript files and uses the ""enqueue_assets"" attribute to enqueue them. When I try to edit any post, I get a popup error that covers the entire screen saying ""The editor has encountered an unexpected error."" and has 3 buttons: ""Attempt Recovery"", ""Copy Post Text"", ""Copy Error"". None of the buttons work. In the console, I get these errors: {{{ react-dom.min.js?ver=16.9.0:103 TypeError: First argument must be a String, HTMLElement, HTMLCollection, or NodeList at t.exports (compose.min.js?ver=c4775e2aa9288586791e26a980eff851:9) at e.value (compose.min.js?ver=c4775e2aa9288586791e26a980eff851:9) at new e (compose.min.js?ver=c4775e2aa9288586791e26a980eff851:9) at compose.min.js?ver=c4775e2aa9288586791e26a980eff851:9 at Vb (react-dom.min.js?ver=16.9.0:104) at Xi (react-dom.min.js?ver=16.9.0:151) at unstable_runWithPriority (react.min.js?ver=16.9.0:26) at Ma (react-dom.min.js?ver=16.9.0:52) at Yb (react-dom.min.js?ver=16.9.0:150) at O (react-dom.min.js?ver=16.9.0:120) components-1480.js:24 Uncaught TypeError: Cannot read property 'clientHeight' of null at G.hasOverflowedContent (components-1480.js:24) at G.fitTitle (components-1480.js:24) at components-1480.js:24 }}} After the second error, the first error repeats and keeps getting hit every few milliseconds, telling me it has thousands of times within a minute. I'll post this with ACF Pro, too, but wanted to mention here in case it's a WordPress bug. I don't know how many people use ACF blocks in the Block Editor, but it completely prevents people from editing posts if they have some. Thanks!" bronsonoquinn 1 Needs Dev / Bug Wrangler Feedback 53418 Post Status Transition missing Hook Posts, Post Types 5.7.2 normal blocker Awaiting Review defect (bug) new dev-feedback 2021-06-15T23:42:17Z 2021-06-15T23:42:17Z "REF: https://codex.wordpress.org/Post_Status_Transitions So I have been testing this and found there is an issue creating the post type **new to pending**: {{{#!php _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 Has Patch / Needs Testing 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 6.1 normal blocker Awaiting Review defect (bug) new has-patch 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 5 Has Patch / Needs Testing 58304 wp_update_image_sizes Media 6.2 normal blocker Awaiting Review defect (bug) new has-patch 2023-05-13T14:20:43Z 2023-06-29T17:37:30Z "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 1 Needs Reporter Feedback / Steps To Reproduce 59834 While we update wordpress to version 6.4 getting wrong templates loaded General 6.4 normal blocker Future Release defect (bug) new close 2023-11-08T11:47:19Z 2023-12-14T20:25:05Z "Exemple with woocommerce and polylang: The cart pages is front-page.php instead of page.php Same for checkout Also some custom post type pages I had no time to test more as I had to fix a live website and overrided wordpress with 6.3.2 I think also translations were reporting as 404 template" gregoiresailland 12 Needs Reporter Feedback / Steps To Reproduce 54964 get_permalink() does not use the correct slug rewrite base Posts, Post Types 5.9 normal blocker Awaiting Review defect (bug) new reporter-feedback 2022-01-27T22:10:49Z 2023-10-04T11:54:50Z "Hello, get_permalink does not work well for custom posts with slug rewrite. E.g. I have implemented articles post type: {{{#!php array('slug' => _x('articles','slug','mydomain')),...)); }}} 'articles' is translateD to slovak language as 'clanky'. But **get_permalink({id_of_article})** returns '''localhost:10010/articles/my-title'''. It is wrong and i have recieve error 404, because right link is '''localhost:10010/clanky/my-title'''. It works OK for older WP version. Thanks a lot for any result. Kind regards, Ondrej Jakuba " jakubaondrej 3 Needs Reporter Feedback / Steps To Reproduce 46792 CPANEL Directory Privacy DoesNOT work With WordPress Admin Directory Security 5.1 normal blocker Awaiting Review defect (bug) new reporter-feedback 2019-04-04T10:27:36Z 2019-04-05T06:31:11Z "Hello WordPress, Protecting my wordpress admin directory using CPANEL Directory privacy feature doesn't work. And I tried to replace the default wordpress rule in htaccess file: {{{ # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] }}} Replaced with this by adding another / after Dot: {{{ RewriteRule ./ /index.php [L] }}} IT WORKS 100% But the problem is: When I update the permalinks, it will rewrite the default rules again. What is the solution?" ephremfirew 3 Needs Reporter Feedback / Steps To Reproduce 53783 Visiting Widgets Is Blocking Access To My Server Widgets 5.8 normal blocker Awaiting Review defect (bug) new reporter-feedback 2021-07-26T11:46:00Z 2021-08-04T07:42:19Z "Any time I visit widgets with my current host I get blocked from visiting all of my websites on the server. Here are the details: triggering a mod security rule as below: {{{ 941160 Warning. Pattern match \""(?i:(?:<\\w[\\s\\S]*[\\s\\/]|\'\\"" ?)(?:on(?:d(?:e(?:vice(?:(?:orienta|mo)tion|proximity|found|light)|livery(?:success|error)|activate)|r(?:ag(?:e(?:n(?:ter|d)|xit)|(?:gestur|leav)e|start|drop|over)|op)|i(?:s(?:c(?:hargingtimechange ...\"" at REQUEST_HEADERS:Referer. [file \""/etc/apache2/conf.d/modsec_vendor_configs/OWASP3/rules/REQUEST-941-APPLICATION-ATTACK-XSS.conf\""] [line \""199\""] [id \""941160\""] [msg \""NoScript XSS InjectionChecker: HTML Injection\""] [data \""Matched Data: \x0d\x0a 2021-07-24 18:22:36 }}}" inkwellcd 6 Needs Patch 54834 Mysql gone away when importing DB on create wp_posts indexes Database normal blocker Awaiting Review defect (bug) new 2022-01-16T13:10:48Z 2023-02-17T00:10:51Z "Already imported the table and its data. When I execute the following: ALTER TABLE `wp_posts` ADD PRIMARY KEY (`ID`), ADD KEY `post_name` (`post_name`(191)), ADD KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`), ADD KEY `post_parent` (`post_parent`), ADD KEY `post_author` (`post_author`); I have 2013 error (in console) or 2006 (in phpmyadmin) immediately." jasmines Needs Patch 53755 WordPress 5.8 DatePicker component crashes Date/Time normal blocker Awaiting Review defect (bug) new 2021-07-22T21:28:13Z 2021-07-30T16:02:39Z "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 2 Needs Patch 55285 Add image brakes page Editor 5.9.1 normal blocker Awaiting Review defect (bug) new 2022-03-01T13:22:42Z 2022-03-01T13:22:42Z "Hello there, i've problems with adding images using the default block and acf add image functions. After clicking no modal appears anche the page brokes and i have to reload the page. I did a downgrade to 5.9.0 and everything works greate. Hope this helps " Gugan Needs Patch 53085 Gutenberg editor and Chrome stopped working after 5.7 Editor 5.7 normal blocker Awaiting Review defect (bug) new 2021-04-25T18:48:28Z 2021-05-04T21:24:51Z "I have a problem with Gutenberg since upgrading to the version above `5.7`, including `5.7.1`, which seems like a bug to me. If I refresh, sometimes it works, but usually not. All plugins have been deactivated, including `/mu-plugins/`, and a shipped theme activated. Same issue in Google Chrome and Chrome Canary. **Safari works, but it takes several seconds for the UI to be clickable.** Downgrading to `5.6` works, too, but this can't be the right solution. Here is [the error log](https://paste.ee/p/NRCuh) that was logged when Gutenberg didn't react." thaikolja 8 Needs Patch 58021 Since update 6.2 does not open products or pages in Google Chrome. Editor 6.2 normal blocker Awaiting Review defect (bug) assigned 2023-03-30T10:43:44Z 2023-04-05T17:47:55Z "Good morning. Since update 6.2 it does not open products or pages, no products or pages can be created in Google Chrome. In Mozilla Firefox it does. With Chrome it remains in an eternal loading loop and finally the browser asks whether to quit or wait. It doesn't change anything if you wait. I would like to know if you have received any complaints about this, because I have to change browser as it is impossible with Chrome. Regards. " daringlight 2 Needs Patch 59364 When editing Styles > Layout or Block > * > Dimensions, every possible (and unnecessary) combination of global settings is copied to custom styles Editor 6.3.1 normal blocker Awaiting Review defect (bug) new 2023-09-15T10:04:37Z 2023-09-15T10:04:37Z "In the site editor, when making changes in Styles > Layout, it looks like every possible core block style and setting is copied and saved in the custom styles (wp_global_styles). This results in a ton of unnecessary global styles and settings, such as default colors and default font sizes, even in a theme that has defined settings.color.defaultPalette as false for example. As far as I can tell the only styles option that triggers this are the options in Styles > Layout. I've tried other options such as Typography, Colors, and individual block settings, and they all seem to work as expected in that the only thing saved in the custom styles is the option being edited. No issue with WP 6.2.2 It seems this bug was introduced in WP 6.3 The Gutenberg issue for reference: https://github.com/WordPress/gutenberg/issues/53868" uxl Needs Patch 52540 WordPress 5.6.1 blocking new posts Editor 5.6.1 normal blocker Awaiting Review defect (bug) new 2021-02-16T14:14:59Z 2021-02-16T15:35:28Z "When I click ""new post"" I get a blank post with ""Auto-draft"" pre-filled as the title, but when I change it and populate the post with content and click save draft or publish, the content disappears, and I am returned to a blank ""Auto-draft"" post. This happens with all plugins active or disabled. The posts are saved as blank drafts with the title Auto-draft. When I removed the Tiny MCE editor plugin, and tried to use the Gutenberg editor, the site stalls on saving the draft and does not complete the save." PodcastSteve 1 Needs Patch 54098 WordPress 5.8 - Cannot read properties of undefined (reading 'clientId') Editor normal blocker Awaiting Review defect (bug) new 2021-09-09T09:45:40Z 2021-09-21T13:38:46Z "Hi, We updated our wordpress to 5.8 (we also tried 5.8.1 today), and just after that, we have an error on post edit page, in the console {{{ data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2 An error occurred while running 'mapSelect': Cannot read properties of undefined (reading 'clientId') The error may be correlated with this previous error: TypeError: Cannot read properties of undefined (reading 'clientId') at we (https://mywebsite.com/wp-includes/js/dist/block-editor.min.js?ver=fc8c27c6e95e7e0d59b4e344cb9ddfed:12:100185) at https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:13742 at r (https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:13559) at https://mywebsite.com/wp-includes/js/dist/block-editor.min.js?ver=fc8c27c6e95e7e0d59b4e344cb9ddfed:12:285498 at Object.current (https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:21206) at https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:20809 at __experimentalMarkListeningStores (https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:16751) at Object.__experimentalMarkListeningStores (https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:17238) at https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:20171 at e (https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=a9e98fe3ad76884fe7909ba8348395b7:2:20801) Original stack trace: }}} When we downgrade to version 5.7.2 of wordpress, error disappear We found the problem, and it is coming from our custom post taxonomy named ""selection"", in the args we put ""show_in_rest"" true, when it is false it is ok but we dont see that in Gutenberg so it is not the solution, and when we rename ""selection"" to ""selectiontest"" for example it is works but we lost our datas inside this taxonomy We looked at ""Reserved Terms"" of wordpress, but ""selection"" is not in the list ([https://codex.wordpress.org/Reserved_Terms]) Our code {{{#!php $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 4 Needs Patch 60436 Cannot create large Tiled Albums - causes crash Gallery 6.4.3 normal blocker Awaiting Review defect (bug) new 2024-02-05T06:28:13Z 2024-02-05T06:28:13Z Cannot create Tiled Album Gallery with large numbers of images. It crashes the editor on a fast 16GB RAM system. Browser tab slows to a crawl and crashes. amdphreak Needs Patch 58822 Gutenberg - releases must work with the latest react version General 6.3 normal blocker Awaiting Review defect (bug) new 2023-07-17T17:43:40Z 2023-07-17T17:59:23Z "Gutenberg is falling behind more and more, bundling outdated/unmaintained packages, preventing the use of the latest react. e.g. https://www.npmjs.com/package/@wordpress/block-editor bundles >""react-autosize-textarea"": ""^7.1.0"", Which requires react 16 (!!). There are far more examples than that, that all shipped with WP 6.2. Github issues for dependencies mostly go unhandled too, because there are 200 packages now + the @types ones (which are also inconsistent, since some have types bundled while others haven't) The way gutenberg is maintained, organized and managed needs some major discussion and overhaul by someone who has enough credentials in the WP community to provide a clear plan ahead with Gutenberg." malthert 2 Needs Patch 54424 WordPress 5.8.2 Bug PHP 8 General 5.8.1 normal blocker Awaiting Review defect (bug) new 2021-11-11T19:54:39Z 2021-11-12T13:49:32Z "Hi, i write to you because i see that there is a bug with wordpress 5.8.2 that not working with php 8, so i put the php version to 7.4. when i use php 8 wordpress show me 503 error, i use Avada theme, but i also have other site with other theme i see the same problem... can you fix it? thanks" yaggio94 3 Needs Patch 56724 unexpected sudden change in the site without any intervention from my side General normal blocker Awaiting Review defect (bug) new 2022-10-03T23:55:12Z 2022-10-03T23:55:12Z "suddenly i found the website has changed but i did not do any change , i found 18 pages has been published since 2015, i did not add any of them and i just opened my website from a month the homepage itself it's completely changed i am still using the same theme but my change does not appear on the website after publishing it . how can i return my website as it was?" mainoffice Needs Patch 53107 HTTPS Detect & Migrate feature breaking existing HTTPS HTTP API 5.7.1 normal blocker Awaiting Review defect (bug) new 2021-04-28T21:04:12Z 2021-04-28T21:44:11Z "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 Needs Patch 51963 WordPress Multisite: Menu Editor Does Not Work In Subsites Menus 5.5.3 normal blocker Awaiting Review defect (bug) new 2020-12-08T06:45:05Z 2021-03-02T22:18:58Z "Hello If you install a fresh WordPress multisite without any plugins, and you create a subsite like mysite.com/site1 and you go to Appearance > Menus in the dashboard of the subsite, you come across the following problems although you do not have such problems with the main site's menu editor: (I tested with various browsers, various PCs, various OS's, on the latest Wordpress version 5.5.3, a fresh install without any plugins) 1- We cannot add new items: We can add new pages to the menu, but we cannot add new custom links, posts, categories, etc. to the menu. We can add them easily to the menu of the main site, but not the subsite. 2- We cannot move / rearrange the menu items: When we click ""edit"" beside a menu item, we do not see the arrangement options such as Move Up / Move Down / Move Under / etc. Those options are available in the main site. 3- Screen Options Button Does not Work: When we click on Screen Options, the button does not work. It works well on the main site. " javad2000 1 Needs Patch 47630 Multisite: Admin dashboard links are malfunctioning on mapped domain Networks and Sites 5.2.2 normal blocker Awaiting Review defect (bug) new 2019-06-30T07:03:31Z 2019-07-10T03:49:37Z "I realize this may not qualify as a Trac issue. However, I have already tried the wp support forums, and read multiple pages of the wp forums, codex, stack exchange, etc. No one has an explanation for what I'm seeing, nor even do I find a similar description of it anywhere. Bottom line: Domain mapping on admin dashboard is not working as expected. The default (un-mapped) dashboard link for any mapped domain takes me to the primary site's dashboard. The mapped domain dashboard link takes me to a login screen. Background: About 10 days ago, out of the blue, “something” failed miserably on my production site. The primary symptom was that sites with a mapped domain were in a redirect loop on the front end. I had not done any updates or made any changes to the site. There were other symptoms at first, seemed causative. In retrospect, they may have been resultant or coincidental. I can explain if it is of interest, but I am trying to keep this brief. I was using the WPMUDEV Domain Mapping plugin, and it had been in place since the development of the site 3 years ago. I got the site working again by reverting to standard built-in WP domain mapping. However, the admin toolbar was missing (not the issue I am reporting today) and links to the mapped domain dashboards were malfunctioning. In my research, I have learned that some people who were using the MU Domain Mapping plugin (a different domain mapping plugin than I was using) experienced very similar issues around the same time. They also reported missing toolbars and redirect loops. For troubleshooting purposes, I created an exact duplicate of my production site with a primary domain of dev.xxxxxxxxxx.org and a mapped domain of dev.yyyy.org I assumed that I could work through a plugin conflict test and find out the cause. But after stripping the site down to bare bones, I still have the same problem. I cannot say for sure that it is a bug -- it may very well be something with my site. But I simply do not know where else to turn at this point. I need advice from those who know domain mapping best and might be able to identify what the root cause of this problem is. You can see a screencast demonstrating the problem here: https://cl.ly/7eee36f3aa13 You can see screenshots of my folder structure and database entries here: http://bit.ly/2Jbm2fT Here are my site specs: - Multisite - WP 5.2.2 ( was on 5.1 with several out of date plugins when the original ""out of the blue"" problem happened and updated to 5.2.2 during troubleshooting) - AWS hosting - Apache/2.4.18 (Ubuntu) - PHP 7.0.33-0ubuntu0.16.04.5 - multisite is in the webroot - subdirectory multisite setup - All plugins, mu-plugins, and drop-in plugins are moved into temp folders. - All sites are set to Twenty-Nineteen theme. - Domain mapping (using wp in-built options) for two domains, mapped to two of the subsites - On the frontend, domain mapping works as expected. - In the dashboard, domain mapping is NOT working correctly. – it was originally set up with the WPMUDEV Domain Mapping plugin (which is now legacy b/c of domain mapping since wp 4.5) – auto updates disabled I expect: My Sites >> [Mapped Site] >> Dashboard - should take me to the dashboard for that site (not any other) - I should not need to login because I am already logged in as superadmin What happens: My Sites >> [Mapped Site] >> Dashboard - I am taken to a login screen and my superadmin login returns a ""wrong email or password"" error - If I manually change the URL to the non-mapped URL for the dashboard (primarydomain.com/zzzzz/wp-admin), I am immediately taken to the primary site's dashboard instead. There is no 301/302 redirect. There are no errors in the apache error log. There are no errors in the WP debug log. The browser console shows no errors. I have tested this by creating a new sub-site and mapping the domain there instead. When I do this, the newly created test site's dashboard is inaccessible, and I am taken to the primary domain's dashboard. Now I can get to the previously mapped domain's dashboard easily, via the My Sites menu. This is demonstrated in the screencast above. Relevant portions of wp-config: {{{ /* Multisite */ define( 'WP_ALLOW_MULTISITE', true ); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'dev.xxxxxxxxxx.org'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); // define('COOKIE_DOMAIN', ''); // define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']); // define('DOMAINMAPPING_ALLOWMULTI', true); // define('FORCE_SSL_ADMIN', true); /* these were recommended for fixing a redirect loop, but they are not helping now */ // define('ADMIN_COOKIE_PATH', '/'); // define('COOKIE_DOMAIN', ''); // define('COOKIEPATH', ''); // define('SITECOOKIEPATH', ''); /* baseline home and siteurl */ define( 'WP_HOME', 'https://dev.xxxxxxxxxx.org' ); define( 'WP_SITEURL', 'https://dev.xxxxxxxxxx.org' ); }}} Relevant portions of .htaccess: (Keep in mind this is a copy of my production site, which does not have dev. in front of the domain name. Since the problem exists in both places identically, and given the use of the domain in these functions, I do not think it is relevant. Please correct me if I am wrong.) {{{ # BEGIN HTTPS Redirection Plugin RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # END HTTPS Redirection Plugin # Stop spam attack logins and comments RewriteEngine On RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} .*/(wp-comments-post|wp-login)\.php.* [OR] RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$ [OR] RewriteCond %{REQUEST_URI} ^(.*)?log-in(.*)$ RewriteCond %{HTTP_REFERER} !.*xxxxxxxxxx.org.* [OR] RewriteCond %{HTTP_USER_AGENT} ^$ #RewriteRule (.*) http://%{REMOTE_ADDR}/$1 [R=301,L] RewriteRule ^(.*)$ - [F] #RewriteRule ^(.*)$ http://xxxxxxxxxx.org/misc/block.html [R=301,L] # BEGIN WordPress 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] # END WordPress }}} I will be very grateful for any assistance you can provide in determining if there is something wrong with my site, or if this is a bug in WP. Thank you in advance! " kalico 1 Needs Patch 60121 "catastrophic content overwrite from ""Add New Pattern""" Posts, Post Types 6.4.2 normal blocker Awaiting Review defect (bug) new 2023-12-20T11:20:48Z 2023-12-20T11:20:48Z """Add New Pattern"" /wp-admin/post-new.php?post_type=wp_block&lang=en from /wp-admin/edit.php?post_type=wp_block and Publishing it overwrites / replaces the last there added pattern, giving it the same post id like the one overwritten / replaced. When then creating a pattern from a post editor Gutenberg block, that pattern is added next to the pattern(s) at /wp-admin/edit.php?post_type=wp_block giving it an id jumping all those ids equalling attempts at adding a pattern from there. " vialars Needs Patch 53942 Non-single post meta multiple value update breaks post save through REST API REST API 5.8 normal blocker Awaiting Review defect (bug) assigned 2021-08-17T13:00:31Z 2021-08-17T15:21:25Z "This is a follow-up to #52787. Same situation as in #52787, but this time while updating **non-single** meta **multiple values at once** like `{ meta: { metaKey: [1, 2, 3] } }`, REST API fires `update_multi_meta_value()`, which tries first to delete old values in the database. When no meta value is present in database, `get_metadata()` returns defaults as `$current_values` and then trying to delete them anyway (non-existent in fact). This causes `update_multi_meta_value()` to return `WP_Error('rest_meta_database_error')` on `delete_metadata()` failure. BTW, error messages could be more specific from `'Could not update the meta value of %s in database.'` to `'Could not update/delete...'` and `'Could not update/add...'`." iknowsomething 1 Needs Patch 55902 Block theme rendering issue Themes normal blocker Awaiting Review defect (bug) new 2022-06-02T11:27:45Z 2022-08-03T16:50:28Z "Hi, I am from Pagelayer team. And we have checked and found that in the `wp-includes/template-canvas.php` file, you have called the function `get_the_block_template_html()` above the header that breaks the flow of the calling hooks like (`get_header`, `wp_enqueue_scripts`, `wp_header`). For example, If we add any `the_content` hook inside the `wp_enqueue_scripts` hook, then the `the_content` hook not working properly. Please check and try fix the issue ASAP if possible. " jivansoft 5 Needs Dev / Bug Wrangler Feedback 60407 WP Starter Page is a source for HACKERS Build/Test Tools 6.4.3 normal critical Awaiting Review feature request new dev-feedback 2024-01-31T21:40:44Z 2024-01-31T21:40:44Z "I am convinced that the WP starter page, with the BOLG option is the source for all and any hacker to hack a site. Prove me wrong: Example, I have had my website online for 20 years, I have used several different website dev. Apps. I have never been hacked. After setting up WP on my sites; 3 to be exact, I soon started to get spam emails from the comment section of the blog. I am not a website programmer, btw, I had no idea where these comments. were being submit, I looked at the pages on my dashboard and there was nothing there. I kept looking, granted not a lot because it didn't concern me. But the SPAM was annoying and often inappropriate. Eventually when my site(s) were hacked and shut down, I found the hidden blog page, and deleted it. Because my sites were shut down this was a challenge. I still continued to get SPAM even after shutting down the blog comment page. My other 2 sites were still getting comments. It took a bit of sleuthing to find this hidden blog page on each site, You cant edit it either, WP has embedded the comment section. Eventually I deleted them all, but I still had 3 hacked sites. recently I deleted one of the site and reinstalled WP. And guess what, even though I though I deleted the WP Blog page, I started to immediately get SPAM and the site was hacked. OK point being SHUT DOWN THE AUTOMATICALLY AND HIDDEN BLOG PAGE, SHUT DOWN THE COMMENTS UNLESS YOUR POINT IS FOR US TO GET HACKED!!! I AM CONVINCED THIS IS A SERIOUS PROBLEM THAT YOU HAVE TO FIX. Your welcome to drop me an email, that hopefully isnt spam, to let me know you are fixing this gateway for hackers. Thanks Jimmy" dpmatlosz Needs Dev / Bug Wrangler Feedback 57924 Cron fires twice j3gaming Cron API 6.1.1 normal critical Awaiting Review defect (bug) assigned changes-requested 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 22 Needs Dev / Bug Wrangler Feedback 12257 wpdb Scales Badly Due to Unnecessary Copies of All Query Results Database normal critical defect (bug) assigned dev-feedback 2010-02-17T03:08:06Z 2019-06-04T19:21:45Z "While working on #11726, I encountered a reproducible crash in wpdb::query() The following code causes memory exhaustion on large result sets: {{{ while ( $row = @mysql_fetch_object($this->result) ) { $this->last_result[$num_rows] = $row; $num_rows++; } }}} The memory exhaustion message is error-controlled, causing a white screen of death even in debug mode. I searched wp-db.php for references to $this->last_result, and I found no justification for these object reference copies. $this->last_result '''should''' be maintained as a MySQL resource and properly optimized using the MySQL client layer instead of this PHP nonsense. Tagging for dev-feedback to discuss which Milestone is appropriate." miqrogroove 31 Needs Dev / Bug Wrangler Feedback 55288 Site Editor on 5.9.1 fails to find homepage template for FSE themes, on WP subdirectory installation Editor 5.9.3 normal critical Awaiting Review defect (bug) new dev-feedback 2022-03-01T18:47:29Z 2022-08-11T19:29:10Z "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 10 Needs Dev / Bug Wrangler Feedback 57237 file_exists(): open_basedir restriction in effect. File(core/post-comments) is not within the allowed path(s) Editor normal critical Awaiting Review defect (bug) new dev-feedback 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 1 Needs Dev / Bug Wrangler Feedback 44470 meta property=“og:image” doesn't register if an image is executed via a shortcode in WP Post and Pages Editor 4.9.6 normal critical Awaiting Review defect (bug) reopened dev-feedback 2018-06-27T03:28:41Z 2018-06-30T00:34:20Z "I want to try and explain a WordPress core issue and bug, in which I dont feel there is an available solution, at least I dont think after exhaustive research. I ran many many tests on fresh WP installations and twenty17 themes. And some may suggest this is a 3rd party plugin issue, while I am suggesting that it is both a Core and 3rd Party Plugin issue with the most widely used plugin in the world perhaps WPSEO. Applying shortcodes to WP post and Pages, of course it renders fine in the front-end, the output code that is. However, many recent updates to social media platforms Open Graph Protocols. The WPSEO plugin cannot understand that an image is being executed via php through a shortcode, unless the image is hard-coded directly into the WP page editor then it works fine. Problem is, no image executed from literally any 3rd party plugin shortcode contained within a wordpress post or page will execute the meta property=""og:image"" in the .... In short WordPress Core does not support opengraph functions or plugins when shortcodes are being used. one of the last tests to try to continue to prove this is a WP core issue from their last several updates, that I am certainly of course trying to gain some attention on, that even an out of the box wordpress stock short codes like [gallery ids=""21""] to display images, cool enough that it displays visually in the post editor, still impossible to hook into the main property=og:image meta. Of course the other primary issue, no rhyme or reason either that a static front page cannot display the meta in the either by any know third party plugin or hard coded functions in the theme directory. Being that exhaustive testing has been done, without the modification of stock wordpress core files, continues to lead me to believe that this is a core issue again. And after a lot of I intelligent research I believe wordpress next core update should fix this. Please read some other additional testing I have done on this issue as well. I am certainly trying to gain some attention to this issue because developers need to be able to execute php via shortcodes into wp post editors therefore execute images in a dynamic way via short codes and still be in compliance with al know third party plugins like yoasts og: settings and the social media platform og protocols. https://wordpress.stackexchange.com/questions/306973/property-ogimage-doesnt-register-with-including-a-php-file-as-a-shortcode-in" nlstm 8 Needs Dev / Bug Wrangler Feedback 47164 map_deep in formatting.php do not handle null-byte Formatting 5.2.2 normal critical Future Release defect (bug) new dev-feedback 2019-05-07T08:40:16Z 2023-02-23T23:52:33Z "{{{#!php $property_value ) { $value->$property_name = map_deep( $property_value, $callback ); } }}} The above code snippet in the function map_deep in formatting.php will trigger a fatal error if for some reason $property_name starts with a null-byte. null-bytes can exist in this context if $object_vars for some reason is from an object cast to an array. private and protected properties will be prefixed with null * null We've encountered it in the wild with serialized objects, and even though this is because of faulty programming (child classes with stricter access for properties than the parents) wordpress should handle this. The simples solution I can think of id to add: {{{#!php $property_value ) { **if (ord($property_name) === 0) { continue; }** $value->$property_name = map_deep( $property_value, $callback ); } }}} " bitcomplex 18 Needs Dev / Bug Wrangler Feedback 55189 "Automatic removal of ""Zero-width non-joiner"" in URL" Permalinks 5.9 normal critical Future Release defect (bug) new needs-unit-tests 2022-02-17T14:30:25Z 2023-02-23T23:37:32Z "There is a big problem in recent version of WordPress, ""[https://en.wikipedia.org/wiki/Zero-width_non-joiner Zero-width non-joiner]"" in the URLs is removed automatically. This will have a very bad effect on SEO (and has affected many sites) because the page with ""Zero-width non-joiner"" in their URL will goes to be 404. " man4toman 20 Needs Dev / Bug Wrangler Feedback 35635 Redirect loop for custom post types in WP 4.4 Permalinks 4.4.1 normal critical defect (bug) new dev-feedback 2016-01-27T19:46:48Z 2019-06-04T20:54:50Z "I have a client site hosted on WPE that was on 4.3.1 and when I updated to 4.4.1. it now has a redirect loop error (ERR_TOO_MANY_REDIRECTS) when trying to access a single post page (for a custom post type) from a category page. What it is doing is trying to redirect without the category in the the URL and then tries to redirect with the category, and loops; [[br]] /%category%/%postname%/ => /%postname%/ => /%category%/%postname%/ => etc. On my category page a have a list of posts with links with the markup {{{"" class=""custom"">...}}} and my permalinks setup is ""Post name"" or ({{{/%postname%/}}}). I don't know the code causing this so I don't have much info, but with the assistance of WPE support we confirmed this is due to the WP 4.4.1 update by cloning versions and updating WP and reverting, etc. Here is [https://wordpress.org/support/topic/this-webpage-has-a-redirect-loop-43/ another instance I found] as well, but they claim to have reinstalled 4.4 and it fixed it. I tried this several times with no luck. Note: This is my first time submitting a defect/ticket, so please let me know if I need to add any other info." standuncan 2 Needs Dev / Bug Wrangler Feedback 33341 WP_Meta_Query IN operator with empty array does not return expected result Query 3.2 normal critical Awaiting Review defect (bug) reopened dev-feedback 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 6 Needs Dev / Bug Wrangler Feedback 51094 WP_Query.query with invalid post_status will return all metalandcoffee* Query 3.9 normal critical Future Release defect (bug) accepted needs-unit-tests 2020-08-21T12:18:59Z 2022-06-14T20:01:36Z "Hello, I noticed an issue with WooCommerce method {{{ wc_get_products }}} and dove into the issue. The problem was {{{ wc_get_products(array('status' => 'published')); }}} would return **ALL** posts, even trashed ones because of the ""published"" status is not a valid post status. I believe that behavior is unexpected that it should return **NO** posts. The issue appears to be this portion of {{{WP_Query.get_posts}}} that only known post statuses are added to the query: {{{#!php posts}.post_status = '$status'""; } else { $r_status[] = ""{$wpdb->posts}.post_status = '$status'""; } } } }}} I believe it would best if this method checks for any unrequested post status supplied in the query and either applies them to the query or produces an error. I would imagine this is a pretty major change." carsonreinke 12 Needs Dev / Bug Wrangler Feedback 44773 Non Existing Child Page of Custom Post Redirects Instead of 404 Rewrite Rules 4.9.8 normal critical Awaiting Review defect (bug) new dev-feedback 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 1 Needs Dev / Bug Wrangler Feedback 47452 WordPress taking time to login and throwing time-out error on upgrading Upgrade/Install 5.2.1 normal critical Awaiting Review defect (bug) new dev-feedback 2019-06-01T07:08:56Z 2022-11-15T18:21:31Z "**Description**: When new updates are available, I upgraded to the new version but after the upgrade successful, I still see the upgrade version and after that WordPress started working very slow. Any operation performed on the platform will take more time to load and sometimes it comes up with ""connection time out"" error too. **Steps to reproduce** 1. Check for update 2. update your WordPress version from your site to version 5.2.1 3. Route to the dashboard, where you will see update button to version 5.2.1 4. Perform any operation like (user info, plugin page, widget page) it takes time to load and sometimes it throws ""connection time out"". **System Info:** System: Windows, Linux Browser: Chrome 74.0.3729.131 (Official Build) (64-bit) " kevintran094 2 Needs Docs or Unit Tests 44899 redirect_canonical redirects to another URL when it should not Canonical 4.9.8 normal critical Awaiting Review defect (bug) new needs-unit-tests 2018-09-05T14:34:56Z 2018-09-06T07:32:25Z "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 1 | '; // exit( 1 ); if ( is_multisite() ) { echo '2: | '; // exit( 2 ); if ( $network_wide ) { echo '3: | '; // exit( 3 ); } else { echo '4: | '; // exit( 4 ); } } else { echo '5: | '; // exit( 5 ); } echo '6: | '; exit( 6 ); } }}} If you exit after if(is_multisite) the message displayed will be '1 | 2 |' If you exit after if($network_wide) during a networkwide activation the message displayed is '1 | 2 | 4 | 6' instead of '1 | 2| 3|' Exiting at 4, 5, or 6 will display '1 | 2| 4|', '1 | 2| 5|' and '1 | 2| 6|' as expected. After many hours of debuging I realized the function (the action filter 'activate_' . $plugin) gets executed 3 times if you exit it early. And only the first call has the argument $network_wide set to true if it is an network_wide activation. If you like to exit at 3, that is you do not want a network activation, the flow is therefore as follows: - The first run (click on network activate) has $network_wide set to true and will exit at 3 - the second run (no idea why) has $network_wide set to false and will pass 1 | 2 | 4 | 6 - the third run (no idea why) has $network_wide set to false and will pass 1 | 2 | 4 | 6 Imho calling the activation function (or the code) three times in case you exit it (better say terminate because you cant end a plugin installiton clean) is wrong at all. However if this is by design then $network_wide must be reliably set to true if it originally was. " mensmaximus 31 Has Patch / Needs Testing 59879 Twenty Twenty Two - Pullquote block have difference in editor and frontend. Bootstrap/Load 6.4 normal critical Awaiting Review defect (bug) new has-patch 2023-11-10T16:21:36Z 2023-12-14T21:29:51Z "Steps to reproduce :- 1. Activate Twenty Twenty two theme. 2. Take Pullquote block. 3. Now check the both the side editor and front-end. You can able to see a difference in border. I have attached video for better understanding. Video URL :- https://share.cleanshot.com/ywqg9pb5f0kJ857RTGct" nidhidhandhukiya 7 Has Patch / Needs Testing 58362 Twenty Ten - Table block having issue with font size on editor side. Editor 6.2 normal critical Awaiting Review defect (bug) new has-patch 2023-05-20T07:50:08Z 2024-01-11T10:20:30Z "Steps to reproduce the issue:- Activate Twenty Ten Theme. Choose Table block. Add some text to the table. Now change the font size and check it on both the side editor and user side. You can able to see the change on the front side but the editor side have no change even after applying a different style font size. I have attached a video for better understanding. Video URL:- https://video.drift.com/v/abqA2x1QjxW/" iamfarhan09 4 Has Patch / Needs Testing 39338 class-wp-hook.php - apply_filters() infinite loop Plugins 4.7 normal critical Future Release defect (bug) new has-patch 2016-12-20T08:16:25Z 2019-08-01T00:55:14Z "I just saw nearly 60 million error log entries (17 GB) due to this bug. In line 303 of class-wp-hook.php, there is a piece of code that will cause an infinite loop: {{{#!php } while ( false !== next( $this->iterations[ $nesting_level ] ) ); }}} The problem is that {{{#!php $this->iterations[ $nesting_level ] }}} can be null. Suggested fix: {{{#!php } while ( ! is_null( $this->iterations[ $nesting_level ] ) && false !== next( $this->iterations[ $nesting_level ] ) ); }}} I also urge developers to look for similar ""false !== next()"" constructs in code, as they '''will''' lead to infinite loops." frettled 78 Has Patch / Needs Testing 56188 "Attempt to read property ""post_type"" on null after PHP 8.1" Posts, Post Types normal critical Awaiting Review defect (bug) new has-patch 2022-07-09T16:21:26Z 2022-10-10T00:57:09Z "Hello, I've noticed this error in WordPress since I've installed PHP 8.1. Can you fix it? [09-Jul-2022 16:16:45 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:16:45 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:16:45 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:16:45 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:16:45 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:16:45 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:16:45 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:16:45 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:16:45 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:16:45 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:17:00 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:17:00 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:17:00 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:17:00 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:17:00 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:17:00 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:17:00 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:17:00 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:17:00 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:17:00 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:18:11 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:18:11 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:18:11 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:18:11 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:18:11 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:18:11 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:18:11 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:18:11 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:18:11 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338 [09-Jul-2022 16:18:11 UTC] PHP Warning: Attempt to read property ""post_type"" on null in /home/showmetechcom/public_html/wp-includes/class-wp-query.php on line 4338" brmartinez 4 Has Patch / Needs Testing 8592 Private Pages not listed in the Parent dropdown SergeyBiryukov Posts, Post Types normal critical Future Release enhancement reopened has-patch 2008-12-12T16:22:24Z 2023-12-06T17:33:31Z "Private pages are not available as a choice in the Parent dropdown of the Attributes module. You should be able to create a hierarchy of private pages if you want to. Tested with r10194." mtdewvirus 210 Has Patch / Needs Testing 44630 WP_Term_Query does not return all terms when 'number' and 'object_ids' are specified Taxonomy normal critical Awaiting Review defect (bug) new has-patch 2018-07-24T09:03:10Z 2019-01-17T00:24:34Z "When querying for taxonomy terms assigned to certain objects, WP_Term_Query's query is LIMIT'ed if the 'number' argument is specified. This introduces a problem similar to hierarchical taxonomies where results must not be limited in order to retrieve children. In particular, the issue arises because each term_taxonomy_id, or ""(term, taxonomy) couple"", has more than one relationship in wp_term_relationships thus more than 1 row could be returned for the same term_taxonomy_id. It is worth to notice that in order to replicate the problem in the attached test, the 'order' argument must be set to DESC which is the opposite of WP_Term_Query's default." ettoredn Has Patch / Needs Testing 59845 kritischen Fehler seit Update auf WordPress 6.4 Upgrade/Install 6.4 normal critical Awaiting Review enhancement new has-patch 2023-11-08T19:30:51Z 2023-11-09T16:08:39Z "Hallo seit dem Update heute auf die Version WordPress 6.4. bekomme ich bei der mobile Version meiner Homepage nur noch die Meldung ""Es gab ein kritisches Problem"" In der Desktop Version sieht alles gut aus. Brauche dringend Hife." mdamerius 8 Has Patch / Needs Testing 39309 Secure WordPress Against Infrastructure Attacks Upgrade/Install 4.8 normal critical Future Release task (blessed) assigned has-patch 2016-12-16T17:50:14Z 2022-05-26T22:30:44Z "(Similar to #25052 but much more focused on the implementation details) == Background == Recommended reading: 1. http://seclists.org/oss-sec/2016/q4/478 2. https://www.wordfence.com/blog/2016/11/hacking-27-web-via-wordpress-auto-update/ 3. https://paragonie.com/blog/2016/10/guide-automatic-security-updates-for-php-developers Currently, if an attacker can compromise api.wordpress.org, they can issue a fake WordPress update and gain access to every WordPress install on the Internet that has automatic updating enabled. We're two minutes to midnight here (we were one minute to midnight before the Wordfence team found that vulnerability). Given WordPress's ubiquity, an attacker with control of 27% of websites on the Internet is a grave threat to the security of the rest of the Internet. I don't know how much infrastructure could withstand that level of DDoS. (Maybe Google?) The solution is to make the automatic update mechanism secure **even if the update server is totally owned up**. As published in the third link, the core elements of a totally secure automatic update system are: 1. Offline Cryptographic Signatures 2. Reproducible Builds 3. Decentralized Authenticity / Userbase Consistency Verification 4. Transport-Layer Security 5. Mirrors and Other Availability Concerns 6. Separation of Privileges However, I'm mostly interested in 1, 2, and 3. I believe 4 is already implemented (if not, this just became a lot scarier). == Proposed Solution == We're going to have to roll this out in phases, rather than all at once. 1. Offline Cryptographic Signatures 1. Decide on a digital signature algorithm and/or cryptography library to use. 2. Generate a keypair for the release managers to use. 3. Pin the public key in a major release (e.g. 4.8 or 4.9). 4. Add signature verification to the update process, but for the first release or two, **don't enforce it**. Just collect data until we're sure it works for everyone. 5. Enforce digital signatures. Then this is satisfied. 2. Reproducible Builds. 1. The update file should be easily reproduced by any end user. 2. The update file and update served by api.wordpress.org should be easily verifiable. 3. We wrote Pharaoh for auditing PHP Archives; something similar may be useful for WP updates: https://paragonie.com/project/pharaoh 3. Decentralized Authenticity / Userbase Consistency Verification * See below. 4. Make plugin/theme updates secure. Once core updates are secure, the next step is to allow plugin/theme developers to upload their own public keys which can be used to sign their own extensions. If you want a reference implementation, we already have a working secure automatic update system built into CMS Airship (which is GPL 3): * https://paragonie.com/blog/2016/05/keyggdrasil-continuum-cryptography-powering-cms-airship * https://github.com/paragonie/airship/blob/master/src/Engine/Continuum.php * https://github.com/paragonie/airship/blob/master/src/Engine/Keyggdrasil.php === Decentralized Authenticity === In CMS Airship, we're totally decentralized: Every Airship maintains its own record of every update file or new/revoked public key since its inception. (This is because CMS Airship aims for maximum security.) For WordPress, I'm recommending a federated model instead, but the concepts are mostly the same: 1. Notaries (WordPress blogs or other services that opt in to hosting/verifying the updates) will mirror a Merkle tree which contains (with timestamps and signatures): * Any new public keys * Any public key revocations * Cryptographic hashes of any core/extension updates 2. WordPress blogs will have a pool of notaries they trust explicitly. (This can be provided by your hosting provider, who runs the single source of truth for all their clients, so long as they themselves practice due diligence.) 3. When an update is received from the server, after checking the signature against the WP core's public key, they will poll at least one trusted Notary (send a challenge nonce, current timestamp, a checksum of the update file, and any other useful identifying metadata e.g. ""wp-core version 4.9.2""). The Notary will verify that the update exists and matches the checksum on file, and respond with a signed message containing: * The challenge nonce * The response timestamp * Whether or not the update was valid This will be useful in the event that the WP.org's signing key is ever compromised by a sophisticated adversary: If they attempt to issue a silent, targeted update to a machine of interest, they cannot do so reliably: To pull off their attack, they have to allow the Merkle tree (that is mirrored by every Notary) to record/broadcast evidence of their attack in order for it to succeed. So while targeted attacks may still be theoretically possible, it will no longer be possible to do them silently. In addition to a security layer, it's a deterrent against the most sophisticated threats. === Securing Plugins and Themes === This will probably be the last piece tackled. Basically: Offer the same signing capabilities to theme/plugin developers that will already be in the hands of the core team. This can be done piecemeal (i.e. optional field on WP.org that allows them to upload their public key, generated by some tooling we provide developers). We should incentivize packages that provide their own signature by, for instance, placing them higher in the listings and/or giving them an attractive and desirable UI element that says ""we're secure"". If we one day reach near-100% coverage of the WP ecosystem with digital signing, we can discuss making it mandatory. == Implementation Recommendations == Okay, this section is going to be technical so feel free to skip most of this if you're not into cryptography. TL;DR - We need a libsodium polyfill, which Paragon Initiative Enterprises is willing to write for free if (and only if) the cost of an independent third party audit is covered by the community and/or the community's corporate sponsors. === Digital signatures === PHP, out of the box, only supports RSA signatures (via the OpenSSL extension), but doesn't support RSASSA-PSS+MGF1SHA256. PKCS1v1.5 padding is unacceptable. It may be tempting to move towards something like ECDSA, but a mix of security concerns (the Sony ECDSA k-value reuse incident, invalid curve attacks against Weierstrass curves) makes us wary even of RFC 6979 (deterministic ECDSA). We propose a standardized digital signature algorithm based on twisted Edwards curves. Namely, **Ed25519** or **Ed448** (EdDSA over the RFC 7748 curves). === Merkle Trees === The TrimmedMerkleTree in Halite is probably the best starting point: https://github.com/paragonie/halite/blob/master/src/Structure/TrimmedMerkleTree.php Halite's Merkle tree implementations are based on the BLAKE2b hash function (a SHA3 finalist with great performance in software based on the ChaCha20 round function). === Checksums === One of the following algorithms should be used where ever a checksum is required: * BLAKE2b * SHA-512/256 * SHA-512/224 * SHA-384 At no point should MD5 or SHA1 be considered. SHA-256 and SHA-512 are vulnerable to length-extension attacks and are not recommended. == Action Plan == First, if this plan is agreeable by WordPress's security team, we'll get to work on a libsodium polyfill that works as far back as PHP 5.2.4 (in the spirit of WordPress's backwards compatibility tradition). Once that's finished, independently audited by cryptography experts, and released to the public, we'll work on getting the core cryptographically signed. This will require some additional tooling; the release managers will need to run a command to produce a valid signature of the update file before releasing it. After core updates are signed and signatures are being verified, we'll build the decentralized verification layer. Then, we can move forward with making everyone's plugins and extensions securely delivered. --- Edit Jan 3, 2019: As noted in [comment:50 comment #50], adding the sodium_compat library has been split out to a separate ticket, #45806, as it can serve a wider purpose than protecting against infrastructure attacks. -- @peterwilsoncc" paragoninitiativeenterprises 104 Has Patch / Needs Testing 51538 Widget disappears from the sidebar when switching the theme and back again. Widgets 5.5.1 normal critical Awaiting Review defect (bug) new has-patch 2020-10-15T16:19:40Z 2020-10-15T16:19:40Z "A widget with ID **activity_right** disappearing when I switch BuddBboss theme to Twenty Twenty theme. This because of there something wrong with Widget Mapping {{{ wp-includes/widgets.php }}} line number 1371 It should move widgets to new $new_sidebars_widgets when $new_sidebars_widgets has the same sidebar as $existing_sidebars_widgets has, then only, otherwise move it to inactivate sidebar. Attaching a patch " mhshohel Needs Reporter Feedback / Steps To Reproduce 55264 Twenty Twenty-Two Looks Bad on Firefox Bundled Theme 5.9 normal critical Awaiting Review defect (bug) new reporter-feedback 2022-02-26T14:51:04Z 2022-03-04T22:35:16Z "There are two issues in twenty twenty-two that I have. Unfortunately, the 1.1 release has not fixed them. Others have reported the same issues to the support forum. I am using a staging site to test and customize the new theme for one of my sites. I am about ready to go public with it but for these issues. The customized theme looks good with the Google Chrome and Microsoft Edge browsers, and on my iPhone. But with Firefox the header navigation bar is always expanded, and the page content appears in plain text. I have made no customization to the fonts or to the navigation bar. The problem must be the way Firefox renders the core code. A less critical issue is that on Chrome and Edge, pages load in plain text before quickly becoming formatted. This is not a disabling issue, as is the Firefox issue, but it is annoying. Where should I go from here? I don’t think I should go online when I can’t deliver a decent looking site to Firefox users." aichedvs 7 Needs Reporter Feedback / Steps To Reproduce 54985 Twenty Twenty-Two: Add viewport meta Bundled Theme 5.9 normal critical Awaiting Review enhancement new reporter-feedback 2022-01-29T12:45:10Z 2022-01-29T13:26:55Z "Hello, I am a WordPress developer and I developed many sites and custom plugins and themes. We found that in your latest theme which is ""Twenty Twenty-Two"", you don't use a responsive port which is cause issues in the plugin's front-end design so, I request you please add below meta port which is perfect for all plugins and other plugins. Because we need to add manually in our plugin with the 'wp_head' hook I hope you will add meta port. Meta Port: Thank you." divyeshsapariya35 2 Needs Reporter Feedback / Steps To Reproduce 32306 wp-cron throws 500 errors for SSL enabled sites Cron API 4.2.1 normal critical Awaiting Review defect (bug) reopened reporter-feedback 2015-05-08T07:49:05Z 2017-11-14T14:01:53Z "I have several WP installs that are throwing 500 error codes when calling wp-cron.php after a pageview. The error is not consistent - it will sometimes return 200, and sometimes 500. All the installs I see this on use SSL with properly signed certs with SNI in use on the server under Apache. Instances on the same server where do not use SSL have not shown this issue at all. I have managed to reproduce this on a clean WP install running twentyfifteen with no plugins installed so it doesn't appear to be plugin related. Oddly, I don't get any PHP warnings when it happens (though I've tested that if I force a php script in the same pool to throw an error, it does get captured) - I do get the following recorded in the Apache Virtualhost error log (redacted): [Fri May 08 08:29:34.479946 2015] [core:error] [pid 13870:tid 140644332824320] [client xxxx:xxxx:x:xx:xxxx:xx:x:x:57492] AH00524: Handler for fastcgi-script returned invalid result code 32 Apache access log (redacted): xxxx:xxxx:x:xx:xxxx:xx:x:x - - [08/May/2015:08:29:26 +0100] ""POST /wp-cron.php?doing_wp_cron=1431070166.8151741027832031250000 HTTP/1.0"" 500 4066 ""-"" ""WordPress/4.2.2; https://www.domain.com"" System config is as follows: * Fully patched Debian Jessie running on amd64 arch with kernel 3.16.0 * Webserver: Apache/2.4.10 (Debian), mod_fastcgi/mod_fastcgi-SNAP-0910052141, mod_fcgid/2.3.9, mod_python/3.3.1, Python/2.7.9, OpenSSL/1.0.1k * MySQL 5.5.43-0+deb7u1 * PHP 5.6.7+dfsg-1 running under PHP-FPM (seen with and without opcache in place) * Wordpress 4.2.2 fresh install (also seen on 4.2.1) with all plugins removed. The server listens both on IPv4 and IPv6 - I've tried forcing wp-cron to use IPv4 by setting the hostname in /etc/hosts but that makes no difference. Refer also to : https://wordpress.org/support/topic/wp-cron-throwing-500-errors-on-ssl-sites?replies=9" coatesg 11 Needs Reporter Feedback / Steps To Reproduce 55686 Blank sheet when I try customuze site. I can't see prewiev changes Customize 5.9.3 normal critical Awaiting Review defect (bug) new reporter-feedback 2022-05-05T15:49:52Z 2022-05-07T02:51:09Z "WordPress 5.9.3 This problem occur even when I deactivate all plugins and use the default theme. server on Plesk I install Wordpres, but i don't know how to solve this problem. " lesenkotetiana 1 Needs Reporter Feedback / Steps To Reproduce 52771 5.7 issue p tag added to html comment Editor 5.7 normal critical defect (bug) reopened reporter-feedback 2021-03-11T07:32:20Z 2021-03-12T10:06:43Z 5.7 issue p tag added to html comment in editor (classic) this creates leaded gaps in display therefore throwing out design layouts. Have downgraded to 5.6.2 until solution confirmed. Thank you for the good work. Fred fjcontrib 7 Needs Reporter Feedback / Steps To Reproduce 53963 Block editor tools slots are empty Editor 5.8 normal critical Awaiting Review defect (bug) new reporter-feedback 2021-08-20T03:16:17Z 2021-08-20T14:48:04Z "Hello. I lost my editor tools in some point, when I click block I get No block selected. Also, there are fewer around the menu where you edit your text, no image icon etc. I am using WP 5.8 " dreamsofbeauty 1 Needs Reporter Feedback / Steps To Reproduce 59678 problem with update General 6.3.2 normal critical Awaiting Review defect (bug) new reporter-feedback 2023-10-19T06:23:09Z 2023-11-01T08:28:33Z "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 2 Patch Needs Refresh 58438 Site not Working post Software updates General normal critical Awaiting Review enhancement new reporter-feedback 2023-06-01T08:20:18Z 2023-06-01T11:30:30Z "Hi, Post the plugin and software updates, the site has not been working, and keep getting the below error message. ""There has been a critical error on this website"" The site link is below for your reference. http://learnion.blackbuck.com/login-2/?redirect_to=http%3A%2F%2Flearnion.blackbuck.com%2F Kindly Assist Thanks Regards, George +91-99166 84725" z4065 3 Needs Reporter Feedback / Steps To Reproduce 50820 Admin side menu items hover doesn't work on version 5.5-RC1-48687 Menus 5.5 normal critical Awaiting Review defect (bug) new reporter-feedback 2020-07-30T16:47:12Z 2020-08-11T19:08:07Z When in admin, the hover doesn't work on the menu items on the main left menu. If I click an item, its floating submenu appears instantly but then disappears as the clicked page loads. theogk 11 Needs Reporter Feedback / Steps To Reproduce 48268 Updating failed. Error message: The response is not a valid JSON response. Posts, Post Types normal critical Awaiting Review defect (bug) new reporter-feedback 2019-10-10T05:26:03Z 2021-03-31T21:52:09Z "Hi, When i try to update the Page Template from default to full page then i am getting that error ""Updating failed. Error message: The response is not a valid JSON response."" in WordPress Version 5.3" phpdocs 8 Changes Requested 59702 Excerpt filters does not work in Ajax calls Themes 6.3.2 normal critical Awaiting Review defect (bug) new changes-requested 2023-10-21T17:07:31Z 2023-11-14T18:42:05Z "I'm creating a new WordPress theme, and using filters to format excerpts in Ajax calls, I found when the page loads at the first time, it works correctly, but, when I use the Ajax call to load posts progressively, the ""the_excerpt()"" method does not apply the filters to the excerpts. I'm implementing the lazy load method for the posts, and I'm using the following three files for that propose. **functions.php** {{{#!php 'post', 'posts_per_page' => $limit, 'offset' => $offset ); $query = new WP_Query($args); if($query->have_posts()) : while($query->have_posts()) : $query->the_post(); get_template_part('content', get_post_format()); endwhile; endif; wp_die(); } add_filter( 'excerpt_length', 'custom_excerpt_length', 9999 ); add_filter('excerpt_more', 'custom_excerpt_more', 25); add_action('wp_ajax_load_more_posts', 'load_more_posts'); add_action('wp_ajax_nopriv_load_more_posts', 'load_more_posts'); }}} **content.php** {{{#!php
'lazy')); ?>

"">

"" title=""""> "">
term_id); ?>"" class=""tags tags-slug; ?>""> name; ?>
}}} **main.js** {{{ jQuery(document).ready(function($) { let offset = 5; let limit = 5; $(window).scroll(function() { if ($(window).scrollTop() + $(window).height() >= $('#load-more-posts').offset().top) { $.ajax({ url: villamzr_localize.ajax_url, type: 'POST', data: { action: 'load_more_posts', offset: offset, }, success: function(data) { if (data) { let $data = $(data); $data.find('.post-excerpt p').each(function() { let text = $(this).text(); $(this).text(text.substr(0, 150)); }); $('#post-container').append(data); } else { $('#load-more-posts').remove(); } } }); offset += limit; } }); }); }}} Those are the files that I'm using to implement that. The code is correct and normal, but researching I found that the problem is the post-excerpt.php file, belonging to the WordPress core, it has an error in the logic in the following part: **post-excerpt.php** {{{#!php /** ... other code */ __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 Needs Patch 58286 "Growing database due to unnecessary transients containing ""g_url_details_response_""" Database 6.2 normal critical Awaiting Review defect (bug) new 2023-05-10T13:44:03Z 2023-05-11T21:04:39Z "I created 2 external links in the block editor. This created 2 different transients in the database in wp_options, that have a different dynamic part at the end: {{{ _site_transient_g_url_details_response_ab62baf1c770821f259d255001f7a9b9 _site_transient_g_url_details_response_f6ce245428f26d29c355a44ceb3b9bf3 }}} This transient contains ""g_url_details_response_"" and is produced by file class-wp-rest-url-details-controller.php The value of such created transient is entire html from URL to which I link. I only want to add some external link in gutenberg editor. Why on earth is necessary to parse the entire html from URL to which I link? What if I will have for example 20 external affiliate links on one page and I will have 1000 such pages. This will unnecessarily bloat the database with useless and unnecessary data! How can I prevent the creation of transients whose name part contains ""g_url_details_response_""? I tryed it using this filter: {{{ apply_filters( ""pre_set_site_transient_{$transient}"", mixed $value, string $transient ) }}} But it needs full transient name, which is created dynamically using this function {{{ private function build_cache_key_for_url( $url ) { return 'g_url_details_response_' . md5( $url ); } }}} from file class-wp-rest-url-details-controller.php So please remove these pointless transients from wordpress or give users a way to prevent them from being created! Thank you for any reply, david " davidki 1 Needs Patch 54836 "Huge error logs filled with ""WordPress database error Illegal mix of collations"" errors caused by spammers" Database normal critical Awaiting Review defect (bug) new 2022-01-16T19:12:41Z 2023-05-21T11:02:05Z "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 6 Needs Patch 57283 Postmeta - Performance Improvement - Woocommerce Database 6.1.1 normal critical Awaiting Review 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 3 Needs Patch 58826 Please add a default post relations table Database normal critical Awaiting Review enhancement new 2023-07-17T22:10:52Z 2023-07-17T22:10:52Z "As I am sure you know, people have bee using wordpress for a lot of things other than a simple blogging platform. And while your structure allows for basic functionality and relationships, There is a lot of room for improvement. As people continue to add more and more custom post types and related meta, the default posts/post meta tables will quickly become filled and make web queries slow. In addition, the taxonomy system is very limiting, as that is not the only way one would want to group like items. The most common way, would be POST relationships. If a Class has many students, and students have many classes, Displaying an intermediary page between the two is very difficult with the current set up. Therefore, I'd like to request an extension to the database structure as described below in the link below. At minimum the 1st option should be considered as an alternative to archive pages with taxonomies. [https://imgur.com/a/L9q4bAf] If I type domain.exp/articles/for/baseball where baseball is a sports custom post type and arcticles is just one of several custom post types, I expect a query select * from articles where hobby_slug = 'baseball' Currently everyone expects me to make the sport CPT a taxonomy, but if the sport has its own custom fields, and taxonomies already attached, that does not work. This system would be usable in a thousand different use cases and would make your platform more versatile. USERS, comments, posts and custom post types are all Models. Make it easier to establish any relation between them please. " jcc5018 Needs Patch 59103 Gutenberg 16.4 Footnotes Critical Bug on PHP 8.0 Editor 6.3 normal critical Awaiting Review defect (bug) new 2023-08-14T15:58:42Z 2023-08-29T00:01:56Z "I am currently using WordPress version 6.3, PHP 8.0. There is no issue initially when creating a post with the footnotes block, and is able to publish the post. After a while, when trying to edit the same post again, I will see the critical error as such as seen in the attachment. {{{ PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /wordpress/plugins/gutenberg/16.4.0/build/block-library/blocks/footnotes.php:37 Stack trace: #0 /wordpress/core/6.3/wp-includes/class-wp-block.php(258): gutenberg_render_block_core_footnotes(Array, '', Object(WP_Block)) #1 /wordpress/core/6.3/wp-includes/blocks.php(1133): WP_Block->render() #2 /wordpress/core/6.3/wp-includes/blocks.php(1171): render_block(Array) #3 /wordpress/core/6.3/wp-includes/class-wp-hook.php(310): do_blocks('

}}} 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 4 Needs Patch 48535 Incompatibility with PHP 7.3.11 General 5.2.4 normal critical Awaiting Review 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 & 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 {{{ /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 2 Needs Patch 41388 Insert Media window does not remember state for custom tabs, iframe bug General 4.8 normal critical Awaiting Review 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 8 Needs Patch 55534 Remaining image files after deleting them General 5.9.2 normal critical Awaiting Review defect (bug) new 2022-04-05T20:12:26Z 2022-04-05T21:34:40Z "hi wordpress team! I had a very strange problem yesterday that I did not even think about ... As you know, after uploading images in WordPress, WordPress automatically creates several different sizes of it. For example, I uploaded over 200 product images to WooCommerce ... (on an unofficial site) After a long time, yesterday I decided to remove all products and their photos from within the WordPress media section And I did. **But after looking at the hosts and the uploads folder, I was surprised to see that all the images still remained in the upload folder.** In fact, in addition to the image uploaded in WordPress (WooCommerce products), there were 4 different sizes of each image in the upload folder. I was really surprised by this ... I tested this on several different websites and even my colleagues confirmed it. Please address this issue if possible. It is very, very important. thank you!" hoseinkh 2 Needs Patch 18565 Scheduled or Published. Still confuses us. General 3.2.1 normal critical Awaiting Review defect (bug) reopened 2011-09-01T08:26:21Z 2021-08-10T05:13:54Z "It is impossible to move a post from Scheduled to Published. Posts -> Edit - change Status to ""Published"" and Save -- nope, still Scheduled Posts -> Quick Edit - change Status to ""Published"" and Save -- nope, still Scheduled Posts -> Edit change Scheduled Time to less than one hour in the future -- doesn't publish Posts -> Edit change Scheduled Time to more than an hour in the future -- posts on time. This is repeatable on vanilla instances of WordPress 3.2.1 with no plugins. The *ONLY* functional way to take a schedule post and make it Published right now is cut/paste to a new post." jorhett 16 Needs Patch 54991 Site problem General 5.9 normal critical Awaiting Review defect (bug) new 2022-01-29T22:30:23Z 2022-05-17T11:38:45Z "Hello all I have an issue with my site, i'm getting the message `Warning: call_user_func_array() expects parameter 1 to be a valid callback, function '_disable_block_editor_for_navigation_post_type' not found or invalid function name in .../wp-includes/class-wp-hook.php on line 307` Any advise or help? Thank you!" nikosgr74 2 Needs Patch 43778 Spamming via Contact Form 7 (even Contact Form 7 was deleted) General 4.9.5 normal critical Awaiting Review defect (bug) new 2018-04-16T11:27:46Z 2018-04-16T14:52:15Z "I was confused these days. I disabled Contact Form 7, then they could still spam me. I deleted that plugin, they could still send me the spam email. From: Randalphirm 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 2 Needs Patch 57104 The Default Border color in the Code block is different in backend and frontend. General normal critical Awaiting Review defect (bug) new 2022-11-14T14:04:52Z 2022-11-14T17:01:37Z "In the Twenty Twenty-Three theme, The Default Border color in the Code block is different in the backend and frontend. When I add a border in the code block the default border color is {{{#ccc}}} in the backend and {{{black}}} in frontend. " krunal265 3 Needs Patch 60445 We created a button and the website does not work and we cant log into wp admin for the website General normal critical Awaiting Review defect (bug) new 2024-02-06T13:09:00Z 2024-02-06T13:09:00Z "It seemed like when we added a button using HTML, CSS, and JavaScript, it worked fine. We integrated the RecruiterFlow API that was given to us by the RecruiterFlow team. We used PHP to interact with the API. The whole idea was to make a button that could open a pop-up window where one could import their CV and it would go straight to RecruiterFlow. When we tested it a couple of times and fixed bugs and logic issues, after more tests, we discovered that we couldn't access the WordPress dashboard directly from the Believe resourcing website. When trying to log into ""believeresourcing.com/wp-admin,"" I get an error referring to a JSON whitespace error. I can not access WordPress at all from the website, and when trying to log into believeresourcing from WordPress directly, I get an invalid password error." cdawg029 Needs Patch 51008 Issue with multisite new user registration Login and Registration 5.5 normal critical Awaiting Review defect (bug) new 2020-08-14T18:51:00Z 2020-08-14T19:01:50Z "I replicated this issue with a brand new install. I am using multisite setup. I updated to WP 5.5 and noticed it no longer allows you to register for the individual site. In this example(testsite1 is the sub-site), When a user clicks register -> test.com/testsite1/wp-login.php?action=register It'll redirect the user to the main site -> test.com/wp-signup.php When you sign up using that page, the user is not connected to any site within the network. However, the user does appear in wp-admin/network/users.php" onehare 1 Needs Patch 39980 Improve handling of image previews for non-image files joemcgill Media 4.7 normal critical Future Release defect (bug) assigned 2017-02-28T02:57:40Z 2017-05-20T20:16:18Z "Follow up from #31050. The changes to the `image_downsize()` and `image_get_intermediate_size()` functions introduced in [38949] added regressions to the `'image_downsize'` and `'image_get_intermediate_size'` filters, running them for non-image attachments. Best option to fix this seems to be to introduce new function(s) with new filter(s) specifically for handling this case: adding image preview to non-image attachment. This will fix the regressions, and will make it possible for plugins to hook into this functionality." azaozz 7 Needs Patch 59307 Urgent, Uncaught TypeError: this.activateMode is not a function Media 6.3.1 normal critical Awaiting Review defect (bug) new 2023-09-07T08:06:16Z 2023-09-07T08:06:16Z "It's very urgent. There is no response when clicking the media button on the add/edit article page. Showing an error every click on the media button: Uncaught TypeError: this.activateMode is not a function at media-views.min.js?ver=6.3.1:2:59604 at It (provider.js:2:586804) at Function.ma (provider.js:2:621991) at n._createModes (media-views.min.js?ver=6.3.1:2:59564) at n.initialize (media-views.min.js?ver=6.3.1:2:58973) at n.initialize (media-views.min.js?ver=6.3.1:2:79857) at n.initialize (media-views.min.js?ver=6.3.1:2:73432) at n.initialize (media-views.min.js?ver=6.3.1:2:63143) at h.View (load-scripts.php?c=1&load%5Bchunk_0%5D=wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks,jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquer&load%5Bchunk_1%5D=y-ui-sortable,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload&ver=6.3.1:151:14648) at n.constructor (load-scripts.php?c=1&load%5Bchunk_0%5D=wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks,jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquer&load%5Bchunk_1%5D=y-ui-sortable,underscore,backbone,wp-util,wp-backbone,media-models,moxiejs,plupload&ver=6.3.1:155:2602)" jjproitech Changes Requested 18282 Issue with admin page hierarchy in Menu admin Menus 3.2.1 normal critical Awaiting Review defect (bug) reopened changes-requested 2011-07-28T14:38:17Z 2023-08-12T10:15:28Z "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 75 Needs Patch 46361 WPMU - HTTP Request at root path with special character in query key name causes endless loop Networks and Sites 5.1 normal critical Awaiting Review defect (bug) new 2019-02-27T15:38:41Z 2020-12-15T18:46:45Z "Dear WP Team, I observe the following erroneous behavior running WPMU at the latest Version (5.1), but this behavior regards at least version 4.98. If I call a site from a WPMU instance without a context path but with a query key containing a sepcial character, the http-request ends in an endless loop. Affected are at least german umlaut and special characters like [öäüÖÄÜß], but charachters like [§] as well. **For instance www.pleaseuseyourdemowpmuinstance.com?äöüfoo** I'm quite sure that this is a WordPress bug, cause the http response has following header. **""x-redirect-by WordPress""** So the redirect doesnt seem to be from any loadbalancer, cache server or webserver. I hope to have contributed a bit to your great work, thank your very much! Best Regards, Reza Anwar " ranwar 1 Needs Patch 23781 New Post Publishes to Wrong URL Permalinks 3.4.2 normal critical defect (bug) new 2013-03-15T04:59:52Z 2019-06-04T20:43:54Z "The ""Permalink"" displayed in the editor for new posts may be wrong, and changes (surprise!) when the Publish button is clicked. Steps to reproduce this: 1. Start typing a title in a new post. 1. Wait for an auto-save and Permalink to appear. 1. Make the title longer. 1. Type a post body. 1. Click Publish. Expected result: The new post should be published at the Permalink being displayed on the post editor. Actual result: A completely different permalink is generated based on the current title. The new page gets cached at the ""wrong"" URL before any changes can be made. General pandemonium ensues. Etc. (It's not a blocker bug, but it is so completely annoying!)" miqrogroove 6 Needs Patch 55597 WordPress 6.0-beta2-53224 not creating .htaccess Permalinks 6.0 normal critical Awaiting Review 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 17 Needs Patch 53255 WordPress multisite allows you to delete plugins which are active on some subdomains Plugins 4.6 normal critical Awaiting Review defect (bug) reopened 2021-05-21T22:40:52Z 2021-05-22T14:56:21Z "Hello, I remember in the past, WordPress was not allowing you to delete a plugin that is active at least on one website. " denisflorin197 3 Needs Patch 55582 cURL error 77 (no https to wordpress.org) Plugins 5.9.3 normal critical Awaiting Review defect (bug) new 2022-04-16T10:29:47Z 2022-04-16T10:29:47Z "In order to install or update a plugin, appropriate functions are called in the backend. They end up with the error mentioned above. WordPress 5.9.3 is installed. The updates and installations work in the CLI. In den Einstellungen ist alles auf https umgestellt. Warning: Ein unerwarteter Fehler ist aufgetreten. Es scheint etwas bei WordPress.org oder mit dieser Serverkonfiguration nicht zu stimmen. Sollte das Problem weiter bestehen, nutze bitte die Support-Foren. (WordPress konnte keine sichere Verbindung zu WordPress.org herstellen. Bitte kontaktiere deinen Server-Administrator.) in ...../public_html/wp-includes/update.php on line 413 " pferderausch Needs Patch 59408 how to fix below error Plugins 6.3 normal critical Awaiting Review defect (bug) new 2023-09-20T09:02:30Z 2023-09-20T09:02:30Z Fatal error: Uncaught Error: Call to undefined function topdeal_options() in /home/u380733166/domains/books.lk/public_html/wp-content/plugins/sw_woocommerce/includes/sw-woocommerce-shortcodes.php:960 Stack trace: #0 /home/u380733166/domains/books.lk/public_html/wp-includes/class-wp-hook.php(310): topdeal_buton('') #1 /home/u380733166/domains/books.lk/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #2 /home/u380733166/domains/books.lk/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/u380733166/domains/books.lk/public_html/wp-includes/general-template.php(3069): do_action('wp_footer') #4 /home/u380733166/domains/books.lk/public_html/wp-includes/template-canvas.php(25): wp_footer() #5 /home/u380733166/domains/books.lk/public_html/wp-includes/template-loader.php(106): include('/home/u38073316...') #6 /home/u380733166/domains/books.lk/public_html/wp-blog-header.php(19): require_once('/home/u38073316...') #7 /home/u380733166/domains/books.lk/public_html/index.php(17 in /home/u380733166/domains/books.lk/public_html/wp-content/plugins/sw_woocommerce/includes/sw-woocommerce-shortcodes.php on line 960 nirmal1985 Needs Patch 49109 Array offset access notice problem with `remove_meta_box()` and `add_meta_box()` function. Posts, Post Types 5.3.2 normal critical Awaiting Review defect (bug) new 2019-12-31T13:57:29Z 2020-02-26T10:56:19Z "When I use `remove_meta_box()` function: {{{#!php 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 Needs Patch 57767 SQL query error with multiple order specifications in pre_get_posts. Query 6.1.1 normal critical Awaiting Review defect (bug) new 2023-02-20T03:09:37Z 2023-02-21T02:27:55Z "https://ja.wordpress.org/support/topic/pre_get_posts%e3%81%a7%e8%a4%87%e6%95%b0%e3%81%ae%e4%b8%a6%e3%81%b3%e9%a0%86%e6%8c%87%e5%ae%9a%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc/#post-11682395 We have started a thread in the above forum but have not been able to resolve the issue. You can refer to the URL for more details, but when I specify multiple sorting conditions based on the value of a custom field, the results are not displayed properly, and when I throw the query portion of the request in $query directly to SQL in the hook point of pre_get_posts, the following error is returned The following error is returned. {{{ Expression #1 of ORDER BY clause is not in GROUP BY clause and contains non-aggregated column 'local.wp_postmeta.meta_value' which is not functionally dependent on columns in the GROUP BY clause; this is incompatible with sql_mode=only_full_group_by }}} {{{ }}} Is this part of a bug?" kuroro111 5 Needs Patch 57412 Uncaught TypeError: Cannot read properties of undefined (reading 'length'): jquery migrate Query 6.1.1 normal critical Awaiting Review defect (bug) new 2023-01-03T01:14:50Z 2023-01-03T01:16:13Z "Hi everyone! I've been trying to fix this for days, but no change. i tried to install different jquery migration plugins, but none solve the error on my site. probably a plugin needed for the theme to work is in conflict. this plugin is helvig core. if I go to the web page the problem does not exist, but when I enter the menu and try to go to one of the menu pages it doesn't work and gives me the following error: Uncaught TypeError: Cannot read properties of undefined (reading 'length') at init. (jquery-migrate-3.4.0.min.js?ver=3.4.0:2:8491) at e. [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. @ 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 1 Needs Patch 52971 WP_Query's meta_query With Multiple EXISTS keys and OR Relation Doesn't Work Properly Query 5.7 normal critical Awaiting Review defect (bug) new 2021-04-05T12:31:53Z 2021-04-05T12:31:53Z "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 Needs Patch 48768 WordPress 5.3 ajax bug with Elementor 2.7.5 Query 5.3 normal critical Awaiting Review defect (bug) new 2019-11-22T15:17:38Z 2019-11-22T15:17:38Z "To whom it may concern, I was working on my WordPress site and updated it to the latest version available (5.3), before had the 5.2.4 version, i also updated the plugin Elementors to the latest version 2.7.5 . I noticed that when i was trying to access their build in option, build query, for the elements, it would give and ajax error of type : **core-query uncaught TypeError: Cannot read property 'ajax' of undefined** . I tried to downgrade the Elementor to a previous version but it didn't work, than i downgraded the WordPress one version older and it worked normally. " argentum95 Needs Patch 54161 "WordPress destroy iis web.config when using ""location"" config." Rewrite Rules 5.8.1 normal critical Awaiting Review defect (bug) new 2021-09-22T15:53:05Z 2021-09-22T15:53:05Z "When wordpress doesn't find rewrite rulres, it tries to add them, and it works correctly. BUT If we use the ""location"" in web.config, that allow config to NOT inherit in sub applications, it crashes web.config. When web.config looks like this: {{{ }}} ... 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 xml path." foxontherock Needs Patch 50943 add_rewrite_rule() sample codes don't work for passing multiple params Rewrite Rules 5.5 normal critical Awaiting Review defect (bug) new 2020-08-12T13:46:46Z 2020-08-14T00:54:37Z "Hi I'd found out a new bug in wordpress v5.5 (latest release update), and its related to rewrite rules. Even sample codes in following page won't work for passing multiple params in url mentioned in ""Using Custom Templates with custom querystring"" section: https://codex.wordpress.org/Rewrite_API/add_rewrite_rule I'd tried every possible ways to achieve that, but I couldn't. I think it's a bug. I hope this is not a false report. if it is, sorry for that and could you help me. I using this code: {{{#!php Styles > Additional CSS panel. Luckily I had done a backup just before the update." petervandoorn 1 Needs Patch 55255 error wordpress 5.9.1 php 8.1 Upgrade/Install 5.9.1 normal critical Awaiting Review defect (bug) new 2022-02-24T21:07:02Z 2022-03-08T13:38:48Z "since wordpress automatic updated to 5.9.1 it is not anymore delivered using php 8.1. and gives 503 error tested on a empty wordpress installation with no plugins and the twenty twenty-two theme" flxstnhff 1 Needs Patch 59564 Not showing uploaded media in theme Upload 6.3.2 normal critical Awaiting Review defect (bug) new 2023-10-08T16:11:23Z 2024-02-08T15:06:26Z "When user want login facing issue with wp admin area login please check attached screenshot with issue details and with uploaded media is not showing in theme Login Screenshot - [https://ibb.co/BPV3Qsr] Media Screenshot - [https://ibb.co/hCpS1Mn]" vipalok2023 1 Needs Patch 48004 JS error while Widget saving functionality Widgets 5.2.3 normal critical Awaiting Review defect (bug) assigned 2019-09-09T06:14:40Z 2019-09-10T01:39:36Z "When I tried to update any existing widget and Save it then I am getting a JS error and because of that changes are not being saved. Issue is with the ajaxurl variable used in a post ajax call in widgets.js (widgets.min.js) in Save function. This variable is holding the object and not a string (ideally string containing the url). While inspect in Network, ajax url looks like, http://www.expertise.com/wp-admin/[object%20Object] " prashantdu 3 Needs Patch 54144 The New Blocks Widgets Causes a Huge Load on the Database Widgets 5.8.1 normal critical Awaiting Review defect (bug) new 2021-09-18T16:26:14Z 2023-04-20T13:52:18Z "Hi There! My host on DigitalOcean with 4GB RAM which is too large for any small WordPress site, and I had no issues until you released the new Widgets. Just while loading the widgets in the Admin Dashboard, I receive a DB error message (which I made to know about an overload) in every Widget box. This is a very wired situation not suitable for my server's resources, I don't know if someone else report this issue before but now all my websites upgraded to v5.8 always down in the Widgets pages because of overload on database. Thanks hope to fix soon [[Image(https://awscdn.oxibug.com/cdn/wp-content/uploads/2021/09/WordPress-v581-Widgets-DB-Overload-Issue.jpg)]]" oxibug 3 Needs Patch 60680 Site's broken WordPress.org Site normal critical Awaiting Review defect (bug) new 2024-03-03T19:41:16Z 2024-03-04T16:17:21Z I think wordpress.org is broken when opened with firefox desktop. See attached video. rsalafy 2 Needs Dev / Bug Wrangler Feedback 38805 A hook is missing in class WP_List_Table Administration 4.6.1 normal major Awaiting Review defect (bug) new dev-feedback 2016-11-15T22:03:17Z 2022-04-20T16:51:26Z "If I want to add a column to a WP_List_Table, I used this hooks : * `manage_{$this->screen->id}_columns` * `manage_{$this->screen->id}_sortable_columns` * `manage_{$screen->id}_custom_column` But the last one doesn't exist in WP_List_Table, I can create a column but I can't insert data into. Here the documentation : https://make.wordpress.org/docs/plugin-developer-handbook/10-plugin-components/custom-list-table-columns/#output-table-cell-contents Here the source of WP_List_Table : https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-list-table.php Actually, I want to hook a plugin with this hook, I can't add columns. Thanks " madvic 7 Needs Dev / Bug Wrangler Feedback 43844 PHP list language construct changed behaviour in PHP 7 SergeyBiryukov Administration normal major Awaiting Review defect (bug) reviewing dev-feedback 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 7 Needs Dev / Bug Wrangler Feedback 15386 WP_List_Table::get_columns does not work for plugins scribu Administration 3.1 high major Future Release defect (bug) reopened close 2010-11-11T14:42:28Z 2023-02-16T20:06:44Z "Creating a new table based on the WP_List_Table class does not work as the get_columns method is not being called. The problem is when WP_List_Table::get_column_info() calls get_column_headers() instead of $this->get_columns() where all the column data is stored. Moving the filter manage_*_columns from get_column_headers() into WP_List_Table::get_column_info() along with passing $this->get_columns() fixes this issue." ptahdunbar 24 Needs Dev / Bug Wrangler Feedback 42696 Autosave Notification not dismissible Autosave 4.2 normal major Awaiting Review defect (bug) new dev-feedback 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 7 Needs Dev / Bug Wrangler Feedback 32851 Comment e-mail address of registered user not updated when user's e-mail address is changed Comments normal major Future Release defect (bug) new dev-feedback 2015-07-01T05:13:01Z 2020-09-30T20:17:48Z "when i have register on blog and i have add 4 comment on different post. Now 2'nd day i have change my email address on my profile. now any one comment's reply is email gone my old email address which is not change after profile update on comments. i have fix this issue on one member please review it 2 link for more info. i hope u will understand me. [https://wordpress.org/support/topic/update-old-comments-with-new-registered-user-email-address?replies=6] [https://wordpress.org/support/topic/development-bump] now i have fix this bug using this one code {{{ function user_profile_update($user_id) { $commentarr = array(); global $wpdb; if( !current_user_can( 'edit_user', $user_id ) ){ return false; } if(isset($_POST['email'])): echo $email = esc_attr($_POST['email']); $wpdb->query(""UPDATE $wpdb->comments SET comment_author_email='$email' WHERE user_id=$user_id""); endif; } add_action('personal_options_update','my_profile_update', 10,2); add_action('profile_update', 'user_profile_update', 10,2); }}} " ravipatel 8 Needs Dev / Bug Wrangler Feedback 46642 Comment form content textarea shouldn't be a required field Comments 5.1 normal major Awaiting Review defect (bug) new dev-feedback 2019-03-25T17:40:00Z 2020-01-23T11:07:04Z "there's a note on the top of the comment form that states: "" Required fields are marked "" and the comment '; echo wpautop( $text ); }}} " takayukister 9 Needs Patch 33840 wpautop damages inline script Formatting 4.3 normal normal defect (bug) new 2015-09-12T10:54:20Z 2019-06-04T19:51:27Z "This code: {{{ $str = ' '; echo $str; echo '
'; echo wpautop($str); }}} results in this output as seen in the page source: {{{

}}} The wpautop filter adds {{{

}}} twice and {{{

}}} once; adds linebreaks and hence a js error: SyntaxError: unterminated string literal To my opinion, wpautop should NEVER change a byte between {{{}}}; neither should the script tag be wrapped in a p tag. Wrapping the code in a {{{[CDATA[ ]]}}} block makes no difference. This behaviour is noticed for years and is still present at version 4.4-alpha-34061" opajaap 1 Needs Patch 49492 wpautop inserted p tags inconsistently alter visual space Formatting 5.3.2 normal normal Awaiting Review defect (bug) new 2020-02-22T17:09:49Z 2020-02-22T17:12:21Z "I wrote a custom shortcode to insert a
in my posts. wpautop inserts an empty

before the
. If I place the shortcode before the first paragraph after a subheading, the inserted

increases the visual space between the subheading and the paragraph. But if I place the shortcode before the second paragraph, the extra

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 = '

'; $output .= '' . $image ; $output .= '
' . $term->name . '
' . '$' . $product->price . '
'; $output .= '
'; return $output; } }}} " mesmer7 Needs Patch 43394 wpautop inserts extraneous line breaks if hard return around commented content Formatting 4.9.4 normal normal Awaiting Review defect (bug) new 2018-02-23T20:02:19Z 2020-06-15T00:19:38Z "Problem: If one has code comments before content in a WordPress post/page and there are hard returns before and after the code comment, WordPress will insert an extraneous line break. Further, if there are hard returns between multiple comments an extraneous line break will be added. This problem can be reproduced by doing the following: 1. Edit a WordPress post or page. 2. Add a code comment with hard returns before and after it such as: {{{ }}} 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: {{{

Some regular content here.

Some regular content here.

}}} 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
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 1 Needs Patch 15918 wpautop() breaks inline tags on the same line as block tags dunno Formatting 3.0.3 normal normal defect (bug) new 2010-12-20T16:01:31Z 2019-06-04T19:43:17Z "Hi guys! I've got latest WP installation (3.0.3) and found strange bug in posts parser. Create article with following HTML: {{{ }}} Browser will get: {{{ }}} All seems to be fine! Now get rid of unnecessary div. Create article with following HTML: {{{ WP IZ ASSUM }}} Browser will get: {{{

WP IZ ASSUM

}}} Dunno why there is extra

but who cares. All seems to be OK. Create article with following HTML: {{{

WP IZ ASSUM
}}} Browser will get: {{{
WP IZ ASSUM
}}} Now isn't that cool? But check what is even cooler! Create article with following HTML: {{{
WP IZ ASSUM
NO IT'S BUGGY AS HELL
}}} Browser will get: {{{
WP IZ ASSUM

NO IT’S BUGGY AS HELL
}}} Wow! Say hello to invalid markup and rendering problems! Auto-closing of tags turned off. No matter of the settings I still get this nice messed up html. WYSIWYG turned off also." retrib 12 Needs Patch 43313 wptexturise uses the wrong curly quote after a closing link tag Formatting normal normal Awaiting Review defect (bug) new 2018-02-14T10:29:02Z 2018-04-15T18:05:13Z "When an English possessive 's comes immediately after a closing link tag, wptexturise changes it to the wrong kind of curly quote mark. '''To reproduce:''' * Enter some text with a link followed by an 's in your post content, for example {{{ BBC'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 ’ '''What I see instead''' The filter replaces the quote mark with a left curly apostrophe ‘ " andfinally 2 Needs Patch 54721 wptexturize caches the result of run_wptexturize preventing themes from using this if a plugin has already called get_plugin_data Formatting 5.8.2 normal normal Awaiting Review defect (bug) new 2022-01-03T11:45:01Z 2022-01-03T11:45:01Z "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 Needs Patch 43785 wptexturize fails to skip JavaScript if code contains < Formatting normal normal Awaiting Review defect (bug) new 2018-04-17T07:51:58Z 2018-04-17T07:51:58Z "As the [https://codex.wordpress.org/Function_Reference/wptexturize documentation] states: Text enclosed in the tags
, , , \r\n""
		. ""\r\n""
		. ""\r\n""
		. ""

This is a red paragraph

\r\n"" . ""\r\n"" . ""\r\n"" . ""--$multipart_boundary--""; wp_mail( 'whoever@example.com', 'Multipart email test', $body, $headers ); }}} The email sent by this code should show either the text part or the html part, depending on the email client. I use Thunderbird and it shows no content at all. The source of the problem is in the Wordpress file /includes/pluggable.php, function wp_mail(). The function argument $headers array/string supplied by the user is assigned to a variable $tempheaders and then $headers is set to an empty array. $tempheaders is then processed in a switch statement block starting at line 251 to extract the header fields From, Content_Type, Cc, Bcc and Reply-To. Any other header fields are considered 'custom headers' and are added back into the $headers array by the default case of the switch block. At the end of processing $tempheaders, if there are no 'custom header' fields present, then the $headers variable remains an empty array. At line 441, the $headers variable is tested to see if any 'custom headers' need setting. {{{#!php $content ) { $phpmailer->AddCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) ); } if ( false !== stripos( $content_type, 'multipart' ) && ! empty($boundary) ) $phpmailer->AddCustomHeader( sprintf( ""Content-Type: %s;\n\t boundary=\""%s\"""", $content_type, $boundary ) ); } }}} Strangely, not only does this if statement block set the 'custom headers' ($headers) when they exist, it also sets the Content-Type: multipart/...; boundary=... Hence, if $headers is empty, as is the case for my example above, the multipart boundary is not set. The question is: why is setting the multipart boundary dependent on there being these so called 'custom headers'? I have only noticed this problem since Wordpress 4.6+. Since version 4.6, the header field Reply-To was added to Wordpress' list of 'non-custom headers'. Prior to version 4.6, Reply-To was considered a 'custom header' and so, $headers was not empty and my code worked. As a work-around, if I add Return-Path: ... to my headers, then everything works and my emails are readable again. However, I shouldn't need to do this. I think this problem needs some serious attention. Tony " drtonyb Needs Patch 50374 Improve PHPMailer usage Mail normal normal Awaiting Review defect (bug) new 2020-06-12T15:59:55Z 2020-06-12T18:56:39Z "Related to the ticket #41750 We finally have PHPMailer 6 in WordPress core. The PHPMailer author noticed that there are some improvements in the way we use PHPMailer. if you're setting content-type headers and boundaries via addCustomHeader, you're using PHPMailer wrong! (https://core.trac.wordpress.org/ticket/41750#comment:41) I would like to request comments and thoughts on taking a good look at how we use PHPMailer. I suspect these outdated patterns were used when WordPress had PHPMailer 5.x series. Now that we use PHPMailer 6, we can review and improve how we use it. PHPMailer 6 upgrade milestone is WordPress 5.5. It would be great if we ship these changes with same version. " ayeshrajans Needs Patch 53393 Latest version of PHPMailer no longer attaches files to emails Mail 5.7.2 normal normal Future Release defect (bug) new 2021-06-14T01:18:07Z 2021-11-01T17:35:53Z "I've been trying to track down why my s3 bucket files are no longer being attached to automated emails being sent out by WordPress (using the Gravity Forms Entry Automation plugin). I've been able to identify the latest version of PHPMailer being the reason why the attachments no longer get added. From the author: ---- ''This is due to a bug fix that also closed a major security hole. PHPMailer deliberately avoids being a client for HTTP or other protocols for file attachments because it is far too risky. The solution is to take on responsibility for fetching remote files yourself. Instead of :'' {{{ $mail->addAttachment('s3://file.txt', 'file.txt'); }}} ''Do this:'' {{{ $mail->addStringAttachment(file_get_contents('s3://file.txt'), 'file.txt'); }}} https://github.com/PHPMailer/PHPMailer/issues/2355#issuecomment-858373284 ---- I reached out to the Gravity Forms authors as well as the Entry Automation authors and they both have said their plugins just generate raw notification objects and then use wp_mail() to pass the generated mail object off to the rest of my server to actually handle the sending. Is there a way to get this working again without having to roll my WP version back? Or do y'all know how others are handling this issue? " threeatetwo 8 Needs Patch 56115 Prevent default from email to use a subdomain when the siteurl is a subdomain Mail 2.1 normal normal Awaiting Review defect (bug) new 2022-06-30T15:28:24Z 2022-07-01T22:18:46Z "When the site url uses a top-level domain or the www subdomain, the default from email is `wordpress@mydomain.com` When the site url uses a sub-domain (not www), then the default from email is `wordpress@mysubdomain.mydomain.com`. In this case, the email will be tagged as spam because the from header domain doesn't the top-level domain. Would it be possible de force (rewrite) the siteurl variable to remove the subdomain, in order to reduce the chance to have emails marked as spam? Related: #5007" benoitchantre Needs Patch 40081 Remove wp-admin links from all Core emails Mail normal normal Awaiting Review defect (bug) new 2017-03-09T14:56:40Z 2017-03-09T18:32:07Z "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 3 Needs Patch 54416 Some WordPress generated emails escape special chars in the email address while other emails do not. Mail 5.8 normal normal Awaiting Review defect (bug) new 2021-11-10T22:28:51Z 2021-11-10T22:28:51Z "When a user's email address contains an apostrophe, WordPress will escape the apostrophe in the email address for some WordPress generated emails, while it will not for other WordPress generated emails. For example o'connor@domain.com will be escaped to o\'connor@domain.com for the 'Email Changed' and 'Password Changed' emails that are sent to the user. For other emails, such as the 'User Lost Password' email, the email address is not escaped and is sent properly. " ltuspe Needs Patch 43425 WP_Mail BCC and CC - RCPT TO Errors Mail 4.9.4 normal normal Awaiting Review defect (bug) new 2018-02-26T22:15:08Z 2018-02-26T22:15:08Z "Adding BCC and CC Fields are having inconsistent results. Undeliverable emails, incorrect ""RCPT TO"" Addresses in SMTP Communication etc. ""RCPT TO"" is being set to ""Message-ID"". See Tests Below - I tested with standard PHP Mail and wp_mail If anyone has any pointers that would be great. Windows Server 2012R2 IIS: 8.5 PHP: 7.0.9 WP: 4.9.4 No special plugins or code. Test 1: Standard PHP Mail with CC Field {{{ $headers = 'From: Test ' . ""\r\n"" . 'cc: myotheremail@myname.com'; $to = ""myemail@gmail.com""; $subject = ""TEST SUBJECT""; $body = ""Test""; if (mail($to, $subject, $body, $headers)) { echo(""Message successfully sent""); } else { echo(""Message sending failed""); } }}} Results Both emails received. Content looks ok ---- Test 2: Standard PHP Mail with BCC Field {{{ $headers = 'From: Test ' . ""\r\n"" . 'bcc: myotheremail@myname.com'; $to = ""myemail@gmail.com""; $subject = ""TEST SUBJECT""; $body = ""Test""; if (mail($to, $subject, $body, $headers)) { echo(""Message successfully sent""); } else { echo(""Message sending failed""); } }}} Results: Both emails were received However. The body of each email now has the letter ""b"" appended to the content. Body Content {{{ b Test }}} Is something in WP causing this or is this an issue in Windows PHP?? ---- Test 3: WordPress wp_mail with CC Field {{{ $headers = 'From: Test ' . ""\r\n"" . 'cc: myotheremail@myname.com'; $to = ""myemail@gmail.com""; $subject = ""TEST SUBJECT""; $body = ""Test""; if (wp_mail($to, $subject, $body, $headers)) { echo(""Message successfully sent""); } else { echo(""Message sending failed""); } }}} Results CC never received - SMTP Log file shows: [2018.02.26] 16:46:04 [55583] CMD: RCPT TO:<945dc26bed6e74aeec984fc4ae828e32@myname.com> Why did the CC field get changed? It looks like the ""CC"" Field is now the ""Message-ID"" as they are the same now. Gmail received the copy as expected. ---- Test 4: WordPress wp_mail with BCC Field {{{ $headers = 'From: Test ' . ""\r\n"" . 'bcc: myotheremail@myname.com'; $to = ""myemail@gmail.com""; $subject = ""TEST SUBJECT""; $body = ""Test""; if (wp_mail($to, $subject, $body, $headers)) { echo(""Message successfully sent""); } else { echo(""Message sending failed""); } }}} Results Same as Test 3 -- The BCC Field ""RCPT TO"" command became the ""Message-ID""?? Gmail received the copy but still had the letter ""b"" appended into the message body. Any ideas, pointers etc? Suspecting Bug in WordPress or Windows PHP. " JWGarber1725 Needs Patch 40390 Wrong time (and date) in mail header send by phpmailer Mail 4.7.3 normal normal Awaiting Review defect (bug) new 2017-04-07T12:47:41Z 2017-05-02T11:59:04Z "I noticed that some mail clients show wrong time and sometimes date (around midnight) while forwarding or otherwise dealing with emails. For ex. MS Outlook gets it wrong. The offset is the same as my local timeoffset to UTC. Tracking it down this is because the {{{rfcDate()}}} within ''wp-includes/class-phpmailer.php'' uses {{{date_default_timezone_get()}}} to add the date and time into the mail header. This value is forced by WP to be UTC. Debugging rfcDate() with: {{{ error_log( var_export( date_default_timezone_get(), true ) ); error_log( var_export( date('D, j M Y H:i:s O'), true ) ); error_log( var_export( current_time( 'D, j M Y H:i:s O' ), true ) ); }}} I get: {{{ [07-Apr-2017 12:01:02 UTC] 'UTC' [07-Apr-2017 12:01:02 UTC] 'Fri, 7 Apr 2017 12:01:02 +0000' [07-Apr-2017 12:01:02 UTC] 'Fri, 7 Apr 2017 14:01:02 +0000' }}} I read this ticket #39595 and I guess it will not be changed. The ticket also says there is no WP function using the native timezone getter. This shows there is. Or at least a lib within core. Can we modify the phpmailer class to use {{{current_time()}}} or do we need to set and reset the timezone before and after every phpmailer call? " Drivingralle 1 Needs Patch 33972 static use of PHPMailer class results in stale state between calls to wp_mail() Mail 4.3 normal normal defect (bug) new 2015-09-23T09:57:09Z 2019-06-04T20:16:28Z "I've just been chasing down a problem since upgrading to WordPress 4.3 with mails sent via wp_mail() being sent with: Content-Transfer-Encoding: quoted-printable Auto switching to quoted-printable was added in the PHPMailer class which was upgraded in 4.3. The issue is that the internal state in $phpmailer is not properly cleared between calls to wp_mail(). There is an attempt to do this via: // Empty out the values that may be set $phpmailer->ClearAllRecipients(); $phpmailer->ClearAttachments(); $phpmailer->ClearCustomHeaders(); $phpmailer->ClearReplyTos(); But non of these methods reset the value of $this->Encoding. So if I make two calls to wp_mail() and the first one gets switched to quoted-printable the second one will be sent as quoted-printable even if it doesn't need to be. Would it not be better to just create a new instance of PHPMailer for each invocation of wp_mail() and let the constructor take care of it? " codebuddy 3 Needs Patch 39775 wp_mail miss send Content-Type with boundary when array header does not have other custom headers Mail normal normal Awaiting Review defect (bug) new 2017-02-03T07:42:43Z 2017-04-14T09:46:47Z "It's a PR send in github. https://github.com/WordPress/WordPress/pull/273 Fix empty charset in line 436. Before: `Content-Type: multipart/alternative; charset=` After: `Content-Type: multipart/alternative; charset=UTF-8` ------------- fix `$headers[] = ""Content-Type: multipart/alternative; boundary=\""$boundary\"""";` not send when not other headers. Test Code: {{{#!php ""; $headers[] = ""Content-Type: multipart/alternative; boundary=\""$boundary\""""; $body = ""--$boundary\r\n"" . ""Content-Type: text/plain; charset=UTF-8\r\n""; $body .= 'test'; $body .= ""--$boundary\r\n"" . ""Content-Type: text/html; charset=UTF-8\r\n""; $body .= '
test
'; wp_mail( $to, $subject, $body, $headers ); }}} Before: [[Image(https://cloud.githubusercontent.com/assets/6196903/22583305/a84c5f1c-ea26-11e6-8718-2bde99d20484.png)]] After: [[Image(https://cloud.githubusercontent.com/assets/6196903/22583326/c4055362-ea26-11e6-8890-1da8fac8552e.png)]] I could search some issue for this, like http://wordpress.stackexchange.com/questions/191923/sending-multipart-text-html-emails-via-wp-mail-will-likely-get-your-domain-b https://wordpress.org/support/topic/using-wp_mail-with-php-generated-attachments/ but still have same problem here." kn007 Needs Patch 52504 wp_mail() not able to send/deliver emails to domain with hyphens in it? Mail 5.7 normal normal defect (bug) reopened 2021-02-12T01:40:30Z 2021-02-12T01:54:03Z "I tested many plugins and all of them, who uses wp_mail(), are not sending/delivering emails to domain with hyphens in it. I tested on 3 different hosts, with 4 different domain names. When an email is sent to a domain with hyphens in it, it's not delivered. Seems like the ""sanitizing"" process is causing an issue maybe?" verya.ca 2 Needs Patch 47827 wp_notify_moderator email error when Site Language is fr_CA Mail normal normal Awaiting Review defect (bug) new 2019-08-04T02:31:38Z 2019-10-03T16:32:18Z "WordPress version: 5.2.2 PHP version: 5.6.27 Hosting: GoDaddy ""Please moderate:"" email is sent without issue when Site Language is en_US. However, when Site Language is fr_CA, the following error occurs: {{{ [04-Aug-2019 01:51:40 UTC] WP_Error Object ( [errors] => Array ( [wp_mail_failed] => Array ( [0] => Could not instantiate mail function. ) ) [error_data] => Array ( [wp_mail_failed] => Array ( [to] => Array ( [0] => wpadmin@example.com ) [subject] => [WPSite] Demande de modération pour « Foo » [message] => Un nouveau commentaire sur l’article « Foo » attend votre approbation http://blog.example.com/foo/ Auteur : JoeUser (adresse IP : xx.xx.xxx.xxx, joe.example.com) Adresse courriel : joe_user@example.com Adresse web : Commentaire : Commentaire en français L’approuver : http://blog.example.com/wp-admin/comment.php?action=approve&c=12#wpbody-content Le mettre dans la corbeille : http://blog.example.com/wp-admin/comment.php?action=trash&c=12#wpbody-content Le marquer comme indésirable : http://blog.example.com/wp-admin/comment.php?action=spam&c=12#wpbody-content En ce moment, 4 commentaires attendent vos approbations. Veuillez vous rendre sur le panneau de modération : http://blog.example.com/wp-admin/edit-comments.php?comment_status=moderated#wpbody-content [headers] => Array ( ) [attachments] => Array ( ) [phpmailer_exception_code] => 2 ) ) ) }}} " zzzz4 1 Needs Patch 39709 Add filler content to New Site Registration email to avoid space ratio spam rule Mail normal normal Awaiting Review enhancement new 2017-01-26T19:57:08Z 2017-03-09T15:03:08Z "I noticed SpamAssassin on helpscout.net is coming very close to flagging the `New Site Registration` emails as spam. The biggest rule being triggered is [https://wiki.apache.org/spamassassin/Rules/TVD_SPACE_RATIO `TVD_SPACE_RATIO_MINFP`], with a weight of `2.5`, getting the message 50% of the way to the the default threshold of `5`. That rule looks for excessive whitespace in the message body, and I'm guessing it's being triggered by the high ratio of newlines to paragraph text. I uploaded [http://pastebin.com/tDyEfShL a pastebin with the full headers and body]. I don't have time right now to verify whether or not helpscout.net is using the default SpamAssassin configuration, or if they've weighted this rule more heavily for some reason, but even if they have, it seems likely that others will as well. Additionally, the current message text seems like poor UX, and I think the fix for the spam issue would also fix that. I think the fix would be to add some filler text to the message body, to decrease the ratio of newlines to paragraph text. e.g.: > Howdy, this is your WordPress multisite installation at {example.org}. I thought you'd like to know that a new site was created. The details are below: It doesn't really matter what the text is, as long as it's a normal sentence or two, so whatever makes the most sense from a UX point of view will probably be fine. If the new text does include the domain name, I think we should avoid entering a full URL, because that could trigger other spam rules. (As an aside, I think it's generally a bad idea to include URLs in emails, since it trains users to expect and click them, which makes them more vulnerable to phishing. That's another ticket, though.) I think the next steps for this ticket would be: 1. Reproduce the issue with a local SpamAssassin instance, to verify that `2.5` is the default score for this message (rather than something Help Scout modified) 1. Test that adding some filler text will prevent the rule from being triggered. I don't think it'll really matter what the text is, for the purposes of testing. 1. Decide on what the best text would be from a UX perspective" iandunn 1 Needs Patch 53829 Add unique keywords for wp_mail calls to categorize it Mail normal normal Awaiting Review enhancement new 2021-07-29T16:22:09Z 2023-08-15T13:58:39Z "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 3 Needs Patch 54465 Error message with invalid receipent Mail 5.8 normal normal Awaiting Review enhancement new 2021-11-18T09:46:41Z 2021-11-18T09:46:41Z "When sending an email with: {{{ wp_mail( 'nameSurname.@gmail.com', 'Subject', 'Message' ); }}} we get the error message: ""You must provide at least one recipient email address"". Though the recipient is invalid, it's provided. Related to: https://core.trac.wordpress.org/ticket/47467 but it does not seem to be fixed." sanzeeb3 Needs Patch 50049 PHPMailer and OAuth Mail normal normal Awaiting Review enhancement new 2020-05-01T18:45:23Z 2020-11-10T16:46:51Z "I noticed that in the PHPMailer class provided with WordPress, AuthType is limited to CRAM-MD5, LOGIN, or PLAIN. But I noticed [https://github.com/PHPMailer/PHPMailer/wiki/Using-Gmail-with-XOAUTH2 this] page in their wiki which says that support for XOAUTH2 was added in version 5.2.11. I also took a look at the SMTP class provided with WordPress, and there is a OAuth variable, but it's not used for anything (at least as far as I could tell). I think it would be nice if this functionality was included with WordPress. Let me know what you think, thanks." nicegamer7 Needs Patch 31775 wp_mail attachments support only ascii symbols Mail 4.1.1 normal normal enhancement new 2015-03-26T12:31:01Z 2021-04-06T11:15:43Z "Hi. Currently `wp_mail()` passes it's attachments directly to PHPMailer, and that results in taking file basename as attachment name. Basename seems to behave not normal on non-ascii symbols, for example `/сontacts.png` (the first 'c' is russian) will be truncated as `ontacts.png`. Apart from that, even if it would be basename'd correctly, it won't be utf8-encoded as required by standard (`=?utf-8?B?base64?=`), and that will probably result in broken mails and/or rejected mails. So i'm proposing to implement functionality for manual attachment naming and/or automatic basenaming filenames and encoding attachment names according to [http://tools.ietf.org/html/rfc2047 standard]. #28407 is tightly bound to this request." Fike 2 Needs Patch 56779 wp_mail header ignores multiple headers with same name Mail normal normal Awaiting Review enhancement new 2022-10-10T10:07:49Z 2022-10-10T10:07:49Z "Context: https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/pluggable.php#L344 Snippet `wp_mail` {{{#!php default: // Add it to our grand headers array. $headers[ trim( $name ) ] = trim( $content ); break; }}} Passing headers this way: {{{#!php $headers[] = 'x-my-things: thing1'; $headers[] = 'x-my-things: thing2'; }}} Will resulting headers only generated one ( the last one ) {{{#!php $headers['x-my-things'] = 'thing2'; }}} Expectation, it should retain the headers index, should behave similarly with `phpmaailer::addCustomHeader`, headers indexed by numeric, and each item contains name and value. Example use case Mailgun `x-mailgun-tag`, https://documentation.mailgun.com/en/latest/user_manual.html?highlight=x-mailgun-tag" pentatonicfunk Needs Patch 51717 Emails in WordPress (Templating and Sending methodology) Mail normal normal Awaiting Review feature request new 2020-11-05T20:50:48Z 2020-11-08T10:39:51Z "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 1 Needs Patch 60082 """Copied"" tooltip should be hidden when another attachment URL is copied (in list mode)" Media 6.0 normal normal Awaiting Review defect (bug) new 2023-12-15T13:05:00Z 2024-03-12T15:39:27Z "In the media list view, clicking the ""Copy URL"" action link displays previously clicked ""Copy URL"". The previously clicked row showing ""Copied!"" when hover the media again. === Environment - WordPress: 6.4.2 - PHP: 8.2.0 - Server: Apache/2.4.54 (Unix) OpenSSL/1.0.2u PHP/8.2.0 mod_wsgi/3.5 Python/2.7.18 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 - Database: mysqli (Server: 5.7.39 / Client: 8.2.0) - Browser: Firefox 119.0 (macOS) - Theme: Twenty Twenty-Four 1.0 - MU-Plugins: None activated - Plugins: * WordPress Beta Tester 3.5.5 === Steps to Reproduce 1. Go to media library 2. Click ""Copy URL"" of one of the media. 3. Click ""Copy URL"" of another media. 4. The previously clicked row showing ""Copied!"" when hover the media again. === Expected Results 1. The previously ""Copied!"" tooltip should be close after clicking the next one. === Actual Results 1. The previously clicked row showing ""Copied!"" when hover the media again." jayadevankbh 3 Needs Patch 43531 $content_width and Add Media (+ twentyseverteen?) Media 4.9.4 normal normal Awaiting Review defect (bug) new 2018-03-12T20:07:38Z 2019-01-21T22:04:59Z "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 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 3 Needs Patch 48974 -1 being added to image uploads since version 5.3.1 Media 5.3.1 normal normal defect (bug) reopened 2019-12-14T19:52:09Z 2020-10-01T18:12:06Z "Hi, as of the Friday update my image uploads are geting '-1' added to each image e.g., 19-1216-iskysoft-christmas19-696x522-1.jpg 19-1216-jla-special-needs-696x522-1.jpg" neotrope 18 Needs Patch 28989 AJAX in the media library sometimes fails to load data Media 3.5 normal normal defect (bug) new 2014-07-22T20:23:57Z 2019-06-04T20:08:35Z "I added video and want to replace it now and since AJAX failed (only on this single page, there are no errors when I hit F12 and go to ""Console"" though) I have no other option then to refresh entire page: [[Image(http://i.gyazo.com/6379480b489e206bfe0b06b06288579b.png)]] I'm using 4.0-beta2-20140722. I think it wasn't happening that often in 3.9.1 but I may be wrong." Looimaster 2 Needs Patch 54433 ALLOW_UNFILTERED_UPLOADS does not work anymore Media 5.8.2 normal normal Awaiting Review defect (bug) assigned 2021-11-13T01:02:25Z 2022-11-30T20:15:35Z "I previously added define( 'ALLOW_UNFILTERED_UPLOADS', true ); to wp-config.php so that I could upload binary executable into the media library. These executable files are installers for the software my lab develops and which is used by thousands of users around the world. As I am trying to release a new version I tried to upload the new installers and no matter what I do I get ""Sorry, this file type is not permitted for security reasons"". I really see no reason why the site admin should be prevented to upload something into his own site. I am using version 5.8.2 of wordpress which does not appear in the Version pull down below, and Avada and a multisite installation. " mssd19 2 Needs Patch 30052 Add New Media Drag and Drop Hangs on Crunching Media 4.0 low normal defect (bug) reopened 2014-10-20T19:28:52Z 2019-06-04T20:27:30Z "When using the drag-and-drop feature of ""Media -> Add New"" the upload hangs at ""Crunching..."". After extensive testing, I have determined this occurs when the auto_increment primary key (ID field) on the ""wp_posts"" table reaches 1000. If I delete content and reset the key to 999 or below ""Add New"" works but, when the key hits 1000 ""Add New"" get stuck at ""Crunching..."". I can find no errors in any logs or by using the ""backtrace-errors.php"" debugging file. I have been able to duplicate this issue on multiple WordPress servers. Note - Images do get uploaded and processed and the entries are placed correctly in the database. The problem is that the upload screen gets stuck displaying ""Crunching..."" along side the primary key number." Gregory_Lang 13 Needs Patch 49587 Add error handling for the media manager Ajax response Media 3.5 normal normal Future Release defect (bug) new 2020-03-06T11:00:27Z 2021-03-02T21:47:47Z "When the media manager modal performs an Ajax request to query attachments, if the Ajax call responds with an error then the user is presented with an eternal loading spinner and no indication there has been a problem. I think there are two places which need a `fail()` handler for the Ajax promise: * `wp.media.model.Attachments.more()` * `wp.media.model.Query.more()` I haven't done any testing yet though to confirm this. Needs a decision around how best to present an error to a user. Probably needs UI work; maybe one of the UI pieces such as the upload failure message can be reused." johnbillion 16 Needs Patch 35887 Adding multiple media to post - selecting image size Media 4.4.2 normal normal Awaiting Review defect (bug) new 2016-02-20T12:03:10Z 2023-10-25T04:35:24Z "When clicking ""Add Media"" to add images to a post, you can select multiple images. With all images selected, logic follows that if you change the ""ATTACHMENT DISPLAY SETTINGS"" size from default ""Medium"" to ""Full Size"", that all selected images would have the same setting changed, but when you add them, only the one image that was highlighted is actually ""Full Size"" and the rest which were selected, but not highlighted, are still ""Medium"". I think when adding multiple media, all should be changed to size that is selected in ""ATTACHMENT DISPLAY SETTINGS""." myburgh.bernard@… 9 Needs Patch 22940 Adding term checklist to Media modal has undesired results Media 3.5 normal normal defect (bug) new 2012-12-14T14:59:27Z 2019-06-04T20:04:30Z If you use '''attachment_fields_to_edit''' to add a term checklist to the media modal, there is no way to know when a term is unchecked. I propose that when a checkbox is clicked in the compat section, all the checked boxes of the same name are passed in the POST request. jfarthing84 2 Needs Patch 48026 Always show selected image even if it doesn't match search string Media normal normal Awaiting Review defect (bug) new 2019-09-12T06:35:43Z 2019-11-04T01:25:45Z "When embedding an image in a post, if there is a pattern in the search box and an image is uploaded that doesn't match it, the new image details are not shown until the search pattern is cleared. Steps: 1. Click ""Add Media"" 2. Enter search pattern, e.g. ""abc"" 3. Switch to ""Upload Files"" tab and upload a file, e.g. ""xyz"" 4. Once the file is uploaded, you see the ""Media Library"" tab again, but no details are showing in the ""Attachment Details"" area, although the newly-uploaded file is selected 5. Clear the search pattern 6. Selected image details appear The correct behavior is to always show the details of the selected file, even if it doesn't match the search pattern, at least immediately after it's been uploaded." galbaras 2 Needs Patch 58051 Attachment custom fields not rendered after upload antpb Media 6.2 normal normal 6.6 defect (bug) assigned 2023-04-02T02:23:40Z 2024-03-06T16:20:39Z "This is a follow-up to #40909. Attachment custom fields added via `attachment_fields_to_edit` are no longer rendered just after an image is uploaded. Clicking away and back will restore the custom field markup, but is quite inconvenient." trepmal 41 Needs Patch 59308 Attachment custom fields not rendered in some cases Media 6.3.1 normal normal Future Release defect (bug) new 2023-09-07T09:50:21Z 2024-02-14T17:05:47Z "This is a follow-up to #58051. I've noticed that in some cases custom fields added via `attachment_fields_to_edit` do not show up when the ""Featured Image"" modal is opened after clicking a ""featured image"". I then need to first click on another attachment and then back to have the custom fields show up. It seems that this bug only happens when you have a lot of images (more than 1 page) and the featured image you're looking at is not on the first page. It's easy to reproduce. If absolutely necessary I can set up a clean WordPress and make a screen recording of this bug, as I rather not share the images and data in our WordPress installation." SeBsZ 9 Needs Patch 43736 Audio continues to play in Media Modal after close Media 4.9.5 normal normal Awaiting Review defect (bug) new 2018-04-11T03:21:00Z 2021-04-01T15:24:25Z "When previewing an audio file in the Media Library modal, if you click Close or Escape, the audio continues to play. I haven't tested with Video, but I am assuming audio continues as well." bahia0019 3 Needs Patch 36680 "Audio player with preload=""metadata"" shows incorrect duration for audio files 1 hour or longer" Media 4.5.1 normal normal Awaiting Review defect (bug) new 2016-04-27T04:29:12Z 2017-09-20T21:29:57Z "For an audio file that's longer than one hour, using the audio player shortcode with preload=""metadata"" shows an incorrect duration for the audio when the page loads. The hours are chopped off. So an audio that is 1:07:45 in duration will erroneously display 07:45 upon loading. Then when the audio file is played, the correct duration pops in, but this causes the volume control to disappear, so the volume can no longer be adjusted while the clip is playing. Many podcasts are longer than an hour in duration. For a demonstration of the bug, see audio 16 on this page, which is 1:07:45 in duration: http://www.stevepavlina.com/audio/" Dexterity 5 Needs Patch 42978 Automatically clear file upload error messages Media normal normal Future Release defect (bug) new 2017-12-25T15:50:20Z 2020-08-31T10:09:33Z "When an error occurs on file upload in the media uploader while drafting a post, the error message persists after both a) another file is successfully uploaded, b) the media manager is closed and re-opened. In both of these cases, it is my opinion that the user is best served by having the error message automatically dismissed, as 1. Its positioning is not typical of a ""historic/cumulative"" error log, 2. It may be assumed that by successfully uploading another file the error first encountered is no longer relevant, and 3. An indefinite amount of time may have passed since the error was first encountered and the media manager subsequently closed and the next time the media manager/upload div was re-opened such that the user may have completely forgotten about the error and may be confused to see a red error box and mistakenly think it is associated with some action he/she just took, 4. As a dialog, nothing about the media manager suggests that its state should persist after being closed and re-opened. (see attachment as an example of an error)" ComputerGuru 3 Needs Patch 34296 Autoplay for more than one self-hosted video fails Media 4.3.1 normal normal Awaiting Review defect (bug) reopened 2015-10-14T10:05:48Z 2017-07-05T20:12:26Z "Hi, When adding more than one self-hosted video to a page (using the [video] shortcode or media browser to insert), if you set more than one to autoplay, then none of them autoplay. This might be a mediaelementjs problem. Stock 4.3.1 install with TwentyFifteen: http://test.10degrees.uk/one-video-autoplay/ - one video set to autplay, works fine. http://test.10degrees.uk/two-videos-autoplay/ - both videos set to autoplay, neither plays. These are both mp4 files. Jonny" jonnyvaughan 3 Needs Patch 29931 "Broken attachment page links for files attached to ""Auto Draft"" posts" Media 3.4.2 normal normal defect (bug) new 2014-10-11T18:06:08Z 2019-06-04T20:09:34Z "'''Steps to Replicate''' 1. Create a new post without a title. 2. Use the Add Media button within the post editor to upload files, but do not insert the files into the post. 3. Close the post editor without saving the draft. 4. Go to the Media Library 5. Notice the files show as being uploaded to a post called Auto Draft. 6. Try to view the attachment page, but get a “404 Page Not Found” error. '''Recommended fix:''' Do not attach files to a post that has a blank title and body. Leave the files unattached until text has been entered into the title or body of the post." dcoleonline 1 Needs Patch 42751 Can we please enqueue media-views independently ? Media 4.9 normal normal Awaiting Review defect (bug) new 2017-11-29T22:14:11Z 2023-10-18T16:16:58Z "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 2 Needs Patch 18275 Can't get perfect thumbnail sizes with image editor Media 3.2.1 normal normal Future Release defect (bug) new 2011-07-28T02:37:16Z 2017-06-27T16:14:27Z "In the media settings, I have the thumbnail set to a fixed size (218x145), and set to crop to these exact dimensions. Sometimes the automatic thumbnail crops off people's heads, etc, so I use the Image Editor to manually adjust the thumbnail. I select a rectangle, set the aspect ratio to 218x145, click crop, apply to thumbnail only, and save. However, sometimes that results in an image slightly off in dimensions - for example, 215x145. I expect this is a rounding error. However, it happens even if I select an area much bigger than this when cropping in the Image Editor - eg 300x200. After I click crop and see the 300x200 image, I would expect the thumbnail to be automatically be created at 218x145 like it does normally based on this adjusted image - however, it appears the checkbox for using exact dimensions doesn't apply here. (In fact, if I select, say 300x300, it will make my thumbnail 145x145). This feels like a bug to me, and makes it very hard to generate thumbnails at the size I want." smerriman 4 Needs Patch 55200 Cannot add caption to images on mobile Media 5.9 normal normal Awaiting Review defect (bug) new 2022-02-19T01:05:50Z 2023-06-14T11:45:43Z On the mobile view of the admin section you cannot add ally text, captions, or descriptions to media uploads vincepettit 4 Needs Patch 31177 Captions video not saved with the post and are lost on attachment page postphotos Media 4.1 normal normal Future Release defect (bug) assigned 2015-01-29T16:13:09Z 2024-01-24T17:36:59Z "At the moment you can add srt-captions and a poster image to a video, entering them while embedding a video in a post. When you add a video via Add Media in a post the output will be something like: {{{[video poster=""url-here/image.jpg"" width=""400"" height=""224"" mp4=""url-here/video.mp4""][/video]}}} This means that the poster and the captions are not stored with the attachment itself, so on attachment this data is lost pages and it is impossible to add a caption or a poster image via the image library. It would be useful to save srt-captions and the poster with the attachment data itself, like the description and the caption now are. " rianrietveld 14 Needs Patch 53800 Color of WebP image thumbnail changes on media library list and grid view Media 5.8 normal normal Awaiting Review 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 7 Needs Patch 59339 Conversion to webp causes fatal error when original image is a palette image (as opposed to truecolor) Media 6.3.1 normal normal Awaiting Review defect (bug) new 2023-09-13T13:41:52Z 2023-09-13T13:41:52Z "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 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 Needs Patch 42953 Created images have a larger filesize than the original Media normal normal Awaiting Review 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 4 Needs Patch 32012 Crunching doesn't work on some grayscale images Media 4.1.1 normal normal defect (bug) new 2015-04-18T13:46:09Z 2019-06-04T20:12:44Z "No error message, just no thumbnail/smaller sizes crunched on upload of a grayscale image. Some images work, others not. All are similar sizes, 32-bit grayscale, under 2MB with varying dimensions. I have followed the relevant steps at: https://wordpress.org/support/topic/25-imagemedia-uploader-problems?replies=1" nifwlseirff 2 Needs Patch 53895 Default Audio Player Bug, mejs-container wp-audio-shortcode mejs-audio Media normal normal Awaiting Review defect (bug) new 2021-08-08T22:33:28Z 2021-08-08T22:38:59Z The default code has a problem in this zone mejs-container wp-audio-shortcode mejs-audio. The width is set and this causes viewing problems after changing browser window size. The width is hard coded and should not be set. To reproduce the bug add a audio file with wp customizer, in a theme with a header, save. View code and the width is set. This would be fine if the width is a percentage or not set at all. I personally think the width should be removed. akissz Needs Patch 51038 Default height when using add_theme_support( 'custom-header') in GD. Media normal normal Awaiting Review defect (bug) new 2020-08-17T06:17:21Z 2021-06-01T03:21:54Z "`add_theme_support( 'custom-header')` defaults to 0 for width and height. if you are using GD, the height will be set to 0 and the cropping will fail and you will get the error message “There has been an error cropping your image.“. If the height is set to 0 in GD, how about getting and using the height of the source file?" munyagu 2 Needs Patch 25748 Delay when sending many images to the editor Media 3.7 normal normal defect (bug) new 2013-10-28T17:04:23Z 2019-06-04T20:06:13Z "Clicking the ""insert into post"" button after uploading many images can result in a really long delay before the image markup is added to the editor. Here is an example on my local installation: http://screencast.com/t/ja8cqXyHSw So you can imagine that the same issue on a remote server could result in a painfully long delay (I've seen it take 30+ seconds). It looks like the cause of the delay is in the individual post request that happens for each image when sending them to the editor. What is the purpose of these requests? Isn't all the data needed to send the image markup to the editor available to the javascript when the button is clicked? If not, and those requests have to happen in their current form, there should be some sort of ""loading..."" indicator on the editor screen letting the user know something is happening, because currently the assumption would be that the insertion failed. And regarding the likelihood of someone inserting that number of images into a single post, photographers will regularly upload 30, 40, 50 or more images to a post after a shoot." matthewdietsche 2 Needs Patch 47130 Drop files to upload is also available except Upload Media tab Media 5.1.1 normal normal Future Release defect (bug) reopened 2019-05-06T10:31:46Z 2021-08-12T14:38:08Z "Howdy Developers, As per my understanding, `Drop files to upload` feature should be enabled during `Upload media` only. Instead of that, I have noticed that whenever Crop Image or any other popup for media is open, then `Drop files to upload` is still there. " malavvasita 15 Needs Patch 50011 Edge case in image lazy-loading Media 5.5 normal normal Awaiting Review defect (bug) new 2020-04-25T20:40:32Z 2020-05-20T21:42:52Z "In #44427 the feature to lazy load images by default was added. The code uses regex and hence there are some edge cases which can complicate. One such case is adding {{{ loading=lazy }}} with space before 'loading' in the alt value. This can be done in the block-editor by selecting the image and adding the above in: Image settings > Alt text (alternative text) box This is allowed in HTML. When this is done, the regex thinks that the image tag has a lazy loading attribute and doesn't add it. " superpoincare 2 Needs Patch 27427 Edit Gallery view does not display images in original aspect ratio Media 3.5 normal normal defect (bug) new 2014-03-15T18:38:26Z 2019-06-04T20:07:06Z "Тhe new gallery preview does display thumbnails in their original aspect ratios, although the modal for creating and editing the gallery does not. The goal is to show the thumbnails in their original ratio which happens when the thumbnails are not square. This happens, for example, if the thumbnail size in Media Settings is 200 (W) x 400 (H), ""Crop thumbnail to exact dimensions"" is not checked. Placement of a certain thumbnail within the gallery often depends on the orientation, and it is very difficult if we show a square shape instead of the real shape. More details: https://core.trac.wordpress.org/ticket/26959 http://wordpress.org/support/topic/edit-gallery-square-thumbnails-vs-portrait-and-lanscape?replies=2" Greybox 2 Needs Patch 43816 Editing Image Can Lead to Mixed Metadata Media 4.9.5 normal normal Future Release defect (bug) new 2018-04-20T00:04:30Z 2022-11-23T16:09:37Z "== Summary If an image is uploaded at a size allowing the creation of a defined image size (ie, ""large"", ""twentyseventeen-featured-image"", etc.) and the image is then edited to a size which doesn't allow that defined size to be created, the non-supported size can still be placed and will display the original image. == Steps to Reproduce 1. Upload an image which is slightly larger than a defined image size in a particular theme (for example, if using the WordPress default definition for ""large"" images, 1,024 pixels, upload an image 1,100 pixels wide) 1. Edit the image, and scale or crop it to be 1,000 pixels wide 1. Save edit 1. Within the post editor, ""add media"", select the ""large"" image size, and place within body of post === Expected Behavior * //Developer//: The ""large"" image should not be able to be selected within the ""Place Media"" dialog * //Regular user//: The ""large"" image placed should reflect the image edit === Result The ""large"" size is selectable and the **original** image is placed within the page. === Other Effects In this particular example, if the Media Library is in ""grid"" view, and our edited image is selected, the dialog which opens will display the incorrect original image, as the dialog preferentially uses the ""large"" image size. == Source of Behavior I believe the problem stems from line 880 of https://core.trac.wordpress.org/browser/tags/4.9.5/src/wp-admin/includes/image-edit.php : {{{ $meta['sizes'] = array_merge( $meta['sizes'], $img->multi_resize( $_sizes ) ); }}} * `$meta['sizes']` contains all of the sizes which were able to be created when the image was uploaded * The return from `$img->multi_resize()` only has keys set for those sizes that can be created from the edited image * Using `array_merge` keeps the original values not returned by `$img->multi_resize()`, despite the fact they are no longer valid for this edit == Fix I believe the fix may be as simple as simply returning the result of `$img->multi_resize()` without merging it into the existing `$meta['sizes']`, which are mainly used in this context to create the `_wp_attachment_backup_sizes` array. {{{ $meta['sizes'] = $img->multi_resize( $_sizes ); }}}" rogerlos 4 Needs Patch 52509 Error generating Thumbnails of PDF-Files Media 5.6.1 normal normal Awaiting Review defect (bug) new 2021-02-12T12:46:26Z 2023-07-02T13:37:05Z "This is a follow-up to #48853. This issue seems to be still present in Version 5.6.1 Some PDF-Files cause an internal server error, some do not. (The server's error log tells something about missing headers) Here's what i did to isolate the error: - I examined the PDF-Files. The affected files had a PDF-Version 1.7 an were created with non-Adobe-Tools (e.g. Office365). PDFs with Version 1.4 and 1.5 (created with Acrobat) worked well. - tried it with a local copy of the site on XAMPP: No Problems - used a little code-snippet to prevent thumbnail-generation in general: Upload works This is the snippet: {{{#!php 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: `
` - change orientation again: still empty See attached screenshots." afercia 1 Needs Patch 32302 Filename policy of IMAGE_EDIT_OVERWRITE==true seems to create CDN and browser cache issues Media 2.9 normal normal defect (bug) new 2015-05-08T03:22:59Z 2019-06-04T20:13:12Z "Just something to check, as discussed over at https://deliciousbrains.com/undefined-define-image_edit_overwrite/ It states the behaviour: ""When you add define( 'IMAGE_EDIT_OVERWRITE', true ); to your wp-config.php the behaviour changes. When you edit an image, it still creates a new image and leaves the original image alone. '''But when you edit again, it overwrites the first set of images rather than create a new set.'''"" My comment: ""what about CDN and browser caching? If the ""unique appendage"" didn't change, then readers won't see the updated image until the cache expires, which for our site at least is 'forever'. If the first edit were to be deleted, wouldn't it be more sensible to still generate a new ""unique appendage"", rather than using the same one? But then again, that could break existing references to the first edit... oh my it becomes messy quickly!"" Brad's reply: ""Excellent point! I think you're right. When IMAGE_EDIT_OVERWRITE is set to true, it should create a new unique appendage instead of reusing the old one. You should open up a Trac ticket for this to be looked at and discussed."" Are you able to provide any clarification? Many thanks, Aidan" aidanlane 7 Needs Patch 48712 For large images, wp_generate_attachment_metadata is breaking WordPress Media 5.3 normal normal Awaiting Review defect (bug) new 2019-11-18T21:33:48Z 2020-01-16T15:19:46Z "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 1 Needs Patch 33896 Gallery linking to Attachment page Media normal normal defect (bug) new 2015-09-16T13:52:16Z 2019-06-04T20:16:05Z "I have received some user reports recently, that they are using internal WordPress gallery (which was improved) and there is some strange problem. - Create new post - Create new gallery with existing images from Media library (do not upload new images). - Link gallery to Attachment page. - See post on website, click on first image in gallery. - You will see links to next/previous image, but not related to user created gallery. Instead of created gallery you can see all images attached (uploaded) to some other post. Users do not understand that this is how it works (gallery shortcode x attachments uploaded to post), they are only asking what is wrong. Maybe we should disable possibility to link to Attachment page when all images from gallery are not uploaded to current post?" pavelevap 2 Needs Patch 43310 "Generic ""HTTP Error"" when uploading PDFs via Media area" Media 4.9.4 normal normal Awaiting Review 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 11 Needs Patch 47531 Handling WP embed (native) Audioplayer's Volume Slider with keyboard defective Media 5.2.1 normal normal Future Release defect (bug) new 2019-06-12T12:05:25Z 2019-08-29T14:35:16Z " As I underestand, handling audioplayers with Tab/Arrows/Enter should be universal with all browsers. I have built a test-webpage from my main web page, consisting some audio-books for children. There are several single WP embed (native) players: https://midripai.ee/s3/pai/pai-kuulata-yksiti-wpn/. Moving with Tab-key onto volume slider, it should be increasing volume by Right Arrow, and decrease by Left Arrow (at least Screenreader Orca in Linux tells to do so). Instead of that, the Down Arrow decreases volume, and ''the Up Arrow does nothing''. Of course, the volume can be handled by Up/Down arrow, being either on Time Slider; or on Mute Button (it seems not to depend of web browser: at least Chrome and Firefox do work similarly.) Yet bringing volume down, being on Volume Slider by Down Arrow could be annoying for visually impaired, as one needs to move back onto Mute Button or Time Slider of the same player to increase volume again. Being on the Play/Pause button, the Down Arrow also decreases volume; and Up Arrow does nothing. The same problem occurs also with WP embed (native) Playlist Player. Tested: Win7-64 bit: Both Chrome (74; 75.0.3770.80 = the latest) and Firefox (67.02); and Linux Mint Mate 18.3 64 bit: Chromium 73.0.3683.86 and Firefox (67.0) Laptops: Fujitsu E8420 and Lenovo w500 internal keyboards and also external ps2 and USB-keyboard. Both with Blocks and blocks switched off (with plugin Classic editor); and also disabled all plugins for test). I did not use special Audio-blocks though." Juhan108 2 Needs Patch 52495 Hard cropped images do not crop specified dimension, causing lack of adaptive images joedolson* Media 5.6.1 normal normal Future Release defect (bug) accepted 2021-02-11T05:30:26Z 2022-06-08T15:51:48Z "If an image is less than the size of a specified image size, it will be cropped only on the dimension that is greater than the specified dimension. The result is an image that is not the same aspect ratio as other images with specified image sizes that have the same aspect ratio. So it won't output those other images in an srcset and your site may be loading much larger images than needed for mobile. For example, I might have defined image sizes of 1000x500, 750x375 and 500x250 and use those images in my theme. Normally, I'd insert that largest image and then the other two would be in an srcset. But, if I were to upload and 960x600 image, I'll get a 960x500 image, as well as the normal 750x375 and 500x250. Because these aren't the same aspect ratio, when I insert the larger image, there is no srcset. Now visitors are stuck loading the largest image. It would make sense to me for hard crop to scale the image up to meet the minimum size for both dimensions, then crop." larssg 4 Needs Patch 30759 If Featured Image is selected, but not saved, editing the image will drop the selection after a save Media 4.0.1 normal normal defect (bug) new 2014-12-18T07:56:17Z 2019-06-04T20:10:14Z "To reproduce: Create a new post. Click on an image to select it. Click on Edit Image link, edit image, and save. Image selection menu has changed dimensions, and the selection state has returned to its prior state. If a featured image has already been assigned to the article, selecting another image, and editing it will return the user to an image selection screen with the prior featured image selected." DavidTheMachine 4 Needs Patch 35489 Im having an issue with WP_Image_Editor_Imagick Media 4.4.1 normal normal defect (bug) new 2016-01-16T20:39:07Z 2019-06-04T20:21:12Z "Im using this following to set up an editor to create thumbs for an image I am uploading: $editor = wp_get_image_editor( $file ); Some images are crashing my script causing a 500 error. I tracked the issue down to the WP_Image_Editor_Imagick class specifically within the crop_image function. From what I could tell this is the line causing my 500 error at line 349 of class-wp-image-editor-imagick.php $this->image->cropImage( $src_w, $src_h, $src_x, $src_y ); I fixed the issue in a band-aid class I am temporarily using removing the WP class and using my own with the wp_image_editors filter within my added class I am using I added the following line $this->image->setResourceLimit(6, 1); // set max threads to 1 I added it just before $this->image->cropImage( $src_w, $src_h, $src_x, $src_y ); " stoi2m1 1 Needs Patch 42922 Image Scaling using get_the_post_thumbnail issue in WordPress Media 4.9.1 normal normal Awaiting Review defect (bug) new 2017-12-17T08:22:37Z 2020-11-19T15:56:40Z "Issue URL - http://www.creativescripters.com/clients/testwp/uncategorized/image-resized/ I am using wordpress (self hosted) latest version, The problem is I am looking to get a thumbnail from the resized/scaled image, and when I do that wordpress returns the test-150x150.jpg i.e. Thumbnail from the original image and not the resized image which should have been test-e1513229707262-150x150.jpg Step to reproduce the issue 1. Upload an image , Scale it (click edit on uploaded image and change width and click scale). Wordpress will rename the image and add an Suffix Id to the name so you can confirm the image have been scaled. for eg if you uploaded test.jpg after scaling image name will become test-randomstring.jpg [![enter image description here][1]][1] 2. When I call get_the_post_thumbnail($post, 'full') I get the correct image The resized one i.e. test-randomstring.jpg [![enter image description here][2]][2] 3. When I try to get a different size of the scaled image for eg I need thumbnail generated from the image size and I call function get_the_post_thumbnail($post, 'thumbnail') wordpress return the THUMBNAIL from actual image (the one I uploaded initially test.jpg and not the resized one test-randomstring.jpg) Screenshot - https://i.imgur.com/sQKoZcF.png [1]: https://i.stack.imgur.com/TTIaG.png [2]: https://i.stack.imgur.com/T3vPE.png" rigids.php 2 Needs Patch 40785 Image caption in WYSIWYG is not displaying in post page Media 4.7.5 normal normal Awaiting Review defect (bug) new 2017-05-17T13:53:07Z 2017-05-19T11:15:53Z "I have uploaded an image to my post via Media upload utility of WYSIWYG editor and added a caption to it. When I go the post page, the image is there but the caption is not showing up anywhere, which ideally should be underneath the image. In wp_posts table the content was saved as: {{{
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.
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.
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.
[caption id=""attachment_713"" align=""alignnone"" width=""1600""] Cliff Top Restaurant at 10000ft[/caption]
}}}" subrataemfluence 1 Needs Patch 35085 "Image editor not cropping correctly when image size is the same as ""Large Size"" in media settings" Media 4.4 normal normal defect (bug) new 2015-12-14T22:49:02Z 2019-06-04T20:19:52Z "This issue was reported as an issue for the plugin Imsanity here: https://wordpress.org/support/topic/imsanity-breaks-the-image-editor?replies=10 However, after research, it appears this behavior happens regardless of the plugin. A video demonstrating the error is at: https://www.youtube.com/watch?v=3a6UbuPrlmU&feature=youtu.be To reproduce: 1. Ensure media settings for ""Large Size"" are set to 1024px 2. Upload a landscape image with a width of exactly 1024px to the media library 3. Click the ""Edit"" button to edit the image, and use the crop tool to make an obvious change. The image will appear to have been cropped at this point 4. Click the ""Save"" button and now the image will no longer appear to be cropped The image now seems to be in an unknown state where the preview shows the un-cropped version, but in the editor the crop shows correctly. " verysimple 3 Needs Patch 60548 Image editor: improve the browsePopup function joedolson* Media 6.3 normal normal 6.6 defect (bug) accepted 2024-02-15T14:10:11Z 2024-03-06T16:59:58Z "While auditing all the remaining jQuery deprecations still to address in core, I noticed a couple things that offer room for improvements in the `browsePopup` function of the core image editor. 1. The `browsePopup` function uses the `window.event` property, which is deprecated and should not be used. This is the `global` event. Instead, the event should be passed as a function parameter. Aside: instead of using inline events, it could have been better to consider a more modern approach. 2. When using the keyboard to navigate the items in the 'Image rotation' dropdown menu, the page scrolls. See attached animated GIF. There's some code in place to prevent page scrolling you may need to reduce your viewport height. See [55919] / #50523 " afercia 5 Needs Patch 60354 Image filter functions strip query string from image src joemcgill Media normal normal Awaiting Review defect (bug) reviewing 2024-01-26T15:14:35Z 2024-01-27T00:07:47Z "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 2 Needs Patch 32215 Image hard crop no longer working as expected Media 4.2.1 normal normal defect (bug) new 2015-04-30T20:37:21Z 2019-06-04T20:12:58Z "Since I upgraded to 4.2.1, hard cropping of images no longer seems to work (resizing always occurs using soft-crop mode, resizing the larger dimension first, then cropping the smaller to size). I am regenerating them using the regenerate thumbnails plugin (which works fine), and am looking at the images directly on the server (FTP) to eliminate the possibility that any CSS might be producing strange results. It is a custom theme that I built, but I switched the site over to Twenty Fourteen to rule out my code and got the same results. I also tried disabling plugins, to no avail. I am running my production site on the same server (which is running 3.8.7) and the crop works fine." WorldWideWebb 1 Needs Patch 59331 Image optimizations fail to apply when using Timber Media 6.3 normal normal Future Release defect (bug) new 2023-09-12T17:46:01Z 2023-09-12T21:45:19Z "A user [https://mastodon.social/@grigs@front-end.social/111052735378137214 reported] hero images were getting `loading=lazy` on their site. After inquiring, I found they were using Timber for templating. It makes sense that the logic in `wp_get_loading_optimization_attributes()` wouldn't work properly in this case since it is tightly bound to WordPress's templating system(s). This may actually be an issue better fixed in Timber itself, but ideally WordPress core should be able to do the right thing with alternate templating systems (or even complex templates written in the WordPress way). Ultimately, this may require the use of output buffering and HTML Tag Processor as [https://github.com/WordPress/performance/issues/805 proposed] for a module in the Performance Lab plugin. See #59331 for adding output buffering for template renders with a filter for post-processing. Here's how to reproduce the issue with Timber: 1. Install and activate the [https://wordpress.org/plugins/timber-library/ Timber plugin] from WordPress.org. 2. Install and activate the [https://github.com/timber/starter-theme Timber Starter Theme] from GitHub (i.e. download the ZIP). 3. Add a new post with an initial large image or a featured image. 4. See the image has `loading=lazy` and is missing `fetchpriority=high` on the frontend. Initial image block: {{{
}}} Featured image markup: {{{ }}}" westonruter 1 Needs Patch 43152 Image remains in page after deleting from Media Library Media 4.9.2 normal normal Future Release defect (bug) new 2018-01-24T00:31:39Z 2019-04-15T15:21:13Z "Whilst editing your page, if you open the Media Library (using the Add Media button), and then delete an image that is currently added to the page, the image remains on the page after closing the pop-up window. To Reproduce: - Insert Image on Page - Click Add Media button to display the Media Library popup Window - Select the image that you previously inserted on the page and delete the image - Close the media pop-up window - Image that was deleted remains on page Here's a gif to show an example - https://cl.ly/1I2r3q3H301J I originally raised this as an [https://github.com/WordPress/gutenberg/issues/4610 issue with Gutenberg], but it was suggested to raise it here since it's also an issue with the classic editor." ahortin 1 Needs Patch 59740 Image scaling being applied inconsistently Media normal normal Awaiting Review defect (bug) new 2023-10-26T00:31:09Z 2023-10-26T16:33:56Z "My understanding was that images over 2560px would be scaled and a ""-scaled"" named version created. This doesn't happen every time, though. What exactly are the criteria? It doesn't happen for me on some larger images over 8000px wide. But does then happen on smaller 5000px images. I have created many test images of different sizes, and I cannot figure out what is causing this discrepancy. Some get scaled, and some do not. And it doesn't appear to be related to pixel dimension. If there is something more than the pixel dimension being used to determine whether a scaled version is created, where is the documentation to explain this?" whistlerdan Needs Patch 46470 Image srcset and sizes not output in classic block. Image attachment removed Media 5.1 normal normal Awaiting Review defect (bug) new 2019-03-12T03:16:28Z 2019-04-04T13:56:29Z "I installed the Gutenberg plugin on one of my sites, which was eventually updated to WP 5.0.3 and then WP 5.1. In all that time, most of the content remained unchanged. Looking at it now, most of the images in the library are unattached and embedded images produce the old/simple ""IMG"" tag, with no ""srcset"" or ""sizes"" attributes. I've tried attaching images in the media library. No change. I've tried setting $content_width. No change. Than only thing that makes any difference is editing the post/page, removing the embedded image and simply embedding it again. In the editor's HTML view, the respective ""IMG"" tag looks almost identical, except possibly the order of attributes. When converting tinyMCE content to blocks, WordPress should convert all of the required metadata, but seems like it doesn't." galbaras 2 Needs Patch 54839 Image upload after dirty filter requires filter change before it can be inserted to page Media normal normal Future Release defect (bug) new 2022-01-17T08:15:54Z 2024-02-05T20:14:53Z "Steps: 1. Open media library popup. 2. Change date filter. 3. Upload new image. 4. See uploaded image is not visible in list nor selectable. (Select button is disabled) 5. Change filter to match the new image uploaded, See image is visible. Expected behavior: 1. Uploaded image should be selectable if it matches filter (or should reset filter on tab change). Current behavior: 1. Uploaded image after dirty filter is not selectable." utkarshpatel 24 Needs Patch 59577 Images in block templates or patterns do not have loading optimization attributes flixos90 Media normal normal 6.6 defect (bug) assigned 2023-10-09T19:12:23Z 2024-03-13T15:41:15Z "This ticket is created as a break out from #59464: While that ticket was also initially pointing out the lack of loading optimization attributes in TT4, it has been primarily focused on the lack of the dimension attributes `width` and `height` from images that are hard-coded in the theme (e.g. in a `core/image` block within the theme's block templates, template parts, or patterns). As noted in https://core.trac.wordpress.org/ticket/59464#comment:16 however, there is another arguably more severe problem: Even if that bug was fixed for TT4, most of those images ''still'' wouldn't receive the loading optimization attributes. That is because TT4 includes most of its images directly in block templates, or in patterns, outside of template parts, post content, or widget content. Currently, any images that aren't covered by more specific contexts than `template` (which is for the overall block template) are not handled at all by `wp_filter_content_tags()`, impacting TT4 and likely several other block themes. This ticket is focused on that problem, trying to identify a solution to also consider images in the overall block template, while avoiding duplicate processing of images that were already processed with a more specific context." flixos90 10 Needs Patch 59764 Imagick squashes image for cropped size Media 6.3.3 normal normal Awaiting Review defect (bug) new 2023-10-29T12:02:00Z 2023-10-29T12:02:00Z "I have an image sub-size that uses crop instead of scale, and when the resulting image should upscale, GD does it OK-ish, Imagick is squashing the content. In both cases, the resulting image has the expected width and height, but the content in the image generated with Imagick is not squashed. This happens for a portrait ratio of the original image. How I replicate this: - sub-size: 1440x760 px + crop - original file: 1152x2048 px - using the `image_resize_dimensions` filter that returns the upscaled computation - upload file using GD - upload the same file using Imagick GD result - OK https://imgur.com/EQTesQT Imagick result - not OK https://imgur.com/G0hjmo0 " Iulia Cazan Needs Patch 55302 Improve media library upload progress indicator Media normal normal Awaiting Review defect (bug) new 2022-03-03T04:56:51Z 2022-07-06T16:47:18Z "When uploading in the media library, the progress bar shows the ''upload progress'' of the image. Once the image is fully uploaded WordPress creates the sub-sized images used to serve images on the front end. Depending on your configuration (theme, plugins, server), and the upload size this can take quite a while to complete. During sub-sized image creation, the progress bar for the image shows as ""full"". Finally, when the image sub size generation completes, the image changes from a gray box to the thumbnail of the uploaded image and if multiple images have been uploaded, the uploader moves on to the next image. Screencast attached. The problem here is that no progress is shown for the image regeneration phase. Uploading in the block editor works a bit differently: as soon as the image is dropped onto the editor to upload, a grayed out version of the image is shown with a spinner. The spinner spins during the upload and continues spinning during sub-size creation. Finally, when all sub sizes are created, the image becomes fully saturated and the spinner goes away. **Looks like this is changing to a progress bar though**, see https://github.com/WordPress/gutenberg/issues/13984 & https://github.com/WordPress/gutenberg/tree/trunk/packages/block-editor/src/components/media-upload-progress Two potential improvements we could make in the media library: 1. immediately show the thumbnail of the dropped image instead of the gray box 2. switch to a spinner entirely, or for the image regeneration phase or try to show actual progress. The challenge with showing progress is we don't know how long the request will take on the server." adamsilverstein 2 Needs Patch 47456 Improve the user interface to ensure correct usage of the image alt text joedolson* Media high normal Future Release defect (bug) accepted 2019-06-01T11:15:23Z 2024-03-12T11:15:33Z "Splitting this out from the [https://github.com/WordPress/gutenberg/issues/created_by/karlgroves WPCampus accessibility report issues on the Gutenberg GitHub], see https://github.com/WordPress/gutenberg/issues/15309 as part of the reported issue applies to the Media Views in core. Related: #41467 == Problem A common misconception is that the image alt text should always be a ""description of the image"". In most of the cases, this is misleading. Actually, the image alt text needs to describe the purpose of the image in its specific context. For more details, see the W3C Alt Text Decision Tree tutorial (https://www.w3.org/WAI/tutorials/images/decision-tree/). WordPress stores a ""default"" alt text in the media object. While storing a default value may help users when they build their content, it also promotes a misunderstanding of the purpose of the alt text. In the accessibility team, we think this is more an user interface problem rather than a data model problem. The user interface should ensure users clearly understand that alt attributes are context sensitive and that the ""default"" alt value needs to be changed (or even removed) based on the specific usage. == Data model problem: The alt text is not constant: it needs to describe the image purpose on a case by case basis. == User interface problem: The alt text from the media library is automatically assigned as the alt text within the post: this is not always correct. Actually, in most of the cases it produces wrong alt text. == Improvements to evaluate Credits: Some of the following points come from @carlseibert and @joedolson comments on #41467, and from the Gutenberg GitHub issue. 1. allow saving multiple alt attributes for a given media object: a default attribute and a set of alternates users can select from 2. have something in the editor UI that would let users know whether the alt text was filled, and what it says 3. modifications on the Media views side to differentiate between the alt text describing the image and the alt text for a specific usage, which might override the normal alt text without changing it 4. all linked images must have alternative text if the image is the sole content of the link, and the action should be blocked if this is not true 5. any guidance given should inform users that the text provided needs to inform the user of the link action 6. include a warning about linking directly to the image file: linking directly to images is inadvisable, because the resulting image view in the browser does not include alternate text 7. when the image is linked to the image file itself, the alt text can remain the normal alternative text for that image, with an appended indicator that the link is to view the image 8. worth considering plugins that add ""lightbox"" modals, sliders and the like often use the alt text value to add contextual text within their UI 9. images used to link to other resources should offer a field to add dedicated link text separate from the image's own description; in this case the alt text should be empty. Example markup (simplified):" afercia 47 Needs Patch 24888 In image editor, cropping scale gets applied off by 0.4% Media 3.5 normal normal defect (bug) new 2013-07-30T13:55:51Z 2019-06-04T20:05:48Z "When you scale the crop preview, the editor does not keep the right ratio. To reproduce this error: - Upload an image with 4608 x 3072 - On the crop feature, create an selection with 1680 x 560 - Hold shift and scale to fit all image width (4608px) - The height result was 1544px, that is wrong, the correct is 1536px. " diegomarangoni 4 Needs Patch 43930 Inaccurate width and height returned when using wp_get_attachment_image_src on the backend. Media 4.9.5 normal normal Awaiting Review defect (bug) new 2018-05-02T14:56:44Z 2018-05-08T18:30:23Z "I'm using wp_get_attachment_image_src on the backend to do image validation for a custom image selector meta box. When the image is large enough for the requested image size the source of the original image is returned but the dimensions are smaller. This is my call: {{{#!php 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 2 Needs Patch 36285 Inconsistency between the filters that can be used to override the default shortcode output for images/videos/audio Media normal normal Future Release defect (bug) new 2016-03-21T18:15:59Z 2017-07-27T16:13:03Z "Currently, in order to override the default output of the {{{caption}}}, {{{video}}} and {{{audio}}} shortcodes, you have to use the following respectively: {{{ apply_filters( 'img_caption_shortcode', '', $attr, $content ); apply_filters( 'wp_audio_shortcode_override', '', $attr, $content, $instance ); apply_filters( 'wp_video_shortcode_override', '', $attr, $content, $instance ); }}} Imho, there should be some consistency between these regarding the following: * hook name. * arguments passed to the filtering function. Also, it would be very useful if the attachment ID was also passed to the filtering function. Right now, the attachment ID of images can be obtained from {{{$attr['id']}}}, which gives {{{attachment_IDNUMBER}}}, while the ID of video and audio attachments can only be obtained by using the media file URL found in the {{{$attr}}} array and directly querying the database in order to get the post ID based on the {{{guid}}} field. " gnotaras 4 Needs Patch 37632 Incorrect Image Previews for SVG Media normal normal Awaiting Review defect (bug) new 2016-08-11T01:52:35Z 2021-06-03T15:02:06Z "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 'ids' ) ); foreach ( $posts as $post_id ) : $thumb = get_the_post_thumbnail( $post_id ); endforeach; }}} The **update_post_thumbnail_cache()** used in **get_the_post_thumbnail()** assumes **$wp_query->posts** always contains an array of **$posts objects**, while it can be an array of $posts IDs. To prevent the warning it would be appropriate to check that $post is actually a post object. The patched code: {{{#!php posts as $post ) { $post = get_post( $post ); // Add this or check if is_integer( $post ) $id = get_post_thumbnail_id( $post->ID ); }}} Thanks Kind Regards" Xendo Needs Patch 22869 Large Image Uploads Don't Error Well Media 3.4 normal normal defect (bug) assigned 2012-12-12T05:10:10Z 2019-06-04T20:04:18Z "Related to #22849 but not restricted to the new uploader. Happens on 3.4 and 3.5 in different ways. To Reproduce: Upload https://objects.dreamhost.com/ipstenu-images/sunset_2_22_11_by_kenshinkyo-d3a6slk.jpeg to your WP install in the media-new.php page Note: Image is 12600x9450 and 4.9MB Expected Outcomes: * Shared hosted without a lot of memory: Failure, not enough memory, no image uploaded. * VPS/Dedicated with tons of memory: Success Actual outcomes: * VPS as expected. * Shared not so much. You get the errors as expected however the failure is not correct. The image actually does upload, contrary to the errors, however no thumbnails are made, which then causes a memory problem as the full size image shows when you go to any media library view (in lieu of actual thumbnails). This crashed Chrome (as @markjaquith saw when we were testing Monday night) until I deleted the large images. The actual issue is on thumbnail creation, so the best 'fix' I can think of is if on failed thumbnail gen, it nukes the master image, but I don't know if that would make sense since some of the thumbnail gen might be on extra image sizes set by themes/plugins. Then again, do you want those if all fail? " Ipstenu 6 Needs Patch 55289 Large image fails to create a `scaled` version and subsizes Media 5.9.1 normal normal Awaiting Review defect (bug) new 2022-03-01T21:41:41Z 2022-03-03T02:27:17Z "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 Needs Patch 58979 "Layout breaking while editing an Image from ""Image Details Edit"" screen." Media 6.3 normal normal Awaiting Review defect (bug) new 2023-08-04T04:57:06Z 2023-08-07T16:13:03Z "== Bug Report === Description The layout is breaking while editing an Image from ""Image Details Edit"" screen. === Environment - WordPress: 6.3-RC3 - PHP: 7.4.12 - Server: Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.4.12 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 - Database: mysqli (Server: 5.7.32 / Client: mysqlnd 7.4.12) - Browser: Chrome 114.0.0.0 (macOS) - Theme: Twenty Twenty-Three 1.2 - MU-Plugins: None activated - Plugins: * WordPress Beta Tester 3.5.2 === Steps to Reproduce 1. Open Media -> Library 2. Select an Image 3. Click the ""Edit Image"" button below the Image 4. Click ""Crop Image"". Crop settings are visible to the right of the Image 5. Now Click ""Scale Image"". Layout breaks. x. 🐞 Bug occurs. === Expected Results 1. ✅ Layout Should not break. At the very least, it should be consistent for scale and crop. === Actual Results 1. ❌ Layout breaks and lack of consistency. I am attaching Screenshots for reference." deepakvijayan 2 Needs Patch 49966 Load smaller images when in a gallery Media normal normal Awaiting Review 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: `` 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 3 Needs Patch 48992 MP3 artwork issue in WordPress 5.3.1 Media 5.3.1 normal normal Awaiting Review defect (bug) new 2019-12-15T21:01:49Z 2020-04-12T21:13:27Z "Hello! I've had an issue with WordPress ever since I installed it where MP3 files would lose their artwork, which split into a separate file. This might sound familiar to some, as it was the core of the following closed issues: #40085 / #40075 The problem: This has never stopped happening for me. I've disabled add-ons related to the uploader and media library to no avail once I found out that this was apparently a solved issue. I have a test-site which I am going to try disabling all add-ons. Any other" mattgcn 5 Needs Patch 29904 Make images viewable while editing a gallery Media normal normal defect (bug) new 2014-10-09T14:37:07Z 2019-06-04T20:09:33Z "Ordering images in a gallery can be very difficult when you are limited to thumbnails. Users must switch back and forth between their post and their camera roll to identify each image and make sure each is in the proper place. Click/tap to view an image is a common pattern that is missing here. Some use it elsewhere to reassure themselves that they uploaded the right images and put them in the right order. First reported in: https://make.wordpress.org/flow/2014/06/02/kibble-viewing-images-while-editing-a-gallery/" obenland 2 Needs Patch 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 normal Awaiting Review defect (bug) new 2019-11-06T15:52:03Z 2020-01-16T15:14:49Z "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 1 Needs Patch 60098 Media Library Image Upload Issue Media 6.1 normal normal Awaiting Review defect (bug) new 2023-12-18T20:16:07Z 2024-02-15T16:26:31Z "I hope this message finds you well. I am writing to report an issue encountered on my website, https://sanaalnaseemcs.com/. When attempting to upload images to the WordPress Media Library, the upload is successful, but the thumbnail is not generated. This makes it challenging to select and use the uploaded images appropriately. Steps to Reproduce: Log in to the WordPress admin panel. Navigate to ""Media"" and then ""Add New."" Choose an image file for upload. Observe that the image uploads successfully, but the thumbnail is not generated. Expected Result: The image should upload successfully, and a thumbnail should be generated for easy identification in the Media Library. Actual Result: The image uploads, but the thumbnail is not generated, causing difficulty in identifying and utilizing the uploaded image. Additional Information: The issue seems to be inconsistent. It is not limited to specific file types or sizes. Various browsers and operating systems are affected. I appreciate your prompt attention to this matter and look forward to a resolution. If you need any additional information." gesabeja Needs Patch 58741 Media Library Popup Showing Blank Popup on Window Resize Below Mobile Viewport Media 6.2.2 normal normal Awaiting Review defect (bug) new 2023-07-06T18:18:08Z 2023-07-06T18:18:08Z "== 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 Needs Patch 34467 Media Library after removing bulk removing all images on page Media 4.3.1 normal normal defect (bug) new 2015-10-27T15:13:52Z 2019-06-04T20:17:20Z In the Media Library if you go to say the last page and bulk delete all the images, you will be 'stuck' on that page - pagination is removed despite there still being previous pages in the library that I could be brought back to. sorensenss 1 Needs Patch 30243 Media Library cached, does not update when other users add images Media 3.5 normal normal defect (bug) new 2014-11-03T22:28:26Z 2019-06-04T20:09:47Z "When you open a post or page in the editor, and you click Add New, the media library pops up a grid with the n most recent images. If you upload something new, it's added to the list. However, if a colleague uploads something new (via another computer or browser), then you don't see the image the colleague uploaded in the media library — unless you search for it. " paulschreiber 1 Needs Patch 52857 Media Library defaults to Medium 300x Media 5.7 normal normal Awaiting Review defect (bug) new 2021-03-18T20:44:58Z 2021-11-29T15:17:19Z "With WordPress 5.7 the default when Add media insert image always defaults to Medium 300px wide. Why does WordPress 5.7 not remember the preferred default or last used? Every time I upload an image I have to remember to check & change this setting. It was never a problem before 5.7" subbasshead 7 Needs Patch 41349 Media Library insert from URL doesn't give a message when a URL fails check Media normal normal Awaiting Review defect (bug) new 2017-07-17T20:32:53Z 2020-12-03T18:39:48Z "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 3 Needs Patch 23127 Media Upload hangs on Crunching on too big image sizes. Media 2.7 normal normal Future Release defect (bug) new 2013-01-05T22:56:14Z 2023-12-26T12:46:32Z "If the uploaded file is too big for the Max Memory Limit Setting, then the upload is executed, but the image isn't resized to the set image sizes and the frontend gets stuck on ""Crunching"". I tracked the error down into the core and found out, that the main problem is in the GD library class ( wp-includes/class-wp-image-editor-gd.php ) in the load() function. Everything works fine before line 91: {{{ $this->image = @imagecreatefromstring( file_get_contents( $this->file ) ); }}} So imagecreatefromstring fails because of a lack of memory. But as a chain reaction everything else fails afterwards. The library is not loaded and sent back, and so on. As a result no id is sent back to the frontend and the Loader hangs. Maybe there should be any error catching and sending back before this GD function, that the frontend receives any error messages and that the upload is deleted in case of error. Just my thoughts: As this error is a Fatal one, you can`t use any Exception stuff, cause there will not be any memory left to execute it. Maybe some checking if the id is present before sending the image back to crunching?" clubdesign 24 Needs Patch 43658 Media attachment filter drop-down mime types in grid mode is not properly filtered by available mime types Media 4.9.4 normal normal Future Release defect (bug) assigned 2018-03-29T07:07:42Z 2023-10-18T16:51:19Z "In '''Gird''' mode media attachment filter is not properly filtered by available mime types, it shows all mime types by default via - {{{ get_post_mime_types() }}} But in '''List mode''' its already filtered by checking {{{ if ( ! wp_match_mime_types( $mime_type, $avail_post_mime_types ) ) { continue; } }}} " itzmekhokan 18 Needs Patch 43641 Media controls in the media grid are too wide Media 4.9 normal normal Awaiting Review defect (bug) new 2018-03-27T11:14:37Z 2018-10-02T16:56:31Z "The audio and video player that's shown when viewing an individual media item in the media grid displays a control bar which is too wide for its container. Tested in latest Chrome, Firefox, and Safari on macOS." johnbillion 2 Needs Patch 40129 Media deleting selected on mobile does not work Media normal normal Awaiting Review defect (bug) new 2017-03-12T12:47:13Z 2017-03-16T19:42:35Z "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 1 Needs Patch 40121 Media edit screen on mobile has visual issues Media normal normal Awaiting Review 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 8 Needs Patch 58594 Media file changes no longer trigger updated/modified statuses. Media 6.2.2 normal normal Awaiting Review defect (bug) new 2023-06-21T19:54:38Z 2023-06-21T19:54:38Z "In older versions of WP, when media files like PDFs were updated it would trigger an event that could be listened to and acted upon by plugins. In the current version of WP (6.2.2) if a user changes the uploaded date or otherwise modifies a media file's properties, the change is no longer picked up by audit trail plugins like WP Activity Log, nor is it seen as an update to a ""post"". Plugins that have ""Clear cache whenever a post or page is updated"" functionality are now broken when it comes to media file changes. For instance, if a site is using Sucuri's WAF and caching plugin as well as the Enable Media Replace plugin, when a user replaces a media file with a new one it doesn't trigger Sucuri's cache clearing functionality anymore. I have reviewed both Enable Media Replace and Sucuri's plugins to make sure neither of them are at fault for breaking this functionality. Additionally, neither Sucuri nor WP Activity Log pick up the changes to display in their activity logs. I do not know if media file post types were explicitly excluded from using the process pages and posts use to broadcast changes, but this new behavior is only present in the most recent version(s) of WP and is a bug if this wasn't a planned change." sbeaney Needs Patch 41352 Media library - applying image and date filter redirects to homepage Media 4.8 normal normal Awaiting Review 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 2 Needs Patch 57821 Media library badly autopopulates image caption if Windows image metadata exists Media 6.1.1 normal normal Awaiting Review defect (bug) new 2023-02-28T13:01:38Z 2023-03-11T08:05:36Z "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 3 Needs Patch 40593 Media library replace image popup not displaying completely below 641px width Media 4.7.4 normal normal Awaiting Review defect (bug) new 2017-04-28T10:04:38Z 2018-10-02T14:31:15Z "When trying to Replace Media with screen width below 641px the right panel of the popup gets hidden and there is no way to update image information like description and title. Tested in Chrome (Version 58.0.3029.81 64-bit) and Firefox (53.0 - 64 bit). Screenshots attached." subrataemfluence 1 Needs Patch 59742 Media library should display the number of pages/posts/urls a particular media file is being used in. Media normal normal Awaiting Review defect (bug) new 2023-10-26T08:19:37Z 2024-03-10T12:50:48Z "For managing media files, WordPress requires you to navigate from the Media Library. However, selecting a file doesn't offer any information on the published pages/posts that are actively using the file. This information is necessary to effectively manage storage and replacing media without losing essential files or causing dependency issues. Selecting a file from the media library should ideally, at minimum show the number of published pages/posts it's in use. Best case would be to make the number a clickable item, that shows a list of all URLs using the file." rsiddiqe 5 Needs Patch 50200 Media library thumbnails broken for certain aspect ratio images in Firefox Media 5.4.1 normal normal Awaiting Review defect (bug) new 2020-05-18T08:11:50Z 2020-05-21T14:50:47Z "Recently a client reached out to me about broken images in WordPress dashboard. Turns out media library can't load thumbnails for certain aspect ratio images. The images are generated though and exist on the server (I looked up the image source with dev tools and checked if the image actually was generated and yes there it was). So I made a few tests on live and test environments. These are the image sizes that cause the thumbnails to break: 236x591 237x591 238x591 239x591 Both 235x591 and 240x591 work fine as expected. My client was uploading images using the size 236x591. Now the issue is not only with those pixel sizes as I tried doubling the image size as well. Doubling 237x591 to 474x1182 also breaks the thumbnail so it's more like aspect ratio bug than just the image size. The images load fine on frontend but there is a problem in the admin panel when editing posts and adding these media files to a post (only shows white box and doesn't load image). I have tried this on fresh install of WordPress with Twenty Twenty and no plugins installed. Bug happens on stable 5.4.1 as well as alpha version of 5.4.2 and 5.5 All of my tests were done through HTTPS protocol. Happens on PHP version 7.2 and 7.3 Bug appears on Firefox version 76 but it does not appear on Chrome version 81 or Microsoft Edge version 44 I have not tested any other aspect ratios." jussitrival 1 Needs Patch 45886 Media modal .edit-attachment link opens in new tab rather than in modal antpb Media 5.0.2 normal normal Future Release defect (bug) assigned 2019-01-09T19:52:31Z 2020-09-05T12:12:37Z "Using the `wp.media` JavaScript API creates a link ""Edit Image"" (`.edit-attachment`) in the right sidebar of the Media modal. Expected behavior would be to open the ""Edit Image"" modal, as does the Featured Image media modal. However, the custom Media modal does not behave consistently with the Featured Image modal - the `.edit-attachment` link opens in a new tab instead of the modal - which is both unintuitive and frustrating to end-users. The console does not display any warnings or errors. Custom media modal as documented: [https://codex.wordpress.org/Javascript_Reference/wp.media] As a side note, I have noticed similar behavior in the WordPress Media page: Media (Admin Sidebar) -> Click a picture -> Edit more Details This also fails to open the modal - and opens in the current page instead. " statelessstudio 7 Needs Patch 50273 Media modal uses incorrect 'checkbox' role for list items joedolson Media normal normal Future Release defect (bug) assigned 2020-05-28T04:40:11Z 2021-01-26T16:37:37Z "The media modal uses the role of 'checkbox' on list items (`
  • `) when selecting media (e.g. to add to a gallery.) The specification of a role here is overriding the list item element's implicit `listitem` role. The list item elements in this case should ideally have no `role` specified. The element with a checkbox role should be a child element of the list item and other associated attributes like `aria-checked` should also be moved to that element. For context, this issue was caught by the automated Axe tests when writing an end-to-end test for the block editor: https://github.com/WordPress/gutenberg/pull/22659#discussion_r431036627 To reproduce: 1. Ensure some images are uploaded to the media library 2. Add a gallery block to a post 3. Click the 'Media Library' button 4. Open the browser dev tools and inspect the HTML of an image 5. Observe that the list item element for the image has the role of 'checkbox': {{{
  • }}} " talldanwp 11 Needs Patch 39358 Media search speed has been dramatically reduced joemcgill Media 4.7 normal normal Future Release defect (bug) reopened 2016-12-21T08:07:18Z 2023-10-18T16:48:40Z "In the ajax-actions.php file there is function called wp_ajax_query_attachments. This function is responsible for searching images in the media library. We see that in Wordpress 4.7, someone added a new filter to this function: {{{ // Filter query clauses to include filenames. if ( isset( $query['s'] ) ) { add_filter( 'posts_clauses', '_filter_query_attachment_filenames' ); } }}} This filter is a performance killer and takes forever to output a result in large databases. We have tested this with db that has over 500000 posts." merts 20 Needs Patch 54069 "Media title change in ""Attachment Details"" dialog opened via Media Library Grid View is not informing API/plugins properly" Media normal normal Awaiting Review defect (bug) new 2021-09-03T10:52:50Z 2023-02-03T23:08:50Z "**Problem**: If WordPress offers different UIs to edit media titles, then all those should properly inform the respective plugin/event APIs about that change. It seems there is a discrepancy, in one place it works, in the other not. See the reproductions. **Environment / How I discovered the bug** I noticed this bug when using the plugin [https://wordpress.org/plugins/media-file-renamer/ Media File Renamer] 5.2.4 on WordPress 5.8. What I observed is very likely a bug in WordPress and not from the plugin according to the [https://wordpress.org/support/topic/no-file-renaming-if-title-changed-via-media-library-thumbview-edit-popup/#post-14834202 support reply of the plugin developer @TigrouMeow]: > Unfortunately, I think the problem is on the Media Library ThumbView Edit Popup side [remark: The documentation calls this ""Media grid view"" and ""Attachment details dialog"" respectively]. Media File Renamer renames files based on a title change depending on specific actions in WordPress, and those actions can be also fired by other plugins. Since this plugin is mimicking the Edit Media Page of WP, it should also includes the actions. Otherwise, that will break not only the process of my plugin, but also many more. **✅ Reproduction I** 1) Media Library in [https://wordpress.org/support/article/media-library-screen/#media-library-list-view List View] 2) Hover over a media post > Click “Edit” 3) You get to “Edit Media” 4) Change the “title” 4) Be sure that the “Renamer” widget has the file name not locked 5) In the “Save” widget click “Update” * Outcome as expected: The filename is changed accordingly. * The slug is also changed from the filename change, due to the [https://wordpress.org/plugins/media-file-renamer/ Media File Renamer] plugin config: * Advanced > Fields Syncing > Slug/Permalink: `[√] Sync with filename` **❌ Reproduction II** 1) Media Library in [https://wordpress.org/support/article/media-library-screen/#media-library-grid-view Grid View] 2) Click on a media thumbnail 3) A dialog/popup opens, entitled [https://wordpress.org/support/article/media-library-screen/#attachment-details Attachment details] 4) Change the “title” 5) Optional step for observation purposes: Click into the next field, or TAB into the next field. You see a saving indicator. 6) Close the popup. (If you skipped 5, you very briefly see the saving indicator while the popup closes) * **Actual**: The title is changed, the filename not! * **Expected**: Whichever of [https://wordpress.org/plugins/media-file-renamer/ Media File Renamer]'s sync settings are active (title, filename, slug) kick in here in this editing method as well." abitofmind 3 Needs Patch 20057 Media upload for multi-webserver setups introduces a nasty race condition that could corrupt uploaded files Media 3.3.1 normal normal defect (bug) new 2012-02-17T05:46:40Z 2020-02-26T20:25:24Z "I am in the process of scaling a Wordpress blog with several million monthly pageviews, and I have designed a plan to scale it in the highest availability manner possible. '''The setup''' Each web server that hosts HTML/PHP, static files, and uploads will be replicated via rsync from time to time and sitting behind a load balancer. Rsync will run every 5min to 1 hour, and to mitigate the 404s in the uploads, I put together an nginx setup that automatically tries a different upstream server in its configuration when it encounters 404s. This allows any web server to go down at any time, and the system to run as if nothing happened. This also gives me freedom for rsyncing periodically rather than immediately and avoids 404s completely. '''The problem''' Now, the bug (note, I'm using Windows Live Writer which automatically names uploads image.png, but I could see this potentially happen without WLW too since WP seems to automatically name files on disk in case of collisions). Let's say we have server A and B. The site name is foo.com. Let's also say B is out of date by an hour and a bunch of files got uploaded to A that aren't on B. Say, A has image.png and image2.png and B has only image.png. Now, the issue is that if the load balancer directs the new post uploader (the new post contains a single image) to server B, the file that it will create on disk will be named image2.png rather than image3.png. So now B will have a file that's different from A's but is named the same way. The main problem is that the file name is given based on what's available on the disk rather than according to the database. It's easy for this race condition (between rsyncs) to destroy the integrity of the files. Furthermore, and I've experienced this first hand), if you delete the attachment from the Wordpress UI, it could actually delete the wrong file from the wrong server as a result. Seeing this, I can't continue with my scaling plan until file names are assigned by the database rather than the file system or I figure out how to mitigate that. I don't want to force all writers to use only server A for uploads using its direct IP, as I want HA (high availability). Thank you." archon810 20 Needs Patch 49431 Media uploader window leaves behind orphan button element in Block Editor Media 5.0 normal normal Awaiting Review defect (bug) new 2020-02-14T07:13:52Z 2022-05-06T02:59:54Z "This issue was originally reported in the Gutenberg Github repo - https://github.com/WordPress/gutenberg/issues/9184. Reporting this here as well—currently it looks like a fix might need to be applied in core, but also possibly in both Gutenberg and core. ---- **Describe the bug** Whenever you focus an Image Block or Gallery Block, a button element is created just before the closing body tag. Then, after blurring, the button is still there. This can be performed indefinitely times, leading to a massive amount of orphan button elements ---- **Steps to reproduce** 1. Open up the block editor 2. Open up dev tools and inspect the closing body tag 3. In the editor sidebar, switch between the document and the block tab and back again 4. Check the dev tools, observe that button(s) are appended to the dom every time the document tab is opened Expected: No buttons are appended " talldanwp 6 Needs Patch 45021 Media: Gallery modal has wrong focus and image detail joedolson* Media 6.1.1 normal normal Future Release defect (bug) accepted 2018-10-02T01:06:04Z 2024-02-05T20:21:21Z "When you first click on Add Media from the post editor, the existing images are shown, and nothing has specific ""focus"" (blue outline). Clicking on Create Gallery first, the Search box is focused. Clicking on images first, and then Create Gallery, the last image selected is focused. Once images are selected, clicking on the Create New Gallery button, the Cancel Gallery link is focused. On the Edit Gallery page, before clicking on an image, the sidebar shows Gallery Settings for link, columns, size. Once an image is selected, there is no way to unselect it, and although the Gallery settings remain the same, it is unclear whether this applies to the image selected or the entire gallery. Regardless, the image details are shown in the sidebar. However, if you Cancel Gallery and choose different images, when you get back to the Edit Gallery page, it will still be showing the image details for the old image, not any of the newly chosen ones (but none of the images are focused when you get there). So the Cancel didn't actually cancel. If you close the modal without inserting the gallery into the post, and then click on Add Media again, it will show the values from the last attempt. This is unexpected, and unwanted if you had selected a lot of images and wanted to start over. There ''is'' a Clear link, but it is small and at the bottom. The last selected image is focused, but not after you click Create Gallery (the Cancel Gallery link is), so the image detail is the wrong one. If you go ahead and insert the gallery, and click Add Media again, then nothing is remembered from the previous gallery. While in Edit Gallery, if you had selected two images and click on Add to Gallery, you can select more and click Add, they will all be shown, with one image focused and showing the correct image detail. Clicking Cancel Gallery at this point returns to the media list, but with the original two selected and perhaps a different image focused than the previous list. The added ones are forgotten." joyously 31 Needs Patch 53663 Media: fix and improve WebP features detection Media normal normal Future Release defect (bug) new 2021-07-14T23:17:35Z 2022-12-01T00:25:44Z "Follow up from #53653. Looking at https://developers.google.com/speed/webp/docs/riff_container, the ""extended"" WebP file format `VP8X` may include a lossy or lossless ""bitstream"" chunk (`VP8 ` or `VP8L`) and few optional chunks: `ALPH`, `EXIF`, `ICCP`, `ANIM`, etc. Ideally the `wp_get_webp_info()` function should be extended to detect these features. " azaozz 9 Needs Patch 48436 Media: fix the layout of Gallery settings in the media modal dialog Media 3.9 normal normal Awaiting Review defect (bug) assigned 2019-10-26T12:53:10Z 2020-11-01T11:47:20Z "In WordPress 3.8, the gallery settings in the media modal right sidebar were well aligned: [[Image(http://cldup.com/eEOQrDgtO6.png)]] The alignment broke pretty soon in WordPress 3.9, see [27487] / #26631. The CSS was changed to adjust the styling for the audio / video playlists settings but it broke the gallery details settings: Screenshot from WordPress 3.9: [[Image(http://cldup.com/EP_dN25J_v.png)]] That's because the playlist settings are not intended to be aligned in two ""columns"": [[Image(http://cldup.com/9djN13Naos.png)]] The gallery settings are fully operable, so this is just a minor visual glitch. Regardless, the layout is broken since March 2014 and still needs a fix on current trunk, even after the many changes to the media modal form controls markup and CSS, see [45499] / #47122. [[Image(http://cldup.com/XfzKug_020.png)]] " afercia 4 Needs Patch 56439 Missing Title Attribute at HTML TAG FIGURE Media 6.0.1 normal normal Awaiting Review defect (bug) new 2022-08-25T14:30:58Z 2022-08-25T21:46:31Z "Hi, i like to parse my website https://draeger-it.blog an grap all videos from pages. I'm missing the pissible attribute title at TAG FIGURE like below: {{{
    }}} At my backend i can fill this fields but this don't would be rendered: {{{
    Hier steht eine Beschriftung.
    }}} 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 1 Needs Patch 40126 Mobile has two media editing experiences Media normal normal Awaiting Review defect (bug) new 2017-03-12T12:38:39Z 2023-10-25T05:04:49Z "Seems like two editing experiences on mobile One: Upload an image, click edit once uploaded. See this in new tab: [[Image(https://cldup.com/TblPv9TBJT.PNG, 50%)]] Two: Click ending on existing image, don't get new tab and get double pane weirdness. See this: [[Image(https://cldup.com/eK7TcVfqi4.PNG, 50%)]] We should have one experience as it feels not sensible having two. " karmatosed 3 Needs Patch 17255 More statuses (like draft and/or private) for media files Media 3.1 normal normal Future Release defect (bug) new 2011-04-27T11:48:11Z 2023-10-25T15:39:32Z "It's weird that media files don't carry any concept of pub status. If someone wants to upload files (either attached to a post or directly into the library), they should be able to keep them hidden via 'draft' status just like any other content. The fact that people can link to things that haven't been explicitly published is bizarre. Media files should have a pub status. If uploaded as post attachment, should inherit publish on post publish. Would then need a workflow for if a post becomes unpublished containing media, as it then lives in library for use by other content, so would need to ask if user wants to unpub media files as well. This would be a big shift, so would make most sense as part of a media redux with a long notice period for plugin and theme authors. " jane 24 Needs Patch 38479 Need to check utf8_encode() is available before use. Media 4.4 normal normal Future Release defect (bug) new 2016-10-25T04:38:14Z 2017-08-10T18:05:17Z "The DOM/XML extension isn't necessarily installed on some distros so use of `utf8_encode()` should be checked for availability first. It's not checked in `wp_read_image_metadata()` in ""wp-admin/includes/image.php"" (where I encountered its lack on a Ubuntu 16.04 PHP 7 server), introduced in [36429] and [36430], nor in `wxr_cdata()` in ""wp-admin/includes/export.php"", introduced in the distant past. (Also it does ISO-8859-1 not Windows-1252 so more than likely not that good in the image situation anyway.)" gitlost 3 Needs Patch 50667 New attachment size is created even the source is smaller Media 5.4.2 normal normal Awaiting Review defect (bug) new 2020-07-15T09:42:55Z 2022-10-19T20:37:30Z "When you upload a very optimized image sometimes the created attachment size's file size is larger than the source image. When a new size is created its filesize should be checked whether it's really smaller or not. Now it just allocates extra space and uses extra bandwidth. Sample image: [https://ibb.co/x8LhGC0]" adam.radocz 2 Needs Patch 58289 No support for AVIF with HDR gain maps Media normal normal Awaiting Review 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 Needs Patch 58288 No support for JPG with HDR gain maps Media normal normal Awaiting Review defect (bug) new 2023-05-10T17:36:45Z 2023-09-29T19:43:09Z "HDR (""high dynamic range"") images offer vastly improved image quality on supporting hardware (see here for more details: ). When displaying an HDR image on an SDR (standard dynamic range) screen, the image needs to be ""tone mapped"" to fit the reduced dynamic range of the screen. That can provide mediocre results, and a separate SDR version of the image will usually look better on an SDR monitor. Supplying two versions of the same image is complicated, and that is the reason for the new ""gain map"" proposal. Adobe has published the gain map specification (and test images) at https://helpx.adobe.com/camera-raw/using/gain-map.html#resources and Chrome Canary v115 already supports proper rendering of the JPG gain map (be sure to view on a true HDR display, such as the M1 / M2 MacBook Pro). JPG gain maps (with an SDR base image) offer an ideal way to support HDR as we all transition to HDR over time. They will display in an ideal way on both an SDR or an HDR display. And they will safely display as SDR in browsers which do not understand gain maps. When a JPG with a gain map is uploaded to the WordPress media library, it is converted to an SDR JPG. The gain map is lost and therefore the image will no longer properly display as HDR when viewed on HDR hardware using a browser which supports HDR gain maps (such as Chrome)." gregbenz 1 Needs Patch 36722 "No way to access media ""Attachment Display Settings"" using wp.media" Media 4.5.1 normal normal defect (bug) new 2016-04-29T15:55:47Z 2020-03-12T05:51:47Z "I am using custom wp.media request to get WP Media uploader iframe on front end. Added scripts, styles and media: {{{ wp_enqueue_script('jquery'); wp_enqueue_media(); wp_enqueue_style( 'wp-admin' ); }}} then I am using JS to open the Media iframe: {{{ var custom_uploader; jQuery(document).ready(function($){ if (custom_uploader) {custom_uploader.open();return;} var parent_container = parent.document.body; custom_uploader = wp.media.frames.file_frame = wp.media({ frame: 'post', state: 'insert', title: 'Choose Image', library : {type:'image'}, button: {text: 'Choose Image'}, multiple: false }); custom_uploader.on('insert',function(){ var attachment = custom_uploader.state().get('selection').first().toJSON(); console.log( attachment ); }); custom_uploader.open(); }); }}} after selecting needed image, link and size I get the result: {{{ {""id"":2182,""title"":""WordPress"",""filename"":""WordPress.jpg"",""url"":""http://localhost:8080/mgwebthemes.com/uploads/2015/05/WordPress.jpg"",""link"":""http://localhost:8080/mgwebthemes.com/wordpress/"",""alt"":"""",""author"":""1"",""description"":"""",""caption"":"""",""name"":""WordPress"",""status"":""inherit"",""uploadedTo"":2166,""date"":""2015-05-13T09:09:47.000Z"",""modified"":""2015-05-13T09:09:47.000Z"",""menuOrder"":0,""mime"":""image/jpeg"",""type"":""image"",""subtype"":""jpeg"",""icon"":""http://localhost:8080/mgwebthemes.com/wp-includes/images/media/default.png"",""dateFormatted"":""13/05/2015"",""nonces"":{""update"":""2d7619f512"",""delete"":""725c6d8639"",""edit"":""709844b592""},""editLink"":""http://localhost:8080/mgwebthemes.com/wp-admin/post.php?post=2182&action=edit"",""meta"":false,""authorName"":""admin"",""uploadedToLink"":""http://localhost:8080/mgwebthemes.com/wp-admin/post.php?post=2166&action=edit"",""uploadedToTitle"":""Test"",""filesizeInBytes"":8990,""filesizeHumanReadable"":""9 kB"",""sizes"":{""thumbnail"":{""height"":150,""width"":150,""url"":""http://localhost:8080/mgwebthemes.com/uploads/2015/05/WordPress-150x150.jpg"",""orientation"":""landscape""},""full"":{""url"":""http://localhost:8080/mgwebthemes.com/uploads/2015/05/WordPress.jpg"",""height"":249,""width"":201,""orientation"":""portrait""}},""height"":249,""width"":201,""orientation"":""portrait"",...} }}} it does not contain any Attachment Display Settings options." chattyboy 2 Needs Patch 40127 On mobile media deleting message formatting issues Media normal normal Future Release defect (bug) new 2017-03-12T12:42:20Z 2023-09-05T15:21:34Z "Formatting leads to widow in delete media image on mobile. Seen tested on iPhone 7 plus. [[Image(https://cldup.com/91KH54-k3y.PNG, 50%)]]" karmatosed 2 Needs Patch 45813 PDF preview images are not generated Media normal normal Future Release defect (bug) new 2019-01-02T20:33:24Z 2023-07-02T13:39:07Z "I discovered this when the test suite started failing in my local environment using VVV. Recently, ImageMagick updated it's `policy.xml` file to [https://git.launchpad.net/ubuntu/+source/imagemagick/tree/debian/patches/300-disable-ghostscript-formats.patch?id=be94d865776b391a60323603b1cc002213c37c39 remove rights for PDF files from Ghostscript]. After this change, a `WP_Error` is [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/image.php#L264 returned by `wp_get_image_editor()` when a PDF file is passed]. This prevents preview images from being generated and causes the test failures due to lack of metadata. The PDF tests check that the selected image editor supports PDF images using `wp_image_editor_supports()` before running, but this does not seem to be catching this change (`Imagick::queryFormats()` indicates support for PDFs even when rights are removed). This can be fixed bychanging the `rights` attribute for PDFs to `read|write`, or commenting out that line in the `/etc/ImageMagick/policy.xml` file. More info: https://alexvanderbist.com/posts/2018/fixing-imagick-error-unauthorized " desrosj 13 Needs Patch 45982 PDF thumbnails have a default black background Media 5.0.3 normal normal Awaiting Review 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 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 23 Needs Patch 41516 PNG Image Saturation Loss on Resize Media 4.8 normal normal Awaiting Review defect (bug) new 2017-08-01T16:08:23Z 2017-08-04T04:16:39Z "I work with PNG images made with grey colors. And the colors change because of wordpres, not the original image, but all the new sizes. By default make the colors much darker but sometimes, also is weird: [[Image(http://i.imgur.com/L3Sk1Rg.png)]] Left and right are the same image. Some times handle even different for the same K=70 color. ( I export with Adobe illustrator to sRGB )" colomet 3 Needs Patch 42128 PNGs lose color space information when resized Media normal normal Awaiting Review 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 2 Needs Patch 35077 Post featured image: image attributes not updated on the fly Media 4.4 normal normal defect (bug) new 2015-12-14T15:31:40Z 2019-06-04T20:19:41Z "Noticed while investigating on #35076. When a post has a featured image, users can click the image to set a new featured image or edit the current one. When editing the current image attributes, changes are not reflected live in the UI after the image is inserted again. To reproduce: - edit a post with a featured image - click on the featured image - in the media dialog, update the current featured image alt attribute - click the button ""Set featured image"" - check the featured image in your console inspector: the alt attribute is not updated Looks like the AJAX action `wp_ajax_set_post_thumbnail` takes into account only the ""set"" and ""delete"" cases, there's nothing to handle an update. Additionally, when removing a featured image '''and''' there's some error and the response is `0`, `WPRemoveThumbnail` should trigger an alert with a message but `setPostThumbnailL10n` is undefined (the related `set-post-thumbnail` script is not enqueued at all, I'm guessing it was used in the old media uploader)." afercia 1 Needs Patch 42851 Problem with video height since 4.9 Media 4.9.1 normal normal Awaiting Review defect (bug) new 2017-12-09T12:02:55Z 2018-01-02T23:19:13Z "I have a video on a page and after updating to WP 4.9.1 the following element gets a height of 0px:
    The result is that the video area shows just the controls and nothing more (see attached screenshot on the left) . I can fix this with workarounds via CSS like styling mejs-container and mejs-mediaelement (see attached screenshot on the rigth) but that's a hassle for the responsive versions. Anyone elese facing these problems? (P.S.: I'm not an expert AND a German, so forgive me for dumb questions and bad writing …) " vhcrossmedia 1 Needs Patch 41468 "Provide contextual info about what ""attached"" and ""detached"" means regarding media objects" Media normal normal Awaiting Review defect (bug) new 2017-07-27T22:10:56Z 2017-07-30T14:25:03Z "From user testing: ""I have no idea what it means when it says an image is 'Attached' to a post. Does it mean the image is in the post? Does it mean if I 'Detach' the image from the post it will go away from the post? I'm worried a client might 'Detach' an image from a post to remove it, or 'Attach' an image to add it. What is this for? How can an image be 'Unattached' to the post it is displayed in anyway?""" mor10 1 Needs Patch 60141 Proximity of controls: Upload New Media multi-file uploader Media normal normal Awaiting Review defect (bug) new 2023-12-22T13:50:57Z 2023-12-22T13:50:57Z "See #40822 See #51754 When uploading media files in the Upload New Media > multi-file uploader page, newly added files are listed within rows after the uploader. The rows contain: - The attachment details, on the left. - Additional tools, on the right. There's a couple problems with that. == Proximity of controls The tools are displayed too far to the right, way far from the details. This is a problem, for example, for low vision users and users who use screen magnifiers, as the tools may be out of their vision field. Controls should be displayed visually grouped so that they can be easily discovered by all users. I'm not sure there's a good reason to have all that spacing between details and tools in the first place. == The Copy button shifts to the left when copying There's a few Copy buttons in use in the admin pages. Most of them are aligned to the left and there's a good reason for that: The UI must provide space for the 'Copied!' confirmation text. However, on this page the Copy button is aligned to the right. After a copy operation, the 'Copied!' text appears on the right of the button thus making the button itself shift to the left. I'm not sure having moving interactive controls on the screen is a good user experience. Instead, the Copy button should be placed in a way to reserve some space for the 'Copied!' text to appear without triggering a shift of other content. See screenshots and animated GIF below." afercia Needs Patch 51584 Publishing a large image post while the image is still uploading allows you to leave and return to a broken image Media normal normal Awaiting Review defect (bug) new 2020-10-21T05:24:32Z 2020-11-10T18:49:23Z "This issue was originally reported by @antpb in #core-media here; https://wordpress.slack.com/archives/C02SX62S6/p1603135350316800 If you go to the post editor and upload a large image to the image block, then publish/save and leave the screen before it's uploaded you'll return to the post with a broken image. I'm thinking we should provide a dirty flag while that upload/resize process is underway for large images to flag to users and stop them from leaving the editor before the process completes." garrett-eclipse 8 Needs Patch 39679 Redirect loop on attachment pages Media 4.7.1 normal normal Awaiting Review 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 7 Needs Patch 46970 Remove white Space - iPhone 6/7/8 Media 5.2 normal normal Future Release defect (bug) new 2019-04-18T08:42:03Z 2023-05-20T07:27:13Z "Hello, While we edit image from admin dashboard (Dashboard > Media > Library - edit), there is much white space displayed in iPhone-6/7/8 landscape and portrait mode. So for that, we can make that element in full width. Thanks, Shashank." shashank3105 2 Needs Patch 40299 Removing width attribute on an image with a caption removes entire caption Media 4.7.3 normal normal Future Release defect (bug) new 2017-03-29T13:59:21Z 2018-12-27T21:56:20Z "If you insert an image with a caption into the visual editor, it will create code like: {{{ [caption id=""attachment_12345"" align=""alignnone"" width=""150""] My caption[/caption] }}} If you switch from the visual editor to the text editor and remove the `width` attribute '''of the image''' to get: {{{ [caption id=""attachment_12345"" align=""alignnone"" width=""150""] My caption[/caption] }}} And then either update the post, or switch back to the visual editor, the caption is stripped and only the image remains: {{{ }}} Removing the `height` attribute doesn't appear to cause the same behavior. I don't believe that removing the width attribute on the image should result in both the caption being stripped and the `[caption]` shortcode being removed. I'm not sure but this might be related to [27426] and #23103." catchmyfame 2 Needs Patch 53669 Respect the quality settings in `wp_editor_set_quality` for lossless WebP adamsilverstein Media 5.8 normal normal Future Release defect (bug) assigned 2021-07-15T14:56:26Z 2022-12-01T00:23:58Z "In Imagick, WordPress now supports saving lossless WebP images when the source is a lossless WebP image. 🎉 This happens [https://github.com/WordPress/wordpress-develop/blob/f17f4f5f7e474e2c0bb77ace02aaf44fccd8362c/src/wp-includes/class-wp-image-editor-imagick.php#L208 inside the Imagick editor in `set_quality`]. The filter, `wp_editor_set_quality`, applies before this is run, in [https://github.com/WordPress/wordpress-develop/blob/f17f4f5f7e474e2c0bb77ace02aaf44fccd8362c/src/wp-includes/class-wp-image-editor.php#L241 the parent class]. This means that if a WebP is detected as Lossless, it isn't possible to override lossless thumbnailing with `wp_editor_set_quality`. WordPress should respect the `wp_editor_set_quality` filter's override, [https://developer.wordpress.org/reference/hooks/wp_editor_set_quality/ unless `set_quality()` is run manually]." kirasong 11 Needs Patch 31258 SVG replaced by default image in media library Media 4.1 normal normal defect (bug) reopened 2015-02-07T16:47:13Z 2019-06-04T20:11:11Z "I have enabled svg support for the media library. In Wordpress 3.9 I could nicely upload an svg file and it would show a thumbnail of the svg image in the media library. Now I've updated to Wordpress 4.1 and now all the svg files are replaced with a default image and a text stating the title of the svg file. Although, everything still works (I can still add the svg file and so on), it was very handy to see what the svg file looked like. Is there are reason why this is changed? Is there something I can do to change it back? By the way, I've tried this in a fresh new Wordpress install without any other plugins and using a default theme. " Automatic-rock 14 Needs Patch 51115 Scaled Images have larger file size than the original Media 5.5 normal normal Awaiting Review defect (bug) new 2020-08-23T22:29:29Z 2020-08-24T20:02:43Z "I saw a bug about this for png files but I have the same issues with jpg. This occurs with WP 5.5 on different sites. As a result, I turn scaling off to work around the issue. " koolkatwebdesigns 1 Needs Patch 48784 Search box in Select / Upload image pop-up not working with cropped images Media 5.3 normal normal Awaiting Review defect (bug) reopened 2019-11-24T20:52:28Z 2020-03-28T20:10:45Z "Hi, it seems that the search field in the pop-up of selecting or uploading images can not find the images which have been cropped before. For example, if I go to Appearance / Customize and want to change the Logo image, and I am asked to cropped the image, that image won't show in the search field. It will show the non cropped image, but not the cropped one. Thank you! In the attached image you can see how the search field can do find the filename ""Foto-de-Javier-1.jpg"" using just the letters ""jav"". But there is another image in the Media which name is ""cropped-Foto-de-Javier-1.jpg"" and this one does not appear." javierr 4 Needs Patch 48361 Select Files on iOS doesn't trigger on modal if start on Upload Files tab and switch to Media Library tab adamsilverstein Media normal normal Awaiting Review defect (bug) assigned 2019-10-17T23:27:06Z 2019-11-03T19:46:59Z "Hello, I came across an odd issues on a client site recently using ACF and the Gallery field so I did a fresh install and found the issue resides in core as well. In short the 'Select Files' button doesn't trigger the uploader if you trigger the media modal starting on 'Upload Files' and then switching to 'Media Library' when there's no files present. To reproduce use an iOS device (iPad/iPhone); 1. Install a clean WordPress 2. Create a new post. 3. Add a Gallery block 4. Click the 'Media Library' button. 5. If your Media Modal opens with 'Media Library' tab selected then switch to 'Upload Files' and reload the screen. 6. Your Media Modal should open on 'Upload Files' now. 7. Switch to the Media Library tab now. 8. Click the 'Select Files' button that appears below the 'No items found' text. 9. Note the uploader isn't triggered. This seems to only occur when there's no items in your media library and you are using the Media Modal but your settings have it open on 'Upload Files' first and then you switch to 'Media Library'. I initially came across this with an ACF Gallery field, but in my clean install it was the Gallery block that I was able to reproduce the issue with. All the best, Cheers " garrett-eclipse 2 Needs Patch 48469 Selecting Media File as image block link creates blob URL if large image still being processed Media 5.3 normal normal Future Release defect (bug) new 2019-10-30T17:05:54Z 2019-11-05T21:46:36Z "Steps to reproduce... 1. In post editor, select image block. 1. Use ""Upload"" button. 1. Select a large file, e.g. 5120x2880 image. 1. While the image is still being processed (has spinner overlay), select link button on the block and pick ""Media File"". When the post is then saved and viewed, the wrapping link will have an `href` with a value like ""blob:http://example.com/cee61eeb-3bf1-984a-9930-5660bba8a2f8"". If you then go back and edit the post, remove the link from the block, and then re-select Media File as the link type and save the post, expected URL used in post, e.g. ""http://example.com/wp-content/uploads/2019/10/image-scaled-2560.png"" Tested with WP 5.3-RC3." ianmjones 3 Needs Patch 35771 Setting Size for Native Video Player Doesn't Work Media normal normal Awaiting Review defect (bug) new 2016-02-07T21:28:00Z 2017-06-27T16:50:20Z "Width and height rules do not affix the size of the embedded native media player. Width is ultimately honored, but height setting is overruled and set proportionally based on video's proportions. Consequently, if width of the player is set to fill in the theme's available content space, but the embedded video is vertical (filmed vertically, whereby height of the video is greater than width), then the player will be stretched way too tall, regardless of height settings (which is ultimately ignored). To reproduce: Embed any locally hosted, vertical video using native video player, using the Embed Media Player option from the Insert Media attachment window. Set width to the width of your theme's content area, and height to less than width. Height will not be honored. Desired solution: Set player size to the width and height chosen by the user. Fit the video within the set space of the player." Tranny 1 Needs Patch 37311 Site icon thumbnails are lost if wp_generate_attachment_metadata called again later Media 4.5 normal normal Awaiting Review 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 8 Needs Patch 54555 Slow media query on big sites Media 5.8.2 normal normal Awaiting Review defect (bug) new 2021-12-02T07:50:02Z 2021-12-03T20:12:28Z "On wordpress version 5.8.2 the wp_enqueue_media() slow query is still there. I found several old discussions about being fixed for many years ago but in my case is still there. SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month FROM wp_posts WHERE post_type = 'attachment' ORDER BY post_date DESC 4.6238s I have 73903 media items" lebada Needs Patch 54818 Some file names are no longer sanitized Media normal normal Awaiting Review 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 6 Needs Patch 55274 Special chars in attachment filename breaks srcset audrasjb Media 4.4 normal normal Future Release defect (bug) reviewing 2022-02-28T09:18:25Z 2022-04-27T05:03:17Z "There is currently fix that handles spaces in filenames, but it doesn't handle other special characters e.g. $! or any other special char Spaces issue was reported there: https://core.trac.wordpress.org/ticket/36549 And fixed here: https://core.trac.wordpress.org/changeset/38052" dravnic 7 Needs Patch 25103 Submit buttons on form fields in the Add Media panel joedolson* Media 3.5 normal normal Future Release defect (bug) accepted 2013-08-20T21:23:11Z 2021-05-21T15:57:23Z "Splitting this out from #23561 There is no Go or Search button available to trigger the action for the search and filter input fields in the Add Media screen - both of which change the content of the panel below. For accessibility reasons the user should be in control of triggering the filtering." johnbillion 14 Needs Patch 47144 Text inadvertently rendered by assistive technologies joedolson* Media normal normal Future Release defect (bug) accepted 2019-05-06T14:58:01Z 2022-10-28T15:49:23Z "Moved from the WPCampus accessibility report issues on GitHub, see https://github.com/WordPress/gutenberg/issues/15296 * **Severity**: * Medium * **Affected Populations**: * Blind * Low-Vision * Cognitively Impaired * **Platform(s):** * Windows - Screen Reader * Mac - VoiceOver * Android - TalkBack * iOS - VoiceOver * **Components affected**: * Block Panel * Document Panel * Media Dialog **Issue description** Users of assistive technologies such as screen readers who navigate to the bottom of the Settings panels will find a button which they cannot activate (nor see if sighted) called ""Select files"". Additionally, if users change the color modes in the popup custom color picker, the current mode is announced in a live region. However, long after users are done with choosing a color, even after choosing to edit another block on the page, when they reach the bottom of the Block panel they'll still hear ""hex color mode active"". At this point, users may not remember what this was for and have no idea what this is referencing, as it no longer has any context. **Issue Code** {{{
    Hex color mode active
    }}} **Remediation Guidance** When users have performed an action, such as clicking another block (or whatever action causes ""No block selected"" to appear in the Block panel), clear the live region so that users who encounter it while manually reading do not hear it. Refill the live region when users change color modes. The hidden file selection button should be hidden from all users with display: none whenever it is not visible nor meant to be used. **Recommended Code** {{{
    }}} **Note**: This issue may be a duplicate with other existing accessibility-related bugs in this project. This issue comes from the Gutenberg accessibility audit, performed by Tenon and funded by WP Campus. This issue is GUT-41 in Tenon's report ''**Note**: The a11y-speak live regions are used in core as well. In several places. Thus, clearing the live regions shouldn't depend on a specific user action or scenario. It would require a more generic solution, preferably avoiding setTimeout() which seems to me a very fragile solution by its own nature.''" anevins 32 Needs Patch 58733 The load more button appears even when there is only one image in the feature image selection window. joedolson* Media 6.3 normal normal Awaiting Review defect (bug) accepted 2023-07-06T13:22:35Z 2023-07-21T15:20:00Z "Load more button appears in the popup window for replacing the feature image, even when there is only one image available. Steps to reproduce the issue: 1. Go to the post editor in WordPress. 2. Locate the section where you can edit the feature image for the post. 3. Click on the ""Replace"" button to select a new image. 4. The popup window will open, showing the available images. Despite there being only one image in the selection, the ""Load More"" button is present in the popup window. Video Link: https://www.loom.com/share/c0e9faa4cc86455eb30bdaf2149b5a60 === Environment - WordPress: 6.3-beta3-56143 - PHP: 7.4.21 - Server: Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.4.21 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 - Database: mysqli (Server: 5.7.34 / Client: mysqlnd 7.4.21) - Browser: Chrome 114.0.0.0 (macOS) - Theme: Twenty Twenty-Three 1.1 - MU-Plugins: None activated - Plugins: * WordPress Beta Tester 3.5.0" aparnajl 1 Needs Patch 54320 There are no more thumbnails for uploaded PDFs Media 5.8.1 normal normal Awaiting Review defect (bug) new 2021-10-25T19:05:09Z 2022-08-24T14:45:09Z "My current WP configuration • PHP / MySQL version: 7.4 • Theme used: Camp Maine of TAM’S TRADING POST (no longer maintained) • Extensions in place: activated: Akismet - BackWPup - contact Form 7 - Cookie Notice - Honeypot for Contact Form 7 - Ithemes Security - Post Type Switcher - SF Move Login - TablePress - WP Image Zoom - WP Maintenance Mode. Name of the host: OVH Site address: https://amapdlacrau.fr Problems encountered: The latest .PDF files uploaded to the media library have a generic file icon and no longer display the small thumbnail unlike older files. Clicking on the icon no longer opens the image of the 1st page of the file. Everything I did that didn't work to fix the problem: * Create PDFs with different tools; Microsoft, Do PDF, ApowerPDF ... * Install WordPress version 5.8.1 * Downgrading the PHP version from PHP 8 to PHP 7.4 This fixed the problem with the imagik module, declared absent by the site health check in version 8, but not the thumbnail problem. * Use an upload plugin: File Manager * Use thumbnail regeneration plugins: Regenerate Thumbnails and Force Regenerate Thumbnails. I have not tested: use a media management plugin instead of the media library I note that the function for generating the thumbnails of the PDF files has stopped working when the theme is no longer maintained and the PHP version is the same. Only the version of WordPress has changed " 10rjulienk21 3 Needs Patch 34571 Thumbnails and featured images broken if the filename contains utf8 characters (e.g. üäö) Media 4.3.1 normal normal defect (bug) new 2015-11-04T01:56:03Z 2019-06-04T20:17:29Z "I did an upgrade to 4.3.1 from 3.6.1 and I have a whole bunch of media assets (more than 4000 images) where a substantial portion of these images have filenames containing utf8 characters like apostrophes, umlauts etc. While these images work just fine in posts, neither the ""feature image"" nor the thumbnail in the media library will work for that image (broken image icon, rename plugins won't work, feature image shows broken image icon). Both functionalities worked fine in 3.6.1 I would be grateful if the media library and the featured image functionally could be fixed so that the media library will work for these files again as well as the feature image." smuts 3 Needs Patch 58483 UI issue in uploasd multiple media in mobile Media 6.2.2 normal normal Awaiting Review defect (bug) new 2023-06-08T07:40:16Z 2023-06-08T07:40:16Z "Hi, We need to add padding on the right side for maintaining alignment on the right side in uploading multiple media on mobile. The more informed nation you can see mentioned screenshot. " sumitsingh Needs Patch 48194 "Unregistered image sizes used for IMG tag ""srcset""" Media normal normal Awaiting Review 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 5 Needs Patch 60666 Unwanted section appears as a sidebar in 'Create gallery' section joedolson* Media 5.0 normal normal 6.6 defect (bug) accepted 2024-03-01T09:04:35Z 2024-03-06T16:46:30Z "Unwanted section with 'Actions' and 'Create gallery' texts appear in the sidebar of Media Library and nothing happens on selection or click of the texts. To find the issue, please go through the below steps. 1.From the 'File' block add the block 'Gallery', then select Media Library. 2.Unwanted sidebar section with the specified texts appears." ukdrahul 3 Needs Patch 48111 Update usage of `multi_resize` to utilize new `wp_create_image_subsizes()` function kirasong Media 5.3 normal normal Future Release defect (bug) assigned 2019-09-23T17:48:40Z 2020-02-21T09:41:15Z "As mentioned in https://core.trac.wordpress.org/ticket/40439#comment:61 There are two uses of `multi_resize()` that will need to be updated to use the new `wp_create_image_subsizes()` function introduced in #40439. - In the [https://github.com/WordPress/WordPress-develop/blob/master/src/wp-admin/includes/image-edit.php#L947 image editor] (`src/wp-admin/includes/image-edit.php`). - In [https://github.com/WordPress/WordPress-develop/blob/master/src/wp-admin/includes/image.php#L583 PDF Thumbnails/Fallback Thumbnail Support] (`src/wp-admin/includes/image.php`). " antpb 15 Needs Patch 32443 Upload iframe renders pictures in reverse order Media 4.2.2 normal normal defect (bug) new 2015-05-19T18:49:56Z 2019-06-04T20:13:54Z "Attachments are in reverse order when they have menu_order attributes. It is because this code in get_media_items function: {{{ $attachments = get_children( array( 'post_parent' => $post_id, 'post_type' => 'attachment', 'orderby' => 'menu_order ASC, ID', 'order' => 'DESC') ); }}} Generates this query: {{{ …wp_posts.menu_order DESC, wp_posts.ID DESC… }}} It should be: {{{ $attachments = get_children( array( 'post_parent' => $post_id, 'post_type' => 'attachment', 'orderby' => array( 'menu_order' => 'ASC', 'ID' => 'DESC') ) ); }}} Which will generate: {{{ …wp_posts.menu_order ASC, wp_posts.ID DESC… }}} " sapegin 1 Needs Patch 34465 Uploader in Media Modal Not Working When Certain Library Arguments Present Media 4.0 normal normal Awaiting Review 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 14 Needs Patch 40289 Uploading 2 files with the same name but different casing, overwrites existing files Media 4.7.3 normal normal Awaiting Review defect (bug) reopened 2017-03-28T22:23:44Z 2017-06-08T09:36:11Z "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 8 Needs Patch 43839 Video Player Mobile Media normal normal Future Release defect (bug) new 2018-04-23T23:51:04Z 2019-04-15T19:51:39Z "I usually use the video player with autoplay on. \\ But I noticed that on the mobile (I know the autoplay does not work on the mobile), the video player does not display the big play button in the middle of the player. \\ And the only way to run a video is to press the play button from the control bar at the bottom of the player. \\ Print screen: \\ That's how it should look (So it was up to wp 4.8.3)[https://i.imgur.com/PkHjszD.jpg] \\ That's what it looks like now [https://i.imgur.com/l8Zp94G.jpg] \\ Does anyone know how to solve this issue? Thank you!" studiosx 1 Needs Patch 42484 WP ajax call fail when executing long time 'ERR_SPDY_PROTOCOL_ERROR'. Media 4.8.3 normal normal Awaiting Review defect (bug) new 2017-11-09T12:18:18Z 2017-11-09T12:38:47Z "Hello, I have one ajax script that is uploading 25MB video on server and convert on server. This core process doing by only WordPress ajax file. This process is run successfully but after uploading and conversion ajax automatically fail and give me this error ""ERR_SPDY_PROTOCOL_ERROR"". This error i am facing from last update(4.8.3). so i think there is issue regarding ajax call in WordPress 4.8.3 version. I am WordPress Developer with 6+ years of experience and i have found this bug. Please review this bug. There is attach one image related to error. [[Image(http://webidroid.com/WP_ajax_err.png)]] " gaurangsondagar 1 Needs Patch 54876 WP fails to recognize and use Imagick PHP 8 module on OpenLiteSpeed / Litespeed Web Server Media 5.8.3 normal normal Awaiting Review defect (bug) new 2022-01-21T16:23:13Z 2022-02-03T15:39:00Z "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 8 Needs Patch 55057 WebP EXIF data missing and images are not rotated in the same way JPEG images are rotated. adamsilverstein Media 5.8 normal normal Future Release defect (bug) assigned 2022-02-03T01:25:58Z 2022-07-07T18:29:05Z "When a WebP image is uploaded with the rotated exif this exif is ignored and the image is uploaded as it is instead of rotating the image when a JPEG version is uploaded the rotation happens as it should creating a `-rotated.jpeg` version of the original image. **Result when uploading a JPEG version** [[Image(https://user-images.githubusercontent.com/3921289/152251451-201251d2-409f-42d6-a302-a93bfe3aec3c.png)]] **Result when uploading a WebP version** [[Image(https://user-images.githubusercontent.com/3921289/152251458-1f3d98ac-5b40-4728-97a9-a3c05aa7cbb7.png)]] Steps to replicate the problem: - Create a WebP version of the original JPEG image (you can use imagemagick to do this) - Upload the WebP version of the image and observe the image is not rotated the same way it happens with the JPEG version. Original JPEG image used to test this behavior can be found at (and attached as part of this report): - https://www.flickr.com/photos/brevity/6221434141/in/photostream/ Related with the performance ticket: - https://github.com/WordPress/performance/issues/146 **Media handling information from the installation where this is happening: ** Active editor WP_Image_Editor_Imagick ImageMagick version number 1691 ImageMagick version string ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org Imagick version 3.7.0 File uploads Enabled Max size of post data allowed 100M Max size of an uploaded file 100M Max effective file size 100 MB Max number of files allowed 20 Imagick Resource Limits area: 122 MBdisk: 1073741824file: 786432map: 512 MBmemory: 256 MBthread: 1 ImageMagick supported file formats 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HEIC, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV GD version bundled (2.1.0 compatible) GD supported file formats GIF, JPEG, PNG, WebP, BMP Ghostscript version 9.53.3" mitogh 7 Needs Patch 55323 When an image is edited the URL of the image is not updated Media 5.9.1 normal normal Awaiting Review defect (bug) new 2022-03-06T01:31:01Z 2022-03-07T19:34:24Z "When an image is edited from the image editor, after an edit has been applied, the URL of the image is not updated due it always references back to the original image instead of referencing the image to the updated image (when the edit has been applied to all images sizes). == Steps to replicate the problem. 1. Upload an image into the media library 2. After the image is uploaded into the media library click on Edit image 3. Apply an edit to the image, either rotate, flip or crop, 4. Make sure that the option is applied to all images sizes. 5. Click on Save 6. Observe how the URL of the image (see attached image), by clicking on Copy URL to the clipboard 7. Open the copied URL into a new tab the copied URL still references to the original image, and not the edited image instead. " mitogh 2 Needs Patch 53941 When converting images after uploading the original image may not be converted Media 5.8 normal normal Future Release defect (bug) new 2021-08-17T03:12:58Z 2021-11-16T18:57:42Z "This is less noticeable when the original image is larger than the ""big image threshold"" (and not a PNG) as the scaled image is converted. To reproduce: - Set image conversion, for example GIF to JPEG. - Upload image.gif that is smaller than 2560x2560px. - Note that image.gif is listed in the Gallery and present in the uploads directory but it's sub-sizes have been converted to JPEGs like image-150x150.jpg, etc. Expected behavior: the original image should be converted." azaozz 4 Needs Patch 40250 When cropping a image right after scaling, the crop selection will show incorrect dimensions adamsilverstein Media 4.7.3 normal normal Future Release defect (bug) reviewing 2017-03-24T11:04:59Z 2021-01-28T19:53:54Z "Steps to reproduce: - Upload any image to the media library. - Press ""Edit Image"" on the uploaded image. - Scale the image up or down by any dimension. - Try to crop the image afterwards with the drag selection on the image. On the screenshot provided you will notice the crop dimensions are actually larger then the image size. The bug only seems to appear when the page is not being refreshed, indicating the correct values are probably not being passed to the javascript handling the cropping after a scaling operation. [[Image(source:http://imgur.com/fEj6uDP)]] (Screenshot: http://imgur.com/fEj6uDP) " level level 1 Needs Patch 55345 When uploading image through featured image section, the image item count is wrong. Media normal normal Awaiting Review defect (bug) new 2022-03-08T17:45:56Z 2022-06-08T14:17:41Z "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 1 Needs Patch 49183 Width alignment issue in Edit attachment page Media normal normal Awaiting Review defect (bug) new 2020-01-13T09:55:56Z 2020-01-13T20:11:52Z "Hello, There is an issue with the width in the edit attachment page. First, go to the media page and open any image and edit that image and click on the button that says ""Edit Image"" and you can see the issue. I am using a laptop having size of 1366 x 768. https://youtu.be/A440xIRrUJU Please see this video for the issue I am talking about. " rnitinb 1 Needs Patch 45980 WordPress 5.0.3 PDF is opening empty page in Chrome and not showing content Media 5.0.3 normal normal Awaiting Review defect (bug) reopened 2019-01-14T10:34:54Z 2019-01-30T07:38:23Z "Hi, I have some links that open pdf. On firefox or safari, when I clic on the link, the pdf is opend on another page. I can see the pdf. On Chrome, when I clic, anoter page is open but the page is empty. I can see on the url that the pdf is open https://www.....de/wp-content/uploads/2018/07/TEST.pdf but it is empty. And it worked before (not with WordPress 5.0.1) And it doesn't work with new pdf too. MAny thanks for you help" Timama 7 Needs Patch 49995 WordPress creates unnecessary thumbnails Media 5.4 normal normal Awaiting Review 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 2 Needs Patch 30402 WordPress does not respect the bit-depth of the original image when resizing Media 3.9.2 normal normal Awaiting Review defect (bug) new 2014-11-19T08:15:02Z 2021-03-04T15:09:12Z "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 19 Needs Patch 57158 bug for image 2/3 ratio size when max height is 480px Media normal normal Awaiting Review defect (bug) new 2022-11-21T00:13:46Z 2022-11-21T00:13:46Z "When I upload a 2/3 size image (example: 700/1050px, 1000/1500px, etc.) and in the media settings (/options-media.php) I set the maximum height and maximum width to 480px, the medium size image (which measures 320px x 480px) is never displayed on wordpress. this problem exists only for images resized in medium size. everything seems OK for small and large size. I think this bug exists since several versions. * screenshot settings : https://drive.google.com/file/d/1LAKzw2RHVDb3MskmQ4V86FX_eGw_XBEC/view?usp=sharing * screenshot 320x480px medium size not displayed : https://drive.google.com/file/d/1EDcCVpwW4Cd21qn9JQldL2Q9EpwvF701/view?usp=sharing" tshak93 Needs Patch 53193 chmod(): Operation not permitted in class-wp-image-editor-imagick.php Media 5.7.1 normal normal Awaiting Review defect (bug) new 2021-05-12T05:49:17Z 2021-05-12T13:15:24Z "Hi **Current install:** Using the LATEST version of WordPress, the line numbers in this bug report relate to that version number. The system is running on CENTOS with APACHE as the server. **Problem Discription:** PHP Warning: chmod(): Operation not permitted in ""wp-includes/class-wp-image-editor-imagick.php"" on line 710 **Explanation why this is a problem** Every security conscious system administrator will have the following settings: On directories e.g. drwxr-x---. 10 editor apache 4096 Feb 19 2019 wp-content drwxr-x---. 25 editor apache 12288 Mar 29 13:26 wp-includes drwxr-x---. 4 editor apache 4096 Dec 11 17:10 themes drwsrws---. 2 editor apache 4096 May 12 15:09 upgrade drwsrws---. 20 editor apache 4096 Jan 1 00:00 uploads On files e.g. -rw-r-----. 1 editor apache 31328 Mar 29 13:25 wp-signup.php -rw-r-----. 1 editor apache 4747 Dec 11 15:27 wp-trackback.php While the apache server can READ every file, it cannot WRITE every file abd that is good! I have NEVER had a problem with these settings, ever. Where the apache server NEEDS to write, it can (e.g. uploads/upgrade/cache) I can happily update core/plugins/themes using FS_METHOD ssh2 with ssh keys set for the editor. Also it is nearly IMPOSSIBLE to have the system being taken over as the apache server cannot write core files. **Does the problem occur even when you deactivate plugins, use default theme?** N/A File system permission issue **In case it's relevant to the ticket, what is the expected output or result?** There needs to be an additional check whether the line SHOULD/CAN be executed. On my system the editor is NOT the same as the user running the http server. The server user is MOSTLY (and should) restricted to reading (other that the upload/upgrade/cache/etc directories). This will lead to errors on Linux based systems. " jobst Needs Patch 45562 drag and drop file upload fails with empty files when dragging from macOS Preview into WP on Safari 12 Media 5.0 normal normal Awaiting Review defect (bug) new 2018-12-10T00:27:48Z 2020-11-19T15:39:30Z "Part of my workflow involves opening multiple files in Preview (on macOS), and then adding them to WordPress by dragging and dropping them to the Add Media page in WordPress (running in Safari). That used to work fine, but when I upgraded to Safari 12.0, I get the error: ""File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini."" I'm using self-hosted WordPress (on both Ubuntu 11.04 or 11.10, with Apache 2.4 as the web server); I don't think I made any server-side configuration changes when this started happening, though it's possible I upgraded Apache versions at about the same time? This occurs in WordPress 5.0, and also occurred in WP 4.x versions; again, I don't think it was caused by a WP change, though I can't rule out a WP upgrade at about the same time. This works fine when dragging and dropping from Finder, it's only when dragging and dropping from Preview. To reproduce: * Select multiple images and open them up in Preview. * Go to Add Media in WordPress in Safari 12. * Drag one of the images from the Preview sidebar to Wordpress. I get the above file upload error when I do this." dbcarlton 2 Needs Patch 44127 editing an image can result in intermediate sized images left over after the image is deleted Media 4.9.5 normal normal Awaiting Review defect (bug) new 2018-05-17T19:51:02Z 2023-08-09T17:19:13Z "Steps to reproduce: 1. set thumbnail_size to `150x150` 1. upload a `300x300` image, e.g., `foo.jpg` * will result in `/wp-content/uploads/foo-150x150.jpg` being generated 1. edit the image and scale to `200x200` * will result in something like `/wp-content/uploads/foo-e1526583456941.jpg` being generated * `/wp-content/uploads/foo-150x150.jpg` will still be present, since it is still a valid thumbnail for the scaled image 1. regenerate intermediate sized images (e.g., by calling [[https://developer.wordpress.org/reference/functions/wp_get_attachment_metadata/|wp_get_attachment_metadata()]] followed by [[https://developer.wordpress.org/reference/functions/wp_update_attachment_metadata/|wp_update_attachment_metadata()]], which the [[https://wordpress.org/plugins/regenerate-thumbnails/|Regenerate Thumbnails]] plugin does) * will result in something like `/wp-content/uploads/foo-e1526583456941-150x150.jpg` being generated 1. ""Delete Permanently"" the image Check `/wp-content/uploads` and you will see that `foo-150x150.jpg` is still there. " pbiron 10 Needs Patch 29634 gallery bulk upload Media 4.0 normal normal defect (bug) new 2014-09-11T22:38:24Z 2019-06-04T20:09:10Z when i am uploading alot 500 images, and then some error happens... i don't have any way to retry uploads on queue , showing a list with numbers would help to verify how many elements are loaded and if are the same that we have selected. joxxxe 1 Needs Patch 36308 get_attached_file() destroys file paths on Windows Media 4.4.2 normal normal Future Release defect (bug) assigned 2016-03-23T15:45:03Z 2023-05-31T15:30:19Z "While working on ticket #36273 I noticed that ''get_attached_file()'' from ''wp-includes/post.php'' will destroy paths normalized by ''wp_normalize_path()'' on Windows: For example the function starts with {{{#!php $file = get_post_meta( $attachment_id, '_wp_attached_file', true ); // $file = 'C:/WWW/Sites/demo/htdocs/wordpress/wp-content/uploads/2016/03/example.jpg' }}} However this will become {{{#!php $file = 'C:\WWW\Sites\demo\htdocs\wordpress/wp-content/uploads/C:/WWW/Sites/demo/htdocs/wordpress/wp-content/uploads/2016/03/example.jpg' }}} due to {{{#!php if ( $file && 0 !== strpos($file, '/') && !preg_match('|^.:\\\|', $file) && ( ($uploads = wp_upload_dir()) && false === $uploads['error'] ) ) $file = $uploads['basedir'] . ""/$file""; }}} This is similar to ticket #24824 however we are dealing will full qualified paths here, not URLs (well, both are URIs...). PS: Yes, `$uploads['basedir']` contains mixed directory separators. That's another thing." Whissi 61 Needs Patch 31252 grid view in media library malfunctioning in Simplified Chinese install Media 4.1 normal normal defect (bug) new 2015-02-06T21:22:33Z 2019-06-04T20:11:07Z "Media library grid breaks in Simplified Chinese install. https://wordpress.org/support/topic/the-grid-view-of-media-gallery-is-malfunctioning-in-simplified-chinese-install?replies=1" kidsguide 10 Needs Patch 47619 i got error in /wp-includes/media.php Media normal normal Awaiting Review defect (bug) new 2019-06-28T06:17:58Z 2019-06-28T12:38:30Z in media php at line 3633 in $strings array you use objects without to check if this objects is exist... thanks! Asaf Azoulay 1 Needs Patch 53200 image quality reduction in smaller images Media 5.7.2 normal normal Awaiting Review defect (bug) new 2021-05-13T13:01:43Z 2021-05-13T13:01:43Z "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 Needs Patch 35870 image_default_link_type does not work for galleries Media 4.4.2 normal normal defect (bug) new 2016-02-19T10:25:33Z 2019-06-04T20:22:54Z "After some updated I've noticed all galleries started to point the URL to attachment post instead of image. After some digging it seems that attachment post will appear if no settings were found in the code. I've tried to override this without any luck I found this and it describes the problem: https://core.trac.wordpress.org/ticket/35101 Now I find out that this fix does not work for galleries. Even if I have image_default_link_type i the data table the attachment appears as default. And the front generates galleries with attachment post url when the setting is missing in the gallery code from content." jayse83 1 Needs Patch 46390 image_default_link_type is not seen by Gutenberg Media 5.1.1 normal normal Awaiting Review defect (bug) reopened 2019-03-01T12:34:42Z 2022-04-05T02:26:53Z "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 7 Needs Patch 49640 image_get_intermediate_size returns wrong Media normal normal Awaiting Review defect (bug) new 2020-03-13T10:25:35Z 2020-03-13T17:20:32Z "The function `image_get_intermediate_size` isn't working as expected. If I upload a `1200px x 900px` image as the original. In WordPress theme I use `wp_get_attachment_image( $post_id, array( '1x1-large', '1x1-medium' ) );` `1x1-large` is setup using `add_image_size( '1x1-large', 1024, 1024, true );` It will fail as, it cannot create this image size as the the original is smaller. However, the function in question is clever enough to look for other aspect ratios that match. This is good. So if I had another name images called `1x1-medium` (setup using `add_image_size( '1x1-medium', 768, 768, true );` ) This will exist as the original image is large enough to be sized down to this. The function however uses this this code-block to short-circuit it: https://github.com/WordPress/WordPress/blob/46674e2367b8ca0c15b859bd578bc2119bfa0150/wp-includes/media.php#L780 {{{ // If there's an exact match to an existing image size, short circuit. if ( intval( $data['width'] ) === intval( $size[0] ) && intval( $data['height'] ) === intval( $size[1] ) ) { $candidates[ $data['width'] * $data['height'] ] = $data; break; } }}} So `$data['width'] =` each image sizes width and `$size[0] = '1x1-large'` This will never match!!! $size should in theory be a string, not an integer." CHEWX 1 Needs Patch 54714 images deleted from media library still exist in upload directory Media normal normal Awaiting Review defect (bug) new 2021-12-31T01:20:28Z 2021-12-31T13:39:45Z "Currently its so easy to make storage full of all wp site which allow user to upload image. Just upload big image all the time. Eventhough the admin of the website delete it permanently from media gallery. This files still exist in 'uploads' directory. When media is deleted permanently from media library, all files for this images should also be deleted including the size variations." erikdemarco Needs Patch 59641 manually setting fetchpriority on image should prevent core from adding fetchpriority attribute Media 6.3 normal normal 6.6 defect (bug) new 2023-10-16T20:44:56Z 2024-02-17T13:44:33Z "When working on testing the automated fetchpriorty attribute core now adds for images, I discovered this bug: If users manually set fetchpriority=""high"" on an image either programmatically or using a plugin, core will not change that setting, however it unexpectedly sets fetchpriority=""high"" on another image. === Steps to reproduce 1. install this plugin to add a manual fetchpriority dropdown: https://github.com/adamsilverstein/wp-fetchpriority-control 2. create a post with several large images 3. select the first image and apply fetchpriority=""high"" (under advanced) 3. publish the post and view its source **Expected results:** Only the first image should have the `fetchpriority=""high""` attribute, setting high fetchpriority on more than one image reduces the effect of adding the attribute. **Actual result:** Core applies `fetchpriority=""high""` to the second image so the first two images contain the attribute. " adamsilverstein 14 Needs Patch 39521 media_handle_sideload does not initialize the caption/excerpt value Media 2.6 normal normal Awaiting Review defect (bug) new 2017-01-09T02:58:05Z 2019-05-16T02:37:04Z "In /wp-admin/includes/media.php changes have been made in the media_handle_upload() function to initialize the caption/excerpt value after an upload. Here's the code: {{{#!php $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 $type, 'guid' => $url, 'post_parent' => $post_id, 'post_title' => $title, 'post_content' => $content, ), $post_data ) }}} " dglingren 3 Needs Patch 17061 media_sideload_image() allows upload of 301-redirected non-images chriscct7* Media 3.1.1 normal normal defect (bug) accepted 2011-04-06T14:39:09Z 2019-06-04T20:02:39Z "When you give {{{media_sideload_image()}}} URLs that are not images, an error is raised. If for example I do: {{{ media_sideload_image(""http://google.com"", $post_id, $img_desc); }}} then I get this error: {{{ Sorry, this file type is not permitted for security reasons. }}} And this is absolutely normal and expected. But there is a case when {{{media_sideload_image()}}} do not detect non-images. This case is when the URL given to the function looks like an image but is redirected by Apache to another place. For example, on my server, this URL: {{{ http://coolcavemen.com/e107_plugins/autogallery/Gallery/default.jpg }}} redirects to: {{{ http://coolcavemen.com/photos/ }}} Now if in some PHP code I do: {{{ media_sideload_image(""http://coolcavemen.com/e107_plugins/autogallery/Gallery/default.jpg"", $post_id, $img_desc); }}} then no error is raised and I end up with the HTML served at {{{http://coolcavemen.com/photos/}}} being uploaded to my WordPress site as-is: {{{ kevin@kev-laptop$ file ./wp-content/uploads/2011/04/default.jpg ./wp-content/uploads/2011/04/default.jpg: HTML document text }}} Of course this upload appears broken in the media manager, as you can see in this screenshot: http://twitpic.com/4hlyks" anonymized_154007 2 Needs Patch 45802 media_upload_tabs not supported in 5.0? Media normal normal WordPress.org defect (bug) reopened 2019-01-01T04:37:22Z 2019-06-04T19:16:22Z "I noticed the instructions here are incorrect at least for the latest WordPress 5.0 https://codex.wordpress.org/Inserting_Media_into_Posts_and_Pages At least, I can't seem to find the add media and it appears to be replaced by Gallery and Image, which shows upload/media-library/insert-from-url. Unfortunately it looks like there is no longer a way to get to this dialog and use extra upload-tabs to the left on the dialog shown in the tutorial linked above. In other words [https://developer.wordpress.org/reference/hooks/media_upload_tabs/ media_upload_tabs] doesn't do anything? If so, it should probably note this on that filter page and on the codex page. " programmin 3 Needs Patch 46209 mediaelement CSS loading at bottom of body Media 4.9 normal normal Future Release defect (bug) new 2019-02-07T21:55:20Z 2023-01-31T13:55:35Z "The question was asked in #42751 why we are loading mediaelement css in the body. It was agreed in the recent Media meeting that this is better fit for it's own ticket for discussion. ---- Mentioned by @themezly : 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. " antpb 7 Needs Patch 45212 mediaelement.js WordPress .mp4 videos not playing/working on certain browsers/devices Media normal normal Awaiting Review defect (bug) reopened 2018-10-28T04:46:14Z 2020-04-10T18:11:46Z "Instead of the normal embedded Media Element video player working properly, on Safari Desktop and Safari/Chrome/Firefox on iPhone, the video player does not work. It's black and provides the actual video download beginning with mejs.download-file: https://cdn.elitesportsny.com etc. ... Please help. Thanks. " robsabo10 2 Needs Patch 36803 ms-files.php: inconsistent behaviour for upload visibility on archived sites Media 4.5.2 normal normal defect (bug) new 2016-05-10T15:14:11Z 2019-06-04T20:24:50Z "Hey, i just ran into an odd issue on one of our clients Multisites. I archived the said site and – as you know – it remains accessible for network admins. The matching files however don't. I followed this down to ms-files.php::21ff. {{{#!php archived == '1' || $current_blog->spam == '1' || $current_blog->deleted == '1' ) { status_header( 404 ); die( '404 — File not found.' ); } }}} You see that ms-files.php checks, if the blog is archived (or spam or deleted) and than throws out a 404. Shouldn't this include a check for network admin users to see the files? Or, if that's not desirable, couldn't we make this check accessible for filters? Thanks for the good work! Christian " antwortzeit 2 Needs Patch 53408 png images bit depth is modified in resized images Media 5.7.2 normal normal Awaiting Review defect (bug) new 2021-06-15T11:27:39Z 2023-08-02T16:10:42Z "Hi, When I upload a 8 bit png image graphic, WordPress resizes as usual but modifies the bit depth to 24 or 32 bit, depending if their is a alpha channel. Without Alpha channel it is 24bit, with it's 32bit. The problem with that is that the file sizes end up being multiple times bigger than the original image. I opened a ticket with ImageMagick https://github.com/ImageMagick/ImageMagick/discussions/3825 Some of the replies included these solutions: **Setting bit-depth to 8 in the way done in the script may not be adequate for PNG. I think the only way to ensure that is to preface the output name with PNG8:filename.png. But I am not sure if it will preserve you transparency if the input has transparency. But the best thing to resolve that would be simply to try it.** **Scaling the image, depending upon the scaling method, most likely will add more colors than the 256 limit for 8-bit color. So the image has to be forced to quantize colors to the 256 limit in order to save as 8-bits. Otherwise, it is saved as 24 or 32-bits. So specifying PNG8:filename.png will save as 8-bits.** PNG00: Inherit PNG color and bit depth from input image(https://legacy.imagemagick.org/Usage/formats/#png_formats) Also here are related tickets I was able to find: https://core.trac.wordpress.org/ticket/36477 https://core.trac.wordpress.org/ticket/30402 https://core.trac.wordpress.org/ticket/48736 Thanks!" wpfed 6 Needs Patch 45589 resized images does not delete after delete main image in media library Media 5.0 normal normal Awaiting Review defect (bug) new 2018-12-11T20:18:31Z 2018-12-23T21:25:00Z "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 3 Needs Patch 58261 "set_post_thumbnail_size interferes with ""Cover Image Block""" Media 6.2 normal normal Awaiting Review defect (bug) new close 2023-05-05T15:42:51Z 2023-06-28T19:23:01Z "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 3 Needs Patch 43070 srcset attribute can be overridden but not prevented Media 4.4 normal normal Awaiting Review defect (bug) new 2018-01-11T19:07:48Z 2019-04-11T13:48:00Z 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 2 Needs Patch 44456 srcset max-width set to image width Media 4.9.6 normal normal Awaiting Review defect (bug) new 2018-06-25T14:53:48Z 2020-04-07T03:05:48Z "My understanding is the max-width value in the image srcset should be limited to 1600px, however it is actually always set to the width of the original image. Also, max_srcset_image_width does not appear to be properly setting the max-width value either. Thanks, Mike" mikedunn 1 Needs Patch 43540 srcset not added when the original image size doesn't exist in the database after regeneration Media normal normal Awaiting Review defect (bug) new 2018-03-14T02:54:09Z 2024-02-27T18:54:22Z "Suppose you have a post where you've inserted a 'large' image size. Any other image sizes of the same proportion are added to the srcset on the front end. Now, change the 'large' image size to something else, and regenerate thumbnails (using the plugin, CLI, etc). The image in the post continues to work (since plugins / CLI tend not to delete non-existing sizes from the file system precisely because they may be embedded in posts). However, it no longer receives any srcset - because the src_matched variable never gets set to true in `wp_calculate_image_srcset`. Can the src_matched logic be adjusted to cover this case?" smerriman 5 Needs Patch 32609 tinymce gallery preview uses full resolution images Media 4.2.2 normal normal defect (bug) new 2015-06-10T23:59:15Z 2019-06-04T20:14:12Z If a user uploads a batch of ''very'' high-res images, and inserts them as a gallery, the browser will become unresponsive as these giant images are rendered in the TinyMCE gallery preview. The gallery preview should use a thumbnail instead of the original image. leedo 1 Needs Patch 39331 unsharpMaskImage in Imagick's thumbnail_image is not compatible with CMYK jpegs. Media 4.5 normal normal Awaiting Review defect (bug) new 2016-12-19T15:31:11Z 2017-05-11T14:40:11Z "This has been split off from #39216. The use of `Imagick::unsharpMaskImage()` in `WP_Image_Editor_Imagick::thumbnail_image()` on jpegs with CMYK color spaces results in mangled images, eg black text becomes fuzzy and over-black, and colors change. The attached patch just doesn't call it if the image has a CMYK color space. The unit test requires the attached ""test_cmyk.jpg"" to be uploaded to the test data images directory (which is actually the ""full"" jpeg produced by `WP_Image_Editor_Imagick` when processing the ""test_cmyk.pdf"" PDF uploaded to #39216). " gitlost 3 Needs Patch 39492 upload_post_params and plupload_init filters are not being executed on wp_print_media_templates() Media 4.7 normal normal Awaiting Review 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 1 Needs Patch 36293 video/audio object passed to wp_video_shortcode/wp_audio_shortcode is always null Media normal normal defect (bug) new 2016-03-22T06:47:41Z 2020-03-12T05:16:51Z "Hi, The following: {{{ apply_filters( 'wp_video_shortcode', $output, $atts, $video, $post_id, $library ); apply_filters( 'wp_audio_shortcode', $html, $atts, $audio, $post_id, $library ); }}} send the {{{$video}}} and {{{$audio}}} objects respectively to the filtering function. However, these objects seem to be always {{{null}}}. By checking the relevant code I notice that these objects are only set when the {{{$primary}}} variable is set to {{{false}}}. The code does not clarify why the audio/video object is bound to that variable. Perhaps someone more familiar with the logic behind these functions should check this please." gnotaras 2 Needs Patch 59573 warning: trying to access array offset on value of type bool in wp-includes/media.php Media 6.3.1 normal normal Awaiting Review defect (bug) new 2023-10-09T16:14:04Z 2023-10-26T17:04:39Z "{{{ function image_get_intermediate_size($post_id, $size = 'thumbnail') { $imagedata = wp_get_attachment_metadata($post_id); // Checking whether $imagedata and $imagedata['sizes'] are real arrays. if (!is_array($imagedata) || empty($imagedata['sizes']) || !is_array($imagedata['sizes'])) { return false; } // Checking whether $size has a valid structure. if (!is_array($size) || count($size) < 2) { return false; } $data = []; }}} ....." androidforlife Needs Patch 56071 wordpress images too large Media 6.0 normal normal Awaiting Review defect (bug) new 2022-06-25T13:51:58Z 2022-10-26T15:45:15Z "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 1 Needs Patch 45075 wp_delete_attachment() has unreliable return and wrong process order Media normal normal Future Release defect (bug) new 2018-10-11T04:48:13Z 2019-04-15T22:36:10Z "When doing permanent deletion, this function should also remove the files of the target attachment. However successful return of this function does **not** guarantee this even though it still can delete the attachment object and its relations. Problems when permanent deletion is in process: 1. {{{wp_delete_attachment()}}} must check for {{{wp_delete_attachment_files()}}}'s return and should fail too when {{{wp_delete_attachment_files()}}} fails 2. {{{wp_delete_attachment_files()}}} should be called first - what is the point of deleting object and it's relations when physical data could not be removed... " jave.web 2 Needs Patch 45913 wp_enqueue_media() - slow query Media 5.0.3 normal normal Awaiting Review defect (bug) new 2019-01-10T17:11:32Z 2020-04-01T09:25:14Z "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 2 Needs Patch 53187 wp_filter_content_tags added too early Media 5.5 normal normal Awaiting Review 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 2 Needs Patch 29370 wp_get_attachment_image() returning unexpected image size Media 3.9.2 normal normal defect (bug) new 2014-08-25T18:40:16Z 2019-06-04T20:08:49Z "I have a 'thumbnail' size image of 150x150 px and a 'thumb-250' size image of 166x250 px. {{{ add_image_size('thumb-250', 0, 250, false); }}} I am using wp_get_attachment_image() to get the best image fit for a 133x200 format. {{{ wp_get_attachment_image( $id, array(133,200) ); }}} this returns the 'thumbnail' size which has an area that's smaller than the requested size, as well as a different aspect ratio. I would expect the 'thumb-250' size image to be returned, which has a bigger area and the exact aspect ratio that was requested. I tracked this down to the first condition in the following line: https://core.trac.wordpress.org/browser/tags/3.9.2/src/wp-includes/media.php#L599 Why is the 'thumbnail' image size preferred in the selection process? This means the thumbnail is always returned if it's next in row even if it's area is smaller and the aspect ratio is off." martinleopold 2 Needs Patch 32117 wp_get_attachment_metadata sizes array file misses path if using year/month organizing Media 4.2 normal normal Awaiting Review defect (bug) new 2015-04-24T15:58:51Z 2017-08-14T13:15:29Z "wp_get_attachment_metadata returns array like this: {{{ [""metadata""]=> array(5) { [""width""]=> int(3072) [""height""]=> int(2304) [""file""]=> string(25) ""2015/03/GC702D01_high.jpg"" [""sizes""]=> array(4) { [""thumbnail""]=> array(4) { [""file""]=> string(25) ""GC702D01_high-200x150.jpg"" [""width""]=> int(200) [""height""]=> int(150) [""mime-type""]=> string(10) ""image/jpeg"" } }}} as you can see, ""file"" in the first level of the array contains year and month (as i do have turned on organizing in year/month structure for uploads), but ""file"" in the second level for (e.g. in this case) the thumbnail size is only the file name, without the path. This is at least confusing, make it difficult to get the URL of the file - each size need to be then requested separately by wp_get_attachment_image_src function. IMO optimal solution would be to use full path in both `$metadata['file']` and `$metadata['sizes'][$size]['file']` so the same name would have the same structure. But i do not know if it wouldn't have some compatibility issues. Less optimal imo would be to add there also the path - it can be there only once in the top level, as all sizes are currently always in the same folder, but i think this could lock us from possible changes / plugin modifications etc. E.g. I think that it would be great, if it would be possible (and even default) to have size name, as a folder, so that we would have thumbnails in uploads/thumbnail, medium size in uploads/medium ... - this would highly reduce the number of images in one folder in default settings and would reduce the problems with displaying them on most systems. And also if we would want to delete some defined size, we could simply delete one folder and save space. So the second optimal would be to show the path in `sizes[$size]` subarray, e.g. {{{ [""metadata""]=> array(5) { [""sizes""]=> array(4) { [""thumbnail""]=> array(4) { [""file""]=> string(25) ""GC702D01_high-200x150.jpg"" [""path""]=> string(25) ""2015/03/"" } }}}" thomask 5 Needs Patch 58611 wp_get_missing_image_subsizes can return incorrect subsizes for a rotated image antpb Media 6.2.2 normal normal Future Release defect (bug) assigned 2023-06-23T12:33:44Z 2024-02-05T20:27:49Z "During the upload of a rotated image to the Media Library, the `wp_get_missing_image_subsizes()` function often returns missing subsizes for the non-rotated original image that will never be generated for the rotated image. This means for example, if a plugin is filtering `wp_update_attachment_metadata` and waiting for all thumbnails to have been generated before performing some action, it may be told that there are missing thumbnails for a rotated image, that will not be generated. Therefore it will not be able to perform that action as not all the thumbnails are deemed to be available." ianmjones 13 Needs Patch 51421 wp_get_missing_image_subsizes returns thumbnail sizes for animated GIFs Media 5.5.1 normal normal Awaiting Review 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 1 Needs Patch 55872 wp_image_add_srcset_and_sizes trys to parse images from external pages, fails with error Media 6.0 normal normal Awaiting Review defect (bug) reopened 2022-05-30T08:08:17Z 2023-02-16T19:31:44Z "If a user embeds image content from another domain by copy pasting and includes a tag like {{{ }}} 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 3 Needs Patch 43413 wp_prepare_attachment_for_js missing image size medium_large Media 4.9.4 normal normal Future Release defect (bug) new 2018-02-25T18:54:29Z 2019-04-15T18:12:50Z "I have a function that creates a media size in case the size is called but is missing in meta. https://gist.github.com/danyj/2edb3d83bae4c363bf839f0dd5f1343f usage {{{ thz_create_missing_attachment_size(13031,'medium_large'); }}} every missing file size is recreated and exists in by wp_prepare_attachment_for_js size key except the media_large because it is missing here. https://github.com/WordPress/WordPress/blob/dfa68397063daf90a8758896693f137f9b981856/wp-includes/media.php#L3297-L3304 Basically if meta has been updated the wp_prepare_attachment_for_js is not checking for sizes but manually goes by that array . Not sure if the missing size key is left out on purpose but when you compare the wp_prepare_attachment_for_js to wp_get_attachment_metadata the data is not same " Themezly 1 Needs Patch 58240 wp_read_image_metadata() doesn't handle Exif array values joedolson* Media normal normal Future Release defect (bug) accepted 2023-05-03T06:02:01Z 2024-02-05T20:25:50Z "Some images appear to have multiple values for some headers, which causes `wp_read_image_metadata()` to return `'Array'` for some fields. A real-life example are these images: - https://wordpress.org/photos/photo/3056444e62/ - https://wordpress.org/photos/photo/7716444e53/ - https://wordpress.org/photos/photo/5376444e57/ Looking at the return value from `exif_read_data()` for one of these, you'll see arrays below. However `wp_read_image_metadata()` includes lines like `(string) $exif['FocalLength'];`. It looks like `iPhone 13 mini` might be common between the above examples {{{ [...] 'SectionsFound' => string(19) ""ANY_TAG, IFD0, EXIF"" 'COMPUTED' => array(6) { [...] 'ApertureFNumber' => string(5) ""f/1.6"" } [...] 'Make' => string(5) ""Apple"" 'Model' => string(48) ""iPhone 13 mini back dual wide camera 5.1mm f/1.6"" 'Exif_IFD_Pointer' => int(106) 'ApertureValue' => array(2) { [0] => string(9) ""1356/1000"" [1] => string(9) ""8803/1000"" } [...] 'FocalLength' => array(2) { [0] => string(9) ""5100/1000"" [1] => string(10) ""10884/1000"" } 'ShutterSpeedValue' => array(2) { [0] => string(10) ""10884/1000"" [1] => string(19) ""1124129791/84149760"" } }}} As a result on the above Photo pages you'll see something like this: {{{ Focal Length: Arraymm Shutter Speed: 1/0 }}} This could be related to the image processing application being used, or the sections found in the image. I'd be tempted to just select the first array key in those cases." dd32 13 Needs Patch 60178 wp_video_shortcode() outputs invalid HTML Media normal normal Awaiting Review defect (bug) new 2024-01-02T22:09:17Z 2024-02-15T07:25:42Z "Did an audit of a website and found several invalid HTML for video tags that were output with `wp_video_shortcode()`. The errors: * Bad value `1` for attribute `loop` on element `video` * Bad value `1` for attribute `autoplay` on element `video` * Bad value `1` for attribute `muted` on element `video` Based on documentation from Mozilla, all 3 are boolean attributes. Here is an example of function usage that produced the HTML validation errors: {{{#!php wp_get_attachment_url(9999), 'class' => 'my-custom-video', 'poster' => '', 'loop' => 'true', 'autoplay' => 'true', 'muted' => 'true', 'height' => 1080, 'width' => 1920 ] ); }}} This part in `wp_video_shortcode()` is the culprit: {{{#!php $v ) { $attr_strings[] = $k . '=""' . esc_attr( $v ) . '""'; } }}} Currently, we are using the filter to clean up these attributes like this: {{{#!php \n""; }}} 2. L1820 in wp-includes/media.php (https://github.com/WordPress/WordPress/blob/3.9.1/wp-includes/media.php#L1820) {{{ if ( 'mediaelement' === $library ) $html .= wp_mediaelement_fallback( $fileurl ); }}} Plugin author should be able to add arbitrary HTML code before and inside the `