Commit Graph

16890 Commits

Author SHA1 Message Date
Peter Westwood a60b4ff564 When inserting a Gallery to be ordered by Date/Time use the post_date field for ordering rather than ID so that if the user/plugin has updated this to reflect the date/time when an image was captured we order correctly. Fixes #17485 props SergeyBiryukov.
git-svn-id: https://develop.svn.wordpress.org/trunk@18596 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-24 11:37:25 +00:00
Peter Westwood ade9233305 End each row with a new line to make the raw HTML easier to read.
git-svn-id: https://develop.svn.wordpress.org/trunk@18595 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-24 11:13:33 +00:00
Peter Westwood 4dfdd2e9b2 Include all comment css classes when outputing the rows in the Comments admin page to allow for easy customisation by plugins. Fixes #18447 props josephscott.
git-svn-id: https://develop.svn.wordpress.org/trunk@18594 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-24 11:12:07 +00:00
Peter Westwood edec48d754 Whitespace and code layout tidyup.
git-svn-id: https://develop.svn.wordpress.org/trunk@18593 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-24 10:59:06 +00:00
Peter Westwood 087b273a40 Parse shortcodes in text widgets by default. Fixes #10457 props tmoorewp, sillybean, jamescollins.
git-svn-id: https://develop.svn.wordpress.org/trunk@18592 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-24 10:54:48 +00:00
Peter Westwood 89a6ae387e Optimise get_term to not query for term_id = 0. Also improve the prepared query to use %d for the term_id.
Fixes #18076 props mdawaffe.

