Ensure the comment object is not null before checking its status.
Follow-up to [47887].
Merges [47889] to the 5.4 branch.
See #49956.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47890 602fd350-edb4-49c9-b593-d223f7449a82
After a comment is submitted, only allow a brief window where the comment is live on the site.
This brings the changes from [47887] to the 5.4 branch.
Fixes#49956.
Props: jonkolbert, ayeshrajans, Asif2BD, peterwilsoncc, imath, audrasjb, jonoaldersonwp, whyisjake.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47888 602fd350-edb4-49c9-b593-d223f7449a82
Fixes the inconsistent margins for alignwide and alignfull classes used on Cover Block when it is the first block on a page.
This commit brings the changes from [47846] to the 5.4 branch.
Props kthmd, utz119, nikhilbhansi, and sabernhardt.
Fixes#49435.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47847 602fd350-edb4-49c9-b593-d223f7449a82
The PR will corerce routes that have a leading slash and throwing a _doing_it_wrong notice while ensuring a proper namespace.
This brings the changes from [47842] to the 5.4 branch.
Fixes#49749.
Props TimothyBlynJacobs, skarabeq, afercia, skithund.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47843 602fd350-edb4-49c9-b593-d223f7449a82
This ensures that the image used as a default site icon looks good on a dark background.
The image was previously changed in the `wp-admin` directory, but the site icon is now loaded from `wp-includes`.
Follow-up to [36635], [47018], [47564], [47832].
Props ocean90.
Merges [47838] to the 5.4 branch.
Fixes#49798.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47839 602fd350-edb4-49c9-b593-d223f7449a82
Files inside the `wp-admin` directory may not be publicly available.
Follow-up to [36635], [47018].
Merges [47832] to the 5.4 branch.
Props whyisjake, finomeno, ocean90.
Fixes#50131.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47833 602fd350-edb4-49c9-b593-d223f7449a82
Update styles to decrease the font size for widget titles.
This commit brings the changes from [47586] to the 5.4 branch.
Props kjellr, mukesh27.
Fixes#45865.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47831 602fd350-edb4-49c9-b593-d223f7449a82
This fixes the issue where custom post types will show an author box, even if they don't support authors.
This brings the changes in [47799] to the 5.4 branch.
Props joyously, donmhico.
Fixes#48803.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47830 602fd350-edb4-49c9-b593-d223f7449a82
Modifies the mobile modal menu javascript, so that anchor links will close the modal and scroll to the anchor within the page.
This brings the changes from [47784] to the 5.4 branch.
Props Giorgio25b, suzylah, yuhin, samful, bdcstr.
Fixes#48916.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47829 602fd350-edb4-49c9-b593-d223f7449a82
Adds the option to use a g.page url for the social menu.
This brings the changes from [47795] to the 5.4 branch.
Props argentite, mayankmajeji.
Fixes#49088.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47828 602fd350-edb4-49c9-b593-d223f7449a82
Fixes the image license in the readme by removing screenshot.png.
Brings the changes from [47608] to the 5.4 branch.
Props h71, poena.
Fixes#49316.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47827 602fd350-edb4-49c9-b593-d223f7449a82
Fixes the image caption alignment issue by adding text-align: center; to .wp-block-image .aligncenter figcaption.
This brings the changes from [47689] to the 5.4 branch.
Props markusthiel, SergeyBiryukov, garethgillman.
Fixes#49320.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47826 602fd350-edb4-49c9-b593-d223f7449a82
Fixes the submenu issue by raising the z-index value of the site-header from 1 to 2.
This brings the changes in [47609] to the 5.4 branch.
Props kjellr, JavierCasares.
Fixes#49322.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47825 602fd350-edb4-49c9-b593-d223f7449a82
Buttons should use the default buttons styles, no exceptions.
This commit bring the changes from [47751] to the 5.4 branch.
Props passoniate, garethgillman, @afercia.
See #49197.
Fixes#49353.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47824 602fd350-edb4-49c9-b593-d223f7449a82
Fixes the inconsistent margins for alignwide and alignfull classes used on Cover Block when it is the first block on a page.
Brings the changes from [47820] to the 5.4 branch.
Props kthmd, utz119, nikhilbhansi.
Fixes#49435.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47823 602fd350-edb4-49c9-b593-d223f7449a82
This adds a GPLv2 compatible TikTok icon to replace the non-compatible TikTok icon and update the readme.txt file. Updates previous commit which used a non-compatible TikTok icon [47589]
This commit brings the changes from [47796] to the 5.4 branch.
Props poena, audrasjb, Emlebrun.
Fixes#49893.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47822 602fd350-edb4-49c9-b593-d223f7449a82
Fixes the center and right aligned heading accents so that they align with the text, instead of just staying left-aligned.
Bringing the changes in [47591] to the 5.4 branch.
Props kjellr, melchoyce.
Fixes#49699.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47806 602fd350-edb4-49c9-b593-d223f7449a82
Fixes the alignment of inline images in list blocks to match the way they look in the editor.
Backporting the changes here to the 5.4 branch.
Props poena, mayankmajeji, JavierCasares.
Fixes#49793.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47805 602fd350-edb4-49c9-b593-d223f7449a82
Fixes the width of the category dropdown by limiting the width of select items in widgets using max-width: 100%.
Backporting this change to the 5.4 branch.
Props gma992, karmatosed, ianbelanger.
Fixes#37926.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47803 602fd350-edb4-49c9-b593-d223f7449a82
These were added to Theme Directory API in anticipation of being committed to core for WordPress 5.2+, which has not happened until now.
Follow-up to [meta8273].
Merges [47790] to the 5.4 branch.
See #46272.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47791 602fd350-edb4-49c9-b593-d223f7449a82
The filter provides a simple way for plugin authors to add actions generically for all taxonomy list tables without looping through each taxonomy individually.
Props joemcgill, delowardev.
Merges [47734] to the 5.4 branch.
Fixes#49808.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47767 602fd350-edb4-49c9-b593-d223f7449a82
This change introduces the env:restart command for easier restarting of the local Docker environment.
Merges [47730] to the 5.4 branch.
Props desrosj, ianbelanger.
Fixes#50039.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47731 602fd350-edb4-49c9-b593-d223f7449a82
This solution extends the `wp_insert_post_data` filter to pass in addition to the slashed/sanitized/processed data, and the slashed/sanitized/unprocessed data, to also pass the initial slashed/unsanitized/unprocessed data which was passed into `wp_insert_post()`. This then allows plugins to have complete control over how sanitization is performed based on the post type.
Brings the changes in [47633] to the 5.4 branch.
Props westonruter, peterwilsoncc, sstoqnov, whyisjake, xknown.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47639 602fd350-edb4-49c9-b593-d223f7449a82
This addresses a regression in [47054], which caused posts sent via email to published with an empty title.
Props whyisjake, Otto42, MarkRH, MattyRob, mukesh27, afragen, pikamander2.
Merges [47580] to the 5.4 branch.
Fixes#49853.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47581 602fd350-edb4-49c9-b593-d223f7449a82
Depracating these filter might have been an accident, so let's restore.
Props SergeyBiryukov, audrasjb, peterwilsoncc.
Fixes#49759 for the 5.4 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47577 602fd350-edb4-49c9-b593-d223f7449a82
As the WP_Site_Health class is instantiated prior to plugins being required and the `plugins_loaded` hook being fired, it prevents plugins from using the following hooks in the functions called by `maybe_create_scheduled_event()`.
Brings [47568] to the 5.4 branch.
Fixes#49824.
Props peterwilsoncc, whyisjake.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47569 602fd350-edb4-49c9-b593-d223f7449a82
Previously, it was accidentally made available only in admin context.
Follow-up to [44606], [47245].
Brings [47555] to the 5.4 branch.
Props garrett-eclipse, johnjamesjacoby, r-a-y, Dono12.
Fixes#49802.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47567 602fd350-edb4-49c9-b593-d223f7449a82
The favicon is transparent, which would normally look fine, but on a dark background it washes out.
Bring the fix in r47564 to the 5.4 branch.
Props DhrRob, audrasjb.
Fixes#49798.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47565 602fd350-edb4-49c9-b593-d223f7449a82
Use rest_is_field_included when determining which additional fields to include to permit filtering by nested field properties.
Backportting r47511 to the 5.4 branch.
Props Dudo, kadamwhite, TimothyBlynJacobs.
Fixes#49648.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47563 602fd350-edb4-49c9-b593-d223f7449a82
r45812 incorrectly introduced a delete_post permissions check into the get_item method, breaking some plugins which requested revisions when generating previews.
Bring this commit back to the 5.4 branch.
Props sorenbronsted, yohannp, TimothyBlynJacobs.
Fixes#49645.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47562 602fd350-edb4-49c9-b593-d223f7449a82
The privacy policy guide supports a lot of HTML, include rules for lists, and ensure proper styling for the rest.
Backports the trunk commit to the 5.4 branch.
Props garrett-eclipse.
Fixes#49772.
git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47561 602fd350-edb4-49c9-b593-d223f7449a82