Commit Graph

  • c6d3eafb7e Drop unnecessary if-statements which also have some strange logic. Fixes #20159. Jon Cave 2012-03-02 22:01:41 +00:00
  • c306dddb62 Prevent notices by checking if the $group key isset(). See #20004. Jon Cave 2012-03-02 21:57:03 +00:00
  • 2ebabb330c Compress scripts/styles: 3.4-alpha-20090. bumpbot 2012-03-02 21:15:21 +00:00
  • 21bb418c04 Fix NULL and FALSE in WP_Object_Cache and make found/not-found unambiguous. Props andy. fixes #20004 Ryan Boren 2012-03-02 21:10:37 +00:00
  • 69485d4803 Use array_combine() in get_file_data() and avoid variable variables when an array is just fine. fixes #20126. Andrew Nacin 2012-03-02 21:07:31 +00:00
  • b80111d67c Bail from AJAX success callback if wp_ajax_add_tag() returns errors. Props solarissmoke. Fixes #20086. Jon Cave 2012-03-02 21:01:51 +00:00
  • 762b3bc702 $userdata should be null for anonymous requests. props MattyRob. props duck_ for the unit test. fixes #19769 for trunk. Andrew Nacin 2012-03-02 20:59:30 +00:00
  • 5b12ac7e80 Compress scripts/styles: 3.4-alpha-20084. bumpbot 2012-03-02 20:30:19 +00:00
  • 9d02deaa8e Add a trailing colon for consistency with other widget labels. See #20158. Jon Cave 2012-03-02 20:25:12 +00:00
  • 214ea7bfcb Use blue arrows for blue admin's screen options and help tabs. Adjust baseline to be more compatible with Firefox. props helenyhou. fixes #16114. Andrew Nacin 2012-03-02 20:23:26 +00:00
  • 2cbf23b8ba Unhide the Select Link Category label. Fixes #20158. Jon Cave 2012-03-02 20:21:43 +00:00
  • 129754ed3d Don't autoload the uninstall_plugins option. fixes #16741. Andrew Nacin 2012-03-02 20:13:35 +00:00
  • 58acedae74 Compress scripts/styles: 3.4-alpha-20079. bumpbot 2012-03-02 20:00:21 +00:00
  • b23fec65b6 <input> is not a block-level element; do not treat it like one in wpautop(). props SergeyBiryukov. props kurtpayne for the unit test. fixes #16456. Andrew Nacin 2012-03-02 19:59:50 +00:00
  • 1bc62a722a In miscellaneous publishing actions, use :last-child instead of a separate misc-pub-section-last class to control borders. Allows for sane use of the post_submitbox_misc_actions hook. (Actually uses :first-child for browser compat reasons.) fixes #19604. Andrew Nacin 2012-03-02 19:52:23 +00:00
  • b89570a1ef Improve background, styling, and alignment of the Help and Screen Options tabs. props helenyhou. props johnjamesjacoby for initial patch. see #16114. Andrew Nacin 2012-03-02 19:47:08 +00:00
  • 11fd4b45c0 Introduce get_page_template_slug( $id = null ) to return a page's template (like "showcase.php"). Returns false if post ID is not a page, and an empty string for the default page template. Use the function across core. props billerickson for initial patch. fixes #18750. Andrew Nacin 2012-03-02 18:56:54 +00:00
  • 8112ac28b7 We indent with tabs, but align with spaces. Andrew Nacin 2012-03-02 18:06:30 +00:00
  • b33b1839cc Add template and stylesheet to readonly options that can be pulled from XML-RPC. props koke, ericmann. see #17132. Andrew Nacin 2012-03-02 17:59:47 +00:00
  • f4d36e96a5 Add the wp_edit_nav_menu_walker filter to the ajax request. props wonderslug, ocean90. fixes #14527. Andrew Nacin 2012-03-02 17:50:01 +00:00
  • fcfd3e03f5 Add sorting and limiting to the links widget. Props yoavf. Fixes #12785. Jon Cave 2012-03-02 13:58:58 +00:00
  • 1cbc983342 Fix a small typo. Dion Hulse 2012-03-02 11:00:51 +00:00
  • 31e6f087d7 Use correct name for feature filter REQUEST data to ensure that the search/filter form is present when a filter is active. see #20147. Andrew Nacin 2012-03-02 00:41:00 +00:00
  • eee4414129 Remove debug cruft. Andrew Nacin 2012-03-02 00:13:05 +00:00
  • 514b909597 Remove inline styles for 'Apply Filters' feature filter button. Don't <small> the 'Close filters' text. see #20147. Andrew Nacin 2012-03-02 00:01:55 +00:00
  • 5986e072fa Compress scripts/styles: 3.4-alpha-20066. bumpbot 2012-03-02 00:00:20 +00:00
  • 12aa35e6aa Remove theme tags from the themes.php UI. They just take up room and are redundant with the feature filter. The installer already does not show tags. props DH-Shredder, fixes #20147. Andrew Nacin 2012-03-01 23:58:10 +00:00
  • f2dfcad422 Line up elements on themes.php. Line up 'Available Themes' header and search/feature form. Switch to padding instead of margin for #current-theme to prevent margin-uncollapse jitters when animating the feature filter. Move 'Current Theme' inside #current-theme so it is hidden by the feature filter. see #20147. Andrew Nacin 2012-03-01 23:55:09 +00:00
  • 339251c75c New wp_die_app_handler context in wp_die() for APP requests. Introduces _scalar_wp_die_handler() as a generic handler that wraps die(), for use by plugins. Move deprecated function to the end of the wp-app.php file (same as xmlrpc.php). see #20042. Andrew Nacin 2012-03-01 21:35:15 +00:00
  • 37eba79199 wp-app.php cleanup: Ryan Boren 2012-03-01 21:15:44 +00:00
  • 36ee9105d8 Compress scripts/styles: 3.4-alpha-20061. bumpbot 2012-03-01 19:00:20 +00:00
  • 7df5a5294d Introduce jQuery Masonry. Use it to arrange header thumbnails on custom header screen. Props aaroncampbell. fixes #17242 Ryan Boren 2012-03-01 18:57:28 +00:00
  • 5d4a0adebd Don't pass non-existing rtl stylesheet to TinyMCE, update phpdoc for add_editor_style(), see #19437 Andrew Ozz 2012-03-01 00:18:26 +00:00
  • 98c3fef8f7 Theme Customizer: Use wp_loaded for customize setting registration. see #19910. Daryl Koopersmith 2012-03-01 00:14:51 +00:00
  • 82c8fbcf8e Theme Customizer: Use home_url instead of get_home_url. props nacin, fixes #20137, see #19910. Daryl Koopersmith 2012-02-29 23:28:13 +00:00
  • bc81976ef2 Compress scripts/styles: 3.4-alpha-20056. bumpbot 2012-02-29 23:15:21 +00:00
  • e2a48b2abb Theme Customizer: Use a late priority when registering customize settings to ensure we catch any theme settings added earlier on init (such as nav menus). see #19910. Daryl Koopersmith 2012-02-29 23:09:38 +00:00
  • 6afe9edf69 Improve adding more css classes to the editor body, add "rtl", "ie7", "ie8", "ie9" so they can be targeted in editor-style.css, see #19437 Andrew Ozz 2012-02-29 23:06:24 +00:00
  • b57da5a92a Strict comparisons for the $allowed arg for wp_get_themes(). Otherwise 'network' does == true. see #20103. Andrew Nacin 2012-02-29 23:04:25 +00:00
  • 76a0adc5e2 Remove extra $. see #20103. Andrew Nacin 2012-02-29 22:54:50 +00:00
  • c3249b5f7f Theme Customizer: Load the preview iframe with the same scheme as the admin to prevent security warnings. props ocean90. fixes #20137, see #19910. Daryl Koopersmith 2012-02-29 22:43:12 +00:00
  • a13ce71c43 Compress scripts/styles: 3.4-alpha-20050. bumpbot 2012-02-29 22:30:20 +00:00
  • fff67f819c Theme Customizer: Bind the preview iframe load event when triggering refresh instead of when creating the iframe. see #19910. Daryl Koopersmith 2012-02-29 22:24:46 +00:00
  • cc503e4315 In WP_Themes_List_Table, don't perform unnecessary sanitization on search terms or filter features. We only use these for case-insensitive comparison. see #19815. Andrew Nacin 2012-02-29 22:19:18 +00:00
  • 5e9b785d5d Add widget_comments_args and widget_post_args filters. props ramiy, fixes #16159. Andrew Nacin 2012-02-29 21:56:24 +00:00
  • d7b7ac8c1b 'Network Activate' should be the bulk action on network/plugins.php, to match the action link. props ampt, fixes #19946. Andrew Nacin 2012-02-29 21:52:27 +00:00
  • 5bab3555d7 Use correct variable; return correct value for get_screenshot() when value is uncached. see #20103. Andrew Nacin 2012-02-29 20:46:41 +00:00
  • f6299042c0 Remove debug cruft. see #20103. Andrew Nacin 2012-02-29 20:41:01 +00:00
  • 47db4344b9 Have WP_Theme::get_screenshot() default to an absolute URI. Allow 'relative' to be requested. see #20103, see #19816. Andrew Nacin 2012-02-29 20:31:56 +00:00
  • f4b7756402 Can haz recursion? get_current_theme() is deprecated in favor of wp_get_theme(), not itself. props duck_. see #20138. Andrew Nacin 2012-02-29 20:22:16 +00:00
  • cdaee9042d Translate page template names! Have WP_Theme::get_page_templates() return templates keyed by filename, not by template name, as it makes more sense. Flip this in get_page_templates() to be compatible. fixes #6007. Andrew Nacin 2012-02-29 20:18:53 +00:00
  • 6a4a8df204 Deprecate get_current_theme(). Use (string) wp_get_theme() to get the translated name of the theme. Keep the current_theme option for now. see #20103, see #20138. Andrew Nacin 2012-02-29 20:07:22 +00:00
  • 43913e382c (string) WP_Theme is now the theme name, translated. Good replacement for get_current_theme(); better than wp_get_theme()->display('Name'). see #20103, see #20138. Andrew Nacin 2012-02-29 19:27:54 +00:00
  • 9cc63bb04f Use proper object. see #20103. Andrew Nacin 2012-02-29 18:11:49 +00:00
  • c7855fb7bc Use wp_get_theme() rather than get_theme_data() in the verify theme deletion (multisite network) screen. see #20103. Andrew Nacin 2012-02-29 07:50:56 +00:00
  • fe736e6ca1 Compress scripts/styles: 3.4-alpha-20036. bumpbot 2012-02-29 06:31:00 +00:00
  • 0d1e599420 Theme Customizer: Don't switch themes and update settings when the enter key is pressed. see #19910. Daryl Koopersmith 2012-02-29 06:28:02 +00:00
  • a9cafbf2e8 Theme Customizer: Trigger UI updates only when necessary. Daryl Koopersmith 2012-02-29 06:18:17 +00:00
  • 7253e53962 Update switch_theme() to use wp_get_theme(). see #20103, #20138. Andrew Nacin 2012-02-29 05:09:29 +00:00
  • ebe7582099 Compress scripts/styles: 3.4-alpha-20032. bumpbot 2012-02-29 01:31:04 +00:00
  • 78bf972b68 Improve page loads in the theme customizer by layering loading iframes. Automate refreshing, but debounce multiple refresh events to prevent hammering the server with requests. see #19910. Daryl Koopersmith 2012-02-29 01:17:21 +00:00
  • 1fd6d4bfd3 Update customize-controls.php to use new WP_Theme API. see #19910, [20029]. Daryl Koopersmith 2012-02-28 21:41:19 +00:00
  • 53a209a4ee Introduce WP_Theme, wp_get_themes(), and wp_get_theme() to replace get_themes(), get_theme(), get_theme_data(), current_theme_info(), and others. * Getters and Helpers: Introduces a series of methods to allow for easy generation of headers for display, and other theme metadata, including page templates. * Screenshots: Handles support for multiple screenshots. (see # Additional screenshots must be PNG and start with screenshot-2.png, and be sequential to be counted. see #19816. * Error Handling: Broken themes have a WP_Error object attached to them. * Caching: Introduces a wp_cache_themes_persistently filter (also in [20020]) to enable persistent caching of all filesystem and sanitization operations normally handled by WP_Theme (and formerly get_file_data() and get_themes()). Themes are cached individually and across five different cache keys for different data pieces. * Compatibility: A WP_Theme object is backwards compatible with a theme's array formerly returned by get_themes() and get_theme(), and an stdClass object formerly returned by current_theme_info(). * i18n/L10n: Theme headers are now localizable with proper Text Domain and Domain Path headers, like plugins. (Language packs may remove the requirement for headers.) For page templates, see #6007 (not fixed yet, but will be easy now). For headers, fixes #15858. * PHP and CSS files: New methods that fetch a list of theme files (for the theme editor) only on demand, rather than only loading them into memory. fixes #11214. Andrew Nacin 2012-02-28 21:24:44 +00:00
  • 233c465de2 Theme Customizer: Strip slashes when sanitizing previewed values. see #19910. Daryl Koopersmith 2012-02-28 21:21:16 +00:00
  • f0c5c18d81 Faster theme searching. Only calculate what is necessary -- if the theme doesn't have all of the features, bail. If a word matches a tag or header, jump to the next word, we don't care how many times it matches. see #20103. Andrew Nacin 2012-02-28 20:51:19 +00:00
  • 3924c4aab5 Don't sanitize theme tags while trying to search through them, as it is unnecessary. It is also very expensive -- 50% of the pageload for a search was spent sanitizing tags. see #20103. Andrew Nacin 2012-02-28 20:41:53 +00:00
  • 11c4081aaf Add argument to get_theme_feature_list() to allow the tags to be returned without hitting the WP.org API. We'll be using this to translate tags. Remove trailing space in the 'Light' string. see #20103. Andrew Nacin 2012-02-28 20:38:09 +00:00
  • e6411302f0 Return to apply_filters_ref_array() for back compat with callbacks that specify a ref for the args. Props scribu. see #18536 Ryan Boren 2012-02-28 20:37:47 +00:00
  • cafa8dab24 Reduce references to the $wp_rewrite global because it's no longer used or a wrapper function can be used instead. Fixes #14546.#14546. Jon Cave 2012-02-28 20:29:33 +00:00
  • 21630b2828 Do not save the last visited tab on the multisite Network Themes page and Site Themes tab. These are poor UX, see #18810 for plugins. Entering these screens will always default to 'all' themes view. see #20103. Andrew Nacin 2012-02-28 20:13:21 +00:00
  • 696f52729e Theme root transient caching is now in search_theme_directories(), not get_themes(). see #20103. Andrew Nacin 2012-02-28 20:08:08 +00:00
  • 3459ca246e Rewrite search_theme_directories() -- better performance and allow for caching. Andrew Nacin 2012-02-28 20:05:00 +00:00
  • 4c99743d06 Drop image resizing code from wp_handle_upload(). Fixes #19800. Jon Cave 2012-02-28 20:02:43 +00:00
  • 75540de79c Clarify second argument for get_raw_theme_root() as the multiple negatives can get confusing. see #20103. Andrew Nacin 2012-02-28 19:59:53 +00:00
  • 981992f8fb Twenty Twelve: make proper use of the cached jQuery collection in navigation.js, props mattwiebe. Fixes #20131. Lance Willett 2012-02-28 19:17:04 +00:00
  • d738367d99 Fix the return value of get_theme_root() when the theme root is outside of WP_CONTENT_DIR, thus making it absolute rather than the typical relative theme root. Andrew Nacin 2012-02-28 18:02:21 +00:00
  • bf2495e09c Revert [20001]. Theme roots that are passed around, stored, and cached can be valid as absolute paths or paths relative to wp-content. We'll have to patch this elsewhere. see #17597. Andrew Nacin 2012-02-28 16:22:26 +00:00
  • 006515c8cc Compress scripts/styles: 3.4-alpha-20014. bumpbot 2012-02-28 14:18:24 +00:00
  • b5a3c50057 HTML in image captions: improve converting the caption html elements to a shortcode, catch some rare cases where image with a caption is pasted in the visual editor, see #18311 Andrew Ozz 2012-02-28 08:03:40 +00:00
  • ffa265cebd POT, generated from r20011 potbot 2012-02-28 06:18:04 +00:00
  • c41874b4d7 Twenty Twelve: remove an unneeded, presentational class value, see #19978. Lance Willett 2012-02-28 05:28:08 +00:00
  • e6282c7f0d Twenty Twelve: better comment markup and styles, props drewstrojny. See #19978. Lance Willett 2012-02-28 05:24:57 +00:00
  • 90df91666c Twenty Twelve: correctly enqueue the fonts CSS file, see #19978. Lance Willett 2012-02-28 05:19:50 +00:00
  • 326b2db4fa POT, generated from r20007 potbot 2012-02-28 04:17:41 +00:00
  • 91511b6a18 Twenty Twelve: add support for toggling the navigation menu in small screens. See #19978. Lance Willett 2012-02-28 03:59:47 +00:00
  • 2a1dff3136 Twenty Twelve: better "no posts found" message and action for index view. If a logged-in user can edit posts, show an appropriate message. Otherwise, show the normal "no posts found" message. See #19978. Lance Willett 2012-02-28 03:48:34 +00:00
  • fc85a24fea POT, generated from r20003 potbot 2012-02-28 03:17:50 +00:00
  • 4709676a6f Twenty Twelve: remove test lines from r20003 Lance Willett 2012-02-28 03:14:00 +00:00
  • 28592c377a Twenty Twelve: use the time element for image attachment views, and esc_html() for get_the_date() in the element's output. Props iandstewart, see #19978. Lance Willett 2012-02-28 03:10:53 +00:00
  • 563c3231b2 Move the template loading functions from wp-includes/theme.php to wp-includes/template.php. This includes get_query_template(), locate_template(), and friends. see #20103. Andrew Nacin 2012-02-28 01:49:49 +00:00
  • 97adddcaf7 Always return an absolute path in get_raw_theme_root() and get_theme_roots(). Andrew Nacin 2012-02-28 01:28:56 +00:00
  • 89e9bcc1d6 Pinking shears 6-20000 Ryan Boren 2012-02-27 19:46:52 +00:00
  • 5648306064 Pass post id to get_upload_iframe_src() instead of relying on a global. Props tott. fixes #20003 Ryan Boren 2012-02-27 19:23:03 +00:00
  • b9736c98e6 Compress scripts/styles: 3.4-alpha-19998. bumpbot 2012-02-25 04:31:03 +00:00
  • 071026ba26 Compress scripts/styles: 3.4-alpha-19996. bumpbot 2012-02-25 04:16:01 +00:00
  • fefbd866d6 Correct [19952]. see #19592. Andrew Nacin 2012-02-25 04:15:08 +00:00
  • 9f29c06954 Introduce new theme customizer to replace theme preview. Rough first pass. props koopersmith, ocean90. see #19910. Daryl Koopersmith 2012-02-25 04:12:43 +00:00
  • 8ba7abcdef Compress scripts/styles: 3.4-alpha-19994. bumpbot 2012-02-25 02:15:56 +00:00
  • d3cecfc612 Use json_encode when outputting translated strings for use in TinyMCE, fixes #20119 Andrew Ozz 2012-02-25 02:11:29 +00:00
  • eecaca2457 Add jQuery postMessage v 0.2. Dual licensed MIT/GPL. see #19910. Andrew Nacin 2012-02-25 02:04:17 +00:00