Commit Graph

18555 Commits

Author SHA1 Message Date
Andrew Ozz 8df58a787f RTL for the responsive columns, see #20015
git-svn-id: https://develop.svn.wordpress.org/trunk@20347 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 02:46:38 +00:00
Andrew Ozz 9dcc77d9c1 Make the layout of the tables on edit link screen "liquid" so they can be shown on the side, see #20015
git-svn-id: https://develop.svn.wordpress.org/trunk@20346 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 02:45:30 +00:00
bumpbot 825926267f Compress scripts/styles: 3.4-alpha-20345.
git-svn-id: https://develop.svn.wordpress.org/trunk@20345 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-03 22:58:20 +00:00
Daryl Koopersmith 9218ead840 Theme Customizer: Improve data binding in wp.customize.Value and wp.customize.Values. see #19910.
* Replace the convoluted wp.customize.Value.link method with a simple shortcut for direct binding.
* Add wp.customize.Value.sync for bidirectional linking.
* Add wp.customize.Value.setter for handling compound values (instead of using wp.customize.Value.link).

git-svn-id: https://develop.svn.wordpress.org/trunk@20344 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-03 22:04:40 +00:00
bumpbot f3e171b253 Compress scripts/styles: 3.4-alpha-20343.
git-svn-id: https://develop.svn.wordpress.org/trunk@20343 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-02 22:58:19 +00:00
Andrew Ozz 7e34db14c8 Fix adding of parent theme's editor-style before child theme's, props SergeyBiryukov, see #19437
git-svn-id: https://develop.svn.wordpress.org/trunk@20342 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-02 22:26:11 +00:00
Andrew Ozz 05071148d9 Editor: fix adding a link in WebKit to floated image, fixes #16569
git-svn-id: https://develop.svn.wordpress.org/trunk@20341 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-02 22:16:30 +00:00
Ryan Boren 467f9af92d Remove jQuery Masonry. Fully reverts [20060]. see #17242
git-svn-id: https://develop.svn.wordpress.org/trunk@20340 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-02 20:05:35 +00:00
bumpbot 3a460964ae Compress scripts/styles: 3.4-alpha-20339.
git-svn-id: https://develop.svn.wordpress.org/trunk@20339 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-01 22:58:18 +00:00
Andrew Ozz ffbdfe9b06 Fix getting the checked radio button when attaching orphan attachments, props solarissmoke SergeyBiryukov, fixes #16655
git-svn-id: https://develop.svn.wordpress.org/trunk@20338 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-01 22:46:29 +00:00
Andrew Nacin 816ebbd616 jQuery 1.7.2. props ocean90. fixes #20339.
git-svn-id: https://develop.svn.wordpress.org/trunk@20337 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-01 20:13:36 +00:00
bumpbot c4e65f5f3f Compress scripts/styles: 3.4-alpha-20336.
git-svn-id: https://develop.svn.wordpress.org/trunk@20336 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-31 17:58:19 +00:00
Andrew Ozz 603565a190 Switch to one column on the edit/write screens at 850px (the editor becomes unusable at narrower screens and two columns), see #20015
git-svn-id: https://develop.svn.wordpress.org/trunk@20335 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-31 17:00:08 +00:00
Andrew Ozz 790f4e47f9 Rename back the handle for the editor CSS, props nacin, fixes #19843
git-svn-id: https://develop.svn.wordpress.org/trunk@20334 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-31 16:32:47 +00:00
Andrew Nacin 467905e308 Use 'Keyword' instead of 'Term' in the search type selector in the plugin and theme installers. see #19619.
git-svn-id: https://develop.svn.wordpress.org/trunk@20333 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 21:17:22 +00:00
Andrew Nacin 48c5af2ac0 Clean up cap checks for autocompletes for sites and users in a network. see #19810.
git-svn-id: https://develop.svn.wordpress.org/trunk@20332 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 21:04:48 +00:00
Andrew Nacin 47a29d2c26 Ensure we get a theme back from wp_get_theme() before checking ->errors(). see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20331 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 16:35:51 +00:00
Peter Westwood efdcdfdf36 Avoid fatal errors in check_theme_switched() if we fail to get a WP_Theme object for the old theme. Fixes #20334.
git-svn-id: https://develop.svn.wordpress.org/trunk@20330 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 15:13:12 +00:00
Andrew Nacin 8abd8624be Clear WP_Theme caches on update. fixes #20331.
git-svn-id: https://develop.svn.wordpress.org/trunk@20329 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 14:46:52 +00:00
Andrew Nacin 09f946105d Clear theme cache after editing. Reduce default cache persistence to 1800. (Could go lower.) see #20331.
git-svn-id: https://develop.svn.wordpress.org/trunk@20328 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 14:39:05 +00:00
Andrew Nacin e9c7faff7c Set WP_Theme::scandir()'s default depth to 0 (flat), as intended. Cache untranslated page template names. Properly merge in a parent theme's templates when dealing with cached values. Always look one level deep for WP_Theme->get_files() regardless of file type. see #20103. see #11216.
git-svn-id: https://develop.svn.wordpress.org/trunk@20327 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 14:06:33 +00:00
Andrew Nacin 1d7714d923 Check for is_rtl() existence before checking it in the fallback condition in wp_admin_css(). Prevents fatal errors when plugins call wp_admin_css() on a non-existent (probably removed) stylesheet. props SergeyBiryukov, fixes #19913.
git-svn-id: https://develop.svn.wordpress.org/trunk@20326 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 13:10:52 +00:00
Andrew Nacin 0fe62673e5 Always pass a table alias to wp_post_mime_type_where(). Prevents ambiguous queries when adding joins later on. props benbalter, fixes #20193.
git-svn-id: https://develop.svn.wordpress.org/trunk@20325 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 13:08:12 +00:00
Andrew Nacin a5585e4b61 Correct docs for WP_Theme scandir(), _name_sort(), and _name_sort_i18n() methods. All of them are private. see #11216, #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20324 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 18:49:50 +00:00
Peter Westwood 45cfe03be4 XMLRPC: In mw_newPost check to see if the post_status has been supplied before trying to use it to avoid undefined array access notices. Fixes #19774 props maxcutler.
git-svn-id: https://develop.svn.wordpress.org/trunk@20323 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 13:13:13 +00:00
Peter Westwood de2a91b1c4 XMLRPC: Fix bugs in mw_editPost hilighted by tests in [UT593]
* Feature image code did not actually set the feature image - See #18429
 * This api call could trash post data - Fixes #20321.


