Commit Graph

18544 Commits

Author SHA1 Message Date
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
Daryl Koopersmith
1a03f9af0d Theme Customizer: Fix postMessage for background_color. The method parameter affects settings, not controls. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20297 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 08:55:25 +00:00
bumpbot
4d703df740 Compress scripts/styles: 3.4-alpha-20296.
git-svn-id: https://develop.svn.wordpress.org/trunk@20296 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 04:58:24 +00:00
Daryl Koopersmith
2ca07cdf2a Create WP_Customize_Control to separate the process of rendering a control from fetching, previewing, and saving its values. see #19910.
Many-to-many mapping between settings and controls.
* Settings and controls have been separated in both the PHP (WP_Customize_Setting, WP_Customize_Control) and the JS (wp.customize.Setting, wp.customize.Control).
* While most settings are tied to a single control, some require multiple controls. The 'header_textcolor' control is a good example: to hide the header text, header_textcolor is set to 'blank'.

Add 'Display Header Text' control.

A handful of miscellaneous bugfixes along the way.

Notes:
* Controls should be separated out a bit more; juggling type-specific arguments in the switch statement is rather inelegant.
* Page dropdowns are currently inactive and need to be re-linked.

git-svn-id: https://develop.svn.wordpress.org/trunk@20295 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 04:14:09 +00:00
bumpbot
4337bd15e7 Compress scripts/styles: 3.4-alpha-20294.
git-svn-id: https://develop.svn.wordpress.org/trunk@20294 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 02:58:21 +00:00
Andrew Ozz
721da35048 Don't show dashed border on empty postbox containers under the editor, see #20015
git-svn-id: https://develop.svn.wordpress.org/trunk@20293 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 02:10:19 +00:00
Jon Cave
6fba47a265 Correct @since and remove invalid code example in wpdb::delete() documentation. Props GaryJ, scribu. See #18948.
git-svn-id: https://develop.svn.wordpress.org/trunk@20292 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-27 12:00:39 +00:00
bumpbot
655b18cb36 Compress scripts/styles: 3.4-alpha-20291.
git-svn-id: https://develop.svn.wordpress.org/trunk@20291 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-25 21:58:20 +00:00
Daryl Koopersmith
d8513a5ebb Theme Customizer: Add 'choose image' functionality to image controls. Rough first pass, using header images as an example. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20290 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-25 21:18:32 +00:00
Andrew Nacin
76e4fbee38 Remove step="" from upload size inputs, as the step is enforced in the spec, rather than being a recommendation. finally fixes #17863.
git-svn-id: https://develop.svn.wordpress.org/trunk@20289 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-25 13:02:01 +00:00
Andrew Nacin
99a61c7590 Send X-Robots-Tag: noindex in admin-ajax. props ryan, joostdevalk. fixes #18465.
git-svn-id: https://develop.svn.wordpress.org/trunk@20288 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-25 12:53:17 +00:00
Andrew Nacin
54a6a40533 Introduce $wpdb->delete(). props justindgivens, scribu. fixes #18948.
git-svn-id: https://develop.svn.wordpress.org/trunk@20287 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-24 15:24:31 +00:00