Commit Graph

950 Commits

Author SHA1 Message Date
wpmuguru 54222465f0 consistency & simplicity in get_option(), see #12140
git-svn-id: http://svn.automattic.com/wordpress/trunk@14515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-08 18:05:16 +00:00
wpmuguru d1a55c286d add upload dir support to switch to blog, props ocean90, see #11998
git-svn-id: http://svn.automattic.com/wordpress/trunk@14510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-07 22:50:05 +00:00
westi 73a3f58148 Don't cache option values while installing. See #12140.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-07 18:32:20 +00:00
nacin 8d7445c3e8 Fix start of week and SQL WEEK handling. props mdawaffe, fixes #10397.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-07 05:01:29 +00:00
nacin d8e2d6d4a9 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: http://svn.automattic.com/wordpress/trunk@14495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-07 03:24:47 +00:00
nacin 4d855dbda7 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: http://svn.automattic.com/wordpress/trunk@14410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 21:02:32 +00:00
ryan 7b7243d94a Strip trailing whites.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 20:26:11 +00:00
westi 628d0b247d Correctly mark things as private in the phpDoc
git-svn-id: http://svn.automattic.com/wordpress/trunk@14370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 13:27:15 +00:00
nacin 0b597379e4 Prevent fatal error when falling back to fsockopen in the setup-config.php key/salt HTTP request. fixes #13030.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14361 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 06:28:05 +00:00
nacin 4d7c88f4a4 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: http://svn.automattic.com/wordpress/trunk@14360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 05:49:19 +00:00
nacin a77ea8d632 Only query for global_terms_enabled once.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14344 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-02 22:08:05 +00:00
markjaquith 247c08f604 Make sure alloptions is an array before we try to use unset() on its alleged key
git-svn-id: http://svn.automattic.com/wordpress/trunk@14330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-02 06:02:54 +00:00
dd32 47aa8ca69b s/'%s'/%s/ in prepares. Props jamescollins. See r13673. See #12416
git-svn-id: http://svn.automattic.com/wordpress/trunk@14211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-24 03:04:05 +00:00
ryan 9a92811b38 Use rtrim() instead of untrailingslashit to avoid formatting.php dependency. Relying on formatting.php breaks SHORTINIT.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-23 16:10:48 +00:00
nbachiyski bc5feeeeb6 Do not force formatted number to int. Props brentes, fixes #10555
git-svn-id: http://svn.automattic.com/wordpress/trunk@14192 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-23 06:05:07 +00:00
westi 9356c4b72d Restore support for floating point numbers in number_format_i18n(). Fixes #10555.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-22 21:39:37 +00:00
westi da93a92714 Remove unnecessary translations of decimal point character and number of decimal places. Fixes #10555 props nbachiyski.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-21 21:41:20 +00:00
nacin f07882dfba Some sanity checks for parse_url in do_enclose. props miqrogroove, fixes #11029
git-svn-id: http://svn.automattic.com/wordpress/trunk@14116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-16 19:48:30 +00:00
nacin 14916e2449 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: http://svn.automattic.com/wordpress/trunk@14108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-16 14:08:58 +00:00
ryan 48a87bdaca Check if value is not set. Possible in the use_cache = false scenario.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-16 13:15:39 +00:00
nacin 4975bf8ed8 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: http://svn.automattic.com/wordpress/trunk@14074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-11 17:07:20 +00:00
dd32 8d68a04c1f Add WordPerfect filetypes to Mimetype list. Props morganestes. Fixes #12849
git-svn-id: http://svn.automattic.com/wordpress/trunk@14066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-11 08:50:23 +00:00
dd32 fbf39813dc Add .tsv file format to Upload whitelist. Fixes #12757
git-svn-id: http://svn.automattic.com/wordpress/trunk@14064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-11 02:11:29 +00:00
nacin 90e50f7e37 Allow .csv. fixes #12757
git-svn-id: http://svn.automattic.com/wordpress/trunk@13962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-03 08:24:13 +00:00
nacin c905fc1420 Allow methods to be used as a callback in wp_unique_filename(). fixes #12824 props aaroncampbell.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-02 23:54:56 +00:00
dd32 ff3b452dda Delete _transient_timeout_$name and _site_transient_timeout_$name when specifically deleting transients. Fixes #12782
git-svn-id: http://svn.automattic.com/wordpress/trunk@13911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-01 10:42:03 +00:00
dd32 3344bf4a6e Small coding standards cleanup of wp_die();
git-svn-id: http://svn.automattic.com/wordpress/trunk@13910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-01 10:30:58 +00:00
ryan cb0854bfdb Filter robots.txt output
git-svn-id: http://svn.automattic.com/wordpress/trunk@13891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-30 15:48:52 +00:00
dd32 a0d734beea Do not allow empty option names. Trim leading and trailing whitespace from option names. Partial patch props ericmann. Fixes #11506
git-svn-id: http://svn.automattic.com/wordpress/trunk@13858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 03:10:37 +00:00
nacin 3918b75cbe Change @since 2.9 to @since 2.9.0.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-26 19:23:39 +00:00
nacin 47b80515da Move send_nosniff_header() into wp-includes so it can be used in wp-ajax.php. props sivel, fixes #12683
git-svn-id: http://svn.automattic.com/wordpress/trunk@13806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-23 19:13:58 +00:00
nbachiyski 70b7755535 Wrap transtable strings used in Network install in WP_I18N_SOMETHING, because translations still aren't loaded. Fixes #12357
git-svn-id: http://svn.automattic.com/wordpress/trunk@13797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-22 06:51:49 +00:00
nacin 8c8bf5039f Remove unnecessary ternary operators such as (expr) ? true : false.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-19 21:15:00 +00:00
ryan e25a65b36a Trim trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@13733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-17 16:27:25 +00:00
markjaquith 58d47426cc More pedantry. "Setup" is not a verb. http://notaverb.com/setup
git-svn-id: http://svn.automattic.com/wordpress/trunk@13725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-17 04:39:50 +00:00
wpmuguru 47302e0188 first pass on optional global terms, see #12589
git-svn-id: http://svn.automattic.com/wordpress/trunk@13715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-16 17:17:55 +00:00
nacin f2a177c418 Fix typo in [13673]. see #12416
git-svn-id: http://svn.automattic.com/wordpress/trunk@13677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-11 23:28:12 +00:00
ryan f91e95f100 make *_option(), *_transient() functions consistently expect unslashed data. Props Denis-de-Bernardy. see #12416
git-svn-id: http://svn.automattic.com/wordpress/trunk@13673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-11 21:49:56 +00:00
wpmuguru 6c39dc36e4 additional checks on allow existing media path, see #12549
git-svn-id: http://svn.automattic.com/wordpress/trunk@13631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-09 18:08:25 +00:00
wpmuguru a7011c50ca allow existing media path on main site when converting to multisite, see #12549
git-svn-id: http://svn.automattic.com/wordpress/trunk@13619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-08 19:52:29 +00:00
dd32 a9e3eb84e8 Check date_create() exists for automatic-timezone functionality. Props hakre. Fixes #12534
git-svn-id: http://svn.automattic.com/wordpress/trunk@13616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-07 02:51:55 +00:00
nacin 2db57edcad Ignore custom user tables when checking whether the blog is installed. see #12083
git-svn-id: http://svn.automattic.com/wordpress/trunk@13569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-03 07:27:18 +00:00
nacin d5427d9210 Add __return_true() to complement __return_false(). see #12381
git-svn-id: http://svn.automattic.com/wordpress/trunk@13526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-01 08:50:27 +00:00
nacin 3bf738fcc2 Don't pass serialized values to hooks in options API. see #10788 see #12416
git-svn-id: http://svn.automattic.com/wordpress/trunk@13508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-28 19:32:17 +00:00
nacin 84269822eb Small fix to [13433], see #10788
git-svn-id: http://svn.automattic.com/wordpress/trunk@13439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-26 19:26:51 +00:00
nacin c277384459 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: http://svn.automattic.com/wordpress/trunk@13433 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-26 18:51:37 +00:00
nacin a8e56e49ec Use is_ssl() in place of manual SERVER['HTTPS'] == 'on' checks. fixes #11885
git-svn-id: http://svn.automattic.com/wordpress/trunk@13427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-26 06:21:47 +00:00
westi 34d3291d32 Disable update service editing by default for multisite. See #12229.
Introduce __return_false for simple filtering. See #12381.

git-svn-id: http://svn.automattic.com/wordpress/trunk@13413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-25 21:56:28 +00:00
westi 7ab6035d59 Return a 404 error if the request feed type doesn't exist not a 500. Fixes #12341 props aaroncampbell.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-25 21:16:07 +00:00
nacin 8bcc5969dc Spelling and grammar fun. Fixes #11875 props cnorris23
git-svn-id: http://svn.automattic.com/wordpress/trunk@13382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-24 20:13:23 +00:00