git-svn-id: https://develop.svn.wordpress.org/trunk@20322 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 11:59:51 +00:00
Peter Westwood f7ef53292c XMLRPC: Fix the featured image support in mw_newPost to use the correct variable names. See #18429 and [UT592].
git-svn-id: https://develop.svn.wordpress.org/trunk@20321 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 11:06:17 +00:00
bumpbot 8c171a54c6 Compress scripts/styles: 3.4-alpha-20320.
git-svn-id: https://develop.svn.wordpress.org/trunk@20320 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 06:58:19 +00:00
Daryl Koopersmith bdee6c8e15 Theme Customizer: Move upload and image controls to subclasses. see #19910.
Instead of grouping together every control parameter into a single  array and passing them all to the JS, use subclasses with custom parameters to implement additional PHP functionality and the  parameter to send only the necessary variables to the JavaScript control.

Replaces WP_Customize_Control->control_params with WP_Customize_Control->json and WP_Customize_Control->to_json(). The to_json() method refreshes the json array passed to the JavaScript control (set to control.param by default).

Creates WP_Customize_Upload_Control and WP_Customize_Image_Control.

git-svn-id: https://develop.svn.wordpress.org/trunk@20319 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 06:35:54 +00:00
Andrew Nacin f73f48301c Support page templates located in a subdirectory of the theme. fixes #11216.
git-svn-id: https://develop.svn.wordpress.org/trunk@20318 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 05:39:26 +00:00
Andrew Nacin 78d11eedea Use new scandir() return value (key is path relative to theme, value is absolute path) in WP_Theme->get_page_templates(). Use parent()->get_page_templates() and merge in a parent's page templates, rather than extra logic. see [20312], see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20317 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 05:37:37 +00:00
Andrew Nacin 822e0eda46 Correct the values for theme_root and stylesheet when the values passed to the WP_Theme constructor have a directory appended to the theme root when it should actually be prepended to the stylesheet (when the theme is in a directory of themes inside a theme root). see #20313.
git-svn-id: https://develop.svn.wordpress.org/trunk@20316 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 04:29:58 +00:00
Andrew Nacin 50346e7955 Always set WP_Theme->template even when there is an error and we have no idea what the template is. (Assume it is the stylesheet.) Prevents a number of issues including WP_Theme->is_child_theme() lying. Tidy the theme editor for broken themes and themes with no templates (PHP files), or no template (parent), or are broken. Allow broken themes to be edited. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20315 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 04:16:17 +00:00
Andrew Nacin c654d0ccf0 urldecode() the incoming $file in the theme editor. see [20313] when the encode was added. see #2994 for the original bug report. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20314 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 03:34:51 +00:00
Andrew Nacin 3b38b4a124 Rewrite theme-editor.php to use the new WP_Theme API. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20313 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 03:00:38 +00:00
Andrew Nacin ef6be74a33 Introduce WP_Theme->exists() to check if the queried theme actually exists. WP_Theme->exists() is a subset of errors() -- a theme with errors may still exist, but a theme that does not exist has an error of theme_not_found. wp_get_theme() now returns false if the theme does not exist. Improve scandir() and get_files() logic. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20312 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 02:59:48 +00:00
Dion Hulse c024ae710c WP_Filesystem: PemFTP: Detect dl() being disabled in order to avoid any fatals which may be produced when the Sockets extension is not available. Props to kurtpayne for initial patch, Fixes #20187
git-svn-id: https://develop.svn.wordpress.org/trunk@20311 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 02:15:06 +00:00
Andrew Nacin eeee02b520 Revert label change in [20282]. see #18311.
git-svn-id: https://develop.svn.wordpress.org/trunk@20310 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 20:32:29 +00:00
Mark Jaquith 5fa84e63ec Wrap attachment delete link in <p> for semantics and alignment. props aaroncampbell, lancewillett. fixes #19785
git-svn-id: https://develop.svn.wordpress.org/trunk@20309 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 20:28:34 +00:00
Andrew Ozz f615043fea Improve _fix_attachment_links(), replace attachment URLs with the real permalink only for published posts, re-save only when there are changes, see #13429
git-svn-id: https://develop.svn.wordpress.org/trunk@20308 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 16:02:12 +00:00
Andrew Ozz f9c3a352a0 Do not process <pre> tags with wpautop, replace them with placeholders, process the rest of the content and then put them back. Part props kurtpayne, see #19855
git-svn-id: https://develop.svn.wordpress.org/trunk@20307 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 15:43:31 +00:00
Daryl Koopersmith b43e2dfba4 Theme Customizer: Fire WP_Customize->customize_preview_init on wp_loaded instead of template_redirect. props nacin, see #19910.
Certain customize settings (such as show_on_front and other static front page features) need to be overridden before template_redirect.

