Commit Graph

18502 Commits

Author SHA1 Message Date
Andrew Nacin 68bc832f61 Provide back compat for allowed_themes option keys, which were from the early days of WordPress MU. see #20103. Curses.
git-svn-id: https://develop.svn.wordpress.org/trunk@20144 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 23:32:06 +00:00
Daryl Koopersmith 8ae9285c2a Combine two strings. Cheatin', uh?
git-svn-id: https://develop.svn.wordpress.org/trunk@20143 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 19:00:12 +00:00
bumpbot ff65fe6d6b Compress scripts/styles: 3.4-alpha-20142.
git-svn-id: https://develop.svn.wordpress.org/trunk@20142 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 18:30:21 +00:00
Andrew Nacin b1ba2dd995 Deprecate display_theme(). see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20141 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 18:29:36 +00:00
Daryl Koopersmith 7464fa9565 Theme Customizer: Make theme installer no-js compatible. Fix JS click handler that caught clicks on the 'Activate' link. Relocate display_theme() to WP_Theme_Install_List_Table->single_row(). see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20140 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 18:24:34 +00:00
bumpbot eb50f7efa4 Compress scripts/styles: 3.4-alpha-20139.
git-svn-id: https://develop.svn.wordpress.org/trunk@20139 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 17:45:21 +00:00
Daryl Koopersmith 6e93f773b4 Theme Customizer: Begin integration into the install process. Combine previews, details, and install into a single workflow. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20138 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 17:35:17 +00:00
Peter Westwood f3c63b54c1 XML-RPC: Initial implementation of Taxonomy and Term APIs.
Implements: wp.newTerm, wp.editTerm, wp.deleteTerm, wp.getTerm, wp.getTerms, wp.getTaxonomy and wp.getTaxonomies

See: #18438, #18439, #18440, #18441, #18442, #18443, and #18444 props maxcutler, markoheijnen and nprasath002.


