Sergey Biryukov
79df86b818
Replace get_user_id_from_string() with get_user_by(). props ocean90, bananastalktome. fixes #23192 . see #23190 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23431 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 18:00:52 +00:00
Sergey Biryukov
e353d6c033
Allow filtering attachments by Author name in Media Library. props greuben. fixes #16044 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23430 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 17:33:28 +00:00
Lance Willett
32ca2518b3
Twenty Eleven and Twenty Twelve: use `.text()` instead of `.html()` for `blogname` and `blogdescription` in Theme Customizer JavaScript handlers. Fixes #23435 , props mfields.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23429 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:53:58 +00:00
Lance Willett
db3d33ac0a
Twenty Twelve: clear center-aligned images properly. Fixes #23244 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23428 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:45:04 +00:00
Lance Willett
7d61808bc6
Twenty Twelve: remove unnecessary class values in posts navigation, fixes #23152 . Props DrewAPicture.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23427 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:38:04 +00:00
Lance Willett
412b37a490
Twenty Twelve: fix button active state to avoid a 2px shift, fixes #22825 . Props ocean90.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23426 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:34:56 +00:00
Mark Jaquith
ead92fb39d
"LGPL License" is redundant.
...
props wonderboymusic, jakub.tyrcha. fixes #15585
git-svn-id: https://develop.svn.wordpress.org/trunk@23425 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:26:46 +00:00
Sergey Biryukov
417adb2e2e
Filter "Powered by WordPress" text in Meta widget. props Viper007Bond, wonderboymusic. fixes #14358 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23424 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:20:14 +00:00
Andrew Nacin
d9e2f14dca
jQuery UI 1.10.0.
...
Some lingering issues with the edit/insert link dialog.
props ocean90.
see #23370 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23423 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:13:26 +00:00
Mark Jaquith
1dc5d1c401
Update our Windows media file MIME types to the official Microsoft-recommended ones.
...
props niallkennedy, wonderboymusic. fixes #14253
git-svn-id: https://develop.svn.wordpress.org/trunk@23422 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:12:40 +00:00
Andrew Nacin
88b8e29f0d
jQuery 1.9.1 and jQuery Migrate 1.1.0.
...
Remains uncompressed for now, until we work out all 1.9.x issues.
Fixes custom fields.
props ocean90, wonderboymusic. see #22975 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23421 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:09:04 +00:00
Sergey Biryukov
9defec712a
Properly truncate UTF-8 post slugs in wp_unique_post_slug(). fixes #21013 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23420 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 14:35:41 +00:00
Andrew Nacin
36d09ab2ef
Do not unslash variables reset by wp_reset_vars(). Remove variables that have never been used in plugin-editor.php. see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23419 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 02:01:36 +00:00
bumpbot
2d34b9a876
Compress scripts/styles: 3.6-alpha-23417.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23418 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:58:42 +00:00
Mark Jaquith
bfd0b6fb37
Refactor the Customizer accordion so that it can be used in other locations.
...
fixes #23449 . props lessbloat, aaroncampbell
git-svn-id: https://develop.svn.wordpress.org/trunk@23417 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:58:04 +00:00
Ryan Boren
a6c8efadb9
Change all core API to expect unslashed rather than slashed arguments.
...
The exceptions to this are update_post_meta() and add_post_meta() which are often used by plugins in POST handlers and will continue accepting slashed data for now.
Introduce wp_upate_post_meta() and wp_add_post_meta() as unslashed alternatives to update_post_meta() and add_post_meta(). These functions could become methods in WP_Post so don't use them too heavily yet.
Remove all escape() calls from wp_xmlrpc_server. Now that core expects unslashed data this is no longer needed.
Remove addslashes(), addslashes_gpc(), add_magic_quotes() calls on data being prepared for handoff to core functions that until now expected slashed data. Adding slashes in no longer necessary.
Introduce wp_unslash() and use to it remove slashes from GPCS data before using it in core API. Almost every instance of stripslashes() in core should now be wp_unslash(). In the future (a release or three) when GPCS is no longer slashed, wp_unslash() will stop stripping slashes and simply return what is passed. At this point wp_unslash() calls can be removed from core.
Introduce wp_slash() for slashing GPCS data. This will also turn into a noop once GPCS is no longer slashed. wp_slash() should almost never be used. It is mainly of use in unit tests.
Plugins should use wp_unslash() on data being passed to core API.
Plugins should no longer slash data being passed to core. So when you get_post() and then wp_insert_post() the post data from get_post() no longer needs addslashes(). Most plugins were not bothering with this. They will magically start doing the right thing. Unfortunately, those few souls who did it properly will now have to avoid calling addslashes() for 3.6 and newer.
Use wp_kses_post() and wp_kses_data(), which expect unslashed data, instead of wp_filter_post_kses() and wp_filter_kses(), which expect slashed data. Filters are no longer passed slashed data.
Remove many no longer necessary calls to $wpdb->escape() and esc_sql().
In wp_get_referer() and wp_get_original_referer(), return unslashed data.
Remove old stripslashes() calls from WP_Widget::update() handlers. These haven't been necessary since WP_Widget.
Switch several queries over to prepare().
Expect something to break.
Props alexkingorg
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23416 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:51:06 +00:00
Peter Westwood
4ca366a0d1
Revisions: Allow a plugin to force us to skip the don't save this revision because it hasn't changed code if it knows better.
...
See #7392 and #9843 . Also cleans up the whitespace.
git-svn-id: https://develop.svn.wordpress.org/trunk@23415 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 16:45:43 +00:00
Peter Westwood
671a9b2017
Revisions: Before saving a new post revision make sure that something has changed in the fields that we are revisioning.
...
Fixes : #7392 and #9843 props adamsilverstein.
git-svn-id: https://develop.svn.wordpress.org/trunk@23414 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 11:36:32 +00:00
Sergey Biryukov
16e16c7ee4
Use correct escaping function. fixes #23334 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23413 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 05:52:23 +00:00
Sergey Biryukov
74f5d9dcb3
Remove unused error string. props pavelevap. fixes #22107 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23412 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 05:36:28 +00:00
Sergey Biryukov
142c4ee92b
Use correct escaping function. props jkudish. fixes #20771 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23411 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 05:12:23 +00:00
Sergey Biryukov
04778f60ac
Return from image_downsize() earlier if a custom resize function is used. props anatolbroder. fixes #23392 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23410 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 04:30:55 +00:00
Helen Hou-Sandi
d8acf69968
Restore the following:
...
* Box shadow for screen options/help tabs focus state.
* Text shadow on the about screen badge to match the text shadow in the graphic itself.
* Border for credits screen gravatars, in place of the previous box shadow.
props nacin. see #23415 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23409 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 23:50:55 +00:00
bumpbot
6b63e085ef
Compress scripts/styles: 3.6-alpha-23408.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23408 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 22:58:44 +00:00
Helen Hou-Sandi
4b2173708d
Begin simplifying some of the visual elements in the admin, starting with gradients. White space purposefully not currently altered. props lessbloat, melchoyce, aaroncampbell, sabreuse. see #23415 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23407 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 22:43:48 +00:00
potbot
791206e4cd
POT, generated from r23404
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23405 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 22:19:39 +00:00
Peter Westwood
553395cb92
Revisions: Pass the whole revision being filtered along with context about which side it is to the _wp_post_revision_field_$field filters.
...
Fixes #19932 props pollett, ethitter.
git-svn-id: https://develop.svn.wordpress.org/trunk@23404 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 21:42:03 +00:00
bumpbot
42926ca699
Compress scripts/styles: 3.6-alpha-23403. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23403 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-12 22:58:43 +00:00
Andrew Ozz
6d0ee4dc7d
TinyMCE: include cd84a63d4a
to fix backspace and line breaks issues in WebKit, see #23337
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23402 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-12 02:04:09 +00:00
Ryan Boren
77e5536195
Use microtime() instead of incrementors for last_changed to to avoid race conditions with cache evictions.
...
Props westi
fixes #23448
git-svn-id: https://develop.svn.wordpress.org/trunk@23401 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-11 18:08:14 +00:00
bumpbot
679339ffaa
Compress scripts/styles: 3.6-alpha-23400.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23400 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 22:58:42 +00:00
Mark Jaquith
6b335f1b6a
Allow Backround Image's "select a file" link to be activated by pressing return on the keyboard.
...
props adamsilverstein. fixes #22606
git-svn-id: https://develop.svn.wordpress.org/trunk@23399 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 18:51:19 +00:00
Mark Jaquith
9f02654b0d
Introduce wp_remove_object_terms() and wp_add_object_terms(). No more fetch-alter-update nonsense. Use wp_remove_object_terms() in a few places internally.
...
props simonwheatley, scribu, ericmann, maxcutler. fixes #15475
git-svn-id: https://develop.svn.wordpress.org/trunk@23398 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 18:45:34 +00:00
Mark Jaquith
1723190616
Document the mysterious seventh parameter of add_meta_box().
...
props wonderboymusic, markjaquith. fixes #17515
git-svn-id: https://develop.svn.wordpress.org/trunk@23397 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 18:37:34 +00:00
Mark Jaquith
a601e170aa
Link post formats in posts list table. Use a dash for standard, like we do for absence of tags. see #16047 Next: use icons, not text descriptions.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23396 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 18:34:51 +00:00
Mark Jaquith
e419f6258c
Fix some tabbing issues on the post editing screen. Add Media no longer skipped when going backwards from content. Save Draft no longer skipped when going forwards from content.
...
props adamsilverstein. fixes #23195 and #22933
git-svn-id: https://develop.svn.wordpress.org/trunk@23395 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 18:30:09 +00:00
Helen Hou-Sandi
efda431bc2
Open external links to plugin homepages, plugin author homepages, and theme author homepages in a new window/tab. props SergeyBiryukov. fixes #20839 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23394 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 16:20:01 +00:00
Mark Jaquith
ca7674b100
"Lookup" is a noun. "Look up" is the verb form. If you doubt me, you should have lookuped in a dictionary.
...
props johnbillion, SergeyBiryukov. fixes #22386
git-svn-id: https://develop.svn.wordpress.org/trunk@23393 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 16:19:04 +00:00
Mark Jaquith
2f6d3fed8c
Display post formats in the posts list table.
...
props nacin, garyc40, DrewAPicture, wonderboymusic, aaroncampbell.
fixes #16047
git-svn-id: https://develop.svn.wordpress.org/trunk@23392 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 16:10:05 +00:00
Andrew Nacin
5dd8a15b26
Add underscore and backbone to the do-not-deregister list of scripts.
...
props adamsilverstein.
see [23378]. see #22896 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23391 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 05:11:27 +00:00
Mark Jaquith
e3a1266c0c
Revert [23375] until we can get Media fixed to work with newer versions of Backbone. see #23262
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23390 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 03:15:22 +00:00
Andrew Ozz
b38675a65a
Heartbeat API: fix error in IE < 9, props SergeyBiryukov, don't attempt to bind events to cross-domain iframes, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23389 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-06 07:10:04 +00:00
Sergey Biryukov
12fcb94781
Use a human-readable constant in wp_set_auth_cookie(). fixes #23372 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23388 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-06 03:44:43 +00:00
Sergey Biryukov
163f0a4769
Correct the documentation for _publish_post_hook(). Remove unused global declaration. props roulandf. fixes #23376 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23387 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-05 15:45:37 +00:00
bumpbot
68360b40ab
Compress scripts/styles: 3.6-alpha-23386.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23386 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 14:38:03 +00:00
Ryan Boren
51e5049575
In wp_get_archives(), cache queries to individual cache buckets instead of storing them in one cached array. Use incrementor style passive cache invalidation.
...
fixes #23206
see #23173
git-svn-id: https://develop.svn.wordpress.org/trunk@23385 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 13:54:15 +00:00
Ryan Boren
8b07ad9884
Use incrementors for cache invalidation in get_terms().
...
fixes #23326
see #23173
git-svn-id: https://develop.svn.wordpress.org/trunk@23384 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 13:48:46 +00:00
Mark Jaquith
bd80d92a89
Update Underscore to version 1.4.4. see #23262
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23383 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 06:40:21 +00:00
Andrew Ozz
682b66b560
Heartbeat API: throttle down when the window looses focus or when the user is inactive, always send 'screen_id', change the interval settings to 'fast' (5sec), 'standard' (15sec) and 'slow' (60sec), the interval can be changed from PHP, see #23216
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23382 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-03 07:03:27 +00:00
Helen Hou-Sandi
7f2205971c
Maintain theme screenshot aspect ratio on the update screen. props cochran. fixes #23164 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23381 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 17:02:01 +00:00