Drew Jaynes
f8657d5890
Remove redundant and erroneous @uses
tag from most core inline documentation.
...
Per our inline documentation standards, no further use of the `@uses` tag is recommended as used and used-by relationships can be derived through other means. This removes most uses of the tag in core documentation, with remaining tags to be converted to `@global` or `@see` as they apply.
Fixes #30191 .
Built from https://develop.svn.wordpress.org/trunk@30105
git-svn-id: http://core.svn.wordpress.org/trunk@30105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-30 01:05:24 +00:00
John Blackbourn
a866a7192f
Introduce some actions and filters which aid plugins in revisioning post meta.
...
* `wp_save_post_revision_post_has_changed` filter which can be used to determine if a post has been changed, and therefore if a revision should be created for a post.
* `wp_get_revision_ui_diff` filter which can be used to filter the fields displayed in the post revision diff UI.
* `wp_creating_autosave` action which is fired just before an autosave is created.
See #20564 .
Props mattheu, adamsilverstein.
Built from https://develop.svn.wordpress.org/trunk@30091
git-svn-id: http://core.svn.wordpress.org/trunk@30091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-29 19:02:21 +00:00
Scott Taylor
ee97a47c61
In _wp_handle_upload()
, if test_upload
is set to false
in the array of dangerous overrides that the function allows, the only thing that happens when an upload fails is more potential breakage.
...
`$test_uploaded_file` lets is know if `$file['tmp_name']` exists, which allows to exit with an error, instead of continuing to attempt to move the file.
`$test_upload` override is now a noop.
Fixes #28208 .
Built from https://develop.svn.wordpress.org/trunk@30076
git-svn-id: http://core.svn.wordpress.org/trunk@30076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-28 21:17:22 +00:00
Boone Gorges
502bc03090
Remove UNIQUE key from 'slug' column of terms table.
...
Each slug is a unique and beautiful snowflake, but let's enforce that
uniqueness elsewhere.
Props hotchkissconsulting.
Fixes #22023 .
Built from https://develop.svn.wordpress.org/trunk@30056
git-svn-id: http://core.svn.wordpress.org/trunk@30056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-28 18:37:18 +00:00
Gary Pendergast
007ec52958
Add wp_json_encode()
, a wrapper for json_encode()
that ensures everything is converted to UTF-8.
...
Change all core calls from `json_encode()` to `wp_json_encode()`.
Fixes #28786 .
Built from https://develop.svn.wordpress.org/trunk@30055
git-svn-id: http://core.svn.wordpress.org/trunk@30055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-28 18:35:19 +00:00
Sergey Biryukov
3badb558f6
Remove one-time loop and redundant isset() checks in do_meta_boxes().
...
See [30022] for do_accordion_sections().
props ipm-frommen.
fixes #30093 .
Built from https://develop.svn.wordpress.org/trunk@30040
git-svn-id: http://core.svn.wordpress.org/trunk@30040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-27 12:58:19 +00:00
Drew Jaynes
f5cc9ba1be
Add a missing asterisk in the DocBlock for write_post()
.
...
Also removes several `@uses` tags, which are no longer leveraged as part of the inline documentation standard.
Props tareq1988.
Fixes #30118 .
Built from https://develop.svn.wordpress.org/trunk@30034
git-svn-id: http://core.svn.wordpress.org/trunk@30034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-26 23:56:18 +00:00
Sergey Biryukov
1bd594f033
Remove one-time loop and redundant isset() checks.
...
props ipm-frommen.
fixes #30093 .
Built from https://develop.svn.wordpress.org/trunk@30022
git-svn-id: http://core.svn.wordpress.org/trunk@30022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-25 16:34:18 +00:00
Drew Jaynes
3ad681b2ef
Fix an invalid type for the $section
parameter in the do_settings_fields()
DocBlock.
...
Props ipm-frommen.
See #30098 .
Built from https://develop.svn.wordpress.org/trunk@30018
git-svn-id: http://core.svn.wordpress.org/trunk@30018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-25 13:38:23 +00:00
Sergey Biryukov
2c8e435aa5
Fix copy/paste errors in [27769].
...
props Corphi.
fixes #30054 .
Built from https://develop.svn.wordpress.org/trunk@29977
git-svn-id: http://core.svn.wordpress.org/trunk@29723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 21:35:18 +00:00
Dion Hulse
dbbd9fb5ec
Filesystem: Fix the move() method of the SSH2 transport, which was using the SSH2 link rather than the SFTP link.
...
Props nobleclem. Fixes #29405
Built from https://develop.svn.wordpress.org/trunk@29970
git-svn-id: http://core.svn.wordpress.org/trunk@29716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 07:46:19 +00:00
Dion Hulse
6792506741
Avoid a PHP Notice in the PemFTP Library by adding a missing function parameter. This parameter is unused by WordPress.
...
Props hugodelgado. Fixes #29628
Built from https://develop.svn.wordpress.org/trunk@29969
git-svn-id: http://core.svn.wordpress.org/trunk@29715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 07:41:19 +00:00
Boone Gorges
24babfddb3
Allow apostrophes in email addresses when adding users via the Dashboard.
...
Email addresses entered in a number of interfaces were not being stripslashed
properly, with the result that the emails were not being recognized as valid.
Fixes #18039 .
Built from https://develop.svn.wordpress.org/trunk@29966
git-svn-id: http://core.svn.wordpress.org/trunk@29713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-19 20:30:19 +00:00
Sergey Biryukov
15a1e0731e
Use proper functions for escaped translations.
...
pros jcastaneda.
fixes #30012 .
Built from https://develop.svn.wordpress.org/trunk@29961
git-svn-id: http://core.svn.wordpress.org/trunk@29708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-18 20:11:18 +00:00
Dominik Schilling
61819a36ea
Customizer: Change instances of "Theme Customizer" to just "Customizer", as the Customizer isn't necessarily theme-specific.
...
Also capitalize "Customizer".
See also https://make.wordpress.org/core/2014/07/08/customizer-improvements-in-4-0/ .
props studionashvegas, tareq1988.
fixes #29947 .
Built from https://develop.svn.wordpress.org/trunk@29903
git-svn-id: http://core.svn.wordpress.org/trunk@29658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-15 17:21:19 +00:00
Sergey Biryukov
16a55620c3
Twenty Fifteen: Update some more bundled theme references after [29895].
...
see #29799 .
Built from https://develop.svn.wordpress.org/trunk@29900
git-svn-id: http://core.svn.wordpress.org/trunk@29655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-15 14:35:18 +00:00
Sergey Biryukov
e5d518abee
Avoid PHP notices if 'plugin' is not set for tab=plugin-information.
...
props avryl.
fixes #29936 .
Built from https://develop.svn.wordpress.org/trunk@29882
git-svn-id: http://core.svn.wordpress.org/trunk@29638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-12 13:06:19 +00:00
Sergey Biryukov
471dc2022f
Add missing label to comment type filter dropdown.
...
props afercia.
fixes #29922 .
Built from https://develop.svn.wordpress.org/trunk@29872
git-svn-id: http://core.svn.wordpress.org/trunk@29631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-11 02:26:18 +00:00
Sergey Biryukov
f013b7e64b
Remove "View" prefix from category filter dropdowns, for consistency with [27626].
...
props afercia.
see #29921 .
Built from https://develop.svn.wordpress.org/trunk@29871
git-svn-id: http://core.svn.wordpress.org/trunk@29630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-11 02:23:18 +00:00
Sergey Biryukov
2c0947eeee
Add missing labels to category filter dropdowns.
...
props afercia.
fixes #29921 .
Built from https://develop.svn.wordpress.org/trunk@29870
git-svn-id: http://core.svn.wordpress.org/trunk@29629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-11 02:21:19 +00:00
Dominik Schilling
57c41263d7
Language packs: Remove translations when deleting a theme or a plugin.
...
This is for translation files in WP_LANG_DIR which are installed through a language pack.
Change `wp_get_installed_translations()` to only return a translation if the .mo file also exists.
fixes #29860 .
Built from https://develop.svn.wordpress.org/trunk@29856
git-svn-id: http://core.svn.wordpress.org/trunk@29619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-08 19:05:20 +00:00
Dominik Schilling
04edb0a1d6
Update jQuery UI to 1.11.1.
...
Because jQUI's build process no longer provides individual minified files we need some additional changes:
* Rename all files, remove the "jquery.ui." prefix. Add old files to `$_old_files`.
* Add and use non-minified files in /src.
* Add grunt task to minify jQuery UI files.
* (Non-minified files will not be shipped.)
Changelogs:
* http://jqueryui.com/changelog/1.11.0/
* http://jqueryui.com/changelog/1.11.1/
props Fab1en, ocean90.
fixes #29833 .
Built from https://develop.svn.wordpress.org/trunk@29847
git-svn-id: http://core.svn.wordpress.org/trunk@29610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-07 15:28:24 +00:00
Dominik Schilling
197f0a30a4
Plugin search: Wrap results in a form to fix pagination's paged
input field.
...
props jesin, ocean90.
see #18724 , for trunk.
Built from https://develop.svn.wordpress.org/trunk@29829
git-svn-id: http://core.svn.wordpress.org/trunk@29594 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-03 13:08:16 +00:00
Sergey Biryukov
e59c624ef6
Use correct links for filtering plugin reviews.
...
props OriginalEXE.
fixes #29754 .
Built from https://develop.svn.wordpress.org/trunk@29826
git-svn-id: http://core.svn.wordpress.org/trunk@29591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-03 08:09:17 +00:00
Scott Taylor
59ef20d458
In activate_plugin()
, do not re-run the activation routine for already-active network-wide plugins.
...
Adds unit test.
Props jbrinley.
Fixes #28651 .
Built from https://develop.svn.wordpress.org/trunk@29818
git-svn-id: http://core.svn.wordpress.org/trunk@29584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-02 15:56:14 +00:00
Scott Taylor
cf31ee092b
Media List Table: account for MEDIA_TRASH
in the bulk action dropdown.
...
See #29742 .
Built from https://develop.svn.wordpress.org/trunk@29810
git-svn-id: http://core.svn.wordpress.org/trunk@29576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-02 03:12:18 +00:00
Sergey Biryukov
be631b3f1b
Reorder placeholders for consistency. see [29806].
...
see #21089 .
Built from https://develop.svn.wordpress.org/trunk@29807
git-svn-id: http://core.svn.wordpress.org/trunk@29573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-02 01:38:15 +00:00
Scott Taylor
258496edb6
In the wp_new_blog_notification()
email template, include the login url.
...
Props obenland, georgestephanis.
Fixes #21089 .
Built from https://develop.svn.wordpress.org/trunk@29806
git-svn-id: http://core.svn.wordpress.org/trunk@29572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-02 01:28:16 +00:00
Mark Jaquith
e1f2b3b9e2
Use HTTPS URLs for trac.wordpress.org (and use core.trac.wordpress.org)
...
see #27115
Built from https://develop.svn.wordpress.org/trunk@29789
git-svn-id: http://core.svn.wordpress.org/trunk@29561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-29 13:37:16 +00:00
Mark Jaquith
0d3b83551f
Use HTTPS URLs for core.trac.wordpress.org
...
see #27115
Built from https://develop.svn.wordpress.org/trunk@29788
git-svn-id: http://core.svn.wordpress.org/trunk@29560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-29 13:28:16 +00:00
Mark Jaquith
184fa46699
Use HTTPS links for planet.wordpress.org
...
see #27115
Built from https://develop.svn.wordpress.org/trunk@29787
git-svn-id: http://core.svn.wordpress.org/trunk@29559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-29 13:24:15 +00:00
Mark Jaquith
28bf972789
Show the number of approved comments instead of all comments on
...
the dashboard in the "At a glance" section.
fixes #26738 . props benjmay
Built from https://develop.svn.wordpress.org/trunk@29785
git-svn-id: http://core.svn.wordpress.org/trunk@29557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-29 12:42:16 +00:00
Andrew Ozz
7a55ab9164
Media: disable multi-file uploading in iOS 7.x Safari as it prevents uploading of videos. Fixes #29602 for trunk.
...
Built from https://develop.svn.wordpress.org/trunk@29776
git-svn-id: http://core.svn.wordpress.org/trunk@29548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-29 00:14:18 +00:00
Sergey Biryukov
9bf3007b55
Remove unnecessary CSS overriding on Add Plugins screen.
...
props pavelevap.
fixes #29753 .
Built from https://develop.svn.wordpress.org/trunk@29775
git-svn-id: http://core.svn.wordpress.org/trunk@29547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-28 20:26:17 +00:00
Sergey Biryukov
ebdfe06843
Don't display an empty comment author IP link on Comments screen.
...
props afercia.
fixes #29766 .
Built from https://develop.svn.wordpress.org/trunk@29774
git-svn-id: http://core.svn.wordpress.org/trunk@29546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-28 06:38:18 +00:00
Sergey Biryukov
dfe7775465
Remove extra space from a string.
...
props pavelevap.
fixes #29752 .
Built from https://develop.svn.wordpress.org/trunk@29767
git-svn-id: http://core.svn.wordpress.org/trunk@29539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-26 18:49:19 +00:00
Scott Taylor
2f328cc4c1
In wp_ajax_replyto_comment()
, if $_POST['comment_type']
is set, use it for the value of $comment_type
, which the compact()
call has assumed is set since [8720]. It never was.
...
`wp_comment_reply()`'s output can be complete overridden by the `wp_comment_reply` filter, so this check is justified and makes the AJAX callback more flexible.
Props nerrad.
Fixes #29704 .
Built from https://develop.svn.wordpress.org/trunk@29758
git-svn-id: http://core.svn.wordpress.org/trunk@29530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-23 03:29:16 +00:00
Scott Taylor
9768b89cc7
If the current user does not have the delete_posts
cap on the current post type, don't list delete
or trash
as bulk actions for the relevant context of Post list table.
...
Props mvd7793.
Fixes #20175 .
Built from https://develop.svn.wordpress.org/trunk@29757
git-svn-id: http://core.svn.wordpress.org/trunk@29529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-23 02:58:16 +00:00
Sergey Biryukov
26124b9aad
Pass the attachment ID to the 'image_add_caption_text' filter.
...
fixes #29607 .
Built from https://develop.svn.wordpress.org/trunk@29754
git-svn-id: http://core.svn.wordpress.org/trunk@29526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-21 10:11:16 +00:00
Sergey Biryukov
79d017a024
Add 'image_add_caption_text' filter for changing the pre-parse caption text before output to the editor.
...
props collinsinternet, DrewAPicture.
fixes #29607 .
Built from https://develop.svn.wordpress.org/trunk@29753
git-svn-id: http://core.svn.wordpress.org/trunk@29525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-21 09:56:17 +00:00
Andrew Nacin
1447092f6e
Don't set ftp_credentials option when installling. see #29635 .
...
Built from https://develop.svn.wordpress.org/trunk@29749
git-svn-id: http://core.svn.wordpress.org/trunk@29521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-17 17:58:15 +00:00
Scott Taylor
d0a327b0b9
Make the URL output in _thickbox_path_admin_subfolder()
use includes_url()
.
...
Props voldemortensen.
Fixes #14157 .
Built from https://develop.svn.wordpress.org/trunk@29741
git-svn-id: http://core.svn.wordpress.org/trunk@29515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-12 22:31:18 +00:00
Scott Taylor
69998d452b
In media_handle_upload()
, don't call wp_read_image_metadata()
on things that aren't images (like videos). We never caught this error, because we are suppressing it by calling @wp_read_image_metadata()
.
...
Props jrf for the initial patch.
Fixes #28907 .
Built from https://develop.svn.wordpress.org/trunk@29737
git-svn-id: http://core.svn.wordpress.org/trunk@29511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-11 20:15:17 +00:00
Andrew Ozz
69e7171f41
Media: revert enabling of multi-file uploading for mobile devices. Currently only iOS Safari supports it but has a bug that prevents uploading of videos. Fixes #29602
...
Built from https://develop.svn.wordpress.org/trunk@29729
git-svn-id: http://core.svn.wordpress.org/trunk@29503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-10 22:40:16 +00:00
Scott Taylor
fa0acbe3bb
Don't overwrite the length
property unnecessarily when generating metadata for audio and video files.
...
Props jrf, wonderboymusic.
Fixes #29176 .
Built from https://develop.svn.wordpress.org/trunk@29728
git-svn-id: http://core.svn.wordpress.org/trunk@29502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-10 21:57:15 +00:00
Sergey Biryukov
1eb26d3ff3
Use https for apps.wordpress.org links.
...
props pento.
fixes #29595 for trunk.
Built from https://develop.svn.wordpress.org/trunk@29721
git-svn-id: http://core.svn.wordpress.org/trunk@29495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-09 06:29:15 +00:00
Andrew Nacin
f7392ef917
Pinking shears.
...
Built from https://develop.svn.wordpress.org/trunk@29707
git-svn-id: http://core.svn.wordpress.org/trunk@29481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-04 15:23:16 +00:00
Andrew Nacin
00fac0639d
Link to apps.wordpress.org instead of wordpress.org/mobile.
...
props pento.
fixes #29496 .
Built from https://develop.svn.wordpress.org/trunk@29703
git-svn-id: http://core.svn.wordpress.org/trunk@29477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-04 14:22:15 +00:00
Sergey Biryukov
2ff943b7b0
Restore the post type's view_item label for preview links that don't submit the changes.
...
fixes #28350 .
Built from https://develop.svn.wordpress.org/trunk@29695
git-svn-id: http://core.svn.wordpress.org/trunk@29470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 11:33:16 +00:00
Dominik Schilling
de59e21b62
Language Pack Upgrader: Allow to disable asynchronously translation updates.
...
* Don't touch VCS installs.
* Use the `async_update_translation` filter (which corresponds exactly to `auto_update_translation`) to entirely disable it, or based on the update offer.
props nacin, ocean90.
fixes #28571 .
Built from https://develop.svn.wordpress.org/trunk@29694
git-svn-id: http://core.svn.wordpress.org/trunk@29469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-03 10:38:17 +00:00