Ryan Boren
c61b68d896
Remove unnecessary stripslashes().
...
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23593 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 20:55:30 +00:00
Ryan Boren
6c3d30e58a
In ms-functions.php, remove unnecessary slashing, don't strip the return of get_site_option, s/stripslashes*/wp_unslash/.
...
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23592 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 16:55:53 +00:00
Ryan Boren
b78520da15
Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().
...
see #WP21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23591 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 16:30:38 +00:00
Daryl Koopersmith
cb8328d912
Media: Reset modal after gallery insertion.
...
Removes hardcoded (and vestigial) 'upload' states in favor of using the default modal state.
When a media toolbar action is triggered, reset the modal after switching to the new state (as opposed to beforehand).
fixes #23675 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23590 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 07:36:21 +00:00
Daryl Koopersmith
c2e7a67fbe
Update Backbone to 0.9.10. Update media to handle breaking changes.
...
* When overriding `Backbone.sync()`, ensure the `sync` and `error` events fire consistently.
* `Model#make()` has been removed. Use `$` instead, and be sure to grab the DOM node where necessary (using `[0]`).
* `Collection#get()` now accepts `cid`s. `Collection#getByCid()` has been removed.
* When overriding the `State` constructor, bind `change` callbacks after the default `Model` constructor is called, because the `Model` constructor no longer passes the `silent` flag when calling `set()` for the default attributes.
* In 'change' events, `options.changes` was removed. It can now be accessed through `model.changed`. Check if any attributes have changed by calling `model.hasChanged()`. Also, don't mess with `model.changed`; it persists beyond the scope of a single event.
* `options.index` is no longer be set in the `add` event callback. Use `collection.indexOf(model)` can be used to retrieve the index of a model instead.
props gcorne. fixes #23262 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23589 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 07:04:06 +00:00
Andrew Nacin
16d1aa3485
Remove the three default contact methods (AIM, YIM, Jabber) for new installs. fixes #11541 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23588 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 03:00:34 +00:00
Sergey Biryukov
d6139ccade
Remove unused function. fixes #23671 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23587 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-03 00:06:09 +00:00
Sergey Biryukov
22ec39f6e2
Fix checkbox synchronization on Edit Link screen. fixes #23670 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23586 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-02 23:58:34 +00:00
bumpbot
0c4b47f631
Compress scripts/styles: 3.6-alpha-23585.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23585 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-02 22:58:34 +00:00
Sergey Biryukov
83de7017df
Use correct variable. see [23575]. see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23584 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-02 21:10:12 +00:00
Helen Hou-Sandi
aae1d4ef75
Don't make ordered lists in help tabs look like bulleted lists. props ninnypants. fixes #23659 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23583 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-02 17:47:48 +00:00
bumpbot
ec3fda3cc1
Compress scripts/styles: 3.6-alpha-23582.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23582 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 22:58:38 +00:00
Helen Hou-Sandi
45b4d47b02
* Simplify jQuery UI slider CSS and bring into line with admin styles.
...
* Merge styles into wp-admin.css and colors-*.css.
* Scope the CSS with a class so as not to conflict with the color picker, which also utilizes jQuery UI slider. Authors wanting to use built-in styling for sliders should add a class of `.wp-slider` to the container to be intialized.
props karmatosed, helen. see #23497 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23581 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 19:24:03 +00:00
Andrew Nacin
b617e4742a
Don't unslash variables that came from wp_reset_vars(). see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23580 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 18:59:54 +00:00
Sergey Biryukov
3e811c5171
Use distinct error code in wp_authenticate_username_password() when user is a spammer. props sirzooro. fixes #19445 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23579 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 18:01:16 +00:00
Andrew Nacin
12882f9848
Ensure the referer functions operate completely on unslashed data: wp_referer_field(), wp_original_referer_field(), wp_get_referer(), wp_get_original_referer().
...
Use wp_slash() instead of addslashes().
see #21767 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23578 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:58:43 +00:00
Andrew Nacin
1b8afaa995
Remove an unslash in the deprecated WP_User_Search, as search_term is already unslashed in the constructor. see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23577 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:57:49 +00:00
Andrew Nacin
e8e569ccd2
Unslash early, directly on the superglobal. see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23576 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:57:08 +00:00
Andrew Nacin
0d54b5febe
Assume that url_shorten() receives unslashed data, as it does in core usage. see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23575 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:56:31 +00:00
Lance Willett
d7a010a66e
Twenty Thirteen: better styles for no-results views (empty search, empty archives) for small screens. Props johnbillion, fixes #23544 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23574 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:54:19 +00:00
Andrew Nacin
20f86706e4
Remove double-strip on HTTP_IF_NONE_MATCH, which was done years ago (in #2597 ). see #21767 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23573 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:51:16 +00:00
Lance Willett
876ce909c0
Twenty Twelve: enable live preview for Header Text Color in Theme Customizer. Change also removes an !important
declaration (yay) in Custom Header CSS rules.
...
Props SriniG, fixes #23600 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23572 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:45:59 +00:00
Sergey Biryukov
15cc36bd4b
Make sure the pings are only sent once per URL for a given post. props dllh. fixes #23217 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23571 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:39:52 +00:00
Ryan Boren
37fae23001
Always wp_unslash() the return of wp_get_referer().
...
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23570 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:20:32 +00:00
potbot
62139fc6a6
POT, generated from r23565
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23569 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:20:02 +00:00
Lance Willett
3ba7b7e56a
Twenty Twelve: better handling for cases where a background color is set to white or an empty value (like first run with no theme_mods
set) and a background image is enabled, which resulted previously in a broken layout. Fixes #23586 , props obenland.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23568 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:14:59 +00:00
Ryan Boren
436b32ef62
Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23567 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:14:09 +00:00
Sergey Biryukov
316689c934
Add missing comma. props bradparbs. fixes #22507 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23566 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:12:02 +00:00
Sergey Biryukov
ad40af5edc
Add a filter for attributes on menu item links. props simonwheatley, DrewAPicture, SergeyBiryukov, nacin. fixes #16738 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23565 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:06:35 +00:00
Ryan Boren
e737c7120e
Use prepare instead of escape.
...
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23564 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:01:01 +00:00
Ryan Boren
4088ca8723
Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().
...
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23563 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 17:00:25 +00:00
Lance Willett
bfc00f191e
Twenty Twelve: properly style visited links in entries, widgets, and comment text. Props DrewAPicture, fixes #23200 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23562 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:56:15 +00:00
Lance Willett
79194cf2a2
Twenty Twelve: fix double featured images in Front Page Template, closes #22943 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23561 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:50:34 +00:00
Sergey Biryukov
3624fa4fde
Consistently apply 'preview_post_link' filter. fixes #19378 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23560 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:46:25 +00:00
Lance Willett
a8c27b4039
Twenty Thirteen: display caption in galleries. Fixes #23584 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23559 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:44:46 +00:00
Sergey Biryukov
93aa28e208
Consistently apply 'register' filter. props wonderboymusic for initial patch. fixes #14406 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23558 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:43:18 +00:00
Lance Willett
6db8b40209
Twenty Thirteen: CSS fixes to change single to double quotes, proper quoting around font-family names, and add a missing escape to a background image in custom-header.php. Props markmcwilliams, fixes #23653 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23557 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:40:29 +00:00
Ryan Boren
206318aeca
There is no need to strip the output of get_site_option().
...
see #21767
git-svn-id: https://develop.svn.wordpress.org/trunk@23556 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:37:24 +00:00
Ryan Boren
85782c3e39
Introduce wp_slash() and wp_unslash(). This will be used to cleanup the myriad calls to addslashes*, add_magic_quotes, stripslashes*. see #21767
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23555 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:34:48 +00:00
Ryan Boren
c363aea627
Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23554 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:28:40 +00:00
Sergey Biryukov
158a124d0b
Remove redundant esc_url() call. props pauldewouters. fixes #23643 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23553 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:27:03 +00:00
Sergey Biryukov
da77df683e
Make wp_remove_object_terms() return false if nothing has been deleted. props kovshenin. fixes #15475 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23552 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 16:22:07 +00:00
Sergey Biryukov
80e66db499
Make wp_convert_bytes_to_hr() return consistent results on 32-bit and 64-bit systems. fixes #23626 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23551 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 15:59:10 +00:00
Sergey Biryukov
c99000e98c
Ensure that get_nav_menu_locations() always returns an array. props JustinSainton for initial patch. fixes #23508 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23550 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 15:51:16 +00:00
Lance Willett
d7c28ced8a
Twenty Thirteen: more CSS cleanup, props SergeyBiryukov. See #23652 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23549 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 04:04:52 +00:00
Lance Willett
44b8b0c3f1
Twenty Thirteen: better font-size rules all blockquotes, setting a smaller base rule and overriding the large only for entry content. Also fix too-wide comment iframes.
...
Props Viper007Bond for the nudge. Fixes #23651 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23548 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 04:01:45 +00:00
Lance Willett
9eb7619193
Twenty Thirteen: reduce font-size a bit for comment content areas. See #23651 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23547 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 03:34:11 +00:00
Lance Willett
107be61753
Twenty Thirteen: trim down font properties, props obenland. Fixes #23546 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23546 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 03:24:18 +00:00
Lance Willett
057c586b3a
Twenty Thirteen: fix missing space in selector! Props markmcwilliams, fixes #23652 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23545 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 03:22:19 +00:00
Lance Willett
f5038132ed
Twenty Thirteen: second pass at styles for attachment pages that are not images: hide sidebar and navigation link, better alignment of Edit link.
...
Closes #23632 .
git-svn-id: https://develop.svn.wordpress.org/trunk@23544 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-01 03:20:22 +00:00