Scott Taylor
de685a9f73
Move default
to the bottom in _wp_mysql_week()
.
...
See #28409 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28634 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-30 18:09:43 +00:00
Scott Taylor
2cd825a21b
Cleanup for switch
statements:
...
* Move `default` to the bottom in `WP_Theme_Install_List_Table`
* `switch/endswitch` syntax is not supported in Hack. Switch to `switch (...) { .... }` syntax. (A few template-type instances linger).
Fixes #28409 .
See #27881 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28633 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-30 17:57:51 +00:00
Drew Jaynes (DrewAPicture)
dc96d99a70
Remove unnecessary "not used" notation for filter parameters in wp-admin/includes/media.php.
...
Also add `@param` and `@return` descriptions.
See #28408 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28632 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-30 17:37:36 +00:00
Scott Taylor
1a1994b20f
Adds a unit test to demonstrate that the order of case
and default
in a switch
statement does not matter.
...
See #27882 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28631 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-30 17:31:51 +00:00
Lance Willett
a0dbf001c5
Twenty Fourteen: adjust spacing for site description (tagline) to avoid cutting off accented characters. Props SergeyBiryukov, iamtakashi. Fixes #28397 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28630 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-30 17:08:14 +00:00
Scott Taylor
7ab6b096e6
Remove some dead variable assignments.
...
See #27882 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28629 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-30 16:58:36 +00:00
Drew Jaynes (DrewAPicture)
1da8a18e5f
Update the $secure_logged_in_cookie
variable in the 'secure_logged_in_cookie' hook docs following [28627].
...
See #15330 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28628 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-30 15:19:29 +00:00
Andrew Nacin
8d980de0ee
Use a secure logged_in_cookie when the home URL is forced HTTPS (see #27954 ).
...
see #15330 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28627 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-30 15:07:18 +00:00
Andrew Ozz
d87a482353
TinyMCE in iOS:
...
- Fix placing the caret at the bottom of longer posts when the keyboard is open.
- Disable resizing on switching editors and on show/hide the kitchen sink row.
See #28242
git-svn-id: https://develop.svn.wordpress.org/trunk@28626 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-30 02:37:52 +00:00
Scott Taylor
7f49c1320a
@uses
means something entirely different for unit tests. More: http://thephp.cc/viewpoints/blog/2014/03/phpunit-4-0-code-coverage-improvements
...
Code coverage analysis takes forever to run, and these annotations will cause it to fail in the middle.
See #26999 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28625 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 23:33:13 +00:00
Andrew Ozz
1da0e87bdc
TinyMCE: remove margins from the image toolbar wrapper, props avryl, fixes #28389
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28624 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 22:58:27 +00:00
Scott Taylor
8f247884c2
Simplify the logic for determining isset( $this->query['s'] )
after [28612], and don't limit this logic to just the main query.
...
Props SergeyBiryukov.
Fixes #11330 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28623 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 20:49:28 +00:00
Scott Taylor
8bb2117aad
If post_status
is passed to WP_Query
as an array containing 'any'
and anything else, don't exclude the other values if they match when running any
's exclusion logic.
...
Adds unit tests.
Fixes #28007 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28622 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 20:41:53 +00:00
Scott Taylor
eba9bf7171
These unit tests should point at an actual attachment file.
...
See [28619].
git-svn-id: https://develop.svn.wordpress.org/trunk@28621 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 20:39:05 +00:00
Andrew Ozz
44549d4918
Fix double quote jshint warning in Gruntfile.js, fixes #26751
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28620 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 19:33:00 +00:00
Scott Taylor
fcff169970
Add unit tests to confirm that post__in
orderby is working as expected with menu_order
based on comments from #28012 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28619 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 18:23:58 +00:00
Scott Taylor
25593e291c
When queries are passed to WP_Tax_Query
, the value for operator
is assumed to be uppercase. This is an unnecessary constraint. In ->get_sql()
, cast it using $operator = strtoupper( $query['operator'] )
.
...
Props clifgriffin.
Fixes #27557 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28618 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 17:52:25 +00:00
Helen Hou-Sandi
2e1c4959af
Fix a jshint error introduced in [28607]. see #23560 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28617 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 14:24:20 +00:00
Helen Hou-Sandi
220a45a32d
Don't use the box shadow focus styling for the admin menu or toolbar. see #28267 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28616 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 14:22:39 +00:00
Andrew Ozz
6418ba1696
Regex should be non-greedy, see #28389
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28615 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 07:55:17 +00:00
Andrew Ozz
8f5ea4bacd
TinyMCE: fix problems with undo/redo after resizing an image several times. Fixes #28389 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28614 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 07:50:35 +00:00
Scott Taylor
8530693a51
If post__in
or post_parent__in
is passed to WP_Query
as an empty array, nuke the query. Both vars are currently only checked for truthiness after which they are ignored. Setting these vars at all indicates explicit filtering being desired.
...
Adds unit test.
Fixes #28099 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28613 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 06:03:15 +00:00
Scott Taylor
4d1e46231b
When parsing the main query, if s
is set to empty: ?s=
and $this->is_main_query() && array_key_exists( 's', $this->query )
- kill the query instead of loading the homepage. This will load the search page with no results.
...
Fixes #11330 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28612 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 05:47:35 +00:00
Andrew Nacin
6e269a7120
Append the date to $wp_version in the build output, for nightly packages.
...
props azaozz.
fixes #26751 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28611 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 04:32:41 +00:00
Andrew Nacin
e317e5454a
Force SSL on the frontend via canonical when the home URL uses the https scheme.
...
fixes #27954 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28610 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 04:12:05 +00:00
Andrew Nacin
961459ee31
Forcing SSL logins now forces SSL for the entire admin, with no middle ground.
...
fixes #10267 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28609 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 03:58:41 +00:00
Helen Hou-Sandi
06c142a1a5
Better align link element focus with form focus styling, which also improves the visibility. props zamfeer. see #28267 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28608 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 03:57:44 +00:00
Helen Hou-Sandi
b27a8697d6
At long last, improved keyboard accessibility for the media modal.
...
props lessbloat, grahamarmfield, sharonaustin, bramd.
see #23560 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28607 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 03:38:31 +00:00
Andrew Ozz
139b5b3cb0
TinyMCE: update to 4.0.28. Also includes 43fff5b453
. Part-props avryl for the patch on #27941 , fixes #28391 , #27941 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28606 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 00:58:11 +00:00
Scott Taylor
32893ac7ea
Allow users to sort posts by type
in WP_Query
.
...
Props DeBAAT.
Fixes #28214 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28605 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-29 00:23:45 +00:00
Dominik Schilling (ocean90)
0af37cccdb
Pass $post->ID
to get_comments_number
filter.
...
Also fixes indentation and a typo in corresponding filter docs.
see #26240 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28604 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-28 22:35:21 +00:00
Sergey Biryukov
1140c47c30
Exclude 'test-image.bmp' from the list of non-displayable image types.
...
props atimmer.
fixes #28386 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28603 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-28 22:20:36 +00:00
Drew Jaynes (DrewAPicture)
d201ded99e
Fix parameter description for the $post_id
argument in get_comments_number()
to note that it is optional.
...
Also fixes the corresponding filter docs, as `$post_id`, not `$post` is passed to the filter.
See [27156]. Fixes #26240 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28602 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-28 22:04:59 +00:00
Andrew Nacin
0c7edb2045
Revert [28579] and [28582]. see #21963 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@28601 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-28 18:13:55 +00:00
Sergey Biryukov
c73f5ef2de
Fix displaying taxonomies in bulk edit if the post type does not support titles.
...
props scribu.
fixes #16793 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28600 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-28 13:49:21 +00:00
Sergey Biryukov
2d420d52bb
Display Dashboard icon instead of the home icon in toolbar when the link leads to Dashboard.
...
props ghost1227.
fixes #26754 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28599 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-28 13:41:23 +00:00
Sergey Biryukov
98b4b63e40
Twenty Fourteen: Avoid passing an empty string to document.getElementById().
...
props nabil_kadimi.
fixes #28340 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28598 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-28 13:35:47 +00:00
Sergey Biryukov
5a8b1cfac2
Fix SlideShare oEmbed regex.
...
props kovshenin.
fixes #28380 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28597 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-28 13:31:22 +00:00
Scott Taylor
598e79479b
RIP Viddler oEmbed support.
...
More: https://gigaom.com/2014/02/07/viddler-gets-ready-to-delete-personal-videos/
See #28379 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28596 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-27 21:59:42 +00:00
Scott Taylor
d80969655c
Update the Scribd oEmbed pattern to more actually represent which endpoints from the site are discoverable.
...
See #28379 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28595 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-27 21:54:24 +00:00
Scott Taylor
0b209f55ee
When parsing an [embed]
shortcode into a TinyMCE view, don't attempt to append any returned <script>
s to the editor's <head>
. This affects only a few supported endpoints: Issuu and Twitter.
...
See #28195 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28594 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-27 19:59:47 +00:00
Scott Taylor
7eb0253744
For YouTube playlist oEmbed, we need keep BC for wp_oembed_remove_provider()
by not changing the existing YouTube endpoint keys. So, rather than merging the rules, the playlist endpoints should be on their own line.
...
Props kovshenin.
See #28125 , [28552].
git-svn-id: https://develop.svn.wordpress.org/trunk@28593 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-27 18:42:30 +00:00
Sergey Biryukov
7b133a336f
Remove obsolete code from wp_dashboard_setup().
...
props kitchin.
fixes #26604 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28592 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-27 15:40:19 +00:00
Sergey Biryukov
2f1ad4ddbf
Move 'Documentation on date and time formatting' link under the 'Time Format' block.
...
props gauravmittal1995.
fixes #28348 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28591 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-27 14:49:51 +00:00
Sergey Biryukov
b8b933418a
Pass anchor text to 'edit_post_link' and 'edit_comment_link' filters.
...
props kwight.
fixes #28373 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28590 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-27 13:42:27 +00:00
Sergey Biryukov
86b88bd2b7
Add BMP to the list of displayable image types.
...
props ericlewis.
fixes #26808 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28589 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-27 13:24:39 +00:00
Sergey Biryukov
a25a5de409
Update documentation for is_new_day().
...
props obenland.
fixes #28333 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28588 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-27 11:40:11 +00:00
Sergey Biryukov
c2076859eb
Remove redundant get_shortcode_regex() check.
...
props kovshenin.
see #28195 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28587 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-27 11:29:11 +00:00
Sergey Biryukov
6bca1ca960
Clean up wp_widget_rss_output():
...
* Fix appending […] to $summary.
* Use wp_trim_words() instead of wp_html_excerpt().
* Trim $title before checking if it's empty. props UmeshSingla.
* Use correct escaping function for $title.
fixes #28356 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28586 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-27 11:07:32 +00:00
Sergey Biryukov
9599dd9705
Avoid a PHP notice in bundled themes if no images were found.
...
props nabil_kadimi.
fixes #28361 .
git-svn-id: https://develop.svn.wordpress.org/trunk@28585 602fd350-edb4-49c9-b593-d223f7449a82
2014-05-27 10:54:54 +00:00