Sergey Biryukov
c50be6a735
Remove "View" prefix from category filter dropdowns, for consistency with [27626].
...
props afercia.
see #29921 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29871 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-11 02:22:08 +00:00
Sergey Biryukov
8d2f5d0cc5
Add missing labels to category filter dropdowns.
...
props afercia.
fixes #29921 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29870 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-11 02:20:05 +00:00
Drew Jaynes (DrewAPicture)
e94fef0168
Clarify inline documentation for the _is_valid_nav_menu_item()
and wp_get_nav_menu_items()
in wp-includes/nav-menu.php.
...
Props morganestes for the initial patch.
Fixes #29914 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29868 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-10 17:13:52 +00:00
Boone Gorges
bce6d64d59
Return an error when adding a term to a non-existent parent.
...
Parallels the logic of wp_insert_term(), introduced in [29196].
Props jesin.
Fixes #29614 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29867 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-09 18:11:17 +00:00
Drew Jaynes (DrewAPicture)
cfac76a2cc
Add more complete inline documentation for get_term_link()
.
...
Adds more complete parameter descriptions for the `$term` and `$taxonomy` parameters.
Props amruta123.b for the initial patch.
Fixes #29901 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29866 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-09 15:40:53 +00:00
Boone Gorges
adbed947d8
Don't bail out of term_exists() when term sanitizes to an empty string.
...
This change brings return values for failures of this sort in line with other
failed lookups in term_exists(): a null value is now returned in all cases
where the queried term is not found.
Adds unit test for the sanitization issue. Modifies existing unit test to
reflect the change in return value for empty term strings.
Props boonebgorges, georgestephanis.
Fixes #29589 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29865 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-09 03:15:50 +00:00
Dion Hulse
8ff133f232
Add some unit tests for WP_HTTP::parse_url() to cover the <PHP 5.4.7 compatibility alterations.
...
These unit tests cover the expected vehaviour of certain combinations of URL's, but makes no attempt to test invalid URL structures, as PHP's behavious for invalid URL's is undefined (Some will be treated as paths, others fail, and it varies between PHP 5.4.7+ and <5.4.7).
This change also makes WP_HTTP::parse_url() protected in order to allow unit testing.
See #28001 , #29886
git-svn-id: https://develop.svn.wordpress.org/trunk@29864 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-09 03:00:16 +00:00
Boone Gorges
568b43f242
Fix term_exists() for parent = 0.
...
Passing a 0 (or '0') as the 'parent' param of term_exists() should limit
results to terms with no parent.
Adds unit test.
Fixes #29851 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29863 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-09 02:48:47 +00:00
Boone Gorges
01c529e062
Improve 'alias_of' handling in wp_insert_term() and wp_update_term().
...
Using get_term_by() rather than direct SQL queries to fetch the alias term
fixes a number of issues:
* Object cache for aliased term is properly cleared after update.
* If the aliased term is in the object cache, it's served from there, saving a database query.
* Duplicate 'edit_terms' and 'edited_terms' hooks can be removed.
* Fix a PHP notice when the 'alias_of' term is not found.
* Prevent the incorrect creation of a new term group for the primary term when the 'alias_of' term is not found.
Adds unit tests for 'alias_of' functionality in both functions.
Fixes #29848 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29862 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-09 02:31:35 +00:00
Dion Hulse
c8b53c2d1a
Handle deficiencies in PHP's parse_url in older versions of PHP (<5.4.7) in WP_HTTP::make_absolute_url().
...
In older versions of PHP:
- parse_url() will fail to parse a url where the scheme break (://) is present in a relative URL's path
- parse_url() will include the hostname of a schemeless URL in the path component
This handles those two types of URL's by correcting the response from parse_url().
Fixes #28001 , #29886
git-svn-id: https://develop.svn.wordpress.org/trunk@29861 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-09 01:10:25 +00:00
Boone Gorges
91a3b376de
Explicitly declare hierarchical=false for post_tag in create_initial_taxonomies().
...
In certain edge cases, such as during the automated test suite,
create_initial_taxonomies() can be called in a situation where a non-default
permastruct setting has been saved outside of wp-admin. This causes the
'hierarchical' setting for the post_tag taxonomy to remain unset, leading to
PHP notices in get_term_link().
See #29827 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29859 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-09 00:57:16 +00:00
Dominik Schilling (ocean90)
e9be4237ba
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29856 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-08 19:04:05 +00:00
Konstantin Kovshenin
061fe13c9f
Use the primary meta_query
clause when parsing orderby
in WP_Query
.
...
When using legacy `meta_key`, `meta_value`, etc. arguments in `WP_Query`,
they're converted into the first clause of a `meta_query`. By using that
clause instead of the original arguments, we make sure that behavior is
consistent between the two available formats.
props boonebgorges.
fixes #16814 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29855 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-08 15:11:14 +00:00
Konstantin Kovshenin
6eea081457
New remove()
method and some unit tests for the WP_Error
class.
...
props stephenharris.
fixes #28092 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29854 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-08 07:11:09 +00:00
Dion Hulse
eb39c8f75d
Avoid a PHP Notice when requesting a url without a path component ( http://example.com ) in the Streams HTTP component.
...
Props barrykooij for inital patch; Fixes #27668
git-svn-id: https://develop.svn.wordpress.org/trunk@29853 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-08 06:43:14 +00:00
Dion Hulse
45cd55bfc4
When making a HTTP request to a non-standard port, include the port in the Host header for the Streams HTTP transport. This bring parity to the cURL transport and respects the HTTP RFC.
...
Props kamelkev for the initial patch; Fixes #28982
git-svn-id: https://develop.svn.wordpress.org/trunk@29852 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-08 06:14:58 +00:00
Dion Hulse
4ae1397f96
Correctly support Schemeless URLs in WP_HTTP::make_absolute_url() by respecting the 'host' field if present in the relative url.
...
Fixes #29886
git-svn-id: https://develop.svn.wordpress.org/trunk@29851 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-08 05:57:15 +00:00
Dion Hulse
e4268adfde
Correctly handle url's containing url's in WP_HTTP::make_absolute_url().
...
A valid relative URL could be mistaken for an absolute url if it contained a :// in any position of the url.
Fixes #28001
git-svn-id: https://develop.svn.wordpress.org/trunk@29850 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-08 05:37:56 +00:00
Dion Hulse
60b8ed120a
Always cast the 'code' server response to an int, this provides consistency between both of the HTTP transports.
...
Previously cURL would return an int and Streams a numeric string.
Fixes #28887
git-svn-id: https://develop.svn.wordpress.org/trunk@29849 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-08 05:20:01 +00:00
Dion Hulse
2ed0d6cae0
Return the correct server response for the 'message' response field from the server.
...
Previously this would use the generic message corresponding to the response code, which isn't always accurate. Since we're already parsing the headers, we can simply return that directly (This also has the benefit that it's the same code for both Streams and Curl header handling).
Fixes #28919
git-svn-id: https://develop.svn.wordpress.org/trunk@29848 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-08 05:18:22 +00:00
Dominik Schilling (ocean90)
539d55e068
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29847 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-07 15:27:56 +00:00
Sergey Biryukov
564598f068
Add aria-describedby attributes to comment_form().
...
props joedolson, bramd.
fixes #24148 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29846 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-06 22:10:08 +00:00
Boone Gorges
e79c2e0c9e
In get_terms(), select term taxonomy count for all values of 'fields'.
...
Not having the count caused queries with 'fields' values of 'id=>name' and
'id=>slug' to return incorrect results when querying a hierarchical taxonomy
with 'hide_empty=true'.
Includes unit tests for get_terms() when using various combinations of 'fields',
'hide_empty', and 'hierarchical' arguments.
Props technical_mastermind.
Fixes #29859 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29845 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-06 22:04:11 +00:00
Drew Jaynes (DrewAPicture)
d8ba2cf553
Add inline documentation for WP_User_Query
default arguments in the form of a hash notation.
...
Adds documentation pointers from the class-level doc for `WP_User_Query`, as well as the `get_users()` doc.
Props tschutter.
Fixes #29846 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29843 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-06 15:35:49 +00:00
Sergey Biryukov
63760f6a3f
Bundled themes: Add an alt attribute with the site title for header images linked to the home page.
...
props rianrietveld.
fixes #15926 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29842 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-06 12:43:55 +00:00
Andrew Ozz
107d754683
Add default z-index to the admin menu, see #29806
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29841 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-06 01:59:46 +00:00
Sergey Biryukov
937d5cdd11
Translate some previously untranslated _doing_it_wrong() messages.
...
props georgestephanis.
fixes #25614 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29840 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-05 21:05:54 +00:00
Sergey Biryukov
65a0f4933a
Network Admin: Properly check if the theme is active on the main site to avoid deleting it via bulk actions.
...
props ocean90.
fixes #29861 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29839 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-05 20:36:11 +00:00
Sergey Biryukov
37f96ce3e6
Fix misleading documentation in customize-loader.js.
...
props ericlewis.
fixes #29866 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29838 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-05 18:39:12 +00:00
Sergey Biryukov
4ba75673d8
Update @param docs for wp_get_attachment_image().
...
see #29869 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29837 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-05 17:51:42 +00:00
Sergey Biryukov
a21e5041dd
Pass the requested size to 'wp_get_attachment_image_attributes' filter.
...
props mattheu.
fixes #29869 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29836 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-05 17:49:32 +00:00
Andrew Ozz
d2c8c72e7f
Pin the admin menu on scrolling similarly to how the side metaboxes are pinned on the Edit Post screen, first run. See #29806 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29835 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-05 03:08:11 +00:00
Sergey Biryukov
1a7c4efa13
Fix setting default quality in WP_Image_Editor.
...
props markoheijnen.
fixes #29856 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@29834 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-04 13:11:38 +00:00
Scott Taylor
07a38ff81a
Allow PSDs (Photoshop documents) to be uploaded.
...
Props michalzuber, ccprice.
Fixes #28805 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29833 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-03 19:51:56 +00:00
Scott Taylor
11c914bca9
In the admin, give media list table icons auto
for width
and height
. In the post thumbnail metabox, apply width: auto
.
...
If someone turns on support SVG files, this will allow them to show up.
Props arippberger for an initial patch.
Fixes #26256 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29832 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-03 19:07:17 +00:00
Scott Taylor
a6f6556fca
For attachment-compat
fields, show a spinner while wp.media.model.Attachment.saveCompat()
is firing.
...
Fixes #27028 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29831 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-03 18:42:13 +00:00
Dominik Schilling (ocean90)
f7a4e22bdb
Plugin search: Wrap results in a form to fix pagination's paged
input field.
...
props jesin, ocean90.
see #18724 , for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@29829 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-03 13:07:18 +00:00
Sergey Biryukov
7d2f7c6ceb
Switch line-height added in [29790] to a unitless value.
...
props janhenckens.
fixes #29451 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29828 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-03 09:41:24 +00:00
Sergey Biryukov
b16654400f
Twenty Fourteen: Move custom description for background color and image from sections to controls in the customizer.
...
props jb510.
fixes #29490 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29827 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-03 08:42:39 +00:00
Sergey Biryukov
3d0f4d9656
Use correct links for filtering plugin reviews.
...
props OriginalEXE.
fixes #29754 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29826 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-03 08:08:27 +00:00
Sergey Biryukov
990f01f81f
Avoid a PHP notice in list_plugin_updates() if plugins_api() returned a WP_Error object.
...
fixes #29583 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29825 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-03 00:01:51 +00:00
Sergey Biryukov
dc62eeff36
Make link construction in get_comment_reply_link() and get_post_reply_link() more readable.
...
see #16433 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29823 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 20:44:34 +00:00
Sergey Biryukov
07cf5c5c76
Add an aria-label attribute with commenter's name to get_comment_reply_link().
...
props joedolson, merty, andrewryno.
fixes #16433 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29822 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 20:40:35 +00:00
Sergey Biryukov
32dbb27701
* Use correct context for 'Name' and 'Parent' strings on taxonomy screens.
...
* Remove unnecessary context for 'Slug' and 'Description' strings.
props andg.
fixes #29824 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29821 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 20:00:11 +00:00
Sergey Biryukov
c231361790
Use a more consistent markup on taxonomy and user screens.
...
props paulwilde.
fixes #29842 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29820 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 19:39:14 +00:00
Boone Gorges
6ffb0fcafb
Always sanitize user_nicename in wp_insert_user().
...
Previously, a 'user_nicename' parameter passed into the function was
unsanitized. This could result in a mismatch between the sanitized nicename
generated automatically at user creation, resulting in broken author archive
permalinks.
Props joemcgill.
Fixes #29696 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29819 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 18:53:24 +00:00
Scott Taylor
dcef5d4583
In activate_plugin()
, do not re-run the activation routine for already-active network-wide plugins.
...
Adds unit test.
Props jbrinley.
Fixes #28651 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29818 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 15:55:51 +00:00
Scott Taylor
46b4ea2a6c
Network Admin Menu:
...
* Don't display update count for Themes when the user doesn't have the 'update_themes' cap
* Don't display update count for Plugins when there aren't any/count is `0`
Props peterchester.
Fixes #29651 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29817 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 15:48:36 +00:00
Scott Taylor
701dce21b1
In wp_delete_attachment()
: account for orphan sizes by looping over the sizes stored in metadata, instead of relying on the current sizes stored in $_wp_additional_image_sizes
.
...
Props JoshuaAbenazer, desrosj, markoheijnen.
Fixes #24518 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29816 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 15:31:57 +00:00
Sergey Biryukov
f4c6eb964b
When switching to the Text editor, make the textarea visible to screen readers.
...
props afercia.
fixes #29815 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29815 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 12:45:42 +00:00
Scott Taylor
a7ea80e70b
Remember when we added the style
attribute to playlists? Fix dark
.
...
Props karpstrucking.
Fixes #29530 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29814 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 05:27:18 +00:00
Scott Taylor
bb07d10803
Add the date
filter from media grid to the media modal.
...
Props janhenckens, wonderboymusic.
Fixes #28990 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29813 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 04:31:07 +00:00
Scott Taylor
f52ca9047e
After [29811], combine 2 if
statements.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29812 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 04:15:07 +00:00
Scott Taylor
7711e9648c
Media Grid/List Table parity: when MEDIA_TRASH
is true
and trash
is the current filter for the grid, add a second bulk action button: "Delete Selected"
...
Fixes #29742 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29811 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 04:12:01 +00:00
Scott Taylor
ec93f031b3
Media List Table: account for MEDIA_TRASH
in the bulk action dropdown.
...
See #29742 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29810 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 03:11:49 +00:00
Sergey Biryukov
6dca7d1023
Add a class attribute for submit button in comment form.
...
props bainternet.
fixes #20446 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29809 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 01:43:32 +00:00
Boone Gorges
dd9e9501c1
WP_Comment_Query: comment__in, comment__not_in, post__in, post__not_in.
...
Props nofearinc, mordauk, boonebgorges
Fixes #25386
git-svn-id: https://develop.svn.wordpress.org/trunk@29808 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 01:40:56 +00:00
Sergey Biryukov
c313878af2
Reorder placeholders for consistency. see [29806].
...
see #21089 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29807 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 01:37:05 +00:00
Scott Taylor
3a11531451
In the wp_new_blog_notification()
email template, include the login url.
...
Props obenland, georgestephanis.
Fixes #21089 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29806 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 01:27:57 +00:00
Sergey Biryukov
c4fcdf329e
Add classes to form containers on Edit User screen.
...
props jarednova.
fixes #29348 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29804 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 00:55:40 +00:00
Sergey Biryukov
d59e6696b3
Add classes to form containers on taxonomy screens.
...
props jarednova.
fixes #28196 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29803 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-02 00:28:45 +00:00
Scott Taylor
0cae966012
Add a namespace to the click handler registration for .insert-media
in media-editor.js
: click.add-media-button
.
...
This is a stopgap to allow devs to override the default behavior.
Fixes #23096 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29802 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-01 19:07:14 +00:00
Scott Taylor
4daab443c0
Add a default filter to title_save_pre
: trim
, because extra whitespace.
...
Props nikolov.tmw, avryl.
Fixes #19904 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29801 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-01 18:57:08 +00:00
Sergey Biryukov
c2d1b30e1c
Version bump.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29800 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-01 14:58:21 +00:00
Boone Gorges
780c6962e5
Improve parameter sanitization in WP_Date_Query::build_query().
...
* Don't run non-numeric values through intval() for sanitization; this transforms them into 1s and 0s, which can cause unintended results.
* Be more generous about numeric array keys (don't require 0 and 1) in BETWEEN and NOT BETWEEN clauses.
Fixes #29801 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29797 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-30 14:03:49 +00:00
Drew Jaynes (DrewAPicture)
4dc3c6bea2
Update documentation for wp_get_nav_menus()
to reflect that the default value for the the 'orderby' argument was changed from 'none' to 'name' in 4.1.
...
Props curtjen.
Fixes #29460 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29796 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 23:34:33 +00:00
Sergey Biryukov
f6753a316a
Change the default orderby value in wp_get_nav_menus() to 'name'.
...
props voldemortensen, igmoweb.
fixes #29460 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29792 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 15:44:26 +00:00
Sergey Biryukov
8cc322b073
Fix padding for parent theme link on Edit Themes screen.
...
props kraftner.
fixes #27825 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29791 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 14:09:38 +00:00
Sergey Biryukov
dfc018ccf9
Account for longer translations of 'Customize Your Site' button label.
...
props shooper.
fixes #29451 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29790 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 13:56:34 +00:00
Mark Jaquith
be8a0c6f89
Use HTTPS URLs for trac.wordpress.org (and use core.trac.wordpress.org)
...
see #27115
git-svn-id: https://develop.svn.wordpress.org/trunk@29789 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 13:36:38 +00:00
Mark Jaquith
7063377539
Use HTTPS URLs for core.trac.wordpress.org
...
see #27115
git-svn-id: https://develop.svn.wordpress.org/trunk@29788 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 13:27:55 +00:00
Mark Jaquith
4c22a5003b
Use HTTPS links for planet.wordpress.org
...
see #27115
git-svn-id: https://develop.svn.wordpress.org/trunk@29787 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 13:23:46 +00:00
Sergey Biryukov
029d1dbaa4
Use a more specific selector for the count displayed on Add Themes network admin screen.
...
props mantismamita, nikolov.tmw.
fixes #29421 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29786 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 13:06:17 +00:00
Mark Jaquith
7402030670
Show the number of approved comments instead of all comments on
...
the dashboard in the "At a glance" section.
fixes #26738 . props benjmay
git-svn-id: https://develop.svn.wordpress.org/trunk@29785 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 12:41:49 +00:00
Sergey Biryukov
2a050d1e6f
Remove unnecessary semicolon.
...
props ixkaito.
fixes #29784 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29784 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 10:29:16 +00:00
Andrew Nacin
8a956769a4
PHPMailer: Merge upstream commit (PR274).
...
props zodiac1978.
fixes #27946 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29783 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 10:27:58 +00:00
Scott Taylor
37da833fce
In the form handler logic for edit-tags.php
, don't redirect until $_REQUEST['paged']
has been checked. All switch
cases (except edit
) now use break
instead of exit
.
...
Fixes #16162 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29782 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 04:53:07 +00:00
Scott Taylor
23f7f53be2
The joys of wptexturize()
:
...
* Revert parts of [28773] and [28727] and [29748].
* Do not crash PHP. Make the shortcode quantifier possessive to avoid backtracks.
* Reduce backtracking in long HTML comments by 100x.
* Do not ignore unclosed HTML comments.
* Do not break unregistered shortcodes, e.g. `[hello attr="value"]`.
* Do not break HTML in shortcode attributes, e.g. `[hello attr="<"]`.
* Do not match for shortcodes when there is extra whitespace, e.g. `[ hello ]`.
* Add unit tests to show #12690 was not fully resolved.
* Tested PHP 5.2.4, 5.2.13, 5.4.32, and 5.5.8.
Adds/modifies unit tests.
Props miqrogroove.
See #29557 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29781 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 04:06:54 +00:00
Scott Taylor
18adbb6439
In paginate_links()
, ensure that query string args are propagated to the resulting paginated links.
...
Adds unit tests that use `DOMDocument` since `assertTag` is being deprecated - see #29545 , [29746].
Props obenland, wonderboymusic.
Fixes #29636 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29780 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 04:02:23 +00:00
Scott Taylor
d19b2ded94
Add size
to the UI for Gallery Settings in the media modal. Ensure that the TinyMCE view is refreshed when size changes.
...
Props richardmtl, noplanman, wonderboymusic.
Fixes #18143 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29779 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 03:44:25 +00:00
Scott Taylor
0fe756a461
Allow bookmarks to be ordered by link_description
in get_bookmarks()
.
...
Fixes #29763 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29778 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 03:11:55 +00:00
Scott Taylor
d1fe8a8152
Media Grid: when the modal is open, don't respond to arrow keys when <textarea>
has focus.
...
Props ryelle.
Fixes #29725 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29777 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 02:59:40 +00:00
Andrew Ozz
3b757232d0
Media: disable multi-file uploading in iOS 7.x Safari as it prevents uploading of videos. Fixes #29602 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29776 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-29 00:13:47 +00:00
Sergey Biryukov
2e58e91dcc
Remove unnecessary CSS overriding on Add Plugins screen.
...
props pavelevap.
fixes #29753 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29775 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-28 20:25:33 +00:00
Sergey Biryukov
9e5beefd72
Don't display an empty comment author IP link on Comments screen.
...
props afercia.
fixes #29766 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29774 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-28 06:37:10 +00:00
Sergey Biryukov
5f0598234b
Use Tahoma for RTL in general and Arial for Hebrew in editor styles.
...
fixes #29553 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29773 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-27 11:10:01 +00:00
Sergey Biryukov
f5a904c46a
Twenty Fourteen: Include Latin Extended font subset for Lato.
...
fixes #29690 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29772 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-27 10:15:25 +00:00
Sergey Biryukov
e2eebecfc6
Bundled themes: Prevent the arrow in "Continue reading" links from wrapping to a second line.
...
props DustinHartzler, dominik.schwind.
fixes #27908 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29771 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-27 08:01:35 +00:00
Andrew Ozz
d34a54f1e4
Fix tapping on the menu in iOS and Android, fixes #29365 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29770 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-26 23:01:52 +00:00
Sergey Biryukov
1c8658f620
Use correct i18n function after [29768].
...
props TobiasBg.
fixes #29751 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29769 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-26 20:53:12 +00:00
Sergey Biryukov
a86e98ba96
Merge two similar strings.
...
props pavelevap.
fixes #29751 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29768 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-26 19:29:59 +00:00
Sergey Biryukov
c993055800
Remove extra space from a string.
...
props pavelevap.
fixes #29752 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29767 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-26 18:48:05 +00:00
Andrew Ozz
27806558a2
TinyMCE wpView: when pasting/inserting content before a view, add new paragraph above it and insert the content there. Props avryl, fixes #29380 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29766 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-26 00:20:28 +00:00
Sergey Biryukov
3226d8b867
Create correct permalinks for child posts of hierarchical post types when default permalinks are used.
...
props loushou.
fixes #29615 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@29765 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-24 21:29:15 +00:00
Sergey Biryukov
fe6f5b3af3
Add context for 'Trash' string in media modal.
...
props pavelevap.
fixes #29739 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29764 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-24 13:48:27 +00:00
Drew Jaynes (DrewAPicture)
198db28c17
Improve and clarify inline commenting inside the check_comment()
function.
...
Adds logical explanations of what some of the various comment checks are checking for, as well as some general cleanup and syntax fixes.
Fixes #29734 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29763 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-23 18:48:31 +00:00
Drew Jaynes (DrewAPicture)
0adb5f14aa
Improve documentation in the check_comments()
docblock.
...
* Removes two duplicate sentences from the long description
* Tightens up phrasing elsewhere in the long description for specific checks
* Clarifies the parameter and return descriptions, and adds periods
See #29734 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29762 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-23 18:46:52 +00:00
Scott Taylor
0b0eb4fb20
Ordering by RAND()
:
...
The shortcode callbacks for `gallery` and `playlist` check for `'RAND' == $atts['order']`, which isn't a valid value for `order`. Remove those checks and update the docs.
In `WP_Query`, if the value of `orderby` is `rand`, `order` is irrelevant and should be unset.
Adds unit tests.
Fixes #29629 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29760 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-23 03:51:24 +00:00
Scott Taylor
af71d22742
Add two properties to media.model.Attachments.propmap
: include
and exclude
, which are aliases for post__in
and post__not_in
.
...
This allows you to instantiate a library that includes and/or excludes specific attachments by passing a single ID or an array of IDs.
Example usage:
{{{
wp.media({frame: 'post', library: {include: [414, 415]}}).open()
wp.media({frame: 'post', library: {include: 414}}).open()
wp.media({frame: 'post', library: {exclude: [414, 415]}}).open()
wp.media({frame: 'post', library: {exclude: 414}}).open()
}}}
Fixes #26587 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29759 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-23 03:37:06 +00:00
Scott Taylor
22db82dff1
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29758 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-23 03:28:51 +00:00
Scott Taylor
e97e5048c3
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29757 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-23 02:57:43 +00:00
Scott Taylor
f00f28cce0
wp_extract_urls()
needs to also grab URLs with query strings and hashes.
...
Updates unit test.
Props hauvong, dlh.
Fixes #29314 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29756 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-23 02:49:22 +00:00
Scott Taylor
32c1d55d1f
Media Grid:
...
* In Bulk Edit mode, don't attempt to delete or trash an attachment that doesn't have a `delete` nonce. The subsequent `_requery()` will then properly display the attachment still present in the library.
* Remove all updated models from the selection at the same time to avoid async race conditions. The selection is reset when the grid's `select` mode is deactivated, but this allows this view instance to be more portable.
This fix allows users to set caps on individual attachments without confusing the grid's library. This issue was present for bulk actions in general, had nothing to do with `MEDIA_TRASH` specifically.
Fixes #29597 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29755 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-21 18:51:41 +00:00
Sergey Biryukov
994566bb17
Pass the attachment ID to the 'image_add_caption_text' filter.
...
fixes #29607 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29754 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-21 10:10:19 +00:00
Sergey Biryukov
9e673c7eee
Add 'image_add_caption_text' filter for changing the pre-parse caption text before output to the editor.
...
props collinsinternet, DrewAPicture.
fixes #29607 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29753 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-21 09:55:08 +00:00
Drew Jaynes (DrewAPicture)
191a7ead45
Add some missing information to the inline docs for get_post_types()
.
...
* Improves the `@see` reference for `register_post_type()` to mention that it contains information about accepted arguments
* Adds a description of the accepted values for the `$operator` parameter
* Fixes a typo
Fixes #29721 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29752 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-21 08:54:37 +00:00
Andrew Nacin
4c1462f2ff
Add safeguards for when ext/hash is not compiled with PHP.
...
see #29518 , for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@29751 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-20 17:27:46 +00:00
Sergey Biryukov
5b2c58d5b3
Correct 'wp_get_attachment_image_attributes' filter docs.
...
props tillkruess.
fixes #29701 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29750 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-18 12:35:25 +00:00
Andrew Nacin
9c751b268a
Don't set ftp_credentials option when installling. see #29635 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29749 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-17 17:57:59 +00:00
Scott Taylor
606cd967f6
wptexturize()
improvements:
...
* Expand the `wptexturize()` RegEx to include the list of registered shortcodes.
* Avoid backtracking after `[` chars by not filtering params in registered shortcodes. This will cause escaped shortcodes and their params to become texturized if not registered.
* Registered shortcode params will never be texturized, even when escaped.
* Move all tests involving unregistered shortcodes to a new and improved unit.
* Update one test involving HTML within shortcode params.
Props miqrogroove.
See #29557 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29748 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-17 15:13:24 +00:00
Sergey Biryukov
6e0ca0d8d9
Make sure the $parent argument of wp_insert_attachment() still works as expected after [28579].
...
prop jesin, dikiy_forester.
fixes #29646 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@29745 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-15 14:23:31 +00:00
Sergey Biryukov
1ec860298d
Correct @return value for WP_User_Query::get_total().
...
props jesin.
fixes #29656 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29744 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-13 22:23:12 +00:00
Sergey Biryukov
0075f1c7d1
Correct some @since values added in [29739].
...
see #28459 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29743 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-13 12:17:17 +00:00
Scott Taylor
0efd852117
WP_oEmbed::_strip_newlines
is called as a filter callback for oembed_dataparse
, must be public. It was marked as private for fun in [14109] and then made private
officially in [28507].
...
Fixes #29647 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@29742 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-12 22:53:04 +00:00
wonderboymusic
578609d31e
Make the URL output in _thickbox_path_admin_subfolder()
use includes_url()
.
...
Props voldemortensen.
Fixes #14157 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29741 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-12 22:30:03 +00:00
Andrew Nacin
2dd4990234
kses: Add colgroup.
...
props collinsinternet.
fixes #29433 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29740 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-12 05:50:03 +00:00
Scott Taylor
cbaef4a1a3
Add some @since
annotations to media-views.js
.
...
Props DrewAPicture.
See #28459 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29739 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-12 03:35:15 +00:00
Andrew Ozz
a9384b7a30
Editor expand: hide TinyMCE float panels and tooltips when scrolling, props avryl, fixes #29516 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29738 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-12 01:20:09 +00:00
Scott Taylor
6ed8bab324
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29737 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-11 20:14:56 +00:00
Scott Taylor
4d3a00c195
After [29733], version bump for MediaElement.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29736 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-11 19:46:49 +00:00
Scott Taylor
1b1c55c583
Allow arbitrary subdomains for the oEmbed endpoint for Slideshare.
...
Props Latz.
Fixes #29427 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29735 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-11 19:24:07 +00:00
Scott Taylor
749f51c348
Update getID3 library to 1.9.8.
...
Changes:
https://github.com/JamesHeinrich/getID3/compare/1.9.7...v1.9.8
Fixes #29627 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29734 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-11 19:06:33 +00:00
Scott Taylor
1930d0940e
Upgrade MediaElement to 2.15.1.
...
Changes from 2.15.0:
https://github.com/johndyer/mediaelement/compare/2.15.0...2.15.1
Continues to revert upstream commit b7f82b4 to restore the status quo for Chromium support.
See [29688].
Fixes #29620 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@29733 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-11 17:43:05 +00:00
Sergey Biryukov
2becf84579
Skip ALTERNATE_WP_CRON redirect when performing XML-RPC requests.
...
props markoheijnen.
fixes #27447 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29732 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-11 14:01:04 +00:00
Sergey Biryukov
5a89372970
XML-RPC: Check if category support was added for pages before calling wp_get_post_categories() to avoid unnecessary query in wp.getPage.
...
props markoheijnen, nprasath002.
fixes #17920 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29731 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-11 13:55:56 +00:00
Andrew Ozz
1190ed50a8
TinyMCE: fix image captions regexp when wpautop is disabled in wp_editor(). Fixes #29592 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29730 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-10 23:02:05 +00:00
Andrew Ozz
123fae73b5
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
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29729 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-10 22:39:39 +00:00
Scott Taylor
698f77735b
Don't overwrite the length
property unnecessarily when generating metadata for audio and video files.
...
Props jrf, wonderboymusic.
Fixes #29176 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29728 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-10 21:56:24 +00:00
Dominik Schilling (ocean90)
c339c62e38
Media Frames: Set the box-sizing CSS property to border-box for checkboxes and radio buttons.
...
props mlteal.
see #29493 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29727 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-10 18:08:13 +00:00
Sergey Biryukov
69b97690d5
Widgets: Toggle widget arrow when the widget is closed using Close link.
...
props senff.
fixes #29617 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29726 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-10 17:35:38 +00:00
Sergey Biryukov
9c48d0f495
Make sure we're on the media grid page before calling wp.media().
...
props azaozz.
fixes #29520 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@29725 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-09 10:13:33 +00:00
Sergey Biryukov
00bfc5bc34
Avoid PHP notices in media modal caused by orphaned attachments.
...
fixes #29566 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@29724 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-09 10:02:36 +00:00
Sergey Biryukov
7ce9d697c6
Don't display Edit links for attachments user cannot edit.
...
props skaeser.
fixes #29596 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@29723 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-09 09:49:55 +00:00
Sergey Biryukov
eb20eeaa60
Add 'Unattached' filter for galleries.
...
props pento.
fixes #29329 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29722 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-09 07:13:39 +00:00
Sergey Biryukov
8cfdbf1167
Use https for apps.wordpress.org links.
...
props pento.
fixes #29595 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@29721 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-09 06:28:33 +00:00
Sergey Biryukov
3136cbb1c9
Twenty Fourteen: Use correct check for the front page in Featured_Content::pre_get_posts().
...
props kwight.
fixes #29550 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29719 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-07 14:22:38 +00:00
Sergey Biryukov
d552ba29bc
* Declare $site_mimes before using it in check_upload_mimes().
...
* Use the same default value for 'upload_filetypes' as on Network Settings screen.
props rmccue.
fixes #29512 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@29718 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-07 10:10:33 +00:00
Sergey Biryukov
eac7709d6d
Use get_registered_nav_menus() in has_nav_menu().
...
props voldemortensen.
fixes #29461 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29717 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-07 10:03:06 +00:00
Sergey Biryukov
12bffd9665
Use home URL instead of example.org on Permalink Settings screen.
...
props voldemortensen, jesin.
fixes #29509 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29716 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-07 09:43:48 +00:00
Sergey Biryukov
ad0b20ad09
Check for [\r\n\t ] instead of \s in sanitize_file_name() to avoid UTF-8 issues.
...
props p_enrique.
fixes #26094 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29715 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-07 08:32:22 +00:00
Sergey Biryukov
f114ff72ac
Don't display Edit links for posts and terms in toolbar if they are empty.
...
props boonebgorges.
fixes #29538 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29714 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-07 08:31:57 +00:00
Sergey Biryukov
23dd9e11ec
4.1 version bumps.
...
see [29712], #29537 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29713 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-05 19:44:38 +00:00
Andrew Nacin
87c0c484a5
Trunk is now 4.1-alpha.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29712 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-05 19:40:12 +00:00
Helen Hou-Sandi
1efe986d5d
WordPress 4.0.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29709 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-04 15:31:24 +00:00
Helen Hou-Sandi
5771e6e1d5
About: Make sure the images are properly responsive.
...
props ocean90.
see #29494 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29708 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-04 15:23:51 +00:00
Andrew Nacin
ca32a2d410
Pinking shears.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@29707 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-04 15:22:58 +00:00
helen
f07a9f28a8
Final about page for 4.0. Enjoy the videos!
...
props ryelle, melchoyce, smashcut, wonderboymusic, helen.
fixes #29494 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29706 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-04 15:04:02 +00:00
Andrew Nacin
3d698699be
i18n: Skip language chooser for localized packages.
...
Also fixes the install.php welcome string, which was not bring printed.
fixes #29487 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29705 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-04 14:38:17 +00:00
Andrew Nacin
f3b999f9c4
Media grid details: Load large images instead of originals, if available.
...
fixes #29498 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29704 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-04 14:37:05 +00:00
Andrew Nacin
84681ddd39
Link to apps.wordpress.org instead of wordpress.org/mobile.
...
props pento.
fixes #29496 .
git-svn-id: https://develop.svn.wordpress.org/trunk@29703 602fd350-edb4-49c9-b593-d223f7449a82
2014-09-04 14:21:13 +00:00