Andrew Ozz
6dad32d2ae
Admin email verification:
...
- Add the `admin_email_lifespan` option when installing. Fixes a bug where the verification screen is shown right after installation.
- Reset the same option when upgrading and the user doing the DB upgrade is not an admin. This will ensure the email verification is shown next time an admin logs in.
- Use `site_url()` instead of `network_site_url()` for the form action. The latter seems needed only for password reset.
See #46349 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45788 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-13 17:39:06 +00:00
Peter Wilson
feb0830c79
Comments: Include post permalink in comment reply link.
...
Include the post's permalink when generating reply links in `get_comment_reply_link()` to account for comments displayed on index and archive pages.
This reapplies [32786] which was inadvertently reverted in [42360].
Props justinahinon, donmhico.
See #33383 .
Fixes #47174 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45787 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-13 05:08:14 +00:00
K. Adam White
3d53fdba73
Docs: Clarify custom-fields support requirement for viewing custom post meta in REST API.
...
Fixes #47866 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45786 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-13 01:51:00 +00:00
Gary Pendergast
457a57af83
Build Tools: Remove the old docker-compose.yml
file, now no longer used.
...
See #47767 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45785 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-12 09:22:00 +00:00
Gary Pendergast
4311bac7e4
Build Tools: Add the docker-compose.yml
file, missed in [45783].
...
See #47767 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45784 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-12 09:20:06 +00:00
Gary Pendergast
13d356691b
Build Tools: Miscellaneous local-env
improvements.
...
- Move the functionality for controlling `local-env` out of `package.json`, into JS scripts.
- Merge the `docker-compose` config files, and move it to the root directory. This allows `docker-compose.override.yml` to work for local overrides.
- Fix nginx redirecting to port 80 under some circumstances.
- `npm run env:install` now creates `wp-tests.config.php` for you.
- Cleaned up a bunch of cruft in `.travis.yml`.
See #47767 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45783 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-12 08:28:33 +00:00
Sergey Biryukov
83eb411e27
Site Health: Add database charset and collation information to debug info.
...
Props sharaz, Clorith, SergeyBiryukov.
Fixes #47828 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45782 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-12 01:53:17 +00:00
Sergey Biryukov
c76271c49a
Docs: Improve documentation for various feed link functions and filters.
...
Props atachibana, SergeyBiryukov.
Fixes #47862 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45781 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-11 17:20:51 +00:00
Sergey Biryukov
64eeedee46
Docs: Improve documentation for get_last_updated()
.
...
Props atachibana.
Fixes #47861 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45780 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-11 16:17:16 +00:00
Sergey Biryukov
26592196e0
Docs: Improve documentation for get_page_by_title()
.
...
Props atachibana.
Fixes #47860 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45779 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-11 12:41:34 +00:00
Sergey Biryukov
6ca6c447b9
Docs: Document the show_split_view
argument for wp_text_diff()
.
...
Convert `$args` array documentation to hash notation.
Props riddhiehta02, jeremyfelt, SergeyBiryukov.
Fixes #47224 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45778 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-10 22:27:02 +00:00
Jake Spurlock
f88cc8aaa7
Widgets: Replace http with https in the link placeholder widget image
...
The existing placeholder can make the user think that they must use http. We should encourage the use of https.
Also, the block editor uses https for its placeholders. Let's add some consistency.
Props Chaton666, audrasjb, mukesh27.
Fixes #46320 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45777 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-09 17:05:13 +00:00
Sergey Biryukov
4513c3f009
Twenty Sixteen: Correct HelpHub URL in readme.txt
.
...
See #47771 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45776 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-09 13:52:49 +00:00
Sergey Biryukov
5b2c4b5a53
Twenty Nineteen: Add missing Installation
section to readme.txt
, for consistency with other themes.
...
See #47857 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45775 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-09 13:41:38 +00:00
Sergey Biryukov
570cadf0d9
Twenty Nineteen: Add missing copyright information.
...
Props poena, kjellr.
Fixes #47857 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45774 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-09 13:35:57 +00:00
Sergey Biryukov
18632fbf8d
Twenty Nineteen: Correct license URI.
...
Props munyagu, shital-patel.
Fixes #47850 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45773 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-09 02:56:40 +00:00
Gary Pendergast
72529b3deb
Feeds: Introduce the get_self_link()
function.
...
Corresponds to the `self_link()` template function.
This matches other feed template functions, using one function to get the value, and a different function to echo it.
Props jojotjebaby, mobeen-abdullah, donmhico, audrasjb, dshanske.
Fixes #44838 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45772 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-09 01:30:32 +00:00
Sergey Biryukov
739bc58d13
REST API: In get_rest_url()
, check if $_SERVER['SERVER_NAME']
is set to avoid a PHP warning in CLI context.
...
Props paulschreiber.
Fixes #47854 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45771 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-08 20:19:48 +00:00
Sergey Biryukov
3008781746
Bootstrap/Load: Change "Insufficient Requirements" wp_die()
heading to "Requirements Not Met", which is more appropriate for the context it's used in.
...
Props yoavf.
Fixes #47575 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45770 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-08 12:53:21 +00:00
Gary Pendergast
c645936163
Emoji: Upgrade Twemoji to 12.1.2.
...
This upgrade adds support for the transgender flag: 🏳️⚧️
There's some additional housekeeping in this commit:
- Twemoji recently rearranged their repository and package, so `Gruntfile.js` needed tweaking to allow for that.
- As only new files were added in this Twemoji release, the CDN version didn't need updating.
Fixes #47852 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45769 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-08 04:04:15 +00:00
Sergey Biryukov
0d9ec05d2c
Bundled Themes: Audit and update version numbers passed to wp_enqueue_script()
to ensure proper cache busting.
...
Props dswebsme, ianbelanger, justinahinon.
Fixes #46981 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45768 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-08 01:28:26 +00:00
Sergey Biryukov
e58b5f1c7f
Bundled Themes: Audit and update version numbers passed to wp_enqueue_style()
to ensure proper cache busting.
...
Props dswebsme, ianbelanger, desrosj.
Fixes #46979 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45767 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-08 01:24:32 +00:00
Sergey Biryukov
98642e4893
Administration: Show a warning in Reading Settings when a Privacy Policy page is accidentally set as a Homepage or Posts page.
...
Props garrett-eclipse, subrataemfluence.
Fixes #46831 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45766 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-07 23:02:43 +00:00
Aaron Jorbin
72d2ed8113
Bump grunt-patch-wordpress to 2.0.0
...
Fixes #47845
Props pento, kadamwhite, netweb, jorbin
git-svn-id: https://develop.svn.wordpress.org/trunk@45765 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-07 15:08:04 +00:00
Sergey Biryukov
f57620a8d6
Twenty Seventeen: Correct height for a Button block without text.
...
Props ianbelanger, laurelfulford, nayana123.
Fixes #47414 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45764 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-07 11:56:04 +00:00
Sergey Biryukov
e7c67d49c0
Twenty Eleven: Correct height for a Button block without text.
...
Props ianbelanger, laurelfulford, nayana123.
See #47414 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45763 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-07 11:55:46 +00:00
Gary Pendergast
4271f1aeca
Build Tools: Switch all Travis PHPUnit jobs over to Docker-based PHP.
...
Additionally, there are a handful of related minor changes in this commit:
- `.travis.yml` has been tidied up a little.
- [45745] was incorrectly marking Travis jobs as passed when some PHPUnit runs failed.
- Add the `LOCAL_PHP_MEMCACHED` environment variable, for enabling Memcached.
- Add the `env:pull` NPM script, for refreshing Docker images.
See #47767 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45762 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-07 11:54:22 +00:00
Sergey Biryukov
008085d870
Twenty Nineteen: Revise Latest Posts block styles to support post content options.
...
Props kjellr, ianbelanger.
Fixes #47340 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45761 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-07 11:47:26 +00:00
Sergey Biryukov
20905d6f74
Twenty Nineteen: Remove duplicate height
and width
attributes from SVG icons.
...
The attributes are added via `TwentyNineteen_SVG_Icons::get_svg()`, there's no need to have them separately in SVG sources.
Props mukesh27, albertomake.
Fixes #47128 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45760 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-07 11:40:28 +00:00
Sergey Biryukov
10e13daccb
Coding Standards: Use strict comparison in wp-admin/edit.php
.
...
Props davidbaumwald.
Fixes #47201 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45759 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-07 11:40:00 +00:00
Andrew Ozz
93aa98ce42
Remove trailing white space in upgrade.php after [45757].
...
See #46349 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45758 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-07 01:00:06 +00:00
Andrew Ozz
296d8646e7
Add admin email verification screen. Shown every six months after an admin has logged in.
...
Also includes WPCS fixes for wp-login.php.
Props andraganescu, boemedia, lessbloat, azaozz.
See #46349 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45757 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-07 00:03:39 +00:00
Sergey Biryukov
bab0d4ee9b
Administration: Correct "Quick Edit" link height in list tables for consistency with other action links.
...
Props jobthomas, burhandodhy.
Fixes #47815 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45756 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-05 22:19:10 +00:00
Sergey Biryukov
4bbe1ab5a9
Coding Standards: Fix WPCS violation in [45754].
...
See #46570 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45755 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-05 18:09:20 +00:00
Sergey Biryukov
fad1821dd7
General: Correctly detect large floats in is_serialized()
.
...
Props killerbishop, donmhico, hoythan.
Fixes #46570 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45754 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-05 13:54:43 +00:00
Sergey Biryukov
9bb2eea37a
Feeds: Escape &
characters in atom_site_icon()
for XML, for consistency with rss2_site_icon()
.
...
Props abhijitrakas, shawfactor.
Fixes #47482 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45753 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-05 13:14:25 +00:00
Sergey Biryukov
7b11f12d96
Coding Standards: Use strict comparison in wp-admin/options-reading.php
.
...
Props subrataemfluence.
Fixes #46834 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45752 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-05 12:51:33 +00:00
Sergey Biryukov
c68927e509
Plugins: Use include_once
for wp-admin/includes/plugin-install.php
in WP_Plugin_Install_List_Table::prepare_items()
.
...
This brings consistency with the other instances where the file is included, and allows for reusing its functions in custom code.
Props engelen, desrosj.
Fixes #38874 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45751 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-05 11:06:27 +00:00
Sergey Biryukov
3f2e265174
Site Health: Use correct variable when checking PHP requirements for a plugin update in WP_Plugins_List_Table::single_row()
.
...
Props diddledan, sharaz, vaishalipanchal.
Fixes #47835 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45750 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-05 10:57:04 +00:00
Sergey Biryukov
7110d5507f
Docs: Correct @type
annotation for WP_Http_Curl
properties.
...
Props diddledan.
Fixes #46860 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45749 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-05 08:11:28 +00:00
Sergey Biryukov
89058d3c1c
Docs: Correct @type
annotation for WP_HTTP_Cookie::$expires
.
...
Props diddledan.
Fixes #46859 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45748 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-05 07:55:15 +00:00
Sergey Biryukov
62f6907bfa
Upgrade/Install: Make sure translate_level_to_role()
always returns a value.
...
Props diddledan.
Fixes #46848 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45747 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-05 07:47:43 +00:00
Sergey Biryukov
89c1d393b2
Posts, Post Types: Update, not delete the page_for_posts
option in _reset_front_page_settings_for_post()
when a linked page is deleted or trashed.
...
Props diddledan.
Fixes #46850 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45746 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-05 07:43:52 +00:00
Gary Pendergast
82d7870fe4
Build Tools: Add a WordPress Development Environment.
...
This commit adds the first iteration of a Docker-based config for setting up a local WordPress development environment.
Props pento, noisysocks, mcsf, pbearne, isabel_brison.
See #47767 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45745 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-05 07:09:14 +00:00
Sergey Biryukov
3705fddde7
Posts, Post Types: Revert unintended change from [45742].
...
See #46503 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45744 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-04 14:43:21 +00:00
Sergey Biryukov
b536f1de0b
Administration: Display a warning at the top of "All Settings" screen.
...
Props zodiac1978, donmhico, pixolin.
Fixes #47718 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45743 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-04 13:02:58 +00:00
Sergey Biryukov
7a6f44b979
Docs: Add missing description for $post
global.
...
Props immeet94.
Fixes #46503 . See #47110 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45742 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-04 12:27:02 +00:00
Sergey Biryukov
b440cd966f
Docs: Remove incorrect @return
tags in comment_reply_link()
and post_reply_link()
DocBlocks.
...
Props atachibana.
Fixes #47826 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45741 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-04 02:19:19 +00:00
Sergey Biryukov
a7b20de958
Docs: Add missing description for $current_screen
global.
...
Props mukesh27.
Fixes #45604 . See #47110 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45740 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-04 02:02:10 +00:00
Sergey Biryukov
d19f4d7ff4
Docs: Add missing description for $wp_query
and $wp_the_query
globals.
...
Props mukesh27.
See #45604 , #47110 .
git-svn-id: https://develop.svn.wordpress.org/trunk@45739 602fd350-edb4-49c9-b593-d223f7449a82
2019-08-04 01:58:03 +00:00