Commit Graph

19852 Commits

Author SHA1 Message Date
Daryl Koopersmith
aa1446319d Do not instantiate a Plupload instance when the wp-plupload bridge has neither a browse button nor a dropzone. fixes #21707.
git-svn-id: https://develop.svn.wordpress.org/trunk@21722 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 04:10:00 +00:00
Lance Willett
53e18e43f4 Twenty Twelve: remove justified text alignment rules for small screens. Closes #21385.
git-svn-id: https://develop.svn.wordpress.org/trunk@21721 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 03:58:24 +00:00
Lance Willett
866d1a2a8a Twenty Twelve: fix long word overflow in IE9 and FF15 by using word-wrap instead of word-break, fixes #21503.
git-svn-id: https://develop.svn.wordpress.org/trunk@21720 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 03:47:24 +00:00
Andrew Nacin
667a94907c Properly delimit URLs by \r, \n, \t *or* a space in sanitize_trackback_urls(). Fixes multiple trackback URL usage. props SergeyBiryukov, fixes #21624 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21718 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 03:36:19 +00:00
Andrew Nacin
2a8af13e3e setup-config.php must be parseable by PHP4 so we can show a sane error message. wp-admin/index.php should ideally be as well. props SergeyBiryukov, see #21316.
git-svn-id: https://develop.svn.wordpress.org/trunk@21716 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 02:46:01 +00:00
Andrew Nacin
040d03235d Don't include functions.php in wp_load_translations_early()
to avoid a parse error in a PHP4 environment (caused by use of
the clone keyword in option.php).

Manually include functions.php in the rare situations where it
is not already included by the time we need to load translations
early.

Remove the functions.php dependency by switching the wp_die() calls
to die(), in wp_check_php_mysql_versions().

props SergeyBiryukov, see #21316, for trunk.




git-svn-id: https://develop.svn.wordpress.org/trunk@21715 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 02:38:37 +00:00
Andrew Nacin
be7d33f10d URL encode the theme stylesheet passed into wp_customize_url(). see #21749.
git-svn-id: https://develop.svn.wordpress.org/trunk@21713 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 23:58:30 +00:00
Andrew Nacin
80f60bd348 URL encode the stylesheet directory values passed to WP_Theme's get_stylesheet_directory_uri() and get_template_directory_uri(). props SergeyBiryukov, see #21749.
git-svn-id: https://develop.svn.wordpress.org/trunk@21712 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 23:57:43 +00:00
Jon Cave
93cf4c66a0 Bump $wp_db_version for [21705]
git-svn-id: https://develop.svn.wordpress.org/trunk@21707 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 22:11:00 +00:00
Jon Cave
9ce4163dd7 Reinstate paged rewrite rules for the post permalink structure.
Removal of this stopped pagination working for bare category URLs when
certain %category% based permalink structures were in used.

Reverts one more piece of [19737]. Props SergeyBiryukov. See #21209.


git-svn-id: https://develop.svn.wordpress.org/trunk@21705 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 22:06:28 +00:00
Andrew Nacin
7981f50934 Fix placeholders in 'Welcome to WordPress' successful update messages. props SergeyBiryukov. see #21511.
git-svn-id: https://develop.svn.wordpress.org/trunk@21703 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 21:57:53 +00:00
Andrew Nacin
4769e9e656 Don't call self_admin_url() or esc_url() when declaring that WordPress updated successfully, as they may not exist in the current (just updated) version.
props SergeyBiryukov.
see #21511.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@21702 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 21:56:12 +00:00
Andrew Nacin
909cbd75b8 Fix oEmbed when the provider only supports XML responses.
[20539] removed string casts that would have taken place on SimpleXMLElement
objects, which implement toString. Instead, convert the SimpleXMLElement object
to a stdClass object before we leave _parse_xml(), for consistency with the
simple object returned from _parse_json().

see #20246.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@21701 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 21:42:24 +00:00
Andrew Nacin
9a4bba9390 Only show network-only plugins in the network admin. props SergeyBiryukov. see #21187, for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21700 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 19:42:31 +00:00
bumpbot
1cf2f96b3c Compress scripts/styles: 3.5-alpha-21698.
git-svn-id: https://develop.svn.wordpress.org/trunk@21698 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 15:59:27 +00:00
Andrew Nacin
a7bc84096f Load the meta box sortables JS on the Edit Comment screen. props SergeyBiryukov. fixes #21499.
git-svn-id: https://develop.svn.wordpress.org/trunk@21697 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 15:39:06 +00:00
Andrew Nacin
903479fb96 Replace multiple wp_enqueue_script() calls in nav-menus.php with dependencies. props SergeyBiryukov. fixes #21777.
git-svn-id: https://develop.svn.wordpress.org/trunk@21696 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 15:35:22 +00:00
Daryl Koopersmith
83cb763ff1 jQuery 1.8.1 final. Also restores jQuery.noConflict(). props ocean90, fixes #21736.
git-svn-id: https://develop.svn.wordpress.org/trunk@21695 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-01 20:47:07 +00:00
bumpbot
67b0862023 Compress scripts/styles: 3.5-alpha-21694.
git-svn-id: https://develop.svn.wordpress.org/trunk@21694 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 21:59:26 +00:00
Ryan Boren
ba5f7b35fd s/blog/site/. see #21742
git-svn-id: https://develop.svn.wordpress.org/trunk@21693 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 20:45:28 +00:00
Daryl Koopersmith
44b205c027 Add wp.media(), a function to create a default media workflow.
This will be the main entry point for basic media development, and should hopefully help less experienced developers wrangle the new media APIs.