git-svn-id: https://develop.svn.wordpress.org/trunk@20137 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 17:02:22 +00:00
Jon Cave a6135e9995 Remove call-time pass by reference as it causes a compile time fatal error in PHP 5.4. See #20163.
git-svn-id: https://develop.svn.wordpress.org/trunk@20136 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 16:32:11 +00:00
Andrew Nacin 555970c950 Internally cache return values of wp_salt(). Always run the filter. Big performance gains on a pageload that generates hundreds of nonces. see #19599.
git-svn-id: https://develop.svn.wordpress.org/trunk@20135 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 03:41:56 +00:00
bumpbot 98715e56d9 Compress scripts/styles: 3.4-alpha-20134.
git-svn-id: https://develop.svn.wordpress.org/trunk@20134 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 03:30:21 +00:00
Daryl Koopersmith f5b9beb8dd Theme Customizer: Move contents of customize.loader.css to wp-admin.css. Make markup/CSS for the full-screen overlay modular. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20133 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 03:19:35 +00:00
Andrew Nacin 3f11180883 Fetch the raw 'Template' header in the WP_Theme constructor. By passing sanitization routines (which are unnecessary for this header), we prevent a persistent themes cache from sanitizing the headers of every theme until/unless they actually need a real header like Name. Note that if WP_Theme was instantiated through get_themes(), this will have no effect, as get_themes() does ask for Name for the keys to return. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20132 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 00:24:23 +00:00
bumpbot e93ce22266 Compress scripts/styles: 3.4-alpha-20131.
git-svn-id: https://develop.svn.wordpress.org/trunk@20131 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 00:00:20 +00:00
Daryl Koopersmith 2ae706140a Theme Customizer: Color picker markup/CSS improvements. Part 1. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20130 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 23:55:16 +00:00
bumpbot 4540788d7e Compress scripts/styles: 3.4-alpha-20129.
git-svn-id: https://develop.svn.wordpress.org/trunk@20129 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 23:00:21 +00:00
Daryl Koopersmith 21e5a2e69e Theme Customizer: Add a Control object to better encapsulate different UI elements and make it easy to switch between hard refreshes and postMessage. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20128 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 22:48:07 +00:00
Andrew Nacin 0b01f311d1 Add $post_ID context to the pre_ping filter. props alexkingorg, devesine. fixes #18506.
git-svn-id: https://develop.svn.wordpress.org/trunk@20127 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 22:44:44 +00:00
Andrew Nacin e711e72c40 Fix variable collision in WP_Theme->get() that rears its head when the themes bucket is cached persistently. Also correct the inline doc. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20126 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 22:28:53 +00:00
Andrew Ozz ef4f301599 Revert change to the default font in the visual editor, see #20184
git-svn-id: https://develop.svn.wordpress.org/trunk@20125 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 20:33:19 +00:00
bumpbot 4abd8e88a0 Compress scripts/styles: 3.4-alpha-20124.
git-svn-id: https://develop.svn.wordpress.org/trunk@20124 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 03:00:26 +00:00
Daryl Koopersmith e11e5445e9 Theme Customizer: First pass at using postMessage for background color. Fix instance where preview.targetWindow would become inaccurate. Initialize setting values in customize-preview.js. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20123 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 02:49:02 +00:00
bumpbot 10124d291b Compress scripts/styles: 3.4-alpha-20122.
git-svn-id: https://develop.svn.wordpress.org/trunk@20122 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 02:15:22 +00:00
Daryl Koopersmith e841432c7c Theme Customizer: Ensure color pickers initialize to the correct color. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20121 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 02:14:27 +00:00
Daryl Koopersmith c7769fabfd Theme Customizer: Add working color pickers. First pass. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20120 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 02:03:50 +00:00
Andrew Nacin 8d389bac17 Default themes always trump their pretenders. Even though we are no longer keying by name, it is not a good experience to see multiple 'WordPress Default' themes when one was copied and had the directory renamed. This also keeps with the behavior of get_themes() (and the deprecated return value). see #20103.
Allow a default theme within a directory of wp-content/themes (e.g. 'somedir/twentyeleven') to be identified as a default theme.



git-svn-id: https://develop.svn.wordpress.org/trunk@20119 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 01:59:50 +00:00
Andrew Nacin 6cd720e183 Store relative-to-wp-content theme roots, as that is what get_theme_roots() should be receiving. see #20103.
Since search_theme_directories() now generates this and leverages this as a cache, convert absolute to relative on cache storage, and relative to absolute on cache retrieval.



git-svn-id: https://develop.svn.wordpress.org/trunk@20118 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 01:50:54 +00:00
Jon Cave 9e9f4ad923 Use WP_Rewrite::set_permalink_structure instead of plain update_option() in populate_network(). Fixes #20174.
This has the benefit of calling WP_Rewrite::init() which correctly resets the permalink_structure
property of the $wp_rewrite global so that the rewrite rules generated on the next flush are correct.


