Commit Graph

26403 Commits

Author SHA1 Message Date
Scott Taylor cfe11de507 Fix a unit test for the now deprecated function `like_escape()`.
Props miqrogroove.
Fixes #10041.


git-svn-id: https://develop.svn.wordpress.org/trunk@28714 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-10 01:21:33 +00:00
Scott Taylor 4459acb59d Remove unnecessary `->test()` method from `Tests_Canonical_HTTPS` to avoid PHP error.
See [28704].


git-svn-id: https://develop.svn.wordpress.org/trunk@28713 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-10 01:09:43 +00:00
Scott Taylor 84ad12b439 Replace all uses of `like_escape()` with `$wpdb->esc_like()`.
Props miqrogroove.
See #10041.


git-svn-id: https://develop.svn.wordpress.org/trunk@28712 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-10 00:43:32 +00:00
Scott Taylor 2a551f57a4 `LIKE` escape sanity:
* Deprecate `like_escape()`
* Add a method to `$wpdb`, `->esc_like()`, and add unit tests

`$wpdb::esc_like()` is not used yet. As such, many unit tests will throw `Unexpected deprecated notice for like_escape`. Subsequent commits will alleviate this.

Props miqrogroove.
See #10041.


git-svn-id: https://develop.svn.wordpress.org/trunk@28711 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-10 00:29:35 +00:00
John Blackbourn 12ea157f2c Correct the deprecated function parameter in `url_is_accessable_via_ssl()`. See #19555.
git-svn-id: https://develop.svn.wordpress.org/trunk@28710 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-09 22:26:27 +00:00
John Blackbourn 7a220d7e95 Deprecate `url_is_accessable_via_ssl()`. Fixes #19555. Props jgadbois.
git-svn-id: https://develop.svn.wordpress.org/trunk@28709 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-09 22:02:50 +00:00
Scott Taylor b7d411e724 Add a function: `wp_spaces_regexp()`. It is not used yet.
This function is required by a bunch of patches by miqrogroove. Needs filter docs.

Props miqrogroove.
See #27588.


git-svn-id: https://develop.svn.wordpress.org/trunk@28708 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-09 19:29:55 +00:00
Scott Taylor faf208de38 Live update the menu item title when the user is editing the "Navigation Label" field.
Props celloexpressions.
See #23076.


git-svn-id: https://develop.svn.wordpress.org/trunk@28707 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-09 18:38:29 +00:00
Scott Taylor 12e325582a Update unit tests to reflect:
* [28673] - title attributes are no longer expected to be present in some assertions
* [28704] - Fix `Declaration of Tests_Canonical_HTTPS::test() should be compatible with Tests_Canonical::test($test_url, $expected, $ticket = 0)`
* [28679] - Add `@expectedDeprecated get_all_category_ids`


git-svn-id: https://develop.svn.wordpress.org/trunk@28706 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-09 15:58:16 +00:00
Scott Taylor 69384c40a3 When a plain URL or email address is selected in the editor and "Insert/edit link" is clicked, pre-populate the URL field with the URL or `mailto:<email-address>`.
Props tillkruess.
Fixes #19992.


git-svn-id: https://develop.svn.wordpress.org/trunk@28705 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-09 15:34:21 +00:00
John Blackbourn 65890b4858 Add some basic unit tests for HTTPS canonical redirects. See #27954.
git-svn-id: https://develop.svn.wordpress.org/trunk@28704 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-09 01:05:46 +00:00
Helen Hou-Sandi 70390c48f5 Properly indicate with the cursor that the editor can be vertically resized using the entire info bar, not just the handle displayed in the corner.
props torresga. fixes #28420.


git-svn-id: https://develop.svn.wordpress.org/trunk@28703 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-08 19:47:00 +00:00
Lance Willett 3462f4d964 Twenty Twelve: bump JS version after r28700 change. See #24767.
git-svn-id: https://develop.svn.wordpress.org/trunk@28702 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-08 19:20:48 +00:00
Lance Willett 4083df4b38 Twenty Thirteen: adjust background size of header image(s) for small devices. Props senlin, fixes #26856.
git-svn-id: https://develop.svn.wordpress.org/trunk@28701 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-08 19:12:46 +00:00
Lance Willett 1ff9d938af Twenty Twelve: make submenu links work correctly on tablets. Props tar.gz, purzlbaum, DavidTheMachine. See #24767.
git-svn-id: https://develop.svn.wordpress.org/trunk@28700 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-08 18:59:45 +00:00
Lance Willett 6779256079 Twenty Thirteen: make submenu links work correctly on tablets. Props tar.gz, purzlbaum, DavidTheMachine. See #24767.
git-svn-id: https://develop.svn.wordpress.org/trunk@28699 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-08 18:47:58 +00:00
Lance Willett 7a53e007ec Twenty Fourteen: fix menu toggle display on older Android devices. Props obenland, DavidTheMachine. Fixes #27456.
git-svn-id: https://develop.svn.wordpress.org/trunk@28698 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-08 18:23:06 +00:00
Sergey Biryukov dfffa2cffd Fix JSHint error.
props avryl.
see #24716.