git-svn-id: https://develop.svn.wordpress.org/trunk@20306 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 15:04:11 +00:00
Peter Westwood abd47c9ff9 XMLRPC: Add the object ID to the return data of wp.uploadFile/metaWeblog.newMediaObject so that it can be used in other api calls e.g. setting featured image see #15098 props maxcutler
git-svn-id: https://develop.svn.wordpress.org/trunk@20305 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 12:00:50 +00:00
bumpbot 8f575763ab Compress scripts/styles: 3.4-alpha-20304.
git-svn-id: https://develop.svn.wordpress.org/trunk@20304 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 09:58:22 +00:00
Daryl Koopersmith 12c057e358 Theme Customizer: Move 'Site Title/Tagline' section to the top of the list. Add specific priorities to all sections. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20303 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 09:57:55 +00:00
Daryl Koopersmith 21449c3269 Theme Customizer: Add data binding to page dropdown controls. Add WP_Customize_Control->get_link() to return the data attribute string. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20302 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 09:45:51 +00:00
Daryl Koopersmith d5f5376394 Theme Customizer: Properly bind the 'upload new' and 'remove image' actions in the image picker. see #19910.
This occurred because we weren't calling UploadControl.ready (where the actions are declared and the uploader is initialized) in ImageControl.ready.

git-svn-id: https://develop.svn.wordpress.org/trunk@20301 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 09:33:32 +00:00
Daryl Koopersmith 26bba58bdb Theme Customizer: Properly pass arguments by reference to WP_Customize_Setting->multidimensional(). see #19910, [20136], #20163.
This is necessary for WP_Customize_Setting->multidimensional_replace() to work properly on multidimensional arrays (which was, as the name indicates, the point of the function in the first place).

git-svn-id: https://develop.svn.wordpress.org/trunk@20300 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 09:27:26 +00:00
Daryl Koopersmith ea85772eb6 Theme Customizer: Sanitize selectors by transforming square brackets into dashes. see #19910.
This both better conforms to the CSS spec and prevents bugs from occurring in JavaScript selector engines.

git-svn-id: https://develop.svn.wordpress.org/trunk@20299 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 09:10:29 +00:00
bumpbot 4e658d4443 Compress scripts/styles: 3.4-alpha-20298.
git-svn-id: https://develop.svn.wordpress.org/trunk@20298 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 08:58:23 +00:00