Commit Graph

6157 Commits

Author SHA1 Message Date
dd32 8ad6b78d44 Slight Coding standards update
git-svn-id: http://svn.automattic.com/wordpress/trunk@13866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 06:05:50 +00:00
dd32 f3e9d332d2 Fix the Permalink editor for custom post_types. Fixes #12742
git-svn-id: http://svn.automattic.com/wordpress/trunk@13865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 05:23:49 +00:00
dd32 a2a1a3c9f0 JQuery.noConflict() fix for thickbox.js. Props Michael. Fixes #12382
git-svn-id: http://svn.automattic.com/wordpress/trunk@13864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 04:48:20 +00:00
dd32 ceb1acf3f7 Implement the 2nd parameter of json_decode() for back-compat purposes. Returns an associative array instead of an object. For the recursive object handling, Props carbolineum. Fixes #11963
git-svn-id: http://svn.automattic.com/wordpress/trunk@13863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 04:42:44 +00:00
dd32 adb825f6d0 Implement the 2nd parameter of json_decode() for back-compat purposes. Returns an associative array instead of an object. Fixes #11963
git-svn-id: http://svn.automattic.com/wordpress/trunk@13862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 04:35:42 +00:00
dd32 8abdcecbfe Fix notices in post_custom(). Props sirzooro. Fixes #11839
git-svn-id: http://svn.automattic.com/wordpress/trunk@13861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 04:19:44 +00:00
dd32 bf6510abd1 Fix image_resize() dependencies by moving wp_load_image() from admin includes to wp-includes. Fixes #7279
git-svn-id: http://svn.automattic.com/wordpress/trunk@13860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 03:39:00 +00:00
dd32 a0d734beea Do not allow empty option names. Trim leading and trailing whitespace from option names. Partial patch props ericmann. Fixes #11506
git-svn-id: http://svn.automattic.com/wordpress/trunk@13858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 03:10:37 +00:00
dd32 47c064b890 Check if function exists before using it. imageistruecolor() requires PHP 4.3.2, WordPress requires 4.3.0 at this stage. Fixes #12297
git-svn-id: http://svn.automattic.com/wordpress/trunk@13857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 02:57:09 +00:00
dd32 f0088e38eb Add Repeat-x/repeat-y support to Custom Backgrounds, Add Live preview of Repeat option, Use Thumbnail of background for Background Preview. Props jshreve. See #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@13856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 02:53:04 +00:00
dd32 0e4aaa13d3 Update wp_list_categories() to be custom taxonomy aware. Props jfarthing84. See #11838
git-svn-id: http://svn.automattic.com/wordpress/trunk@13854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 02:07:31 +00:00
dd32 c0974fb518 Avoid notices for requests with no body. Also fixes a few race conditions related to headers. Fixes #11872
git-svn-id: http://svn.automattic.com/wordpress/trunk@13849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 00:56:43 +00:00
dd32 5a42dae784 Fix WP_HTTP -> Snoopy Compat layer for Magpie RSS. Fixes #12045
git-svn-id: http://svn.automattic.com/wordpress/trunk@13848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 00:33:25 +00:00
dd32 334670a67a Correct Array style for returning Multiple HTTP Headers. See #12045
git-svn-id: http://svn.automattic.com/wordpress/trunk@13847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 00:23:40 +00:00
nacin fca5b63772 Bail in wp_unique_term_slug if the slug is unique and we don't need to come up with a new one. fixes #10712.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-27 07:56:54 +00:00
dd32 644427dd63 Remove Debug cruft.. See #12704
git-svn-id: http://svn.automattic.com/wordpress/trunk@13839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-27 06:03:58 +00:00
dd32 f6129316ef Support multiple post_type query params/post_type's to be specified in a query. See #12704
git-svn-id: http://svn.automattic.com/wordpress/trunk@13838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-27 05:56:27 +00:00
nacin 2794e060dc Remove 'Turbo' link from admin header. see #11301
git-svn-id: http://svn.automattic.com/wordpress/trunk@13833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 20:59:57 +00:00
nacin 39b3db4e20 Move ajax spinner to be adjacent to the Quick Edit Update button. also, the dashboard recent comments Submit Reply button. fixes #12345
git-svn-id: http://svn.automattic.com/wordpress/trunk@13832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 19:55:48 +00:00
nacin 7957161819 Remove references to wp-ajax.php. props TobiasBg, fixes #12400
git-svn-id: http://svn.automattic.com/wordpress/trunk@13831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 19:44:43 +00:00
nacin 40773a776b Remove trailing whites and double semicolons.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 19:36:49 +00:00
nacin 3918b75cbe Change @since 2.9 to @since 2.9.0.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 19:23:39 +00:00
nacin a7feaed0e6 Change @since 3.0 to @since 3.0.0.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 19:13:36 +00:00
nacin d138bc1f38 Remove one-pixel white bottom border off new light gray header. After some discussion, mainly due to screen options/help tabs. see #12586
git-svn-id: http://svn.automattic.com/wordpress/trunk@13826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 18:40:29 +00:00
ryan 6dcc05bd54 Ligten header and footer for gray color scheme. Props johnonolan. see #12586
git-svn-id: http://svn.automattic.com/wordpress/trunk@13824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 17:09:53 +00:00
nacin 82720ead31 WP_I18N_* for .maintenance strings. fixes #12485
git-svn-id: http://svn.automattic.com/wordpress/trunk@13822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 14:06:12 +00:00
nacin 258430405b Correct inline docs and parameter names for get_objects_in_term() to reflect that it uses term ids, not term slugs. fixes #11835
git-svn-id: http://svn.automattic.com/wordpress/trunk@13821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 14:00:17 +00:00
nacin 1eabd22805 Introduce get_index_template(). Allows child themes to override a parent theme's index.php. Props koopersmith, fixes #12635
git-svn-id: http://svn.automattic.com/wordpress/trunk@13819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 13:52:43 +00:00
westi 4f46d6537c Rename get_specific_template as get_template_part so as to make it clearer as to the point of the function. See #12371
git-svn-id: http://svn.automattic.com/wordpress/trunk@13815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-25 22:02:45 +00:00
ryan 39fbccfd56 Add scheme argument to admin_url() and get_admin_url() to allow forcing a particular scheme.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-25 22:00:36 +00:00
ryan f607113b29 Don't return WP_Error from term_description(). Props filosofo. fixes #12707
git-svn-id: http://svn.automattic.com/wordpress/trunk@13813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-25 17:28:16 +00:00
nbachiyski e1ecbc841a Set some $_SERVER values to empty strings if missing. Fixes notices if WordPress is run from the command-line and is far more pleasant than using isset() all over the place.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-25 15:33:35 +00:00
ryan c2a6f28bf5 Enable nav menu admin if theme supports widgets. Show notice if theme supports widgets but not nav-menus. see #11817
git-svn-id: http://svn.automattic.com/wordpress/trunk@13810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-24 18:35:31 +00:00
nacin 47b80515da Move send_nosniff_header() into wp-includes so it can be used in wp-ajax.php. props sivel, fixes #12683
git-svn-id: http://svn.automattic.com/wordpress/trunk@13806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-23 19:13:58 +00:00
nacin 3fb0afae96 Prevent the nav menu walker from walking in circles. Don't allow an object from being a child of itself; if the functionality is desired, a workaround would be custom links. see #11817, see #12566. (Script loader bump for r13802, r13803). props ptahdunbar for the commits.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13804 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-22 22:33:12 +00:00
nacin ba6f1cba07 Various bug fixes and improvements to menu management. props ptahdunbar, see #11817.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-22 19:56:16 +00:00
nacin 308c876d27 Fix notice without breaking comment notifications. See r13150, see #11830
git-svn-id: http://svn.automattic.com/wordpress/trunk@13801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-22 16:06:55 +00:00
dd32 7be1b99ebe Add some defensive checks to Canonical redirection of %category% to ensure notices are not thrown. Props jfarthing84 for pointing out possibility. See #11907
git-svn-id: http://svn.automattic.com/wordpress/trunk@13798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-22 07:05:50 +00:00
nbachiyski 70b7755535 Wrap transtable strings used in Network install in WP_I18N_SOMETHING, because translations still aren't loaded. Fixes #12357
git-svn-id: http://svn.automattic.com/wordpress/trunk@13797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-22 06:51:49 +00:00
nacin 236a1f6ed4 Fix typo in inline docs for register_post_type(). fixes #12664 props sillybean.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-22 03:11:15 +00:00
dd32 3d5e274179 Cleanup of Custom Background. Move JS to external file, Add @since, Remove redundant steps functionality, Preview of Image alignment. See #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@13788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-21 06:06:18 +00:00
dd32 e2a7385be8 When viewing a Parent term in a hierarchical taxonomy, display objects contained within children too. Props scribu. Fixes #12533
git-svn-id: http://svn.automattic.com/wordpress/trunk@13787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-21 02:52:00 +00:00
dd32 68445ab030 Use correct cap checks and nonces for custom post_type's
git-svn-id: http://svn.automattic.com/wordpress/trunk@13786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-21 02:29:11 +00:00
dd32 6ff82f54e7 Fix WP_User::remove_role(). See #10285
git-svn-id: http://svn.automattic.com/wordpress/trunk@13784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-21 01:36:54 +00:00
dd32 b6e3b188e7 Only allow %category% to be a valid category attached to the current post when using %category% in a permalink structure. Fixes #11807
git-svn-id: http://svn.automattic.com/wordpress/trunk@13781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-20 06:27:27 +00:00
dd32 f90f47a073 Update Canonical paging to reconise /page(\d+)/? as a valid paging path. See #8948
git-svn-id: http://svn.automattic.com/wordpress/trunk@13780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-20 03:22:08 +00:00
dd32 b16190c496 Add hierarchical support for custom post_types in Rewrite Rules & Querying. See #12643
git-svn-id: http://svn.automattic.com/wordpress/trunk@13774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-20 02:23:52 +00:00
dd32 3fdd2bbdff Allow for a custom Endpoint Mask to be passed to add_endpoint(). Allows for endpoints to be targeted to specific rewrite rules. Allow custom post_types to specify their Endpoint mask. Allows for post_type's rewrite rules to inherit Post endpoints, or alternatively, allows for add_endpoint() to target specific post_types. Fixes #12605
git-svn-id: http://svn.automattic.com/wordpress/trunk@13773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-20 02:05:32 +00:00
dd32 a7126004c7 Fix unset notice on Revisions page for custom post_types. Use $post object instead of relying on a Global
git-svn-id: http://svn.automattic.com/wordpress/trunk@13772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-20 01:10:01 +00:00
nacin 30d6eb32c6 Remove redundant isset() and empty() checks.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-19 21:29:21 +00:00