git-svn-id: https://develop.svn.wordpress.org/trunk@28697 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-08 12:32:50 +00:00
Sergey Biryukov 88e8720018 Use get_pages() instead of a raw SQL query in get_body_class().
fixes #28159.

git-svn-id: https://develop.svn.wordpress.org/trunk@28696 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-07 03:21:46 +00:00
Sergey Biryukov 40a7bccdc1 Include *.yml coding standards in .editorconfig.
props netweb.
fixes #28289.

git-svn-id: https://develop.svn.wordpress.org/trunk@28695 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 22:05:25 +00:00
Lance Willett 36bf68f86f Twenty Fourteen: first pass at better Audio/Video player styling with genericons. Props celloexpressions, see #26469.
git-svn-id: https://develop.svn.wordpress.org/trunk@28694 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 18:56:18 +00:00
Lance Willett abef8628f5 Twenty Thirteen: update to Genericons 3.0.3. Props celloexpressions, lancewillett. Closes #25391.
git-svn-id: https://develop.svn.wordpress.org/trunk@28693 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 18:21:42 +00:00
Lance Willett d99120e86b Twenty Fourteen: update to Genericons 3.0.3. Props celloexpressions, closes #28456.
git-svn-id: https://develop.svn.wordpress.org/trunk@28692 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 17:35:24 +00:00
Lance Willett d17b15c793 Twenty Fourteen: Apply `max-width` values to avoid site title breaking the layout in small screens. Props sixhours, rclations. See #28237.
git-svn-id: https://develop.svn.wordpress.org/trunk@28691 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 17:30:38 +00:00
Lance Willett 0a0c1f9567 Twenty Fourteen: fix playlist track color in content sidebar. Props celloexpressions, fixes #28457.
git-svn-id: https://develop.svn.wordpress.org/trunk@28690 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 17:21:53 +00:00
Scott Taylor 60cf850c00 As per @gcorne's suggestion, when calling `wp.mce.views.register()`, automatically set `shortcode` equal to the passed `type` in the set of default args instead of introducing a `type` property. It is still overrideable by the args that are passed.
See #28458.



git-svn-id: https://develop.svn.wordpress.org/trunk@28689 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 14:21:12 +00:00
wonderboymusic 655d03da0a Improve inline doc descriptions in `media-views.js`.
Props ericlewis.
See #28459.


git-svn-id: https://develop.svn.wordpress.org/trunk@28688 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 14:12:03 +00:00
Andrew Ozz 67639d7e91 wpView: fix deselecting a view when clicking outside the iframe body. Props avryl, fixes #28268
git-svn-id: https://develop.svn.wordpress.org/trunk@28687 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 05:03:33 +00:00
Andrew Ozz b1b0e54f7f wpView: fire a `nodeChanged` event after selecting a view so the editor UI gets updated. Props avryl, fixes #28385
git-svn-id: https://develop.svn.wordpress.org/trunk@28686 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 04:42:34 +00:00
Andrew Ozz 319299d42b TinyMCE: remove &nbsp from empty paragraphs inside the visual editor, props avryl, fixes #28282
git-svn-id: https://develop.svn.wordpress.org/trunk@28685 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 04:19:09 +00:00
Andrew Ozz 73e4f3e13b wpView: use `data-mce-selected` instead of adding a class to mark a view as selected. This prevents adding an unneeded undo level. Props avryl, fixes #28313
git-svn-id: https://develop.svn.wordpress.org/trunk@28684 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 02:11:02 +00:00
Andrew Ozz 6228058b64 Fix JS error in tmpl-editor-gallery, `'string'.trim()` is not available in IE < 9. See #28089
git-svn-id: https://develop.svn.wordpress.org/trunk@28683 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-06 01:49:44 +00:00
Helen Hou-Sandi 3d9fc450b2 Grid view for the media library, first pass. This is alpha; expect imperfection. We will be iterating further.
props ericlewis, shaunandrews, wonderboymusic.
see #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@28682 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 22:00:24 +00:00
Sergey Biryukov c7c1a4a88a Remove one-time variable from add_settings_error().
props niallkennedy.
fixes #22228.

