Ryan Boren
36a4508140
Update since phpdoc. Props demetris. fixes #15445
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16660 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-01 19:24:38 +00:00
scribu
756645d701
Minor code beautification. Props hakre. Fixes #15569
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16581 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-25 02:14:33 +00:00
scribu
81e04a887e
Make get_file_data() regex even more precise. Props hakre. See #15193
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16552 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-23 19:37:31 +00:00
Andrew Nacin
ccea27cbe7
More param fixes, props duck_. see #14783 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16469 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 19:12:48 +00:00
Ryan Boren
4b33a0e9c4
Pinking shears
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16438 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-17 18:47:34 +00:00
Nikolay Bachiyski
77254fc657
Fallback to only RTL attributes in wp_die()'s HTML tag if it's very early in the execution. Fixes #6132 . Props RanYanivHartstein and nacin.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16392 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 20:13:05 +00:00
Andrew Nacin
8d9b2cd2b3
Properly check, initialize, or cast a number of variables. props ChenHui. see #14642 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16377 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-15 06:38:10 +00:00
scribu
32b416f959
Improve hook readability via curly brackets. Props jjj for initial patch. Fixes #15422
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16365 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-14 15:50:02 +00:00
Andrew Nacin
200eefec46
Use square brackets instead of braces for string access. props hakre, fixes #13900 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16340 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 09:53:55 +00:00
Ryan Boren
8ad934c85d
Prevent stomping of global. Props prettyboymp. fixes #13945
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16303 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 16:22:18 +00:00
Ryan Boren
c79e13144c
Faster is_serialized(). Props duck_, hakre, Denis-de-Bernardy. see #14429
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16300 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 16:10:16 +00:00
scribu
b3d19ecb16
Make get_file_data() regex more precise. Fixes #15193
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16215 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 22:22:28 +00:00
Peter Westwood
432fa1921c
Restore the functionality of some of the other timezone format modifiers in date_i18n props nbachiyski.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16203 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-05 11:19:06 +00:00
Andrew Nacin
82ae655534
Move an array cast further down the stack. props filosofo, fixes #13965 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16093 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 22:39:53 +00:00
Peter Westwood
743606fac1
Fix some notices when pinging
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16069 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 07:07:28 +00:00
Peter Westwood
1fecd2b99c
Add a TODO to review this code later.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16062 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 22:00:53 +00:00
Peter Westwood
c0c3167621
Missing part of the admin bar rework. See #14772 props filosofo.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16043 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 11:48:22 +00:00
Andrew Nacin
e07a1d59c6
Use esc_html. Ancient, deprecated functions, but a valid fix nonetheless. fixes #14199 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16031 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 06:30:59 +00:00
Andrew Nacin
4bd893efd3
Use call_user_func for wpnique_filename callback. fixes #14627 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16025 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 22:27:06 +00:00
Andrew Nacin
cd50525faa
Don't show the admin bar in the plugin/theme installers. Inserts condition directly into iframe_header(). Allows show_admin_bar() to be called after init by unsetting wp_admin_bar, thus preventing render once those hooks are fired. see #14772 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15938 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-23 19:49:25 +00:00
Peter Westwood
18fb594129
Fix variable mis-name.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15865 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 13:38:50 +00:00
Ryan Boren
debdb6e258
Equal equal equal. see #14772
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15864 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 13:27:55 +00:00
Ryan Boren
74ef68d6ce
show_admin_bar(). see #14772
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15863 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 13:23:39 +00:00
Andrew Nacin
443d5fc7d8
Doc fixes for wp_find_hierarchy_loop. props mdawaffe, fixes #14662 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15846 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 08:16:10 +00:00
Andrew Nacin
fb4e38b0e7
Pinking shears.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15843 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:48:22 +00:00
Andrew Nacin
fc71934f11
Full @since's for 3.1.0.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15842 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:38:42 +00:00
scribu
dfbe420d9c
Get rid of wp_cache_key(), as it's not really that useful. See [15838]
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15839 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-18 21:54:39 +00:00
scribu
e62f41c374
Fix custom post type feed when no regular posts present. Props aaroncampbell for initial patch. Fixes #14922
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15838 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-18 21:06:49 +00:00
Ryan Boren
8b610e7c83
Allow turning off the admin bar via WP_SHOW_ADMIN_BAR constant, no_admin_bar() function, or show_admin_bar filter. see #14772
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15834 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-18 17:58:36 +00:00
Andrew Nacin
85d1a2b5b4
Remove debug cruft.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15813 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 08:55:06 +00:00
Ryan Boren
8e1da911a2
Prevent post and term hierarchy loops. Props mdawaffe. fixes #14662
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15806 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-14 15:09:04 +00:00
Ryan Boren
9ee8b20f30
First pass of user admin. Network admin and screen cleanups. see #14696
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15746 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 19:34:18 +00:00
scribu
12fdf54fdd
Move _wp_search_sql() into WP_Object_Query. Introduce WP_Comment_Search. See #15032
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15723 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 21:05:31 +00:00
scribu
a811171a0c
Introduce WP_Object_Query. See #15032
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15715 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 18:57:13 +00:00
scribu
ec8503802e
Strip redundant 'meta_' from 'meta_query' keys. See #14645
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15714 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-04 18:26:26 +00:00
scribu
c063cc13bb
Split wp_filter_object_list() into wp_list_filter() and wp_list_pluck(). Fixes #15016
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15686 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-02 18:48:51 +00:00
scribu
455d7463c1
Set 'cat' query var for backwards compatibility. Fixes #15007
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15685 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-02 18:03:06 +00:00
Dion Hulse
c9ab260ab4
utilise wp_guess_url() in installation redirection to provide an Absolute URL. See #14062 . See #14904
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15680 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-02 03:08:02 +00:00
Andrew Nacin
5963feeca6
Always include wp-db.php. Prevents a conditional include and allows db dropins to cleanly extend the wpdb class. Move require_wp_db() to load.php for consistency with bootloader helpers. fixes #14508 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15638 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-20 19:13:47 +00:00
Ryan Boren
d46e7dbfc0
Speed up is_serialized() with strpbrk(). Props Rasmus. see #14429
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15636 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-20 18:11:06 +00:00
scribu
a6d9954621
Clarify code in wp_load_alloptions(). Props joelhardi. Fixes #14896
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15634 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-19 11:08:20 +00:00
Andrew Nacin
be0b363c5c
Fix UPLOADS constant. see #14840 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15607 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-10 20:29:19 +00:00
Andrew Nacin
9494e4ce7e
Phpdoc argument/@param cleanups. props duck_, see #14783 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15590 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 11:21:11 +00:00
scribu
7ddd031d75
Use _wp_meta_sql() in WP_Query. See #14572 . See #14645
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15581 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-06 11:28:59 +00:00
scribu
8747d3d214
Use multiple JOINs instead of CASE in _wp_meta_sql(). See #14572
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15580 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-06 11:04:50 +00:00
scribu
7168dd09dd
Rewrite WP_User_Query to use JOIN instead of subquery. See #14572
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15579 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-06 08:09:41 +00:00
scribu
a258200257
Use get_users() in wp_dropdown_users(). See #14572
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15574 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-05 18:47:25 +00:00
scribu
abe62a803f
Don't suppress errors in _wp_meta_sql(). See #14572
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15568 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-05 14:54:55 +00:00
scribu
ef3ee6e841
call get_users() from get_users_of_blog()
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15566 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-05 14:35:55 +00:00
scribu
529a40e2b8
introduce _wp_meta_sql(). Preparation for adding blog_id to WP_User_Query. See #14572
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15565 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-05 13:31:33 +00:00
scribu
37401689c5
Introduce WP_List_Table::check_permissions() and WP_List_Table::prepare_items(). Fixes #14596 ; See #14579
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15496 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-12 23:21:05 +00:00
scribu
fb9394167f
Ajaxify list-type screens in the admin. See #14579
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15491 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-11 21:54:51 +00:00
Dion Hulse
7efc4efdaa
Alot more tabs. Props jacobsantos & Viper007bond. See #14147
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15355 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-30 00:05:18 +00:00
Dion Hulse
3562ac632d
And the rest of r15353. See #14147
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15354 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-29 23:54:39 +00:00
Dion Hulse
d12bd7a07e
Tabs are so much nicer than spaces.. Props jorbin. Fixes #14147
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15353 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-29 23:52:33 +00:00
Ron Rennick
4a03295c8d
allow custom content dir in WP 3.0 main site, fixes #13733
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15197 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 19:37:51 +00:00
Ryan Boren
0922715668
Cut 'em out, move 'em on, trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15116 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 20:04:07 +00:00
Ryan Boren
a5dbd0e164
clearstatcache() after writing files. Props momo360modena. fixes #13683
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15106 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 14:01:21 +00:00
Andrew Nacin
a8db275646
Even better, remove all UI for global terms. Add a filter to global_terms_enabled() and also allow the site option to simply be deleted. fixes #12666 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14854 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 20:45:59 +00:00
Dion Hulse
6f7e81416b
Clone Objects in add_option()/update_option() to prevent storing PHP5 object references in memory cache. See [9740]. Fixes #13480
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14777 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 14:15:59 +00:00
Ron Rennick
9ad643991f
don't check upload_path in upgraded MU install, see #12549
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14680 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 21:53:18 +00:00
Andrew Nacin
5aa7280d6a
Introduce wp_check_filetype_and_ext() to handle mime/ext image comparisons and corrections for upload and sideload. props Viper007Bond, see #11946 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14649 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 04:47:03 +00:00
Peter Westwood
4b3be4e693
Introduce __return_empty_array() and use it instead of create_function in the theme preview.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14641 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:55:26 +00:00
Peter Westwood
81b12ac87e
Introduce __return_zero() and use it instead of create_function in the login header.
...
Also add version info to __return_true and __return_false.
git-svn-id: https://develop.svn.wordpress.org/trunk@14639 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:46:53 +00:00
Andrew Nacin
49e4cad78c
Use the edit_theme_options capability. fixes #13290 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14581 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 19:19:57 +00:00
Andrew Nacin
5c149c17ae
Use correct field name in a query in do_enclose(). fixes #12074 , mtdewvirus.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14539 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 09:02:15 +00:00
Mark Jaquith
e69e6856e8
Omit extraneous argument. props coffee2code. fixes #10057
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14522 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-09 07:22:10 +00:00
Ron Rennick
74a627a09d
consistency & simplicity in get_option(), see #12140
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14515 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-08 18:05:16 +00:00
Ron Rennick
9d47e01b62
add upload dir support to switch to blog, props ocean90, see #11998
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14510 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-07 22:50:05 +00:00
Peter Westwood
f5d0ab2f21
Don't cache option values while installing. See #12140 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14502 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-07 18:32:20 +00:00
Andrew Nacin
c100b80c20
Fix start of week and SQL WEEK handling. props mdawaffe, fixes #10397 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14499 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-07 05:01:29 +00:00
Andrew Nacin
12985d307f
Standardize returned array keys when output = 'names'. Return numeric keys. Standardizes get_object_taxonomies with get_taxonomies, get_post_types, and get_post_stati. props scribu. fixes #13109 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14495 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-07 03:24:47 +00:00
Andrew Nacin
b3b0c727fc
Use get_row instead of get_var in get_site_option, aligning it with get_option, due to funkiness with 0/false/null. fixes #13043 . props laceous.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14410 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 21:02:32 +00:00
Ryan Boren
d783952469
Strip trailing whites.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 20:26:11 +00:00
Peter Westwood
17008f920f
Correctly mark things as private in the phpDoc
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14370 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 13:27:15 +00:00
Andrew Nacin
7ce20b12cf
Prevent fatal error when falling back to fsockopen in the setup-config.php key/salt HTTP request. fixes #13030 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14361 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 06:28:05 +00:00
Andrew Nacin
d5e5ccdd72
Introduce is_rtl(). Use it in core. It only becomes defined when locale is loaded, so it's impossible to use it too early. Deprecate the get_bloginfo('text_direction') call. fixes #13206 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14360 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 05:49:19 +00:00
Andrew Nacin
b54e64fd1a
Only query for global_terms_enabled once.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14344 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-02 22:08:05 +00:00
Mark Jaquith
a8912459a5
Make sure alloptions is an array before we try to use unset() on its alleged key
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14330 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-02 06:02:54 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Ron Rennick
9fe9b2390f
first pass on optional global terms, see #12589
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13715 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-16 17:17:55 +00:00
Andrew Nacin
c5e62bc71b
Fix typo in [13673]. see #12416
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13677 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 23:28:12 +00:00
Ryan Boren
9b019acfbe
make *_option(), *_transient() functions consistently expect unslashed data. Props Denis-de-Bernardy. see #12416
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13673 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 21:49:56 +00:00
Ron Rennick
29e618f33a
additional checks on allow existing media path, see #12549
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13631 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-09 18:08:25 +00:00
Ron Rennick
13aa99629a
allow existing media path on main site when converting to multisite, see #12549
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13619 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-08 19:52:29 +00:00
Dion Hulse
bcf8d7598e
Check date_create() exists for automatic-timezone functionality. Props hakre. Fixes #12534
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13616 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-07 02:51:55 +00:00
Andrew Nacin
89d20b2df3
Ignore custom user tables when checking whether the blog is installed. see #12083
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13569 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-03 07:27:18 +00:00
Andrew Nacin
cd9d4b8291
Add __return_true() to complement __return_false(). see #12381
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13526 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-01 08:50:27 +00:00
Andrew Nacin
5c706700f3
Don't pass serialized values to hooks in options API. see #10788 see #12416
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13508 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-28 19:32:17 +00:00
Andrew Nacin
a62faa1ccf
Small fix to [13433], see #10788
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13439 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-26 19:26:51 +00:00
Andrew Nacin
8271d92017
Consistently pass unserialized values to hooks in update_site_option(). Change add_option() and add_site_option() to do the same. Any plugin using maybe_unserialize() would continue to work as the value would no longer need to be unserialized. fixes #10788
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13433 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-26 18:51:37 +00:00
Andrew Nacin
e7fa18385a
Use is_ssl() in place of manual SERVER['HTTPS'] == 'on' checks. fixes #11885
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13427 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-26 06:21:47 +00:00
Peter Westwood
fd0925a920
Disable update service editing by default for multisite. See #12229 .
...
Introduce __return_false for simple filtering. See #12381 .
git-svn-id: https://develop.svn.wordpress.org/trunk@13413 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-25 21:56:28 +00:00
Peter Westwood
fcd36216e0
Return a 404 error if the request feed type doesn't exist not a 500. Fixes #12341 props aaroncampbell.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13408 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-25 21:16:07 +00:00
Andrew Nacin
c9dfb91763
Spelling and grammar fun. Fixes #11875 props cnorris23
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13382 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-24 20:13:23 +00:00
Andrew Nacin
4f3ffedba8
Support Ogg audio and video file extensions. Fixes #11519 props niallkennedy
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13349 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-23 23:26:30 +00:00
Ryan Boren
f24e88359e
Trim trailing whites
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13268 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-21 00:03:42 +00:00
Dion Hulse
468d0d7cff
Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13242 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 02:01:46 +00:00
Dion Hulse
4011b3d4a8
Remove unused references to global $wpdb
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13240 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 00:50:29 +00:00
Andrew Nacin
d543b36622
Introduce wpdb::tables() to fetch table names on a global or blog scope. Remove very old and long deprecated $table{table} globals, fixes #11614 . See #12083
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13229 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-19 19:57:03 +00:00
Andrew Nacin
fa77333608
Some more phpdoc bits for functions.php. Props miqrogroove, fixes #12215
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13210 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-19 01:08:39 +00:00
Andrew Nacin
c95a891437
Fix var name conflict in delete_site_option(), see #10788
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13158 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 23:30:31 +00:00
Dion Hulse
a498c11da0
Update wp_get_http() to handle redirections on HEAD requests. Un-deprecate $red header to track total redirections. See #10624
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13151 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 11:23:32 +00:00
Andrew Nacin
9d476c2d66
Add hooks across options and transients APIs. Focuses on site transients/options functions. Attempts to standardize where possible. See #10788
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13148 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 10:39:46 +00:00
Andrew Nacin
396f458c51
More cleanups of the options/transients APIs. More inline documentation, better return values (always true on success, false on failure). Only call actions that are after wpdb delete/update operations if the operation was successful. See #10788
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13142 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 07:21:15 +00:00
Andrew Nacin
79715e7a4c
Whitespace, phpdoc, standard variable names, better return values for options and transients APIs. See #10788
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13139 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 06:17:42 +00:00
Andrew Nacin
9e25bff4a0
Some phpdoc for functions.php. Props miqrogroove, see #12215
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13102 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 08:59:04 +00:00
Ryan Boren
b909bb1cf0
Add can_compress_scripts to core site options. Add phpdoc for wp_load_core_site_options(). see #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13069 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-12 20:23:06 +00:00
Ryan Boren
e213402692
Preload commonly loaded site options when running multisite without a persistent cache. Introduce wp_cache_reset() and call it instead of wp_cache_init() when re-initing after the blog ID chanages to avoid throwing out the entire cache. Pass cached site options through the site option filter when fetching.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13066 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-12 17:06:43 +00:00
Ryan Boren
65dae9a05f
Don't query the timeout for core transients that do not have a timeout. Avoids useless queries on non-existent site options.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13056 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-11 19:43:22 +00:00
Ryan Boren
268d39dce7
Fix warning when installing.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13013 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-07 16:51:35 +00:00
Ron Rennick
fdcbef3e84
restore shell wp-content/blogs.php & add deprecated warnings, props nacin, see #11742
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12977 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-05 21:40:22 +00:00
Ron Rennick
9db8d54976
Reduce DB queries by half during MU signup, props donncha, see #12140
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12973 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-05 17:59:24 +00:00
Mark Jaquith
5539653109
Use addslashes() instead of esc_sql() in add_magic_quotes() to avoid the pretense of DB association. props miqrogroove
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12961 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-04 23:05:13 +00:00
Peter Westwood
94762869e2
Fix bug in _search_terms_tidy. Fixes #12060 for trunk props miqrogroove.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12958 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-04 21:54:24 +00:00
Ryan Boren
4fa746310c
Remove first page and first comment filters. They're no longer needed. see #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12854 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 20:42:37 +00:00
Ryan Boren
3485776132
Integrate fix_upload_details() into wp_upload_dir(). see #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12851 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 20:02:11 +00:00
Ryan Boren
a56f033751
Merge mu_upload_dir() into wp_upload_dir(). see #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12850 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 19:04:55 +00:00
Ryan Boren
15e5d91692
Deprecate graceful_fail(). see #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12827 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-25 22:09:43 +00:00
Peter Westwood
e5b9ba2a92
Allow for an alternative handler for wp_die to be used if required. See #11892 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12790 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-21 22:13:20 +00:00
Ryan Boren
2e46e81309
i18n fixes. Props nbachiyski. fixes #11954
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12789 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-21 21:37:43 +00:00
Dion Hulse
ee11169862
Fix WP_Filesystem_Direct::mkdir() when running under safe_mode on certain versions of PHP. Props remi. Fixes #10497
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12741 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-17 02:57:59 +00:00
Dion Hulse
95166aa0cf
Fix wp_mkdir_p() when running under safe_mode on certain PHP versions. Props Denis-de-Bernardy. Fixes #8830
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12740 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-17 02:44:47 +00:00
Ryan Boren
8ef8b7bad5
Trailing whitespace cleanup
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12733 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 22:11:12 +00:00
Ryan Boren
2f72315628
Always set default timezone to UTC. Do offsets on top of that to be portable across all environments. fixes #9588 #11672 #11665
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12727 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 16:39:11 +00:00
Dion Hulse
76349e9b09
Add MP4 Audio Book format(.m4b) for uploads, Fix order of mimetypes. props demetris. fixes #11864
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12717 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-13 10:06:02 +00:00
Ron Rennick
4b4316bdf8
add is_main_site() function, See #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12714 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-12 21:52:51 +00:00
Ryan Boren
a6798b1fb6
Mainstream things that don't need to be multisite only. Formatting cleanups. see #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12698 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-11 22:08:49 +00:00
Ron Rennick
8b4fbdb503
merge in multisite login, wp-includes, See #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12697 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-11 21:49:40 +00:00
Peter Westwood
d71468418b
Pass $version to deprecated_argument_run action hook. See #11386 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12686 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-10 15:02:12 +00:00
Ryan Boren
9a9700dff4
Don't delete site transient if it doesn't have a timeout set. fixes #11844
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12684 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-10 02:39:24 +00:00
Peter Westwood
2e2ad12171
Add missing version numbers to _deprecated_argument() calls.
...
Remove deprecated argument from xfn_check() calls.
Pass version number to deprecated_file_included, deprecated_function_run and deprecated_argument_run actions.
Fixes #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12680 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-09 10:03:55 +00:00
Ryan Boren
fbbf18d6c7
Set result of insert
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12669 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 20:09:04 +00:00
Peter Westwood
b2360778ee
Add support to get_terms() to allow 'include' & 'exclude' args to be arrays(). Fixes #11076 props scribu.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12658 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 08:44:45 +00:00
Peter Westwood
6422cc2d63
Deprecate get_alloptions(). Fixes #4915 props nacin.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12656 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 08:29:55 +00:00
Ryan Boren
dfe2e39c2c
Deprecate argument. Never fallback to options table for user option requests. Props nacin. fixes #11615
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12616 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 00:01:52 +00:00
Ryan Boren
e7003d6c95
Make *_site_option() multisite awate. see #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12615 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-06 23:57:35 +00:00
Peter Westwood
a752e6b561
Updates and improvements to _depreceated_argument. See #11386 props nacin.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12584 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 16:23:39 +00:00
Andrew Ozz
a3da70dfac
Add more document file type extensions, props Otto42, dd32, hakre, fixes #7225
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12581 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 07:59:33 +00:00
Andrew Ozz
3fca305d99
Attempt to detect the correct post enclosure mime type, props josephscott, fixes #11668
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12580 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-30 07:36:17 +00:00
Peter Westwood
b607185b4e
Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12537 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 11:12:04 +00:00
Peter Westwood
e4295ece03
Add new function _deprecated_argument() to be used for marking arguments as deprecated so that with WP_DEBUG enabled developers can see they need to review and update their code. See #11386 props nacin.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12536 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 11:06:00 +00:00
Peter Westwood
b13e2ac938
More phpdoc fixes. Depreceated version numbers for _deprecated_file() calls in wp-includes.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12535 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 10:53:34 +00:00
Peter Westwood
5f07ebb275
Fix phpDoc for _deprecated_file(). Always pass the full path from ABSPATH to _deprecated_file().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12534 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-24 10:48:32 +00:00
Ryan Boren
65658aacbf
Do not use deprecated Etc timezones. Props miqrogroove. fixes #11558 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12507 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 14:16:36 +00:00
Peter Westwood
94a68dfd80
Revert [12485] as it breaks the functionality of is_serialized() and make more strings appear serialized. See #9930 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12486 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 13:42:58 +00:00
Peter Westwood
49ebdbb271
Much improved is_serialized() which catches serialized doubles. Fixes #9930 props vladimir_kolesnikov and dd32.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12485 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 13:10:06 +00:00
Andrew Ozz
65551e22c3
Check post and comment status before emptying trash, fixes #11442
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12412 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-16 01:35:29 +00:00
Ryan Boren
922d26b596
Fix upload dir defaults. Props Denis-de-Bernardy. fixes #11276
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12405 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 17:53:51 +00:00
Ryan Boren
1e123f43a7
Use ON DUPLICATE KEY UPDATE when inserting options to avoid duplicate entry errors. fixes #11437
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12403 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 16:00:23 +00:00
Mark Jaquith
545994d1f7
Reverting [12331]. see #10057
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12368 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 23:02:47 +00:00
Mark Jaquith
8b72be4ed2
Yes, I did mean original... props coffee2code. fixes #10057
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12331 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-07 17:57:48 +00:00
Ryan Boren
0042fa7b7c
Fix file validation in theme editor. Props dd32. fixes #11032
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12310 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 22:03:13 +00:00
Ryan Boren
b2faac7a2b
Fix wp_nonce_ays() for log-out case. Fix IE6 padding. Props miqrogroove. fixes #11289
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12309 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 21:21:31 +00:00
Andrew Ozz
be0c042c08
Set uploaded files extensions to lower case, fixes #11218
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12274 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-25 05:04:30 +00:00
Andrew Ozz
f13b20b423
Add video/x-flv to mime types, props hakre, fixes #11051
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12239 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 04:19:44 +00:00
Peter Westwood
89a9762c42
Ensure WP_DEBUG is always defined and simplify the checks on it. Fixes #11090 props nacin.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12207 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-18 08:22:49 +00:00
Ryan Boren
28338e0170
Deprecate make_url_footnote(). fixes #4968
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12203 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-17 21:11:24 +00:00
Ryan Boren
dbc040136c
Fix mimes empty check
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12171 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-12 05:20:48 +00:00
Ryan Boren
07c605407e
Sanitize filenames with multiple extensions. see #11122
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12165 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-11 23:07:29 +00:00
Ryan Boren
c7c418f738
Add actions for option writes. Props apokalyptik
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12164 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-11 15:26:11 +00:00
Ryan Boren
944dad2c59
Introduce get/set/delete_site_transient(). Make theme_roots a site transient.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12128 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-29 21:53:57 +00:00
Peter Westwood
c61e6f6bbd
Remove duplicated create_function calls an use a private _search_terms_tidy function instead for tidying up the post/page searching when looking to attach orphans to a parent post or page.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12052 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-18 11:50:59 +00:00
Peter Westwood
9510a36835
Allow for plugins to enhance the number of metadata fields captured from plugin and theme headers. See #8964 props strider72.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12044 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-15 21:07:00 +00:00
Ryan Boren
a4789b3cc1
Associate subdirector of whitespace trims trailing whites with pinking shears.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12042 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-15 20:26:21 +00:00
Ryan Boren
e71f15a979
Embeds. Props Viper007Bond. see #10337
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12023 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-13 17:04:22 +00:00
Peter Westwood
1c12fc9165
Make the (add|get|update)_site_option functions run the same filters in WP as they do in mu. Fixes #10893 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11995 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-03 21:40:27 +00:00
Mark Jaquith
737378702c
esc_sql() for wp-includes
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11978 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-27 05:33:56 +00:00
Ryan Boren
bb43e36418
Remove trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11971 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-24 17:19:13 +00:00
Ryan Boren
578e956287
Actions for postmeta updates. Props Demitrious Kelly. see #10750
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11968 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-24 17:10:28 +00:00
Peter Westwood
fceac051c1
Fix notice in wp_explain_nonce when the supplied action has no extra text. See #10830 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11961 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-23 06:51:19 +00:00
Peter Westwood
8f93bd78f8
Move the storage of the metadata for trashed comments into the comment meta table rather than storing it in an option. See #4529 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11945 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-17 20:51:12 +00:00
Ryan Boren
43c201d458
Remove trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11930 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 14:03:32 +00:00
Ryan Boren
46b766635e
Allow force_ssl_admin() to properly accept false as a value. Props nbachiyski. fixes #10706
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11903 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-08 14:46:06 +00:00
Ryan Boren
dcdab5fed5
is_blog_installed() improvements and repair.php. see #10728
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11902 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-06 18:46:27 +00:00
Ryan Boren
9ba99f344c
Make option_name the primary key for the options table. Props Denis-de-Bernardy. fixes #2699
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11883 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-26 22:46:33 +00:00
Peter Westwood
80e4f72f72
Move the storage of the metadata for trashed posts into the post meta table rather than storing it in an option. See #4529 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11878 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-25 22:05:15 +00:00
Andrew Ozz
16241293d3
Trash status update, see #4529
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11750 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-30 14:55:07 +00:00