summaryrefslogtreecommitdiffstatshomepage
path: root/src/js
Commit message (Collapse)AuthorAge
* Themes: Add filter on bulk action fields.Joe Dolson7 days
| | | | | | | | | Because validation was added in [59134] to prevent submitting bulk actions with no selected action, sites that remove or change the default bulk actions can fail due to the missing required inputs. Add a filter (`bulk_action_observer_ids`) that allows modifying the actions accepted to fulfill validation rules. Props ethitter, kabir93, jorbin, davidbaumwald, joedolson. Fixes #63005. git-svn-id: https://develop.svn.wordpress.org/trunk@60186 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: Use different keys in array of translatable strings.Aaron Jorbin8 days
| | | | | | | | | | [59696] changed the 'Text' tab of the classic editor to 'Code' but `Code` was already used as a key in the array of translatable text. Since arrays keys need to be unique, this meant that it is possible for the wrong translation to appear in a locale. Using different keys fixes that. Props joedolson, sabernhardt, justlevine, swissspidy, audrasjb. Fixes #63269. See #38061. git-svn-id: https://develop.svn.wordpress.org/trunk@60182 602fd350-edb4-49c9-b593-d223f7449a82
* Customizer: fix logo cropping.Adam Silverstein2025-03-19
| | | | | | | | | | | | | | | Address a failure in the customizer site logo cropping after r60031. Check to ensure library exists before the call to findWhere. Follow up to r60031. Props: domainsupport, joemcgill, joedolson, kawsar007, addweb-solution-pvt-ltd, mukesh27. Fixes #63121. git-svn-id: https://develop.svn.wordpress.org/trunk@60054 602fd350-edb4-49c9-b593-d223f7449a82
* Emoji: Update the Twemoji library to 15.1.0.Peter Wilson2025-03-18
| | | | | | | | | | | | | This version adds support for the latest emoji added in Unicode Emoji 15.1. I will rise like a phoenix 🐦‍🔥 but you’re my flame 🔥. Props audrasjb, azaozz, hbhalodia, jorbin, sergeybiryukov, sirlouen. Fixes #63064. git-svn-id: https://develop.svn.wordpress.org/trunk@60035 602fd350-edb4-49c9-b593-d223f7449a82
* Media: disable "Insert Gallery" button during uploads.Adam Silverstein2025-03-17
| | | | | | | | | | | Ensure that the button to insert a gallery is disabled until all image uploads have completed on the Edit Gallery screen. Prevents an issue where users could insert a gallery with some images missing. Props: adamsilverstein, gonom9, rishavdutta. Fixes: #39824. git-svn-id: https://develop.svn.wordpress.org/trunk@60031 602fd350-edb4-49c9-b593-d223f7449a82
* TinyMCE: A11y: Remove title attributes and improve placeholders.Joe Dolson2025-03-17
| | | | | | | | | Shifts the `title` attribute on `more` and `page-break` placeholder images to `alt`, moves the `title` attribute to `alt` on the `style` and `script` placeholders and replaces the images to differentiate between CSS and JS content. Props sabernhardt, abcd95, joedolson. Fixes #62861. git-svn-id: https://develop.svn.wordpress.org/trunk@60007 602fd350-edb4-49c9-b593-d223f7449a82
* A11y: Add spoken notice when screen options are saved on change.Joe Dolson2025-03-16
| | | | | | | | | When some screen option input fields are changed (post table columns, welcome panel, and metabox visibility), the change is saved to options. Other screen options (e.g. number of items per page) are only saved on submit. The changes that are saved immediately are visibly changed for sighted readers immediately. Change adds a `wp.a11y.speak()` call to inform screen readers that a value change has updated screen options. Props kkmuffme, joedolson, yogeshbhutkar, audrasjb, sourabhjain. Fixes #62550. git-svn-id: https://develop.svn.wordpress.org/trunk@59988 602fd350-edb4-49c9-b593-d223f7449a82
* Administration: Update out of date error message styling.Joe Dolson2025-03-10
| | | | | | | | | Change several error message across core to use WordPress standard styling. Ensure only prefixes are wrapped in `strong` tags rather than the whole message, use `notice notice-error` classes where appropriate, and replace a custom error with `wp_admin_notice()` in multisite. Props afercia, rajinsharwar, robinmartijn, mukesh27, sabernhardt, oglekler, joedolson, chaion07, im3dabasia1, audrasjb, dkarfa, najmulsaju. Fixes #50402. git-svn-id: https://develop.svn.wordpress.org/trunk@59960 602fd350-edb4-49c9-b593-d223f7449a82
* Menus: Fix JS Warning when removing menu items.Joe Dolson2025-03-07
| | | | | | | | | Move the `updateParentDropdown` and `updateOrderDropdown` methods to be called on the jQuery menu object instead of on the `menus` translations object. Props joedolson, abcd95, audrasjb. Fixes #63059. git-svn-id: https://develop.svn.wordpress.org/trunk@59950 602fd350-edb4-49c9-b593-d223f7449a82
* Menus: Validate custom links and add accessible error messages.Joe Dolson2025-03-06
| | | | | | | | | Add URL validation in the admin navigation menu manager that matches the validation in the customizer when adding custom links. Improve accessibility of both custom link forms by adding `aria-invalid` and `aria-describedby` attributes with visible error messages and announcing the error using `wp.a11y.speak()`. Props joedolson, nikitasolanki1812, akrocks, pathan-amaankhan, rcreators, ironprogrammer, audrasjb, ankit-k-gupta, chaion07, rinkalpagdar, snehapatil02, jainil07, parthvataliya. Fixes #60619, #60969. git-svn-id: https://develop.svn.wordpress.org/trunk@59948 602fd350-edb4-49c9-b593-d223f7449a82
* Administration: Error messages improvements in WP Admin.Jb Audras2025-02-08
| | | | | | | | | | | | This changeset improves a bunch of WP-Admin error messages, notably replacing the good old cryptic "Something went wrong" message with more helpful information. Props peterwilsoncc, netweb, karmatosed, JoshuaWold, mrtortai, audrasjb, sukhendu2002, joedolson. See #43622. git-svn-id: https://develop.svn.wordpress.org/trunk@59789 602fd350-edb4-49c9-b593-d223f7449a82
* External Libraries: Remove stray Unicode character in moxie.jsJonathan Desrosiers2025-02-06
| | | | | | | | | | | This fixes a `ReferenceError` caused by a stray Unicode character in the unminified version of moxie.js. This has long been fixed upstream but the library cannot be wholesale updated in WordPress because of an incompatible license change. Because of this, a new version is being tagged, `1.3.5.1`, and the file header has been updated to make it more clear that the file is a maintained fork with a high level list of changes made. Props kinggmobb, jorbin, q0rban, azaozz, desrosj, sukhendu2002. Fixes #59329. git-svn-id: https://develop.svn.wordpress.org/trunk@59770 602fd350-edb4-49c9-b593-d223f7449a82
* Administration: Fix undefined element JS error in pagination handler.Joe Dolson2025-01-30
| | | | | | | | | Follow up to [59727]. Handle cases where the `#current-page-selector` is not present on the page to prevent a JS warning. Props tobiasbg, mamaduka, jorbin, joedolson. See #62534. git-svn-id: https://develop.svn.wordpress.org/trunk@59746 602fd350-edb4-49c9-b593-d223f7449a82
* Administration: Fix pagination in categories, tags, and plugins tables.Joe Dolson2025-01-29
| | | | | | | | | | | Fix an issue introduced in [59134] that prevented manual entry of a page number in the pagination input field from navigating pages. Requiring validation of the bulk actions input also impacted other inputs nested in the same form. Also fixes a pre-existing bug where it was not possible to navigate to page 1 using the input field. Props ffffelix, im3dabasia1, apermo, rishavdutta, joedolson, swissspidy, jorbin, joedolson. Fixes #62534. git-svn-id: https://develop.svn.wordpress.org/trunk@59727 602fd350-edb4-49c9-b593-d223f7449a82
* Administration: Fix typo in code documentation in `wp/sanitize.js`.Joe Dolson2025-01-27
| | | | | | | | | | | Change "Text to have the HTML tags striped out of." to "Text to strip the HTML tags from." Replaces an unclear statement with a typo with a more clear statement. Props joedolson, mukesh27, dhruvang21. Fixes #62851. git-svn-id: https://develop.svn.wordpress.org/trunk@59714 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: Change the `Text` editor label to `Code`.Joe Dolson2025-01-23
| | | | | | | | | | | Rename the 'Text' tab of the classic editor to 'Code', mimicking the labels used in the block editor: "Visual editor" and "Code editor". Update code comment and Help documentation to reference the editor using the new label. Props lukecavanagh, ctienshi, travel_girl, audrasjb, sabernhardt, joedolson, rseigel, mark-k, sergeybiryukov, presskopp, giuriani, afercia, knutsp, audrasjb, sukhendu2002. Fixes #38061. git-svn-id: https://develop.svn.wordpress.org/trunk@59696 602fd350-edb4-49c9-b593-d223f7449a82
* Customizer: Allow custom accordion items with obsolete structure.Joe Dolson2024-12-22
| | | | | | | | | | | In [59224], customizer accordion item HTML structure was changed to include a `button` element as the interactive control. However, some themes inject custom markup for panel headings. Fix `controls.js` to handle both the new markup and the old markup, which is relatively common in themes. Props paullb, desrosj, sabernhardt, joedolson, jorbin. Fixes #62494. git-svn-id: https://develop.svn.wordpress.org/trunk@59555 602fd350-edb4-49c9-b593-d223f7449a82
* Comments: Avoid reverting comment reply when context menu is open.Joe Dolson2024-12-14
| | | | | | | | | | | Fix a bug where a comment reply would be discarded if `esc` was pressed to dismiss the context menu in Safari or Firefox. Checks whether the contextmenu is open and ignores the `esc` key if it is. Props yellowafterlife, yogeshbhutkar, joedolson. Fixes #62346. git-svn-id: https://develop.svn.wordpress.org/trunk@59514 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: Fix selecting/deselecting multiple unwanted categories when clicking ↵Andrew Ozz2024-11-22
| | | | | | | | | on a Category checkbox on the old Edit Post screen. Props ffffelix, desrosj, ironprogrammer, neotrope, narenin, zaoyao, im3dabasia1, cbravobernal, azaozz. Fixes #62504. git-svn-id: https://develop.svn.wordpress.org/trunk@59454 602fd350-edb4-49c9-b593-d223f7449a82
* I18N: Adjust translator comments in `nav-menu.js`.Sergey Biryukov2024-11-20
| | | | | | | | | | | | | Includes: * Moving the comments directly above `wp.i18n._x()` so that they can be picked up properly. * Simplifying the context to avoid unnecessarily translating the string twice for the same use case. * Using the established translator comments format for consistency. Follow-up to [59428]. See #62402. git-svn-id: https://develop.svn.wordpress.org/trunk@59431 602fd350-edb4-49c9-b593-d223f7449a82
* Menus: i18n: Fix untranslatable strings in `nav-menu.js`.Joe Dolson2024-11-19
| | | | | | | | | | | Wrap three untranslatable strings in nav menus in JS translation functions. Follow up to [59265]. Props juliemoynat, swissspidy, yogeshbhutkar, sergeybiryukov, desrosj, tobifjellner, audrasjb, joedolson. Fixes #62402. git-svn-id: https://develop.svn.wordpress.org/trunk@59426 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: Fix the JS to select, save, and update categories on the old Edit ↵Andrew Ozz2024-11-18
| | | | | | | | | Post screen. Props: charleslf, im3dabasia1, desrosj, dhruvang21, Zargarov, sainathpoojary, azaozz Fixes: #62440 git-svn-id: https://develop.svn.wordpress.org/trunk@59414 602fd350-edb4-49c9-b593-d223f7449a82
* Media: Fix uploading of .heic images.Andrew Ozz2024-10-29
| | | | | | | | | | - Adds support for all HEIC/HEIF mime types: `image/heic`, `image/heif`, `image/heic-sequence`, and `image/heif-sequence`. - Introduces `wp_is_heic_image_mime_type()`. Props swissspidy, adamsilverstein, debarghyabanerjee, ironprogrammer, peterwilsoncc, apermo, azaozz. Fixes #62272. git-svn-id: https://develop.svn.wordpress.org/trunk@59315 602fd350-edb4-49c9-b593-d223f7449a82
* Menus: A11y: Set the parent and order using select fields.Joe Dolson2024-10-21
| | | | | | | | | | | Add `select` inputs to allow users to set the parent and position of items in the menu settings. Fixes a significant problem for screen reader users that makes updating menus extremely tedious, since the options for moving items do not explicitly set a position. This is also a significant improvement for all users manipulating large menus. This could easily be considered an enhancement, but while it is a minor enhancement for most users, it is transformative for screen reader users in managing menus, moving that interface from nearly unusable to very manageable. Props javad2000, audrasjb, juliemoynat, williamalexander, rcreators, milamj, joedolson. Fixes #43305. git-svn-id: https://develop.svn.wordpress.org/trunk@59265 602fd350-edb4-49c9-b593-d223f7449a82
* Revisions: Improve accessibility of revisions selection.Joe Dolson2024-10-13
| | | | | | | | | Add `aria-labelledby` and `aria-describedby` attributes to revision slider selection handle. Add keyboard `:focus` state to revision slider handle. Move 'multiple revision' checkbox before the buttons panel, matching its visual order. Change diff `Title` and `Content` headings from `h3` to `h2` to correct headings hierarchy. Props joedolson, rishishah, sarahricker, williamalexander, afercia. Fixes #52303. git-svn-id: https://develop.svn.wordpress.org/trunk@59225 602fd350-edb4-49c9-b593-d223f7449a82
* Administration: A11y: Fix accordion accessibility.Joe Dolson2024-10-13
| | | | | | | | | Change accordions in the customizer and the navigation menus to make proper usage of accordion markup patterns. This includes adding missing `:focus` states, using a `button` element to control tabbing and interaction, instead of the heading elements, and removing instructional text for screen reader users that was used to compensate for the incorrect markup pattern. Props afercia, rishishah, kushang78, rcreators, krupajnanda, hmbashar, joedolson. Fixes #42002. git-svn-id: https://develop.svn.wordpress.org/trunk@59224 602fd350-edb4-49c9-b593-d223f7449a82
* Customizer: Do not force users to go through the cropping flow if the image ↵Aaron Jorbin2024-10-08
| | | | | | | | | | | | is the correct ratio. If a user uploads an 800x800 image and a 512x512 image is required, then they should be allowed to skip cropping. This still creates the correct crop behind the scenes but simplifies the flow a bit for users. Props nirajgirixd, celloexpressions, westonruter, azaozz, jorbin. Fixes #36441. git-svn-id: https://develop.svn.wordpress.org/trunk@59197 602fd350-edb4-49c9-b593-d223f7449a82
* Editor: A11y: Fix tab order, state, and focus in classic editor.Joe Dolson2024-10-07
| | | | | | | | | | | Remove code that forced focus to skip from the title field to the editor. Add link to skip to editor to give the user control over their path. Set `aria-pressed` on editor selector buttons to communicate which editor is enabled. Make focus state visible on unselected editor button. Remove `wp_keep_scroll_position` flag used for IE compatibility. Add `role="presentation"` to table used as status info bar. This addresses a long-standing accessibility problem in the classic editor which created a confusing keyboard navigation path by skipping all content between the title field and the content editor. Props afercia, rcreators, benjamin_zekavica, sharonaustin, joedolson. Fixes #29838. git-svn-id: https://develop.svn.wordpress.org/trunk@59188 602fd350-edb4-49c9-b593-d223f7449a82
* Media: Hide "copied" tooltip once another URL is copied to the clipboard.Peter Wilson2024-10-07
| | | | | | | | | | | On the media grid view, hide the copied tooltip when a subsequent URL is copied to the clipboard. This prevents tooltips from remaining displayed if a user copies multiple URLs within a three second period. Props antpb, debarghyabanerjee, jayadevankbh, sabernhardt. Fixes #60082. git-svn-id: https://develop.svn.wordpress.org/trunk@59187 602fd350-edb4-49c9-b593-d223f7449a82
* Revert [59139] due to broad side effects in media library.joedolson2024-10-01
| | | | | | | | | The change in [59139] caused all media modal menus to disappear. Unprops joedolson. See #60666. git-svn-id: https://develop.svn.wordpress.org/trunk@59156 602fd350-edb4-49c9-b593-d223f7449a82
* Media: Hide sidebar in Create Gallery when no actions available.Joe Dolson2024-09-30
| | | | | | | | | Check whether the media frame menu has action items. If not, hide the sidebar. Prevents showing a sidebar that looks interactive but contains no controls that are interactive. When in Create Gallery mode, the only action available is 'Create Gallery', and it is always active. Props ukdrahul, ababir, ruchirj, nhrrob, joedolson, shailu25, mukesh27, sudipatel007, dhrumilk. Fixes #60666. git-svn-id: https://develop.svn.wordpress.org/trunk@59139 602fd350-edb4-49c9-b593-d223f7449a82
* Quick/Bulk Edit: Add notice if no items selected.Joe Dolson2024-09-30
| | | | | | | | | Add an error notice if a user attempts to apply bulk edits with no items selected. Applies to post lists, comments, taxonomies, and plugins screens. Props garrett-eclipse, nrqsnchz, sumitsingh, nihar007, royho, sabernhardt, oglekler, quadthemes, ankit-k-gupta, fnpen, ukdrahul, joedolson. Fixes #45006, #58479. git-svn-id: https://develop.svn.wordpress.org/trunk@59134 602fd350-edb4-49c9-b593-d223f7449a82
* General: Remove `noopener` from links opening in a new tab.Peter Wilson2024-09-30
| | | | | | | | | | | | | | | | | | | | | Removes the automatic addition of `rel="noopener noreferrer"` from links targeting a new tab or window, `target='_blank'`. Since this was introduced, supported browsers have changed their security policies and no longer allow the opened link to have JavaScript access to the previous tab. Deprecates: * `wp_targeted_link_rel()` * `wp_targeted_link_rel_callback()` * `wp_init_targeted_link_rel_filters()`: converted to a noop function * `wp_remove_targeted_link_rel_filters()`: converted to a noop function The deprecated functions are retained in `formatting.php` as in `SHORTINIT` mode the file is included while `deprecated.php` is not. This also removes the `noopener` from links hard coded within the WordPress dashboard linking to documentation and other resources. Props audrasjb, azaozz, dhruval04, dorzki, neo2k23, presskopp, sabernhardt, swissspidy, tobiasbg. Fixes #53843. git-svn-id: https://develop.svn.wordpress.org/trunk@59120 602fd350-edb4-49c9-b593-d223f7449a82
* Application Passwords: Add copy button when adding new password.Jeremy Felt2024-09-18
| | | | | | | | Props circlecube, dhruvang21, ironprogrammer, desrosj. Fixes #62019. git-svn-id: https://develop.svn.wordpress.org/trunk@59046 602fd350-edb4-49c9-b593-d223f7449a82
* Coding Standards: Avoid using confusing `!` condition in Media Library ↵Anthony Burchell2024-09-17
| | | | | | | | | | | | selection check. Checks that value is now equal or less than or equal to 0 which has the same result as the previous confusing `!` usage. Props kadamwhite, drjosh07. See #60369. git-svn-id: https://develop.svn.wordpress.org/trunk@59037 602fd350-edb4-49c9-b593-d223f7449a82
* Media: Add Ctrl/Command + Enter shortcut to insert selected Media Library items.Anthony Burchell2024-09-17
| | | | | | | | | | Adds a Ctrl/Command + Enter keyboard shortcut to insert the currently selected single media or multiple media items when selecting in the Media Library modal. Props poena, hirschferkel, antpb, joedolson, skobe, rcreators, plaidharper. Fixes #60369. git-svn-id: https://develop.svn.wordpress.org/trunk@59035 602fd350-edb4-49c9-b593-d223f7449a82
* Administration: Increase frequency of heartbeat API requests.Peter Wilson2024-09-11
| | | | | | | | | | | | | | Increases the frequency of heartbeat API requests from once every 15 seconds to once every 10 seconds. The purpose of this change is to reduce the length of time before a post becomes unlocked as a user navigates around the WordPress Dashboard and ceases editing a post. `wp.heartbeat.interval()` has been modified to allow theme and plugin authors to set the heartbeat interval to any value between one second and one hour rather than limiting them to a fixed set of values. Props azaozz, annezazu, jorbin, kirasong. Fixes #61960. git-svn-id: https://develop.svn.wordpress.org/trunk@59016 602fd350-edb4-49c9-b593-d223f7449a82
* Administration: Remove old IE9 code from `wp-admin/js/svg-painter.js`.Sergey Biryukov2024-09-07
| | | | | | | | | | | | | About half of the file's code was a back-compat polyfill of base64 functions for IE9. Since WordPress no longer supports IE9 as of version 4.8, and all modern browsers come with these functions, the polyfills can be removed. Follow-up to [26072], [26131], [26601], [47771]. Props TobiasBg, sabernhardt. Fixes #61995. git-svn-id: https://develop.svn.wordpress.org/trunk@58997 602fd350-edb4-49c9-b593-d223f7449a82
* Comments: Limit comments shortcut to not execute on links.Joe Dolson2024-09-03
| | | | | | | | | | | Exclude links from activating the comment submission shortcut. [45790] introduced a shortcut to submit comment forms using `Ctrl/Cmd + Enter`. This keyboard combination is also the combination for opening a link in a new tab, which resulted in submitting the form when using the Log Out or Edit Profile links. Props greentreefrog, sabernhardt, narenin. Fixes #61919. git-svn-id: https://develop.svn.wordpress.org/trunk@58981 602fd350-edb4-49c9-b593-d223f7449a82
* Plugins: Delay AJAX search until after 2 characters.Joe Dolson2024-08-30
| | | | | | | | | Prevent the AJAX search results from firing until after at least 2 characters have been typed into the search boxes. Toggle `autocomplete` value once AJAX is firing. Add a changeable minimum character threshold. Props armandsdz, adamsilverstein, afercia, mklusak, finalwebsites, joedolson. Fixes #38211. git-svn-id: https://develop.svn.wordpress.org/trunk@58957 602fd350-edb4-49c9-b593-d223f7449a82
* Media: Fix viewport scrolling and code style in image rotation.Joe Dolson2024-08-28
| | | | | | | | | | | Change `browsePopup` to use `onkeydown`, pass the `event` parameter from the calling control, and adjust variable naming style. The `browsePopup` method used for the image rotation menu used `onkeyup` to trigger events, which prevented capturing browser scroll actions with arrows occurring on `onkeydown`. Props afercia, deepakvijayan, nirajgirixd, joedolson, antpb. Fixes #60548. git-svn-id: https://develop.svn.wordpress.org/trunk@58946 602fd350-edb4-49c9-b593-d223f7449a82
* Comments: Announce reply notices to screen reader users.Peter Wilson2024-08-25
| | | | | | | | | | Improve experience for screen reader users by calling `wp.a11y.speak()` with the results of comment reply submissions within the WordPress dashboard. Props joedolson, khokansardar. Fixes #61480. git-svn-id: https://develop.svn.wordpress.org/trunk@58931 602fd350-edb4-49c9-b593-d223f7449a82
* Administration: Modernize Site Icon UI in settings, customizer.Peter Wilson2024-08-23
| | | | | | | | | | Updates the UI for previewing a site icon in general settings and the customizer to account for changes to browser designs over the past years. Props joedolson, joen, kebbet, nhrrob, swissspidy, mukesh27, afercia, jorbin. Fixes #60625. git-svn-id: https://develop.svn.wordpress.org/trunk@58927 602fd350-edb4-49c9-b593-d223f7449a82
* Media: Fix admin image cropping calculations.Joe Dolson2024-08-19
| | | | | | | | | | | The admin image editor crop function introduced rounding errors by using a scaled image to calculate values. Fix uses the image at 100% scale for calculations. Also avoid recalculating selection when the selection position is changed, and prevent incorrect values after scaling or restoration. Previously committed in [58456] and reverted in [58571]. The revert was due to a misattributed test failure. Props Jossnaz, johnillo, shailu25, rachelbaker, sudipatel007, joedolson, kevin940726 , andrewserong, hmbashar. Fixes #32282. git-svn-id: https://develop.svn.wordpress.org/trunk@58915 602fd350-edb4-49c9-b593-d223f7449a82
* Themes: Fix themes search event not firing on enter.Joe Dolson2024-08-19
| | | | | | | | | Attach the submit event to the parent search form in the installed and add new theme screen. Following [58405], the submit event was no longer attached to an object that was able to handle form submissions. Props nithi22, nithins53, josklever, the-ank, debarghyabanerjee, sabernhardt, jeherve, hellofromtonya. Fixes #61578. git-svn-id: https://develop.svn.wordpress.org/trunk@58914 602fd350-edb4-49c9-b593-d223f7449a82
* Bulk/Quick Edit: Remove duplicate HTML IDs from post list tables.Peter Wilson2024-08-13
| | | | | | | | | | | | | | | Removes duplicate IDs on the post list admin pages affecting various list items, selects and checkboxes: * JavaScript duplication of the inline editing HTML for bulk editing renames various IDs to include the prefix `bulk-edit-`, * IDs in the Category Checkbox Walker make use of `wp_unique_prefixed_id()` to avoid duplicates, resulting in a numeric suffix, and, * the post parent dropdown for the bulk editor is given a custom ID `bulk_edit_post_parent`. Props peterwilsoncc, sergeybiryukov, azaozz, joedolson, siliconforks, zodiac1978, rcreators. Fixes #61014. git-svn-id: https://develop.svn.wordpress.org/trunk@58894 602fd350-edb4-49c9-b593-d223f7449a82
* Media: Automatically convert HEIC images to JPEGRobert Anderson2024-08-05
| | | | | | | | | | | | | | | | | | | Automatically create a JPEG version of uploaded HEIC images if the server has a version of Imagick that supports HEIC. Conversion is done silently through the existing `WP_Image_Editor` infrastructure that creates multiple sizes of uploaded images. This allows users to view HEIC images in WP Admin and use them in their posts and pages regardless of whether their browser supports HEIC. Browser support for HEIC is relatively low (only Safari) while the occurrence of HEIC images is relatively common. The original HEIC image can be downloaded via a link on the attachment page. Props adamsilverstein, noisysocks, swissspidy, spacedmonkey, peterwilsoncc. Fixes #53645. git-svn-id: https://develop.svn.wordpress.org/trunk@58849 602fd350-edb4-49c9-b593-d223f7449a82
* Docs: Fix typo in a comment in `wp.media.view.Attachment.Details.TwoColumn`.Sergey Biryukov2024-07-17
| | | | | | | | | Follow-up to [41351]. Props devansh2002, mukesh27. Fixes #61658. git-svn-id: https://develop.svn.wordpress.org/trunk@58743 602fd350-edb4-49c9-b593-d223f7449a82
* Media: unfix admin image cropping calculations.Aaron Jorbin2024-06-25
| | | | | | | | | | [58456] introduced some failures to the automated test system that indicate this fix is incomplete. See #32282. Props hellofromtonya, audrasjb, andrewserong, kevin940726, oglekler. git-svn-id: https://develop.svn.wordpress.org/trunk@58571 602fd350-edb4-49c9-b593-d223f7449a82
* Media: Fix admin image cropping calculations.Joe Dolson2024-06-21
| | | | | | | | | The admin image editor crop function introduced rounding errors by using a scaled image to calculate values. Fix uses the image at 100% scale for calculations. Also avoid recalculating selection when the selection position is changed, and prevent incorrect values after scaling or restoration. Props Jossnaz, johnillo, shailu25, rachelbaker, sudipatel007, joedolson. Fixes #32282. git-svn-id: https://develop.svn.wordpress.org/trunk@58456 602fd350-edb4-49c9-b593-d223f7449a82