If you would like to see the new UI, navigate to the post editor and run the following in your browser's Javascript console:

	wp.media();

Well, that certainly feels a lot nicer to type.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@21692 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 20:44:02 +00:00
Daryl Koopersmith
436bf0016f Media: Use numeric timestamps instead of string-based timestamps when preparing an attachment for js.
We use the 'date' attribute to create Javascript Date objects. The Date() constructor has better cross-browser compatibility when numeric arguments are passed to the constructor.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@21691 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 19:14:43 +00:00
bumpbot
62f79fd6e3 Compress scripts/styles: 3.5-alpha-21690.
git-svn-id: https://develop.svn.wordpress.org/trunk@21690 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 18:59:24 +00:00
Daryl Koopersmith
8f7b835954 Media JS: Attachments collection API improvements.
Rename watch() and unwatch() to observe() and unobserve(), respectively, to avoid conflicts with Firefox's proprietary Object.prototype.watch method.

Rename validate() to validator(), and changed() to validate(), as the latter will be more frequently used, and better explains its purpose. Also, make the new validate() more concise.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@21689 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 18:38:32 +00:00
Mark Jaquith
02975388bd Fix the adding of link categories through the "Add Link" screen. props yoavf. fixes #21590 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@21688 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 18:20:28 +00:00
Ryan Boren
7907be8f15 Introduce WP_Screen::in_admin() for determining which admin the screen is in.
Change is_*_admin() to reference in_admin() with fallback to the WP_*_ADMIN constants during early bootstrap. This allows unit tests and ajax handlers to set the admin context.

fixes #21742


git-svn-id: https://develop.svn.wordpress.org/trunk@21687 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 17:16:46 +00:00
Andrew Nacin
cb60d4a2fa Restore the 'allowed_themes' filter.
This filter has wrapped the network-wide themes, outside of the network-wide
allowed function (dating back to MU), hence the unusual placement. This restores
previous behavior; we will introduce new filters to enable greater flexibility.

see #21099.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@21686 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 17:05:18 +00:00
Peter Westwood
da2f11a8b8 Make sure that we always generate random numbers correctly even if the PHP build is slightly broken and truncates large integers.
Fixes #19571 props mdawaffe.


git-svn-id: https://develop.svn.wordpress.org/trunk@21685 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 09:45:50 +00:00
bumpbot
7732b3e6e9 Compress scripts/styles: 3.5-alpha-21684.
git-svn-id: https://develop.svn.wordpress.org/trunk@21684 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 06:59:25 +00:00
Daryl Koopersmith
5a4a17687a Add new media workflow scripts, styles, and templates.
Please note that this commit does not integrate media into the existing UI. If you would like to see the new UI, navigate to the post editor and run the following in your browser's Javascript console:

	new wp.media.controller.Workflow().render().modal.open();


The Javascript is broken up into two files, with the slugs media-models and media-views.

* media-models: The models are UI agnostic, and can be used independent of the views. If you'd like to create custom UIs, this is the script for you.

* media-views: This is the Media Experience. The views (and controllers) depend on the models (which are listed as a dependency and will automatically be included thanks to wp_enqueue_script). The views also require the media templates, media-view styles, and the plupload bridge settings. Perhaps we should create a function to include the whole shebang, but in the meantime...

To include media-views in the admin, run the following PHP in or after 'admin_enqueue_scripts':

	wp_enqueue_script( 'media-views' );
	wp_enqueue_style( 'media-views' );
	wp_plupload_default_settings();
	add_action( 'admin_footer', 'wp_print_media_templates' );

see #21390.



git-svn-id: https://develop.svn.wordpress.org/trunk@21683 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 04:54:23 +00:00
Daryl Koopersmith
84a9e47c0d Fix a misnamed variable, which caused the query-attachments ajax handler to ignore all input. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@21682 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 04:32:25 +00:00
Andrew Nacin
215be466c3 Add get-attachment and query-attachments Ajax handlers. props koopersmith. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@21681 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 02:58:51 +00:00
Andrew Nacin
c7ba96ddaa Introduce wp_prepare_attachment_for_js(). Prepares an attachment post object to be JSON-encoded and fitted into an Attachment model, for 3.5 media.
props koopersmith. see #21390.



