Mark Jaquith
0a658396a5
Make sure sidebars_widgets is an array. If it is a string (no idea how, but it happens), we get a fatal error
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14320 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-30 17:37:42 +00:00
Andrew Nacin
8722ccc178
Use a class for update-nag, as especially in MS we're sometimes hooking in more than one per page.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14319 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-30 15:37:46 +00:00
Andrew Nacin
26f7f2be9d
Clean up secret_salt_warning. Use stronger version of wp_generate_password. Shrink line-height of #update-nag so multiple-line messages don't look so awful, use padding instead.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14318 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-30 15:25:54 +00:00
Andrew Nacin
41af787171
Prune and tidy the message in ms_not_installed. Only show detailed information if wp-admin, likesingle installs. Use ->tables. @todo: non-'MU' codex link.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14317 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-30 15:21:10 +00:00
Andrew Nacin
2473cefe8f
s/blog/site/ in even more places. props PeteMall, see #11644 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14315 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-30 03:17:49 +00:00
Andrew Nacin
8800622876
s/blog/site/ in more places. props PeteMall, see #11644 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14313 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-30 01:54:32 +00:00
Ryan Boren
5e6e16a033
Don't consult global current_user object for usermeta values. Use get_userdata().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14311 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 20:55:39 +00:00
Andrew Nacin
fbac23f1eb
Update object term cache for custom post types. props scribu, fixes #12989 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14310 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 20:43:59 +00:00
Ryan Boren
854c4d8fa7
Always replace dashes with underscores for keys in get_user_option().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14309 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 20:19:47 +00:00
Ryan Boren
cec049295c
Pass unserializeds value to meta actions.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14308 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 19:26:40 +00:00
Ryan Boren
111b7d58c5
When storing and retrieving meta data to user object, replace dashes with underscores to get a valid php var name.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14307 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 19:19:21 +00:00
Ryan Boren
93e92e9b32
clean_user_cache() instead of direct cache delete.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14305 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 18:32:01 +00:00
Ryan Boren
d2e7d2a8c3
Remove debug
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14303 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 18:24:45 +00:00
Ryan Boren
ab27ecda6d
Reset the global current_user object when the current user is changed.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14302 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 18:24:18 +00:00
Donncha O Caoimh
cbe8327f39
Display the original username on the signup form on error, fixes #13124
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14298 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 16:05:33 +00:00
Ryan Boren
61a22bca5d
Set nopaging for the wp_get_nav_menu_items() get_posts() call to avoid pointless found rows queries. see #13134
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14297 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 14:58:22 +00:00
Andrew Nacin
5dbf47294f
When posts/terms are deleted/trashed, update associated menu items. Deleted post = deleted menu item, trashed post = menu item becomes a draft. props filosofo, see #13174
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14295 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 07:33:56 +00:00
Andrew Nacin
e70f958bff
Fix the ajax loading/processing spinner for nav menu meta boxes. see #13134 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14293 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 07:10:54 +00:00
Andrew Nacin
e7664da46d
Small fixes to the initial nav menu message. props koopersmith, see #13134 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14288 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 05:12:12 +00:00
Andrew Nacin
5a46795d60
Nav menu UI updates. props koopersmith, see #13134 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14287 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 03:43:39 +00:00
Andrew Nacin
b8f8327393
Fix handling of nav menu search, also menu naming conflicts. props filosofo, fixes #13138
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14285 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-28 20:44:08 +00:00
Andrew Nacin
c5eb9e9c61
More nav menu fixes. props filosofo. see #13148 . fixes #13155 , fixes #13157 , fixes #13138 , see #13134 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14283 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-28 18:30:32 +00:00
Andrew Nacin
296d029bbc
RTL for nav-menu.php. first pass. props RanYanivHartstein, see #13166
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14279 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-28 14:22:41 +00:00
Peter Westwood
6d490bcd88
Introduce a template file for the Front Page of a site. Has priority over every other template which applies and falls back to the standard template flow for the page / list of posts.
...
Fixes #6801
git-svn-id: https://develop.svn.wordpress.org/trunk@14276 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-28 07:48:09 +00:00
Peter Westwood
5dd4da6932
Revert [14268] - It is much better to use JavaScript for this kind of enhancement. Output buffering is too fragile. See #12564 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14274 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-28 07:17:20 +00:00
Andrew Nacin
a3d0926168
Don't serve dynamic robots.txt when WP is not installed at the root of a domain. props solarissmoke, fixes #13115
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14273 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-28 06:37:15 +00:00
Andrew Nacin
385b717f08
Give menu items a default 'draft' state when added to the menu. props filosofo, fixes #13149
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14270 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-28 04:56:50 +00:00
Andrew Nacin
54a577c537
Add full HTML filter to comment_form(), along with an echo arg. props joostdevalk, fixes #12564 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14268 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-28 04:28:51 +00:00
Andrew Nacin
8325eb1dc1
Verify nav menu items. props filosofo, fixes #13154 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14263 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-28 02:04:30 +00:00
Andrew Nacin
68db25c00c
Don't translate internal post stati. props nbachiyski, fixes #13024 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14262 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-27 22:36:46 +00:00
Andrew Nacin
e2e2836ad5
Explicitly set the capability required in edit_users map_meta_cap branch, so we don't accidentally pass edit_user. props TheDeadMedic. fixes #13074 , fixes #13137
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14256 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-27 20:39:39 +00:00
Andrew Nacin
5dbebf6cfc
Have media default to 'all', not false, in wp_enqueue_style. props koopersmith, fixes #13056 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14255 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-27 20:04:23 +00:00
Andrew Nacin
88bcfe2ec4
Simply search for newlines to strip instead of checking the oEmbed provider. fixes #12115 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14249 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-27 05:21:39 +00:00
Ryan Boren
77be931ef4
New menu UI. Props filosofo. see #12713
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14248 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-27 01:05:58 +00:00
Ryan Boren
cb27ac1a30
Revert [14230]. Broke menu save. see #10122
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14247 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-27 00:44:38 +00:00
Ryan Boren
6ba4b97fc8
Fix custom tax and post type query var checks. Props prettyboymp. fixes #12857 #13076
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14246 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-27 00:22:04 +00:00
Ryan Boren
3e9cc3ebd9
The read_post cap cannot be checked for sticky posts because not logged in users don't have any caps. see #11197
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14245 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-26 22:12:28 +00:00
Ryan Boren
981960fa09
Introduce DISALLOW_UNFILTERED_HTML
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14244 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-26 21:42:42 +00:00
Ryan Boren
24b7698dbf
Add RTL support to add_editor_style(). Props yoavf. fixes #13120
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14240 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-26 14:56:57 +00:00
Ryan Boren
9df1546b16
Fix array handling in sanitize_bookmark_field(). Props mdawaffe. fixes #13098
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14239 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-26 14:10:12 +00:00
Ron Rennick
be6734dd06
only append parent term slug until unique slug found, see #10712
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14234 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-25 15:25:00 +00:00
Dion Hulse
b4051fba69
Add basic email/url validation to General options page. Prevents users entering a invalid Admin email or WordPress/Site Address which is not in URL form. Props technosailor for initial patch, slightly reworked. See #12868
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14231 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-25 08:16:10 +00:00
Dion Hulse
e857394694
Allow edit posts page to save a empty set of terms for a custom hierarchical taxonomy. Props scribu for initial patch. See #10122
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14230 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-25 07:42:51 +00:00
Dion Hulse
c22f8eb989
Allow Terms to exist within multiple taxonomies (Regression in 3.0); If a term slug is provided on the form, Respect it (do not suffix it, instead, feedback with error); Do not allow hierarchical term names to exist multiple times within a set level (ie. AU/NSW + AU/NSW is bad, AU/NSW + AU/VIC + AU/VIC/NSW is ok). See #13060
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14229 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-25 07:35:16 +00:00
Ron Rennick
7b91f92df5
fix site administrator add user to site logic, see #12488
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14226 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 18:39:22 +00:00
Andrew Nacin
8d7f5fc554
Single quotes are way cooler.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14222 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 17:49:08 +00:00
Andrew Nacin
8178348739
Style bumps and compressed styles for r14187. see #13083 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14221 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 17:22:34 +00:00
Andrew Nacin
a732e95544
Prevent HTML editor from being resized horizontally. props nomulous, fixes #13064
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14220 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 16:57:44 +00:00
Dion Hulse
87981059db
Change custom post_type default Rewrite endpoint mask to EP_PERMALINK to ensure comment paging rules are added. Removes redundant/non-usable EP_NONE branch. Fixes #13086
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14219 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 14:42:30 +00:00
Dion Hulse
70d38b62ac
Fix DB upgrade kickoff for removal of usermeta fields. See r14212, r14213, see #13032
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14218 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 10:29:01 +00:00
Dion Hulse
4c6df3a2e4
Ignore sticky posts which the current user cannot read, Ignore sticky posts which have been explicitly excluded with 'post__not_in'. Fixes #11197
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14217 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 06:04:05 +00:00
Dion Hulse
62a7cce4f3
s/'%s'/%s/ in prepares. Props jamescollins. See r13673. See #12416
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14211 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 03:04:05 +00:00
Peter Westwood
d192a8ca09
Switch to using esc_url{_raw} for the shortlink output as it is a url not just any attribute. Fixes #10640 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14208 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 21:23:32 +00:00
Peter Westwood
6908b105e4
Added escaping to wp_shortlink_wp_head() too. See #10640 props sirzooro.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14207 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 21:20:16 +00:00
Ryan Boren
8d9073103c
Introduce get_super_admins(). Allow hard-coding a global super_admins array and bypassing site options. fixes #12815
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14206 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 20:34:03 +00:00
Andrew Nacin
9930e8cd4b
Make some branching look less crazy.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14203 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 19:00:30 +00:00
Ryan Boren
bd235b0c53
Return true. fixes #13094
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14199 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 16:50:01 +00:00
Ryan Boren
353adc8969
Move ms_site_check() to after init and allow super admins to view blocked sites. see #13094
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14198 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 16:18:33 +00:00
Ryan Boren
4f6c6647f3
Use rtrim() instead of untrailingslashit to avoid formatting.php dependency. Relying on formatting.php breaks SHORTINIT.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14197 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 16:10:48 +00:00
Andrew Nacin
de3a5eca3b
Fix typo in inline docs. props TobiasBg. see #13088
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14196 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 15:32:31 +00:00
Andrew Nacin
46c6c0bcf7
Clarify language for non-publication of emails. props lloydbudd, fixes #13026 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14195 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 15:01:21 +00:00
Ryan Boren
bfe3ca3b90
Bring back delete on empty value for update_user_option() to preserve back compat. Switch to delete_user_option() in core. Props mdawaffe. fixes #13088
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14193 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 14:25:05 +00:00
Nikolay Bachiyski
e0ac5d0e81
Do not force formatted number to int. Props brentes, fixes #10555
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14192 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-23 06:05:07 +00:00
Peter Westwood
3f2ee78320
Restore support for floating point numbers in number_format_i18n(). Fixes #10555 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14190 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-22 21:39:37 +00:00
Joseph Scott
cae7b3b275
New 'list_users' cap to provide more controls over listing users vs. editing
...
users.
Apply this new cap to the 'Authors & Users' menu item and 'Users' page in
wp-admin.
Bump db version to 14139 to pick up the new cap.
See #13074
git-svn-id: https://develop.svn.wordpress.org/trunk@14189 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-22 19:48:13 +00:00
Nikolay Bachiyski
0a0ec2ff46
Make the $path argument of load_muplugin_textdomain() functional -- relative to mu-plugins. Props uglyrobot, fixes #12875
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14186 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-22 11:32:50 +00:00
Peter Westwood
00b53270ca
Remove unnecessary translations of decimal point character and number of decimal places. Fixes #10555 props nbachiyski.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14184 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 21:41:20 +00:00
Ryan Boren
3479e68ff8
Return after echoing cached calendar. Fixes double output. Props mtdewvirus. fixes #13077
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14183 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 21:35:39 +00:00
Peter Westwood
dcdde9cb36
Allow a theme to set an id on the container object for the wp_nav_menu output. Fixes #13057 props thee17.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14182 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 21:32:08 +00:00
Ryan Boren
3750f4ac5d
Move the global up
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14181 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 20:37:54 +00:00
Ryan Boren
70fdc2138c
Make sure is set correctly when advanced-cache.php is being used.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14180 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 20:34:32 +00:00
Ryan Boren
6973ce2f9f
Clear the users cache when updating user metadata. fixes #13075
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14179 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 18:25:03 +00:00
Ryan Boren
0e3d10f5ac
Separate user deletion and removal. Add promote_users cap so that multisite Admins (not supes) can promote. see #13074
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14176 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 17:43:53 +00:00
Peter Westwood
633278d3be
Improve documentation of validate_current_theme()
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14175 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-21 17:14:25 +00:00
Dion Hulse
d10ff2dfc5
Canonical redirect to correct location if rss2 is not default feed. wp-feed.php redirection to default feed type instad of rss2. Props solarissmoke. Fixes #13047
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14162 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-19 12:03:01 +00:00
Dion Hulse
6f89c1a63a
Remove double-query for Author ID. Props simonwheatley. Fixes #12048
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14160 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-19 10:50:03 +00:00
Andrew Nacin
d7a1de87f0
Introduce is_post_type(). Can check if a post type is registered, or also if a post (current or specified) is of a certain post type. fixes #12588 , props sirzooro, blepoxp, rmccue
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14158 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 17:40:50 +00:00
Andrew Nacin
bf00891a05
Use is_post_type_hierarchical and is_taxonomy_hierarchical when we're fetching a post/tax object only to check the hierarchical flag. fixes #12950 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14155 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 15:54:45 +00:00
Andrew Nacin
7369d04015
Use wp_parse_args in register_sidebar. fixes #11836 , props scribu.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14154 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 15:32:39 +00:00
Dion Hulse
122abf2fa8
Fix page-<pageslug>.php templates for static front pages. See #12907
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14152 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 11:50:48 +00:00
Dion Hulse
a897bc0275
Fix invalid paths in requires. See r14139. See #12594
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14151 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 09:51:19 +00:00
Dion Hulse
5bfc2f5463
Better styling for Press this Categories. Props duck_. See #12809
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14149 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 09:41:51 +00:00
Dion Hulse
044eb3afba
Use Alt Text for Image alt caption (Falling back to Caption, and finally title) in wp_get_attachment_image() and subsequently, WordPress Galleries. Props kallewangstedt for initial patch. Fixes #11846
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14145 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 08:52:18 +00:00
Dion Hulse
929ff9692b
Make (\d)x(\d) texturization less greedy, requires a word boundary either side of the phrase. See #12118
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14144 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 08:26:38 +00:00
Dion Hulse
f42b2b775b
Uncheck rows on comments page when hiding rows so as to not affect it by Bulk edits. Fixes #12365
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14143 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 07:37:45 +00:00
Dion Hulse
09c1f4eb75
Advertise the correct comment feed link for a Page on the Front. Do not canonical redirect the front page comments feeds to home. Fixes #12452
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14141 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 06:51:16 +00:00
Andrew Nacin
ec4f5b83bf
Use relative paths when including files, avoiding include_path. fixes #12594 , props sorich87.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14139 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 06:14:45 +00:00
Dion Hulse
148e92a58c
Delete old hierarchical taxonomy children cache' on upgrade. Fixes #11866
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14138 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 06:08:40 +00:00
Andrew Nacin
a8d984183f
Fix sticky post handling. Use unset instead of array_splice to remove an item by key retrieved by array_search. props jeffstieler, fixes #11966 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14135 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 05:11:05 +00:00
Dion Hulse
b15624a124
Bail from WP_HTTP when a invalid URL is provided. Fixes #12964
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14134 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 04:58:19 +00:00
Andrew Nacin
8771fc4af7
Allow include/exclude args to be arrays in get_posts() and get_pages(). Utilizes wp_parse_id_list(). props scribu, fixes #11076 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14133 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 04:54:19 +00:00
Andrew Nacin
6e7fed8863
Switch to simpler language regarding publication of email addresses in comment_form() template. props bumbu, see #13026 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14132 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 04:49:19 +00:00
Andrew Nacin
8d47975e76
Allow orberby in wp_list_bookmarks to accept a comma-delimited list of fields, per docs. fixes #12421 , props sorich87, scribu.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14131 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 04:45:09 +00:00
Dion Hulse
aaf9bcf21d
Fix typo in Proxy Authorization header. Props thales.tede. Fixes #12995
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14129 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 04:01:19 +00:00
Dion Hulse
b85b748fdc
Respect the comment ID parameter in comment_excerpt(). Props tenpura. Fixes #12874
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14128 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 03:45:24 +00:00
Dion Hulse
632de8561e
Fix undefined page var in Post Javascript; Fixes inactive cancel button in Publish time selection. Props duck_. Fixes #12829
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14125 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 01:54:44 +00:00
Dion Hulse
fb623ae0c6
Display the correct Slug in the permalink preview. Props duck_. Fixes #12870
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14124 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 01:46:28 +00:00
Dion Hulse
1e0f313b60
Do not exclude inherit post_status from query results, Fixes Attachment listing in Gallery tab as well as displaying galleries on the front end (get_children() & friends). See #13031
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14122 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-17 10:30:46 +00:00
Dion Hulse
66e73d0f64
Respect the post_type param for Taxonomy Queries, Props Otto & Dougal Campbell. Restrict Attachment post_status joins to queries involving attachment results ("any" or "attachment"). See #13020
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14121 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-17 09:03:33 +00:00
Andrew Nacin
c7c442fce0
Move stray closing p tag out of a translation. props chrisbliss18, fixes #13036 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14119 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 22:27:37 +00:00
Andrew Nacin
8bc3075b1f
Allow for removing all tags in quick edit. Check only if $tags_input isset (can be empty) before running wp_set_post_tags. props sivel, fixes #12318 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14117 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 21:39:10 +00:00
Andrew Nacin
55b9eedb4b
Some sanity checks for parse_url in do_enclose. props miqrogroove, fixes #11029
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14116 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 19:48:30 +00:00
Andrew Nacin
026bdbc61c
Remove tabindex from comment_form(). fixes #12963
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14114 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 18:29:39 +00:00
Ryan Boren
4e3da4d6a3
Add edit_theme_options capability
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14111 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 15:36:44 +00:00
Andrew Nacin
08a6301257
Strip new lines from Viddler embeds, as we do for Scribd embeds. Avoids conflicts with wpautop. props Viper007Bond. see #12115 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14109 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 14:15:16 +00:00
Andrew Nacin
028f262ccf
Introduce the wp_filter_object_list() helper, with an $operator arg. Fixes an intersection bug in get_post_types() and get_taxonomies(). Also switches $operator default from 'or' to 'and' for get_post_stati(). props scribu, fixes #12966 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14108 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 14:08:58 +00:00
Andrew Nacin
a45a03c4c3
Consistently return WP_Error on failure in image_resize. props filosofo, fixes #12268
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14105 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 13:53:22 +00:00
Andrew Nacin
7f994ed03f
Strip tags before escaping the title element in wp_list_pages(). props scribu. fixes #11040 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14104 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 13:49:52 +00:00
Ryan Boren
3aca04a67b
Check if value is not set. Possible in the use_cache = false scenario.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14101 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 13:15:39 +00:00
Andrew Nacin
3cc1ff4546
Fix menu icons for custom post types. Fixes #12992 , props wmrom.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14100 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 03:29:34 +00:00
Andrew Nacin
e9ce1f2b54
Add $force_delete to get_delete_post_link(). Remove unnecessary argument. props scribu, fixes #12708
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14099 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 02:29:10 +00:00
Andrew Nacin
91dad860b7
Fix Right Now ugliness in blue/classic theme. see #12202
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14098 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 02:08:28 +00:00
Peter Westwood
08d47899a5
Improve behaviour of wptexturize with respect to single quotes. See #4539 props jmstacey.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14095 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-15 21:39:58 +00:00
Ryan Boren
ff34eb17d6
Make sure is instantiated. see #12997
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14094 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-15 21:24:52 +00:00
Andrew Nacin
d295ecea10
Spacing/coding cleanup of comment_form(). see #13016 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14093 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-15 16:25:08 +00:00
Andrew Nacin
23d19f6753
Update the html comments in comment_form(). props iandstewart, fixes #13016 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14092 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-15 16:16:51 +00:00
Andrew Nacin
b202c22008
Deprecate set_current_user() in favor of wp_set_current_user().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14090 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-14 22:06:03 +00:00
Ryan Boren
8e25b7d538
Introduce DISALLOW_FILE_MOD for disabling all ops that modify core, theme, or plugins files. see #13000
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14088 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-14 17:22:11 +00:00
Ryan Boren
b9bdd0bfb1
Assume unattached attachments are published. fixes #12999
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14087 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-14 15:20:15 +00:00
Ryan Boren
2e60fb8e0e
Register 'inherit' as a post status. Check the parent post status when commenting on attachments.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14086 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-14 14:07:48 +00:00
Ryan Boren
c7eef601d4
Use WP_FALLBACK_THEME instead of default. Props MichaelH. see #12846
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14080 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-13 21:56:57 +00:00
Ryan Boren
7beb454ef2
Always include class-http.php. see #12990
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14079 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-13 21:45:57 +00:00
Peter Westwood
e8f1acbf41
Remove blank data and lines after the closing ?> which can break image display for multisite.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14078 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-13 17:13:28 +00:00
Ryan Boren
a79d5c9964
Sanity check terms. Skip term IDs that don't exist.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14077 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-13 14:32:30 +00:00
Ryan Boren
dadff5dda0
Cache fixes for get_blog_details()
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14076 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-13 12:43:40 +00:00
Andrew Nacin
7d823cbc23
Don't use require_once for get_template_part(). fixes #12958 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14075 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 17:26:03 +00:00
Andrew Nacin
74cfa717cb
Revert changes to maybe_serialize() made in r13673. Do not prevent double-serialization of data. see #12930 . see also #12416 . xref #7347 , r8100, r8372, and others.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14074 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 17:07:20 +00:00
Andrew Nacin
72f51642c5
Add @since.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14073 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 15:23:20 +00:00
Dion Hulse
d648c8b9dd
Alternative implementation of custom post_type query_var handling. fills name & pagename for custom post_types to reduce amount of code duplication. See #12704
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14072 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 13:51:24 +00:00
Dion Hulse
223677bd30
Update get_post_type() to perform on the current global post if none specified. Update PHPDoc to reflect changes. Props rmccue. Fixes #12827
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14071 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 11:10:54 +00:00
Dion Hulse
491063c698
Tweak new strings for better typography. Props demetris. Fixes #12962
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14070 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 10:41:54 +00:00
Dion Hulse
9913b7d208
Update Press This category styling & html to match 3.0 management screens. Props noel. See #12809
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14069 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 09:11:39 +00:00
Dion Hulse
602b9f05b3
Correct sample URL's for custom post_type's. uses pretty permalinks if possible. Props duck_. See #12870
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14068 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 08:58:40 +00:00
Dion Hulse
57749e1d2c
Introduce get_comment_id_fields() as a Getter for comment_id_fields(). Introduce a filter on the output to add extra fields. Props zoranzaric. Fixes #12893
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14067 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 08:56:18 +00:00
Dion Hulse
74c1d4e71d
Add WordPerfect filetypes to Mimetype list. Props morganestes. Fixes #12849
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14066 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 08:50:23 +00:00
Dion Hulse
4b03becaa2
Add .tsv file format to Upload whitelist. Fixes #12757
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14064 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 02:11:29 +00:00
Dion Hulse
0d4febfda2
Consistent spacing for MAnage|Install Themes menu tabs. Props dremeda for initial patch. See #12412
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14063 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-11 02:02:30 +00:00
Dion Hulse
92e3e6d69f
Update Future Scheduled posts publish status to Published upon updating the date to a past date. Props bumbu. Fixes #12751
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14062 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 14:00:30 +00:00
Andrew Nacin
9f21f365bb
Script bump.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14061 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 13:22:42 +00:00
Andrew Nacin
b57d8d1714
Some wpdb cleanups.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14058 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 12:39:25 +00:00
Dion Hulse
8823027da6
Remember the post_parent during autosaves. Props duck_. Fixes #12938
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14057 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 12:39:01 +00:00
Dion Hulse
0197326e4c
Handle future-scheduled custom post_type's. Props waltervos. Fixes #12842
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14056 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 12:17:19 +00:00
Andrew Nacin
c612c3db6f
Don't set MIME headers in MS activation/welcome emails. fixes #12728 , props barry.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14055 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 12:11:03 +00:00
Andrew Nacin
f6e054f892
Quick edit taxonomy label. props scribu, keighl, fixes #12796
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14054 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 11:54:33 +00:00
Dion Hulse
4d5709b11d
Introduce is_post_type_hierarchical(). Props ptahdunbar. See #12950
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14053 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 11:42:45 +00:00
Andrew Nacin
8aad6ef615
Mark Snoopy as deprecated. see #12882
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14052 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 11:32:02 +00:00
Andrew Nacin
c423c01a44
Clean up the HTTP inline docs to reflect the times. props jacobsantos, fixes #12882 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14050 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 11:23:21 +00:00
Andrew Nacin
2254f7d6e9
Tweaks to the action in get_template_part(). fixes #12248 , fixes #12941 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14047 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 10:40:47 +00:00
Andrew Nacin
6d5a19ed17
Simplify logic in is_multisite().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14036 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-08 02:39:17 +00:00
Andrew Nacin
7ad8304223
Register a dummy [media] shortcode for strip_shortcodes et al. props belg4mit, Viper007Bond. fixes #12505
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14035 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-08 02:16:21 +00:00
Andrew Nacin
c30f9e100c
Spell out that _builtin and _edit_link are internal use only. Include some redundancy and repetition for emphasis.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14034 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-08 01:04:22 +00:00
Ryan Boren
e53c2d4da4
User is_super_admin(). Props ocean90. fixes #12888
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14032 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-07 15:28:10 +00:00
Ryan Boren
96ea328c0a
Nav menu fixes. Props ptahdunbar. see #12896 fixes #12844
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14031 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-07 15:25:48 +00:00
Mark Jaquith
e12a085938
TB_iframe fixes for stuff that broke in r14015. props scribu. fixes #12878 . see #12792
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14030 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-07 13:52:12 +00:00
Mark Jaquith
dddfbdfc5f
get_the_author_link(). props zoranzaric. fixes #12892
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14028 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-07 12:26:28 +00:00
Dion Hulse
e28019c1ec
Fix a case where $post_type = 'any' causes a large query to run without any specifications (post_name/limits/id/etc). See #12704
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14027 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-07 08:29:46 +00:00
Andrew Nacin
2bd947fa9c
New super admin icons for the blue/classic color scheme from Ben Dunkle. Remove temp icons, implement the new ones. fixes #12374 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14024 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-07 03:54:43 +00:00
Ryan Boren
6f1de4e209
Trigger adjacent_posts_rel_link() from wp_head only for single post pages to avoid unnecessary queries. see #10867
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14019 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-06 15:06:42 +00:00
Mark Jaquith
7c6b7b0a91
Make thumbnail work for custom post types even if the editor is not being displayed. props scribu. fixes #12792
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14015 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-06 11:20:47 +00:00
Mark Jaquith
697e807eb0
Add menu_position and menu_icon params to register_post_type(). props ptahdunbar. fixes #12541
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14014 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-06 04:32:08 +00:00
Mark Jaquith
0a85b39a4f
These nav_menu parameters should not be esc_html()d. fixes #12715 . props ptahdunbar
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14013 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-06 02:43:23 +00:00
Joseph Scott
72e9f66ed4
Update stats provided to api.wordpress.org see #12672
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14010 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-05 20:19:07 +00:00
Ryan Boren
079dd022e7
Add global-posts to global cache groups.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14009 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-05 18:29:56 +00:00
Ron Rennick
8ead991585
remove extraneous blog name sanitization, props nbachiyski, fixes #12823
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14005 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-05 04:00:51 +00:00
Andrew Nacin
1fa9e99992
Prevent half-baked loading of MS that would happen when constants are added into wp-config below the wp-settings include. Now it would error on the redefinition of the MULTISITE constant, instead of vague errors, and prevent any MS from loading. see #12848
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14000 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-05 00:00:13 +00:00
Andrew Nacin
5bf79d1d8e
File-level phpdoc for multisite files.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13998 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 13:29:35 +00:00
Andrew Nacin
966b3a13e7
Use the API to remove comments when deleting a post. Cleans up comment meta in the process. fixes #12766 , props briancolinger
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13997 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 12:42:34 +00:00
Andrew Nacin
f3b49e98b6
Request XML from an oEmbed provider if the provider returns '501 Not Implemented' for JSON. props nbachiyski, fixes #11964 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13996 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 12:30:22 +00:00
Andrew Nacin
122c6db06a
Add $force_delete to wp_delete_comment(). see #12766 , see #11470 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13995 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 12:20:19 +00:00
Andrew Nacin
3c295f3a59
Deprecate trackback_rdf(). fixes #11139
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13991 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 10:04:56 +00:00
Andrew Nacin
ec25a03906
Correct logic in wp_list_authors() for combinations of hide_empty and style args. fixes #10042
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13989 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 07:41:07 +00:00
Andrew Nacin
f81c0fdc39
Deprecate funky_javascript_fix() and it's callback. fixes #12520 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13988 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 07:11:23 +00:00
Andrew Nacin
23858b35c2
Add docs to add_post_type_support(). fixes #12644 , props sillybean.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13985 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 04:14:17 +00:00
Andrew Nacin
1b0ea3c637
Convert xfn.js to jQuery. Make the calculated field readonly if js. props rmccue. fixes #12551
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13984 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 03:53:14 +00:00
Andrew Nacin
c7fa61e102
Cast subject of _deep_replace() to string to prevent an infinite loop. props mdawaffe, fixes #12386
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13983 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 03:07:14 +00:00
Andrew Nacin
b25edaacc5
Add block-level HTML5 elements to wpautop(). props rmccue. fixes #12335
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13982 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 01:14:22 +00:00
Andrew Nacin
d59ceca06e
Remove Gears from UI. see #11301
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13981 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 00:48:28 +00:00
Andrew Nacin
ebd39b1233
Have get_search_query() escape by default, like it's echoing counterpart the_search_query(). see #12780
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13978 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 23:38:38 +00:00
Andrew Nacin
fcf7f399ef
Fix the sticky footer. hides a scrollbar. see #12586
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13976 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 23:30:27 +00:00
Andrew Nacin
00414ace34
Ensure we're escaping css classes for front end nav menu.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13975 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 23:04:37 +00:00
Andrew Nacin
502eb9d1d5
Don't use target="_self" in nav menu links, just omit the attribute. Also fix and run earlier db upgrades. fixes #12808
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13974 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 22:52:30 +00:00
Andrew Nacin
a89c39123e
More admin header improvements. props JohnONolan. see #12586
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13968 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 12:13:38 +00:00
Andrew Nacin
17a021c1bf
Move wp-login.php background from body.login to body selector. props JohnONolan. see #12586
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13967 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 11:37:24 +00:00
Andrew Nacin
76049e428d
Add 'enter title here' text to title box. see #12591
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13964 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 10:23:17 +00:00
Andrew Nacin
e3f6cbf19e
Allow .csv. fixes #12757
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13962 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 08:24:13 +00:00
Andrew Nacin
fdd1d24399
Check for string, as method may be an array. fixes #10778
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13958 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 07:18:16 +00:00
Andrew Nacin
0684fcffda
Make remove_user a meta capability. see #12793
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13956 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 05:14:34 +00:00
Mark Jaquith
2878b0618a
Bump versions for 3.0-beta1
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13954 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-03 01:50:01 +00:00
Andrew Nacin
114cedbf17
Allow methods to be used as a callback in wp_unique_filename(). fixes #12824 props aaroncampbell.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13952 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 23:54:56 +00:00
Andrew Nacin
5615e1ba93
Add AYS to "Install Now" link in plugin installer. fixes #11050
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13951 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 23:27:23 +00:00
Ron Rennick
3a9d10480d
have get_blog_prefix() default to the prefix of the current blog, see #12820
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13949 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 22:47:51 +00:00
Ryan Boren
af71e20215
Move wp-ajax_add-tax hook back to registration. Reverts part of [13924]. see #10437
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13946 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 17:07:30 +00:00
Dion Hulse
af3a5edd74
Don't prevent 404'ing on tax/author pages when a paged page is requested which doesnt contain posts. For example, /category/animal/page/9999999/. Allows for /category/empty_cat/ to not 404. Fixes #11857
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13944 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 08:16:20 +00:00
Dion Hulse
9b2113d8cd
Match the separator style of get_category_parents() in get_the_category_list(), Respects the spacing of the provided separator. Fixes #10761
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13943 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 07:30:20 +00:00
Dion Hulse
c57a54f082
A better default except, Remove multiple white spaces from the except as well as splitting safely on UTF8 strings. Props Denis-de-Bernardy for the UTF8 split. Fixes #10376
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13942 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 07:10:51 +00:00
Dion Hulse
842e844bc5
Change UI labels from "Post Thumbnails" to "Featured Image". See #12554
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13940 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 06:12:49 +00:00
Dion Hulse
db55fa0abb
Reduce Code duplication. Rely on parent class to do the heavy lifting, just tack the comment addition on the end. See #8841
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13939 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 05:33:18 +00:00
Dion Hulse
393c94d1a5
Move children of nested levels not shown to after the current element, not inside it like children. See #8841
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13938 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 05:13:57 +00:00
Andrew Nacin
7e33f4a479
Fix notice in wp_new_comment(). fixes #10854 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13937 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 05:01:13 +00:00
Andrew Nacin
1179f37584
Fix int cast usage in simplepie. see #12334 , props rlerdorf.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13935 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 04:37:42 +00:00
Dion Hulse
5c306d5ca4
Fix out-of-order comments when comment nesting is reduced. Displays child comments on the same level after its "parent" in the case that the max_depth has been hit. See #8841
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13932 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 04:05:01 +00:00
Andrew Nacin
9dab120905
Child theme support for theme header registrations. Second call to register_theme_headers() should add more headers, not replace existing headers. add unregister_theme_headers(). props jorbin. see #12343
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13928 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 03:15:18 +00:00
Ron Rennick
736637fb27
rework syncing of global terms, see #12663
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13925 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 01:26:44 +00:00
Dion Hulse
312438ad06
Use the taxonomy show_ui flag to control if all WordPress generated UI is exposed (Menu previously, This affects metaboxes). See #10437
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13924 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 01:23:58 +00:00
Dion Hulse
4dcdc247f6
Handle uppercase html entities in get_next_posts_link() & get_next_comments_link() (and family) $labels. Fixes #4152
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13922 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-02 00:07:59 +00:00
Dion Hulse
eb6dba1f3a
Rename Install to More Information, Add an Install Now action link to the Plugin Installer search results. See #11050
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13920 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-01 23:17:53 +00:00
Mark Jaquith
f1e8f1847b
Regenerate production CSS and bump version for last commit
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13919 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-01 21:22:48 +00:00
Andrew Nacin
9781730e1c
s/hierarachical/hierarchical/g. Props JohnPBloch.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13915 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-01 14:37:38 +00:00
Dion Hulse
90dd44e0c2
Whitespace and coding standards cleanup for balanceTags(). See #11968
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13914 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-01 13:18:34 +00:00
Dion Hulse
6edd892710
Recognise namespaces in tags for balanceTags(). Fixes #11968
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13913 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-01 13:16:44 +00:00
Dion Hulse
d9b935e3ce
Delete _transient_timeout_$name and _site_transient_timeout_$name when specifically deleting transients. Fixes #12782
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13911 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-01 10:42:03 +00:00
Dion Hulse
b2aaeb8394
Small coding standards cleanup of wp_die();
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13910 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-01 10:30:58 +00:00
Dion Hulse
ff6575838c
Use the correct slug value for reverting post slug inline editing. Props mitchoyoshitaka. Fixes #12788
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13909 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-01 10:16:55 +00:00
Mark Jaquith
191c250172
Fix PHP notice
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13908 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-01 07:43:04 +00:00
Peter Westwood
ed9ee9a2da
Ensure that apply_filters_ref_array passes the result of the filter to the next filter. Fixes #12723 props scribue.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13906 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-31 21:39:18 +00:00
Dion Hulse
f653d1710a
Dont pee on <option>. Prevents the addition of a <br/> following a </option>. Props akerem. Fixes #11947
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13903 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-31 09:32:44 +00:00
Andrew Nacin
47d995c72a
Add blacklist to remove_theme_support(). fixes #12739 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13902 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-31 09:06:11 +00:00
Dion Hulse
a999fdc1a6
Add Password Mismatch feedback to the Password Strength Meter. Props dancole. Fixes #12576
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13900 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-31 08:45:51 +00:00
Andrew Nacin
96697adf96
Add post type parameter to get_page_by_title(). props mikeschinkel, fixes #12743 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13899 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-31 08:20:28 +00:00
Andrew Nacin
20ebe2a218
File-level phpdoc for nav-menu-template.php. Also, @subpackage cannot contain spaces.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13897 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-31 07:54:09 +00:00
Ryan Boren
fedb70e678
Filter robots.txt output
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13891 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-30 15:48:52 +00:00
Dion Hulse
52269956a3
Whitespace only Cookie pairs are not permitted; Skip them. Props josephscott. Fixes #12761
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13887 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-30 10:22:30 +00:00
Ryan Boren
dc9cefd8a5
Use network_*_url(). see #12736
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13884 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-29 21:45:31 +00:00
Ron Rennick
049fcf5b46
delete user cap in remove_all_caps(), props ocean90, see #12711
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13883 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-29 20:35:06 +00:00
Ryan Boren
8b71175392
Don't stomp scheme arg. see #12736
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13882 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-29 20:25:30 +00:00
Ron Rennick
430123a00c
tweaks to network_*_url(), see #12736
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13881 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-29 19:57:17 +00:00
Ryan Boren
8392d79d1e
network_site_url(), network_home_url(), network_admin_url(). see #12736
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13880 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-29 17:53:03 +00:00
Ryan Boren
0129bad3ef
Check for urls that have a scheme but no host in wp_validate_redirect().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13878 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-29 16:47:17 +00:00
Ron Rennick
580bd283fd
add remove_theme_support(), props nathanrice, fixes #12739
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13877 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-29 16:26:54 +00:00
Dion Hulse
cc26a706e8
Slight Coding standards update
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13866 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 06:05:50 +00:00
Dion Hulse
b9682621d0
Fix the Permalink editor for custom post_types. Fixes #12742
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13865 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 05:23:49 +00:00
Dion Hulse
fd04241472
JQuery.noConflict() fix for thickbox.js. Props Michael. Fixes #12382
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13864 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 04:48:20 +00:00
Dion Hulse
9393b90872
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: https://develop.svn.wordpress.org/trunk@13863 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 04:42:44 +00:00
Dion Hulse
0773ef03a6
Implement the 2nd parameter of json_decode() for back-compat purposes. Returns an associative array instead of an object. Fixes #11963
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13862 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 04:35:42 +00:00
Dion Hulse
85b5a63f56
Fix notices in post_custom(). Props sirzooro. Fixes #11839
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13861 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 04:19:44 +00:00
Dion Hulse
c552d48674
Fix image_resize() dependencies by moving wp_load_image() from admin includes to wp-includes. Fixes #7279
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13860 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 03:39:00 +00:00
Dion Hulse
6f02bf815c
Do not allow empty option names. Trim leading and trailing whitespace from option names. Partial patch props ericmann. Fixes #11506
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13858 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 03:10:37 +00:00
Dion Hulse
dfee0416ec
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: https://develop.svn.wordpress.org/trunk@13857 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 02:57:09 +00:00
Dion Hulse
d3eec153be
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: https://develop.svn.wordpress.org/trunk@13856 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 02:53:04 +00:00
Dion Hulse
c23d49d135
Update wp_list_categories() to be custom taxonomy aware. Props jfarthing84. See #11838
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13854 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 02:07:31 +00:00
Dion Hulse
c784614283
Avoid notices for requests with no body. Also fixes a few race conditions related to headers. Fixes #11872
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13849 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 00:56:43 +00:00
Dion Hulse
bc64064f82
Fix WP_HTTP -> Snoopy Compat layer for Magpie RSS. Fixes #12045
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13848 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 00:33:25 +00:00
Dion Hulse
0620459e8d
Correct Array style for returning Multiple HTTP Headers. See #12045
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13847 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-28 00:23:40 +00:00
Andrew Nacin
280b71b5e2
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: https://develop.svn.wordpress.org/trunk@13845 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-27 07:56:54 +00:00
Dion Hulse
99359a2b48
Remove Debug cruft.. See #12704
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13839 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-27 06:03:58 +00:00
Dion Hulse
9cd846b401
Support multiple post_type query params/post_type's to be specified in a query. See #12704
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13838 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-27 05:56:27 +00:00
Andrew Nacin
a383d24d57
Remove 'Turbo' link from admin header. see #11301
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13833 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 20:59:57 +00:00
Andrew Nacin
2ec8eace83
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: https://develop.svn.wordpress.org/trunk@13832 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:55:48 +00:00
Andrew Nacin
0459129e69
Remove references to wp-ajax.php. props TobiasBg, fixes #12400
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13831 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:44:43 +00:00
Andrew Nacin
4f5a2095a8
Remove trailing whites and double semicolons.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13830 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:36:49 +00:00
Andrew Nacin
d43df7123a
Change @since 2.9 to @since 2.9.0.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13829 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:23:39 +00:00
Andrew Nacin
e34ca97ae0
Change @since 3.0 to @since 3.0.0.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13827 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 19:13:36 +00:00
Andrew Nacin
411e9a74f1
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: https://develop.svn.wordpress.org/trunk@13826 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 18:40:29 +00:00
Ryan Boren
3d69d47f63
Ligten header and footer for gray color scheme. Props johnonolan. see #12586
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13824 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 17:09:53 +00:00
Andrew Nacin
e721260a3b
WP_I18N_* for .maintenance strings. fixes #12485
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13822 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 14:06:12 +00:00
Andrew Nacin
84ba6e473e
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: https://develop.svn.wordpress.org/trunk@13821 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 14:00:17 +00:00
Andrew Nacin
28f8063d1f
Introduce get_index_template(). Allows child themes to override a parent theme's index.php. Props koopersmith, fixes #12635
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13819 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-26 13:52:43 +00:00
Peter Westwood
8003673862
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: https://develop.svn.wordpress.org/trunk@13815 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-25 22:02:45 +00:00
Ryan Boren
0286b0f2e5
Add scheme argument to admin_url() and get_admin_url() to allow forcing a particular scheme.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13814 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-25 22:00:36 +00:00
Ryan Boren
450110f9f2
Don't return WP_Error from term_description(). Props filosofo. fixes #12707
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13813 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-25 17:28:16 +00:00
Nikolay Bachiyski
cab7d51114
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: https://develop.svn.wordpress.org/trunk@13812 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-25 15:33:35 +00:00
Ryan Boren
eeb49f6bef
Enable nav menu admin if theme supports widgets. Show notice if theme supports widgets but not nav-menus. see #11817
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13810 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-24 18:35:31 +00:00
Andrew Nacin
5bcb23827d
Move send_nosniff_header() into wp-includes so it can be used in wp-ajax.php. props sivel, fixes #12683
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13806 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-23 19:13:58 +00:00
Andrew Nacin
0ac5c26d2d
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: https://develop.svn.wordpress.org/trunk@13804 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 22:33:12 +00:00
Andrew Nacin
94ec7ba0eb
Various bug fixes and improvements to menu management. props ptahdunbar, see #11817 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13802 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 19:56:16 +00:00
Andrew Nacin
d53d09ca48
Fix notice without breaking comment notifications. See r13150, see #11830
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13801 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 16:06:55 +00:00
Dion Hulse
1b219fcd7a
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: https://develop.svn.wordpress.org/trunk@13798 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 07:05:50 +00:00
Nikolay Bachiyski
7fcffb8d12
Wrap transtable strings used in Network install in WP_I18N_SOMETHING, because translations still aren't loaded. Fixes #12357
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13797 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 06:51:49 +00:00
Andrew Nacin
747fd91e0a
Fix typo in inline docs for register_post_type(). fixes #12664 props sillybean.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13793 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-22 03:11:15 +00:00
Dion Hulse
3ca4e60665
Cleanup of Custom Background. Move JS to external file, Add @since, Remove redundant steps functionality, Preview of Image alignment. See #12186
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13788 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-21 06:06:18 +00:00
Dion Hulse
af3144f092
When viewing a Parent term in a hierarchical taxonomy, display objects contained within children too. Props scribu. Fixes #12533
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13787 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-21 02:52:00 +00:00
Dion Hulse
6f62362b96
Use correct cap checks and nonces for custom post_type's
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13786 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-21 02:29:11 +00:00
Dion Hulse
f24da9abad
Fix WP_User::remove_role(). See #10285
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13784 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-21 01:36:54 +00:00
Dion Hulse
691bd47301
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: https://develop.svn.wordpress.org/trunk@13781 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-20 06:27:27 +00:00
Dion Hulse
9e75e9944d
Update Canonical paging to reconise /page(\d+)/? as a valid paging path. See #8948
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13780 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-20 03:22:08 +00:00
Dion Hulse
6be1550e75
Add hierarchical support for custom post_types in Rewrite Rules & Querying. See #12643
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13774 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-20 02:23:52 +00:00
Dion Hulse
513dc9d474
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: https://develop.svn.wordpress.org/trunk@13773 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-20 02:05:32 +00:00
Dion Hulse
60d2b654ac
Fix unset notice on Revisions page for custom post_types. Use $post object instead of relying on a Global
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13772 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-20 01:10:01 +00:00
Andrew Nacin
dd306def81
Remove redundant isset() and empty() checks.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13770 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 21:29:21 +00:00
Andrew Nacin
ddc506f01c
Remove unnecessary ternary operators such as (expr) ? true : false.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13769 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 21:15:00 +00:00
Dion Hulse
ef886dfdfe
Add min-height and a black border to the Background Image preview. Min-height to allow for no image present, black border to show preview area when no image or colour is available. See #12186
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13766 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 09:37:36 +00:00
Andrew Nacin
997913449c
Restore accidental removal of get_usernumposts(). This function is now deprecated in favor of count_user_posts() for naming consistency. fixes #12642 props Viper007Bond.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13761 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-19 01:11:21 +00:00
Peter Westwood
f93010c7ff
Make use of apply_filters_ref_array() when running the query. Fixes #9886 props scribu.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13758 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-18 21:55:25 +00:00
Peter Westwood
8d9aac849f
Introduce apply_filters_ref_array(). See #9886 props scribu.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13756 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-18 21:24:07 +00:00
Andrew Nacin
21c4e3e30e
Account for old type=link (now taxonomy=link_category) in wp_dropdown_categories(). Don't use the deprecated argument in options-writing. Sprinkle in some deprecated warnings. fixes #12630
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13754 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-18 20:17:15 +00:00
Andrew Nacin
39547dbeb9
Check in the script version bump for [13752]
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13753 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-18 19:25:55 +00:00
Andrew Nacin
6eb9146145
Fix notice for when no menus are located. see #11817
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13743 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 21:34:24 +00:00
Andrew Nacin
2256bb9a70
Remove JS nav-menu functions that we no longer use. see #11817
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13742 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 20:44:59 +00:00
Mark Jaquith
23f3d3f190
nav_menu taxonomy should be _builtin. props sillybean. see #11817
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13741 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 20:03:02 +00:00
Mark Jaquith
f9c0a28884
Bump nav-menu JS version
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13740 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 20:01:31 +00:00
Peter Westwood
fc7db66476
Fix notice in wp_nav_menu when the menu doesn't exist.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13738 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 19:33:20 +00:00
Ryan Boren
e89d1c5dcb
Introduce WP_DEFAULT_THEME
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13737 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 17:42:49 +00:00
Ryan Boren
e61755c853
Trim trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13733 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 16:27:25 +00:00
Ryan Boren
a62734b401
Fix menu item type labels. see #11817
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13731 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 16:18:41 +00:00
Mark Jaquith
a333213a6f
No need for three separate JS files if they are only ever enqueued together. see #11817
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13730 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 16:13:16 +00:00
Mark Jaquith
8bca8131a6
More pedantry. "Setup" is not a verb. http://notaverb.com/setup
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13725 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 04:39:50 +00:00
Ryan Boren
5e9792f9f7
Menu item -> append should be a key/name, not a label. see #11817
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13722 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-16 22:01:49 +00:00
Ryan Boren
1bb04ed42a
Default target to _self. Add some sanitization and gettext. see #11817
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13719 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-16 19:20:10 +00:00
Ryan Boren
35236d8291
Introduce sanitize_key().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13718 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-16 19:19:32 +00:00
Andrew Nacin
39d8739a81
Prevent page(\d+) slugs, and force a suffix. props miqrogroove. fixes #11917 . see #8948
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13717 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-16 18:36:26 +00:00