Gary Pendergast
96f12cc588
Clean up some edge cases in sanitize_sql_orderby()
.
...
Props vortfu, dd32.
git-svn-id: https://develop.svn.wordpress.org/trunk@32164 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-20 05:41:37 +00:00
Gary Pendergast
faa66d8145
WPDB: When sanity checking read queries, there are some collations we can skip, for improved performance.
...
Props pento, nacin.
See #21212 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32162 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-20 04:45:12 +00:00
Andrew Nacin
62b51d8c0b
Clean up wp_staticize_emoji() and friends.
...
* DOMDocument was removed in [31752] but not the check.
* wp_staticize_emoji() has never accepted a second arg; remove it from calls.
* Remove wp_staticize_emoji_for_feeds(), no need for it.
* Remove _ and @ignore from wp_staticize_emoji_for_email(), no need for it.
see #31242 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32161 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-20 04:14:32 +00:00
Andrew Nacin
17d6534bb1
Update wp_die() calls modified in [31658] to use shorthand calling style.
...
see #31422 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32152 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-20 03:26:24 +00:00
Sergey Biryukov
3c28d7b1f6
Press This: Update documentation for press_this_save_redirect
filter after [31992].
...
props kraftbj.
fixes #31996 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32143 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-19 01:34:01 +00:00
Andrew Ozz
b7817247c5
TinyMCE: use window.twemoji directly in the wpemoji
plugin. Gives a chance to the browser to lazy load twemoji.js when reloading the page.
...
Fixes #31901 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32142 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-18 23:28:11 +00:00
Andrew Ozz
ab5685e6ad
TinyMCE: remove the empty paragraph that sometimes is left over after adding an image caption.
...
Fixes #32003 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32141 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-18 21:55:45 +00:00
Andrew Ozz
9781cdb9a3
TinyMCE wpView:
...
- Remove selected views when inserting content but not when loading all content.
- Remove the ref. to the selected view node on resetting the views.
Fixes #31998 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32140 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-18 20:47:04 +00:00
Boone Gorges
bf3773dbfb
During PHPUnit tests, don't autodetect permalink structure during WP installation.
...
The unit tests expect non-pretty permalinks, so there's no benefit to detecting
the ability to have pretty permalinks. Moreover, the `wp_remote_get()` call can
cause installation to hang when there are DNS issues.
Fixes #31994 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32139 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-16 23:59:01 +00:00
Drew Jaynes
41b1d73c03
Post 4.2-RC1 bump
...
git-svn-id: https://develop.svn.wordpress.org/trunk@32138 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-15 19:05:00 +00:00
Drew Jaynes
9e3ce091fe
WordPress 4.2-RC1
...
git-svn-id: https://develop.svn.wordpress.org/trunk@32137 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-15 18:52:08 +00:00
Dominik Schilling (ocean90)
6e6e1f45ed
About page: All strings are available for translation.
...
* Remove AJAX call added in [30840].
* Remove `<code>` tags out of localized strings.
props johnbillion, ocean90.
see #31929 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32136 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-15 18:18:53 +00:00
Helen Hou-Sandi
a71a815a0c
About page: A last round of text updates.
...
props DrewAPicture, johnbillion, afercia, helen.
see #31929 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32135 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-15 17:33:11 +00:00
Dominik Schilling (ocean90)
7fba67e4b7
Customizer: Escape theme preview URLs.
...
props johnbillion, ocean90.
see #31896 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32134 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-15 16:32:03 +00:00
Aaron Jorbin
686b4af44d
Move wp-plugin-update-success event to after lock is released
...
Fixes #31978
See #31819
Props DavidAnderson
git-svn-id: https://develop.svn.wordpress.org/trunk@32133 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-15 14:36:04 +00:00
Sergey Biryukov
7b0dbe06fd
About page: Two more string tweaks.
...
props DrewAPicture, pento.
see #31929 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32132 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-15 01:23:07 +00:00
Sergey Biryukov
99abb0cf3a
About page updates.
...
* Change the subhead strings on credits.php and freedoms.php to match about.php.
* Link the Emoji Codex article in the emoji blurb.
* Add a second sentence to the JavaScript Accessibility blurb.
* Switch positions for the JavaScript Accessibility and Complex Query Ordering sections for balance.
props DrewAPicture, ocean90, pavelevap.
see #31929 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32131 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-15 00:38:00 +00:00
Dominik Schilling (ocean90)
cf9908ef31
Update about page for 4.2.
...
props siobhan, DrewAPicture.
see #31929
git-svn-id: https://develop.svn.wordpress.org/trunk@32130 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 18:52:19 +00:00
Dominik Schilling (ocean90)
f00aa86644
Force default avatar for HiDPI avatars on Discussion Settings.
...
props SergeyBiryukov.
fixes #31972 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32129 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 18:08:15 +00:00
Dominik Schilling (ocean90)
be2e1d9937
Reset padding for buttons in theme details modal.
...
props awbauer.
fixes #31963 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32128 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 18:03:59 +00:00
Dominik Schilling (ocean90)
a0fbde9fdc
Customizer Theme Switcher: Use text input for the search field to prevent double tap issues for Preview and Customize buttons on iOS.
...
see #31794 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32127 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 17:44:28 +00:00
Aaron Jorbin
73479254bc
Use named function instead of anonymous function
...
The named function is testable and replaceable.
Fixes #31964
Props DavidAnderson, adamsilverstein, jorbin
git-svn-id: https://develop.svn.wordpress.org/trunk@32126 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 16:41:24 +00:00
Scott Taylor
91143924cd
Move the built media JS files up a directory to their previous location and naming convention. This fidgets with part of [31373] and will maintain BC for those who were loading those files directly (not using the enqueue system).
...
Props iseulde, ocean90.
Fixes #31912 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32125 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 15:30:16 +00:00
Scott Taylor
fbdbba9e01
Revert [31030] and [31033]. Incidentally, there is no lazy-loading happening here anyway.
...
Pushing #26111 to future.
git-svn-id: https://develop.svn.wordpress.org/trunk@32124 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 15:12:49 +00:00
Sergey Biryukov
a8c4455adc
Fix typo on About page.
...
props jamescollins.
see #31929 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32123 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 06:53:25 +00:00
Andrew Ozz
f3033a9f5a
Press This: do not show the bookmarklet upgrade notice when accessing directly press-this.php.
...
Props kraftbj. Fixes #31968 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32122 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 05:44:08 +00:00
Andrew Ozz
deaa16216d
Fix the media modal Insert into post button on narrow screens by limiting the width of .media-toolbar-primary and .media-toolbar-secondary only inside .attachments-browser (the top toolbar).
...
Props iseulde, DrewAPicture. Fixes #31908 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32121 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 01:20:39 +00:00
Andrew Ozz
17e3e168d3
Make sure the spinner in the media modal is visible on narrow screens (without affecting the media grid).
...
Fixes #30725 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32120 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 00:53:34 +00:00
Dominik Schilling (ocean90)
5c1eb9f4f8
Customizer Theme Switcher: Don't re-render a theme control if it has already been rendered.
...
Move initialization of `$customizeSidebar` to `api.ThemesSection.initialize()` to prevent cases where the result can be undefined.
props westonruter, ocean90.
fixes #31793 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32119 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-13 22:09:35 +00:00
Dominik Schilling (ocean90)
17cc95573f
4.2 about page text, rough cut.
...
props helen, siobhan, DrewAPicture, samuelsidler, markjaquith, nacin.
see #31929 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32118 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-13 15:38:19 +00:00
Sergey Biryukov
3b6ff03136
wp_update_term()
should check if get_term()
returned null.
...
props dlh.
fixes #31954 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32117 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-13 01:20:57 +00:00
Dominik Schilling (ocean90)
b0d6757918
Use HTTPS URLs for codex.wordpress.org.
...
see #27115 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32116 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-12 21:28:58 +00:00
Sergey Biryukov
3c4b4ea0cc
Fix a copy/paste error in a comment.
...
see #31951 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32115 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-11 23:19:39 +00:00
azaozz
2160e1ac95
Add mb_strlen()
compatibility function. Works the same way as the existing mb_substr()
compatibility function.
...
Props SergeyBiryukov. Fixes #31951 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32114 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-11 23:13:01 +00:00
Dominik Schilling (ocean90)
9cddb0f012
Rename get_media_embedded_in_content_allowed
filter to media_embedded_in_content_allowed_types
.
...
The new name fits better with some other `_allowed_` filters.
props DrewAPicture.
fixes #26675 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32113 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-11 21:48:22 +00:00
Sergey Biryukov
9706b074c8
Translator comment should just reference placeholder numbers, not the actual placeholders.
...
see #31675 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32112 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-11 21:45:14 +00:00
Sergey Biryukov
d36c454684
Explain all placeholders in translator comment, not just the first one.
...
see [32110], #31675 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32111 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-11 21:39:36 +00:00
Mark Jaquith
0188ec7f1c
Tell developers how to correctly silence register_sidebar()
notices.
...
* If we just tell them they they should set an `id` parameter, they might set an arbitrary one on an existing (i.e. not in-development) theme, causing widgets to be lost.
* This way, we tell them to set it to the auto-generated `id` that the sidebar already has.
* Widget content is not lost, and now their sidebar has a concrete handle.
fixes #31675
git-svn-id: https://develop.svn.wordpress.org/trunk@32110 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-11 21:33:14 +00:00
Dominik Schilling (ocean90)
cfb7d2965e
Remove executable bit from smilies.
...
see #31709 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32109 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-11 18:16:24 +00:00
Gary Pendergast
b806e118c6
When dbDelta()
is checking whether an index is defined in a CREATE TABLE
statement, don't worry if MySQL has a subpart defined on an index, but the CREATE TABLE
doesn't.
...
Fixes #31869 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32108 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-11 10:39:49 +00:00
Gary Pendergast
b007147ab4
Smilies: One more tweak to matching smilies with emoji.
...
Props iseulde.
See #31709 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32107 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-11 02:16:34 +00:00
Andrew Ozz
301bb0b9da
Press This: check the bookmarklet version and add the update notice from PHP.
...
Fixes #31942 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32106 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-10 21:07:42 +00:00
Gary Pendergast
1de9bc1670
Smilies: Tweak which smiley matches which emoji.
...
Props iseulde.
See #31709 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32105 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-10 06:29:49 +00:00
Gary Pendergast
3bd66eff61
Smilies: Update our few remaining smilies to better align with Twemoji, and add frownie.png until Twemoji provide a build containing it.
...
Props joen.
See #31709 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32104 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-10 06:19:39 +00:00
Helen Hou-Sandi
3019ddf457
Customizer theme switcher: Fix some esoteric breakage in iOS Safari.
...
This manifested in only being able to switch your theme once in the customizer before the "Change" button would appear to stop responding, though a switch to "Preview" and back to "Customize" would reveal the theme switcher after all. Animated positioning appears to be the problem here. The animations are not critical to the experience, particularly on touch+smaller screen devices.
props iseulde.
see #31794 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32103 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-10 02:43:20 +00:00
Andrew Ozz
6cf43dfc06
Press This: add ARIA attributes to the alerts
container.
...
Props afercia. Fixes #31942 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32102 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 23:44:50 +00:00
Helen Hou-Sandi
84c5474197
Media: Bring back spinners, now without bouncing select elements.
...
props afercia for the initial patch.
see #22839 , #30725 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32101 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 20:34:10 +00:00
Andrew Ozz
02a5d32641
Revert [32099] per discussion in #core: https://wordpress.slack.com/archives/core/p1428608303003309 .
...
See #30900 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32100 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 19:55:54 +00:00
Andrew Ozz
5eb6128f8e
Remove z-index from #adminmenuback
.
...
Fixes #30900 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32099 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 19:25:27 +00:00
Andrew Ozz
fd6c5e6cbd
Press This:
...
- Fix focusing the Standard Editor link after saving draft, if the user has not focused another element.
- Reset the Save Draft button on node change in the editor.
See #31923 .
git-svn-id: https://develop.svn.wordpress.org/trunk@32098 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 19:06:41 +00:00