git-svn-id: https://develop.svn.wordpress.org/trunk@20117 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 17:39:26 +00:00
Andrew Nacin 22f5bd4655 Cast $wp_theme_directories to array. This had been done in get_themes(). A must-loaded plugin could call these functions before the first theme root is ever added. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20116 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 17:30:09 +00:00
bumpbot d24750e3a1 Compress scripts/styles: 3.4-alpha-20115.
git-svn-id: https://develop.svn.wordpress.org/trunk@20115 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 07:45:20 +00:00
Andrew Ozz e169217ad0 Based on the current UX feedback, remove the "Insert Link" UI from under the caption fields, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@20114 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 07:31:31 +00:00
Andrew Nacin 21dd77dbe2 Use new WP_Theme API in list_theme_updates(). fixes #20173. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20113 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-04 13:03:48 +00:00
Andrew Nacin 37fe51da66 Provide back compat for $theme->$var where $theme was an array from get_themes() but cast to an object, as had occurred in get_theme_updaes(). see #20173. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20112 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-04 12:58:41 +00:00
bumpbot ff391a479d Compress scripts/styles: 3.4-alpha-20111.
git-svn-id: https://develop.svn.wordpress.org/trunk@20111 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-04 05:00:20 +00:00
Daryl Koopersmith 1747f1479e Theme Customizer: Improve markup and CSS for the return/collapse actions and the action bars within the customize controls form. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20110 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-04 04:57:24 +00:00
bumpbot e3c54ff462 Compress scripts/styles: 3.4-alpha-20109.
git-svn-id: https://develop.svn.wordpress.org/trunk@20109 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-04 02:45:21 +00:00
Daryl Koopersmith bba82422d0 Theme Customizer: Add mini screenshot and description to theme info section. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20108 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-04 02:40:18 +00:00
bumpbot d09808555e Compress scripts/styles: 3.4-alpha-20107.
git-svn-id: https://develop.svn.wordpress.org/trunk@20107 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-04 02:15:20 +00:00
Daryl Koopersmith b908add2c2 Theme Customizer: Improve form markup. Make the theme title/author a section. Prevent section arrows from blocking clicks. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20106 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-04 02:06:11 +00:00
Andrew Nacin 3ec423dc93 Allow get_screenshots() to return absolute URLs. Make this the default; relative can be achieved with 'relative' as the argument. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20105 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-04 01:16:32 +00:00
Daryl Koopersmith 90a115e4b4 Partially revert [20100]. The list_args JS variable cannot be extended due to its use as an argument in fetch-list. see #19815.
We should reattempt extending the args created in WP_List_Table, but will need to deprecate the current list_args to do so.

Also, infinite scroll on themes pages is no longer broken. Go team.

git-svn-id: https://develop.svn.wordpress.org/trunk@20104 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-03 02:40:43 +00:00
bumpbot ba75fc6e7d Compress scripts/styles: 3.4-alpha-20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20103 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-03 00:30:21 +00:00
Andrew Nacin a7122f9269 Don't hide PHP warnings under the toolbar in the admin. fixes #19196.
git-svn-id: https://develop.svn.wordpress.org/trunk@20102 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-03 00:29:50 +00:00
Andrew Nacin df490f0ec5 Pass WP_User object to the newuser_notify_siteadmin filter. props boonebgorges. fixes #20162.
git-svn-id: https://develop.svn.wordpress.org/trunk@20101 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 23:52:19 +00:00
Andrew Nacin b6b4d37fcb Allow WP_List_Table::_js_vars() to take an array of additional args to add. Allows us to have a single variable printing data when child classes need more data. Also, fix compact() call in [20094]. see #19815.
git-svn-id: https://develop.svn.wordpress.org/trunk@20100 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 23:06:31 +00:00
Andrew Nacin 153b1ef591 In the admin, render the Toolbar immediately, rather than waiting until the footer. When intensive pages take a while to load, you aren't stuck without a working admin header. fixes #20161.
git-svn-id: https://develop.svn.wordpress.org/trunk@20099 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:51:29 +00:00
Andrew Nacin c56b5f3f59 Use sanitize_key(). sanitize_title_with_dashes() is more than we need. see #19815. see [20096], [20097].
git-svn-id: https://develop.svn.wordpress.org/trunk@20098 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:32:29 +00:00
Andrew Nacin 9f47e027ca Revert [20096] which was an accidental partial revert of [20094]. see #19815.
git-svn-id: https://develop.svn.wordpress.org/trunk@20097 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:31:15 +00:00
Andrew Nacin 7dd527a421 Use sanitize_key() for theme search tags/features. sanitize_title_with_dashes() is overkill. see #19815.
git-svn-id: https://develop.svn.wordpress.org/trunk@20096 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:26:58 +00:00
bumpbot fd8c500bda Compress scripts/styles: 3.4-alpha-20095.
git-svn-id: https://develop.svn.wordpress.org/trunk@20095 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 22:15:21 +00:00