git-svn-id: https://develop.svn.wordpress.org/trunk@21680 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 02:04:40 +00:00
Andrew Nacin
0599fd010f Introduce wp_send_json() to json-encode a variable, print it, and die, for Ajax requests. Effectively replaces WP_Ajax_Response, which was an XML-based response.
Introduce wp_send_json_success() and wp_send_json_error(), which will allow us to fire appropriate done() or fail() callbacks in JS.

props koopersmith. see #21390.



git-svn-id: https://develop.svn.wordpress.org/trunk@21679 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 01:56:00 +00:00
bumpbot
5579211850 Compress scripts/styles: 3.5-alpha-21678.
git-svn-id: https://develop.svn.wordpress.org/trunk@21678 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 21:59:32 +00:00
Andrew Ozz
d609c9b06a Update the query strings to refresh the toolbar sprites, props ocean90, see #20033
git-svn-id: https://develop.svn.wordpress.org/trunk@21677 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 21:46:37 +00:00
Andrew Ozz
ad27aba8c1 Flip Admin Bar search icon, props empireoflight and lessbloat, fixes #20033
git-svn-id: https://develop.svn.wordpress.org/trunk@21676 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 21:18:07 +00:00
Lance Willett
2cee83814b Twenty Twelve: go with echo get_the_date() here, added in r21670 but reverted accidentally in r21674. Props obenland.
git-svn-id: https://develop.svn.wordpress.org/trunk@21675 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 19:32:05 +00:00
Lance Willett
b9c884ed97 Twenty Twelve: add a better permalink markup structure to content-image.php template, for usability when image posts have no title. Props obenland, fixes #21723.
git-svn-id: https://develop.svn.wordpress.org/trunk@21674 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 19:27:27 +00:00
bumpbot
56b3860a86 Compress scripts/styles: 3.5-alpha-21673.
git-svn-id: https://develop.svn.wordpress.org/trunk@21673 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 18:59:30 +00:00
Andrew Nacin
9d6e1b33ca Have wp_script_is() and wp_style_is() accept 'enqueued', as it reads better than 'queue' and is consistent with 'registered'. fixes #21741.
git-svn-id: https://develop.svn.wordpress.org/trunk@21672 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 18:57:57 +00:00
Andrew Ozz
ceaf979590 Fix min row height in .widefat, see #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@21671 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 18:47:22 +00:00
Lance Willett
8e8c5b77fe Twenty Twelve: use get_the_date() rather than the_date() in content templates to ensure a date is always output and a post permalink is visible to site visitors. Props obenland and ocean90, fixes #21721.
git-svn-id: https://develop.svn.wordpress.org/trunk@21670 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 17:23:22 +00:00
potbot
3baea99e9b POT, generated from r21668
git-svn-id: https://develop.svn.wordpress.org/trunk@21669 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 17:18:55 +00:00
Lance Willett
9051dd1d06 Twenty Twelve: move Open Sans custom font loading to a body class to allow easier overriding, fixes #21694.
* Use wp_style_is() to check for the enqueued CSS file before adding the body class value.
 * Add a sample dequeue method in the comments as documentation for child themers and their ilk.

Props viniciusmassuchetto, nacin, and obenland.


git-svn-id: https://develop.svn.wordpress.org/trunk@21668 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 16:59:22 +00:00
Lance Willett
93f85f9f9f Twenty Twelve: remove aggressive text-align rule, set to inherit instead to allow editor-added styles to justify per author's desire. Props obenland, fixes #21739.
git-svn-id: https://develop.svn.wordpress.org/trunk@21667 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 16:39:49 +00:00
Lance Willett
f9429df937 Twenty Twelve: move text treatment for footer anchor element up to its parent container, to allow styling any text in the footer.
git-svn-id: https://develop.svn.wordpress.org/trunk@21666 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 16:25:31 +00:00
Lance Willett
ce7c75f5b5 Twenty Twelve: remove unneeded float rule from nav list items, there is nothing to override here.
Also allows authors to assign CSS classes and float menu items with something like `alignright`.


git-svn-id: https://develop.svn.wordpress.org/trunk@21665 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 16:24:29 +00:00
Ryan Boren
92ea34f6a2 Use set_url_scheme(). Props johnbillion, MarcusPope. see #19037 #20759
git-svn-id: https://develop.svn.wordpress.org/trunk@21664 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 13:33:00 +00:00
bumpbot
bca5b5538d Compress scripts/styles: 3.5-alpha-21663.
git-svn-id: https://develop.svn.wordpress.org/trunk@21663 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 04:09:57 +00:00