Andrew Ozz
6beddbe7de
Restyles the modal for attaching media to posts, take II (also some autoprefixer and imagemin). Props avryl, see #26952 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27403 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 03:53:19 +00:00
Andrew Nacin
6afe83e3ca
In set_theme_mod() account for when there is no old value.
...
fixes #14721 . see [27393].
git-svn-id: https://develop.svn.wordpress.org/trunk@27402 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-05 01:12:39 +00:00
Andrew Ozz
ce69c629ff
Restyles the modal for attaching media to posts, props avryl, see #26952
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27401 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 23:10:35 +00:00
Sergey Biryukov
d87cac2093
Use esc_attr_e() instead of _e() for attribute values.
...
props DJPaul.
fixes #27274 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27400 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 21:09:32 +00:00
Andrew Nacin
58dc8ab25c
i18n tools: Have makepot search for the main file of the plugin.
...
props Otto42.
fixes #25665 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27399 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 21:06:48 +00:00
Andrew Nacin
a206152c10
Update the Customizer API inline docs.
...
props ericlewis.
fixes #27065 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27398 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 20:20:28 +00:00
Andrew Nacin
73a077d32b
Rename maybe_regenerate_attachment_metadata() to wp_maybe_generate_attachment_metadata(), to match wp_generate_attachment_metadata().
...
fixes #26825 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27397 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 20:06:14 +00:00
Andrew Nacin
f0b330e994
Do not output default gallery styles if the theme has opted into HTML5 galleries.
...
fixes #27045 . see #26697 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27396 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 18:52:34 +00:00
Andrew Nacin
ed43f002b8
Add has_password and post_password query variables to WP_Query.
...
* has_password true means posts with passwords, false means posts without.
* post_password can query for posts with a particular password.
props wonderboymusic, robmiller.
fixes #20308 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27395 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 07:44:28 +00:00
Andrew Nacin
c2dd5d4a75
Bail early from shortcode functions if no delimiter is present.
...
This is a significant performance improvement for processing content without shortcodes, and only the slightest hit when content contains shortcodes (which must then undergo processing anyway). Performance results on the ticket.
props TobiasBg.
fixes #23855 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27394 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 07:10:46 +00:00
Andrew Nacin
3d45eff577
Add a pre_set_theme_mod_$name filter to set_theme_mod().
...
This is modeled after pre_update_option_$option in update_option() and pre_set_transient_$transient in set_transient().
props obenland.
fixes #14721 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27393 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 07:01:45 +00:00
Andrew Nacin
28a29842c6
Convert the post lock icon to a dashicon.
...
props melchoyce, DH-Shredder.
fixes #26796 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27392 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 06:52:14 +00:00
Andrew Ozz
f0c491968a
DFW: revert adding the 'image' button, images are edited in the media modal. See #24067 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27391 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 04:07:31 +00:00
Andrew Nacin
5edec1d792
Don't default to current user for capability checks when dealing with a post without an author (post_author = 0).
...
Undoes [12053]. While it risks breakage, this is a far safer and saner default for these situations.
props danielbachhuber.
fixes #27020 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27390 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 03:08:54 +00:00
Andrew Nacin
1329d5ebc0
Add jquery.masonry.min.js. fixes #25351 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27389 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 02:19:41 +00:00
Andrew Nacin
83ee32a35c
Allow the role attribute in kses for all elements.
...
props mikecorkum.
fixes #24098 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27388 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 02:10:25 +00:00
Andrew Ozz
e5bed6707f
TinyMCE: update to 4.0.18, see #24067
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27387 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-04 01:56:57 +00:00
Helen Hou-Sandi
4c10cb2ec5
Add the ability to short-circuit wp_nav_menu() via the pre_wp_nav_menu
hook. props kasparsd, DrewAPicture, Rarst. fixes #23627 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27386 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 20:42:21 +00:00
Andrew Nacin
eef62a9d0d
Update PHPMailer to 5.2.7 from 5.2.4.
...
Includes two trivial modifications for WordPress:
* Doesn't use the autoloader, so the check to enforce the autoloader from the constructor is removed.
* Requires class-smtp.php for backwards compatibility with direct (non-wp_mail()) uses of PHPMailer, as the autoloader isn't used.
props bpetty.
fixes #25560 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27385 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 20:24:31 +00:00
Dominik Schilling (ocean90)
ff567294f6
"At a Glance" widget: Move get_avatar()
line out of if-block.
...
This allows you to show avatars for custom comment types via the `get_avatar_comment_types` filter.
props zodiac1978.
fixes #26944 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27384 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 20:13:29 +00:00
Andrew Nacin
034abb8710
Revisions: Add 'Return to post editor' link.
...
props adamsilverstein, jenmylo.
fixes #24682 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27383 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 19:49:03 +00:00
Mark Jaquith
d1c6cd4251
Edit svn:ignore and svn:global-ingnores properties to match .gitignore
...
fixes #27207
git-svn-id: https://develop.svn.wordpress.org/trunk@27382 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 19:30:58 +00:00
Andrew Nacin
aeb0957aea
Doc fixes for wp_get_network().
...
props TobiasBg.
see #27003 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27381 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 18:55:08 +00:00
Andrew Nacin
260b7f08ca
Let get_the_date() accept a post object.
...
props tanner-m, adamsilverstein, bigdawggi.
fixes #13771 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27380 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:59:11 +00:00
Drew Jaynes
1b41eea7c7
Generalize the hook documentation for the set-screen-option
filter.
...
The filter covers more than [items]_per_page screen options.
Fixes #26186 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27379 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:50:33 +00:00
Andrew Nacin
c920b4f36e
Support multiple editor instances when drag-and-drop-uploading onto them.
...
Also reduces z-index to below the toolbar, and adds a comment.
props kovshenin.
see #19845 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27378 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:43:33 +00:00
Andrew Nacin
79143bfed1
Make OBJECT a case sensitive constant, for HHVM compatibility and general sanity.
...
Support `object` explicitly, and other forms using a fallback in wpdb.
fixes #27231 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27377 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:35:12 +00:00
Andrew Nacin
8b532c17d2
Accept nooped plurals in wp_generate_tag_cloud() / wp_tag_cloud().
...
Renders topic_count_text_callback more or less obsolete. It can still be used, but passing a plural is easier.
fixes #27262 . see #7989 , #14424 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27376 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:28:07 +00:00
Drew Jaynes
f65484cabf
Inline documentation for hooks in wp-admin/includes/misc.php.
...
Props JoshuaAbenazer.
Fixes #26186
git-svn-id: https://develop.svn.wordpress.org/trunk@27375 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:19:31 +00:00
Andrew Nacin
0aae0ca1e6
Slight renaming in our callback in [27373]. see #14424 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27374 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 17:08:26 +00:00
Mark Jaquith
7937358328
Eliminate some of our last remaining create_function()
instances
...
* Moved some into private function callbacks
* Eliminated some that weren't necessary anymore
props obenland, markjaquith, nacin. fixes #14424
git-svn-id: https://develop.svn.wordpress.org/trunk@27373 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 16:20:12 +00:00
Andrew Nacin
e5e40644b7
TinyMCE: Propagate the dragover event outside the editor so drag-and-drop uploads can catch it.
...
props kovshenin.
see #19845 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27372 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 15:53:52 +00:00
Sergey Biryukov
7f3c71eff3
Add missing word. props bassgang. fixes #27259 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27371 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 09:46:36 +00:00
Drew Jaynes
cc6836dc55
Convert argument array documentation to the hash-notation style for WP_Admin_Bar::add_node()
and WP_Admin_Bar::add_group()
.
...
Fixes #27258 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27370 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 06:10:22 +00:00
Andrew Nacin
f3a23fb43f
Reference https://wordpress.org rather than http://wordpress.org in strings, links, comments, etc.
...
props Ipstenu, markjaquith.
see #27115 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27369 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 02:33:24 +00:00
Andrew Ozz
957beec4de
Editor: throttle scrolling of the main window when the editor is active and is being scrolled with the mouse wheel or a trackpad, see #27013
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27368 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 02:33:22 +00:00
Andrew Nacin
1a91bee772
Accept rel attributes in the toolbar's add_node() method.
...
props stephcook22.
fixes #27234 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27367 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 02:13:07 +00:00
Andrew Ozz
e1028cfc7b
Editor: when TinyMCE is used, add autocomplete="off"
to the textarea to prevent problems with missing <p> tags when the user reloads the page or uses Go Back/Go Forward buttons, and when editing the same post from two different windows. The autocomplete can be removed with the the_editor
filter. Part props xsonic, fixes #27251 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27366 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-03 01:14:27 +00:00
Drew Jaynes
a05f04683e
Inline documentation for hooks in wp-includes/option.php.
...
Props siobhyb for the initial patch. Props DrewAPicture, kpdesign.
Fixes #25905 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27365 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 23:34:08 +00:00
Andrew Ozz
8cae5c7ab7
Editor: look at the class of the wrapper element instead of getUserSetting('editor')
to determine the default editor, fixes #27257
...
git-svn-id: https://develop.svn.wordpress.org/trunk@27364 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 23:25:25 +00:00
Scott Taylor
cfd319d576
Adjust the priority of the separator in the Edit Playlist and Edit Video Playlist menus to match the structure of the Edit Gallery menu.
...
Props gcorne.
See #26631 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27363 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 23:12:36 +00:00
Scott Taylor
1f0dad18d4
Make CollectionEdit
and CollectionAdd
less dynamically quirky. Rename some instance properties for disambiguation. Pass some properties from options
when creating instances in wp.media.view.MediaFrame.Post
.
...
See #26631 .
Props gcorne.
git-svn-id: https://develop.svn.wordpress.org/trunk@27362 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 23:10:47 +00:00
Scott Taylor
9629e97d38
Add some braces for jshint
in media-views.js
.
...
See #26631 .
Props gcorne.
git-svn-id: https://develop.svn.wordpress.org/trunk@27361 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 23:06:12 +00:00
Sergey Biryukov
9c9aa55274
Display empty-titled pages properly in Walker_PageDropdown, like we do in Walker_Page.
...
fixes #27218 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27360 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 22:33:25 +00:00
Andrew Nacin
6869d203d0
Introduce get_site_by_path() and further rewrite the site detection process for multisite.
...
This is the first big step to supporting arbitrary domains and paths. In this new approach, sites are detected first where possible, then the network is inferred. Allows filtering for arbitrary path segments, smooths out some weirdness, and removes various restrictions. A sunrise plugin could do much of its work by adding filters, if those are even needed.
see #27003 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27359 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 22:24:50 +00:00
Sergey Biryukov
3038bdc80f
Restore $content_width global value after changing it in test_constrain_size_for_editor_*().
...
props ericlewis, georgestephanis, salcode, jorbin.
fixes #27256 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27358 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 22:22:41 +00:00
Drew Jaynes
94c6c6a213
Inline documentation for hooks in wp-admin/includes/image-edit.php.
...
Props theorboman. Props kpdesign for the cleanup.
Fixes #26149 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27357 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 20:55:10 +00:00
Drew Jaynes
4346d63207
Inline documentation for hooks in wp-admin/includes/class-wp-plugins-list-table.php.
...
Props nicolealleyinteractivecom, kpdesign.
Fixes #26957 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27356 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 20:47:31 +00:00
Drew Jaynes
90033f46bc
Tweak inline documentation for hooks in wp-admin/includes/class-wp-users-list-table.php.
...
Props kpdesign.
Fixes #26203 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27355 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 20:31:15 +00:00
Sergey Biryukov
235faf6363
Additional clarification for wp_authenticate_cookie() parameters.
...
fixes #26148 .
git-svn-id: https://develop.svn.wordpress.org/trunk@27354 602fd350-edb4-49c9-b593-d223f7449a82
2014-03-02 19:50:29 +00:00