git-svn-id: https://develop.svn.wordpress.org/trunk@18591 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-24 10:39:52 +00:00
Dion Hulse ddfa97ee0a Don't check 'Custom Structure' Permalink radio option for the default permastruct. Fixes #18507
git-svn-id: https://develop.svn.wordpress.org/trunk@18590 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-24 07:48:13 +00:00
Jon Cave 4c849e806f Allow update_site_option to add false-y values. Fixes #15497
git-svn-id: https://develop.svn.wordpress.org/trunk@18589 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 21:12:14 +00:00
Jon Cave f66d6581a7 Use get_site_option in add/update_site_option for caching and filtering benefits. fixes #18478
git-svn-id: https://develop.svn.wordpress.org/trunk@18588 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 20:45:48 +00:00
Jon Cave bfdc119315 add_site_option should not update existing options, should return a boolean and should only run actions on success. fixes #18422
git-svn-id: https://develop.svn.wordpress.org/trunk@18587 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 20:24:35 +00:00
Andrew Nacin 8d5241c094 Check if property exists on plugins_api() returned object in install_plugin_information(). props hakre, fixes #18181.
git-svn-id: https://develop.svn.wordpress.org/trunk@18586 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 15:56:14 +00:00
Andrew Nacin a73c0ef107 Add 'q' tag to nestable tags list in force_balance_tags(). props solarissmoke, fixes #6870.
git-svn-id: https://develop.svn.wordpress.org/trunk@18585 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 15:37:38 +00:00
Andrew Nacin 4b3374e66d Check for comment existence before checking edit_comment meta cap. props xknown, fixes #18104.
git-svn-id: https://develop.svn.wordpress.org/trunk@18584 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 10:22:34 +00:00
Andrew Ozz ee57e82c80 Ensure text in the dashboard recent comments widget wraps up properly, props SergeyBiryukov, fixes #18212
git-svn-id: https://develop.svn.wordpress.org/trunk@18583 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 04:36:21 +00:00
Andrew Ozz 1e0034e8fd Auto column switching for the dashboard, see #18198
git-svn-id: https://develop.svn.wordpress.org/trunk@18582 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 04:00:56 +00:00
Andrew Ozz 2ae505d0c6 Auto column switching (post.php only for now), see #18198
git-svn-id: https://develop.svn.wordpress.org/trunk@18581 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-22 19:41:11 +00:00
Ryan Boren ee123a28d5 Introduce wp_cache_incr() and wp_cache_decr(). fixes #18494
git-svn-id: https://develop.svn.wordpress.org/trunk@18580 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-22 17:39:44 +00:00
Andrew Ozz 41c6f84cd9 Merge colors*.css with colors*-rtl.css, props ryanimel, see #18314
git-svn-id: https://develop.svn.wordpress.org/trunk@18579 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-22 16:44:02 +00:00
Andrew Ozz 4e6957a730 Merged install.css with install-rtl.css (it is used only when installing so it makes sense to be a separate stylesheet), merged farbtastic.css with farbtastic-rtl.css, see #18314
git-svn-id: https://develop.svn.wordpress.org/trunk@18578 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-21 15:38:14 +00:00
Andrew Ozz dde77fd41b Merge most admin css files, first run, see #18314
git-svn-id: https://develop.svn.wordpress.org/trunk@18577 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-21 03:46:43 +00:00
Andrew Ozz 3f921df606 Fix QTags.closeAllTags(), replace 'tb' with 'ed' in quicktags,js to make it clear it is the editor instance not the toolbar, small comments quick edit fixes, see #16695, fixes #15911
git-svn-id: https://develop.svn.wordpress.org/trunk@18576 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-20 19:55:51 +00:00
Andrew Ozz 4bff812918 Fix the "close tags" button in quicktags, props SergeyBiryukov, see #16695
git-svn-id: https://develop.svn.wordpress.org/trunk@18575 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-19 21:23:31 +00:00
Andrew Ozz 750d395b81 Another fix for Press This, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18574 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-19 17:04:16 +00:00
Dion Hulse 8fc9270239 Clarify %d is an integer in wpdb documentation. See #18407
git-svn-id: https://develop.svn.wordpress.org/trunk@18573 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-19 15:01:35 +00:00
Dion Hulse 54b87b6531 Load all Parent theme stylesheets before Child theme stylesheets in the TinyMCE Editor. props SergeyBiryukov. Fixes #18457
git-svn-id: https://develop.svn.wordpress.org/trunk@18572 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-19 14:56:34 +00:00
Dion Hulse 67704f12f2 Only include extra TinyMCE stylesheets once. props SergeyBiryukov. Fixes #18456
git-svn-id: https://develop.svn.wordpress.org/trunk@18571 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-19 14:47:45 +00:00
Andrew Ozz 9734668734 Fix Press This editors, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18570 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-19 01:14:56 +00:00
Andrew Nacin 193baf96e7 Add 'Network Enable' link after installing a theme in the network admin. props PeteMall, fixes #18468.
git-svn-id: https://develop.svn.wordpress.org/trunk@18569 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 22:40:37 +00:00
Andrew Nacin 1881a56cb5 Remove old $base/BASE MU check. props mdawaffe, fixes #18479.
git-svn-id: https://develop.svn.wordpress.org/trunk@18568 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 22:27:30 +00:00
Jon Cave ce57212c90 add_option() should always return a boolean, see #18422
git-svn-id: https://develop.svn.wordpress.org/trunk@18567 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 18:17:37 +00:00
Jon Cave f960996aa4 Fix rewrite documentation typo and clarify with "rules array" over "this/the structure". props SergeyBiryukov. see #16687
git-svn-id: https://develop.svn.wordpress.org/trunk@18566 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 17:57:22 +00:00
Andrew Nacin bbfd457437 Remove duplicated current_action() call. props PeteMall, fixes #18389.
git-svn-id: https://develop.svn.wordpress.org/trunk@18565 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 06:26:18 +00:00
Andrew Nacin 2d52bddbde Redirect to network_admin_url() in network/edit.php. props PeteMall, fixes #18379.
git-svn-id: https://develop.svn.wordpress.org/trunk@18564 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 06:17:47 +00:00
Andrew Nacin 5464b1abc2 Some more class instantiations. props eko-fr, fixes #18049.
git-svn-id: https://develop.svn.wordpress.org/trunk@18563 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 06:16:57 +00:00
Andrew Nacin 13999695f1 Dissolve wp-admin/network/edit.php. props PeteMall, fixes #18379.
git-svn-id: https://develop.svn.wordpress.org/trunk@18562 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 02:29:06 +00:00
Andrew Nacin d92c1440ed Call _doing_it_wrong() individually in wp_scripts and wp_styles functions. Partially reverts [18556], [18557], removes wp_styles_init(), wp_scripts_init(). fixes #11526.
git-svn-id: https://develop.svn.wordpress.org/trunk@18561 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 21:02:43 +00:00
Andrew Nacin 87ec764c57 Instantiate some MS variables as objects before using them. Spaces not tabs for vertical alignment. Remove unnecessary conditional piece. props PeteMall, see #18049.
git-svn-id: https://develop.svn.wordpress.org/trunk@18560 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 17:49:57 +00:00
Peter Westwood 1b3b0e211c Fix html for back link in _default_wp_die_handler. Fixes #18459 props tenpura.
git-svn-id: https://develop.svn.wordpress.org/trunk@18559 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 10:54:48 +00:00
Dion Hulse 395a623c52 Harden up is_user_logged_in() against empty $current_user instances to prevent PHP Notices on XML-RPC requests. Fixes #18458
git-svn-id: https://develop.svn.wordpress.org/trunk@18558 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 08:51:36 +00:00
Andrew Ozz e139b9e2a0 Don't call debug_backtrace() in wp_scripts_init() and wp_styles_init(), props dd32, see #11526
git-svn-id: https://develop.svn.wordpress.org/trunk@18557 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 06:26:41 +00:00
Andrew Ozz 05515996a7 Add _doing_it_wrong() when a plugin or theme accesses $wp_scripts or $wp_styles too early (also fixes localization), props SergeyBiryukov, fixes #11526
git-svn-id: https://develop.svn.wordpress.org/trunk@18556 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 05:48:13 +00:00
Andrew Ozz 182f43c74d Fix HTML IDs on the uploader buttons on the dashboard, props SergeyBiryukov, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18555 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-16 14:32:36 +00:00
Andrew Nacin 8eedd18ff6 First pass on clarifying Settings > Privacy. props designsimply, markjaquith. see #16416.
git-svn-id: https://develop.svn.wordpress.org/trunk@18554 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-16 06:53:19 +00:00
Andrew Ozz f68214a20a Fix (temporarily?) the spacing between the uploader buttons on the dashboard, props SergeyBiryukov and andrewryno, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18553 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-16 04:54:51 +00:00
Andrew Nacin 92092a0249 Remove beta upgrade code from 3.0.
git-svn-id: https://develop.svn.wordpress.org/trunk@18552 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-16 02:26:59 +00:00
Jon Cave 2498d24c9b Replace regex in path_is_absolute() with simpler equality checks. props coffee2code. fixes #17754
git-svn-id: https://develop.svn.wordpress.org/trunk@18551 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-16 00:21:56 +00:00
Andrew Nacin 7f88e981ac Clean up message handling logic in upload.php.
git-svn-id: https://develop.svn.wordpress.org/trunk@18550 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-16 00:12:02 +00:00
Andrew Nacin 53cfffd152 Use ini_set instead of set_magic_quotes_runtime() to prevent silenced E_DEPRECATED notice. props wonderboymusic.
git-svn-id: https://develop.svn.wordpress.org/trunk@18549 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-15 06:42:43 +00:00
Andrew Nacin 7a67f00494 Break HTML comment up into two lines to prevent phpxref from choking on the rest of functions.php. props trepmal, fixes #18409.
git-svn-id: https://develop.svn.wordpress.org/trunk@18548 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-15 04:51:41 +00:00
Andrew Nacin 03e0c5c7a1 Add postname to Settings > Permalinks and remove the help text talking about permalink performance. Make the slugs (and /archives/ rewrite base) translatable. see #18541.
git-svn-id: https://develop.svn.wordpress.org/trunk@18547 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-14 22:23:22 +00:00