git-svn-id: https://develop.svn.wordpress.org/trunk@28681 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 18:28:15 +00:00
Scott Taylor c18f082b15 Simplify the creation of MCE views somewhat:
* Rename the `wp.mce.media` mixin (which was named too ambiguously) to `wp.mce.av`.
* Use the same technique for extending mixins for MCE base classes for views and their base.View property class
* `wp.mce.views.register()` should have default constructor logic if one is not passed.

Props avryl.
See #28458.



git-svn-id: https://develop.svn.wordpress.org/trunk@28680 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 17:26:24 +00:00
Sergey Biryukov 504f5ad680 Deprecate get_all_category_ids(). Suggest get_terms() as a replacement.
props winterDev, MikeHansenMe.
fixes #21200.

git-svn-id: https://develop.svn.wordpress.org/trunk@28679 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 16:25:01 +00:00
Sergey Biryukov 2ed8b8578c Remove closing PHP tags from the rest of index.php files in wp-content, for consistency with wp-content/index.php.
props kraftbj.
fixes #23505.

git-svn-id: https://develop.svn.wordpress.org/trunk@28678 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 15:58:46 +00:00
Sergey Biryukov 83bffbc6c7 Correct @return value for get_children().
props ghost1227.
fixes #28422.

git-svn-id: https://develop.svn.wordpress.org/trunk@28677 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 15:52:51 +00:00
Sergey Biryukov ff3f4e888f Add a note about return value in case of an expired transient to get_transient() and get_site_transient().
props ruud@joyo.
fixes #28462.

git-svn-id: https://develop.svn.wordpress.org/trunk@28676 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 15:33:30 +00:00
Scott Taylor 60a49287f6 Media modal documentation:
Add some clarity to default values for controllers.

Props ericlewis.
See #28459.



git-svn-id: https://develop.svn.wordpress.org/trunk@28675 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 14:53:44 +00:00
Andrew Nacin 0dcce859fb Force SSL admin when siteurl is explicitly configured with HTTPS.
see #27954.


git-svn-id: https://develop.svn.wordpress.org/trunk@28674 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 14:08:11 +00:00
Sergey Biryukov 7f3b20c45d Remove redundant 'Visit author homepage' title attributes for plugins and themes.
props joedolson.
fixes #26554.

git-svn-id: https://develop.svn.wordpress.org/trunk@28673 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 04:51:55 +00:00
Sergey Biryukov c556e74943 wp_insert_comment() and wp_new_comment() should check if the comment was successfully inserted into the database.
props pento.
fixes #28254.

git-svn-id: https://develop.svn.wordpress.org/trunk@28672 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 04:37:02 +00:00
Sergey Biryukov 4fde71e75d Avoid an empty href attribute in paginate_links(). Add unit tests.
props obenland, Nessworthy.
fixes #24606.

git-svn-id: https://develop.svn.wordpress.org/trunk@28671 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 02:09:12 +00:00
Sergey Biryukov 5c071dbc16 Add a filter to human_time_diff().
props slimndap.
fixes #27271.

git-svn-id: https://develop.svn.wordpress.org/trunk@28670 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 00:38:33 +00:00
Sergey Biryukov f54a73f637 Add 'wp_title_parts' filter to wp_title().
props aaroncampbell, obenland.
fixes #17877.

git-svn-id: https://develop.svn.wordpress.org/trunk@28669 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-05 00:27:37 +00:00
Sergey Biryukov d33d83495c Move is_admin check to a more appropriate place.
see #11330.

git-svn-id: https://develop.svn.wordpress.org/trunk@28668 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-04 23:46:39 +00:00
Sergey Biryukov 0b5eac467f Avoid a PHP notice when using WP_Query::get_queried_object() in pre_get_posts action.
props wpsmith.
fixes #28412.

git-svn-id: https://develop.svn.wordpress.org/trunk@28667 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-04 23:42:09 +00:00
Scott Taylor 2948b6d35a Prevent admin breakage for `s` in `WP_Query` after [28623].
See #11330.



git-svn-id: https://develop.svn.wordpress.org/trunk@28666 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-04 20:02:46 +00:00
Scott Taylor 577d223715 Wrap individual meta query `WHERE` clases in parens, missed in `28659`.
Props boonebgorges.
Fixes #25538.



git-svn-id: https://develop.svn.wordpress.org/trunk@28665 602fd350-edb4-49c9-b593-d223f7449a82
2014-06-04 18:20:59 +00:00