Andrew Nacin
c671754b4f
Disable the 8) smiley as it breaks regular text more than all of the others. props sksmatt. fixes #17122 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19613 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-20 21:46:19 +00:00
Andrew Nacin
923ee213c9
Update since. see #18845 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19608 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-20 20:59:03 +00:00
Andrew Nacin
16c7792717
Add `__return_null()` to complement the existing true, false, zero, and empty array methods. props johnbillion, fixes #18845 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19607 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-20 20:58:30 +00:00
Ryan Boren
93d4783778
Move option, setting, and transient functions from functions.php to option.php. see #19552
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19602 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-19 23:15:32 +00:00
Ryan Boren
676ba7043e
Use one space, not two, after trailing punctuation. fixes #19537
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-13 23:45:31 +00:00
Peter Westwood
b087efe566
Add button styles to the inline styles in _default_wp_die_handler so that the Create a Config button is styled again. Fixes #17975 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19417 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-23 17:29:49 +00:00
Ryan Boren
80ee709653
Introduce wp_no_robots(). Call it for pages that should never be indexed, regardless of blog privacy settings. Props nacin. fixes #19251
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19304 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-15 20:44:48 +00:00
Andrew Ozz
0b8d97f135
Fix styling for the installation screens, props chexee, fixes #18576
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19297 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-15 15:47:07 +00:00
Ryan Boren
9356ce2a74
Fix edit.php row action redirects when referrers are not sent. Return false from wp_get_referer() when no referrer found. Props mitchoyoshitaka. fixes #17628
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19272 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-14 16:59:45 +00:00
Andrew Nacin
808c8dc6a5
Remove old vendor prefixes. props andrewryno, ocean90, fixes #18700 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19203 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-07 17:32:24 +00:00
Ryan Boren
fd10e500e4
Pinking shears
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19054 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-24 19:13:23 +00:00
Andrew Nacin
94cb070299
In _doing_it_wrong(), don't append the Debugging_in_WordPress message until we go to print a message. Send a clean message to the action. see #18453 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19044 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-23 17:51:14 +00:00
Ryan Boren
1b45a17906
Don't use unbounded SHOW TABLES in is_blog_installed(). Do a more targeted DESCRIBE loop over the blog table list. fixes #19026
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19039 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-21 22:16:33 +00:00
Jon Cave
0f36a1e33b
Don't cache default value in get_site_option() for non-existent options. Fixes #18955 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19012 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 21:06:50 +00:00
Andrew Ozz
34e570a8ab
Add link to the codex in the doing_it_wrong notices, see #18453
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18923 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-08 22:48:05 +00:00
Dion Hulse
f07212c873
Document that add_query_arg() expects encoded data. See #18086
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18885 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-05 11:03:56 +00:00
Jon Cave
9f6d53a66f
Introduce wp_allowed_protocols() for use in wp_kses() and esc_url(). See #18268 .
...
This allows plugins to filter the list of protocols used for esc_url() too, and helps us keep the list of protocols in sync.
git-svn-id: https://develop.svn.wordpress.org/trunk@18826 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 22:33:51 +00:00
Ryan Boren
25df5fe335
Disallow indexing wp-admin and wp-includes in robots.txt. Props SergeyBiryukov. fixes #18465
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18822 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 21:47:04 +00:00
Mark Jaquith
2aa3f3c353
Add note about why double-serialization is done. props SergeyBiryukov. fixes #16597
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18807 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-29 02:23:26 +00:00
Peter Westwood
80cc1062af
Revert [18747] until we can discuss it further. See #18453 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18752 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-22 09:15:45 +00:00
Peter Westwood
cdf5d84b73
Add support for rar and 7x file uploading. Fixes #16412 props Caspie.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18751 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-22 08:29:35 +00:00
Andrew Ozz
033ed78e03
Postpone warnings when WP_DEBUG and WP_DEBUG_DISPLAY are set, see #18453
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18747 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-22 02:27:00 +00:00
Ryan Boren
15f12c55f9
Mark some string in dead_db() for translation. Props mako09, SergeyBiryukov. fixes #17815
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18724 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-19 20:21:39 +00:00
Dion Hulse
56c20818e5
Fix wp_list_filter() OR operator. Props kevinB. Fixes #18092
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18711 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-19 03:59:52 +00:00
Jon Cave
6d75218f6a
Introduce wp_suspend_cache_addition() to allow reduced memory usage when cache additions aren't useful. Fixes #5389 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18681 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-15 20:23:00 +00:00
Andrew Nacin
d893b9568c
Add phpdoc for default arg for get_option(). props amereservant, solarissmoke, fixes #17819 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18658 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-09 17:53:41 +00:00
Andrew Nacin
c37a788332
s/robot/robots/. props madjax, fixes #18612 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18647 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-07 13:45:06 +00:00
Jon Cave
205aa5ba5c
Fix typos in documentation (wp-includes/[a-h]). See #18560 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18633 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-03 16:02:41 +00:00
Ryan Boren
965dcf7bf9
Properly handle nested arrays in wp_list_filter(). Props scribu, SergeyBiryukov. fixes #16137
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18606 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-25 19:50:29 +00:00
Ryan Boren
2b4d72c471
wp_list_pluck() performance improvement. Props Otto42. fixes #18230
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18602 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-25 18:22:17 +00:00
Jon Cave
4c849e806f
Allow update_site_option to add false-y values. Fixes #15497
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18589 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 21:12:14 +00:00
Jon Cave
f66d6581a7
Use get_site_option in add/update_site_option for caching and filtering benefits. fixes #18478
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18588 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 20:45:48 +00:00
Jon Cave
bfdc119315
add_site_option should not update existing options, should return a boolean and should only run actions on success. fixes #18422
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18587 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 20:24:35 +00:00
Jon Cave
ce57212c90
add_option() should always return a boolean, see #18422
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18567 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 18:17:37 +00:00
Peter Westwood
1b3b0e211c
Fix html for back link in _default_wp_die_handler. Fixes #18459 props tenpura.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18559 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-17 10:54:48 +00:00
Jon Cave
2498d24c9b
Replace regex in path_is_absolute() with simpler equality checks. props coffee2code. fixes #17754
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18551 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-16 00:21:56 +00:00
Andrew Nacin
7a67f00494
Break HTML comment up into two lines to prevent phpxref from choking on the rest of functions.php. props trepmal, fixes #18409 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18548 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-15 04:51:41 +00:00
Andrew Nacin
242f97f7db
Pedantic whitespace in validate_file().
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18543 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-13 06:10:02 +00:00
Peter Westwood
f55ab7feaa
Move the CSS inline to wp_die so that it is always available. Fixes #17975 , props kawauso for the style type update.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18534 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-11 19:06:59 +00:00
Andrew Nacin
45bd2b05b8
Pass old value to update_site_option hooks. props westi, fixes #17974 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18521 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-10 18:59:50 +00:00
Andrew Ozz
9bcfc3da39
<!DOCTYPE html> for all, fixes #18202
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18460 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-22 00:25:41 +00:00
Ryan Boren
6a85dc6dc1
Strip trailing slashes form WP_HOME and WP_SITEURL. Props xknown. fixes #17898
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18454 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-21 21:35:23 +00:00
Ryan Boren
985e2affd1
phpdoc typo fixes for functions.php. Props coffee2code. fixes #17752
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18448 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-21 17:48:25 +00:00
Andrew Nacin
6a82127a91
Remove undiscussed FIXME from add_option. fixes #16813 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18321 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-19 21:37:47 +00:00
Ryan Boren
0f089b9c47
Properly return referrer when referer = true and echo = false. Props scribu, webduo. fixes #11953
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18130 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-03 18:23:41 +00:00
Peter Westwood
5bb637983d
Add .ics / text/calendar to the whitelist of allowed file types. Fixes #15916 props SergeyBiryukov
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18091 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-01 15:08:48 +00:00
Ryan Boren
640eed5f4a
Update @since
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18032 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-25 15:47:17 +00:00
Andrew Nacin
02e8db225f
Use wp_remote_retrieve_* helper functions instead of the raw HTTP response array. props aaroncampbell, fixes #17416 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17928 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-14 19:45:07 +00:00
Peter Westwood
e766d629b8
Restore the functionality of date_i18n to pre [17747] so that is works without a provided timestamp again. Fixes #17278 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17841 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-08 17:14:36 +00:00
Ryan Boren
535ced5186
Send X-Frame-Options: SAMEORIGIN for admin and login pages. see #12293
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17826 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-06 21:28:53 +00:00
Mark Jaquith
dc7228f7b0
Speed optimizations for is_serialized_string(). fixes #17129
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17779 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-30 04:41:56 +00:00
Andrew Nacin
ca451ee1a9
Remove default-embeds.php. fixes #17112 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17751 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 17:03:23 +00:00
Andrew Nacin
f504e221e1
Switch from Panel/SubPanel to Screen in inline documentation and Codex links. props michaelh, fixes #17265 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17748 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 15:24:49 +00:00
Andrew Nacin
1f4d59925e
Remove PHP 5.1/Windows code from date_i18n. Allows timestamps from pre-1970. props DH-Shredder, fixes #10332 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17747 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-28 15:13:30 +00:00
Peter Westwood
321ab74010
Introduce a special wp_die handler for XMLRPC requests to ensure we send an XML response.
...
Props koke for the original patch. See #16748 .
git-svn-id: https://develop.svn.wordpress.org/trunk@17643 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-17 08:35:51 +00:00
Peter Westwood
462cb55ef4
Don't do SSL discovery for every RSD request. APP endpoint already respects the SSLness of the site. Fixes #15960 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17642 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-17 07:48:34 +00:00
Ryan Boren
95d1619373
Remove PHP4 timezone support. Props hakre. fixes #16970
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17637 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-13 17:30:02 +00:00
Ryan Boren
259c415b7b
Deprecate wp_clone(). Call clone directly. Props hakre. fixes #16813
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17613 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-06 17:44:29 +00:00
Ryan Boren
9691cb5eb2
Take out unnecessary compat functions from compat.php. Props hakre, ptahdunbar. see #16918
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17603 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-05 17:13:04 +00:00
Dion Hulse
ec8280cfd8
First run of introducing Stream-To-File for the WP_HTTP API. Reduces memory consumption during file downloads. Implemented in download_url() for upgraders. Props sivel. See #16236
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17555 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-25 02:42:20 +00:00
Mark Jaquith
d79937e6a3
Make plugin header parsing slightly more liberal (like it was in 3.0), to allow for PHPdoc style headers. props miqrogroove. fixes #16751 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17516 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-09 05:46:58 +00:00
Ryan Boren
451d7d8ffb
Pink the whites.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17435 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-09 17:35:36 +00:00
Ryan Boren
40ef969983
Return early if list is not an array. Props nacin. fixes #16499 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17427 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-09 17:06:22 +00:00
Ryan Boren
e1b27b6bd9
Set tag_id for tag queries. Add NOT support to wp_list_filter(). Props scribu. fixes #16170
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17251 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-11 18:56:59 +00:00
Ryan Boren
bf811456b4
Admin bar visibility prefs. Props duck_. see #15829
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17032 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-17 21:48:30 +00:00
Peter Westwood
ee16fbfe00
-- bad white space
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17022 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-17 08:40:15 +00:00
Peter Westwood
99aa874270
Ensure show_admin_bar( false ) works after init. Fixes #15856 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17021 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-17 08:34:36 +00:00
Ryan Boren
748f5f0154
phpdoc notation fixes. Props demetris. fixes #15852
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17009 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 22:46:13 +00:00
Ryan Boren
c1e26ef82c
Add like_escape() to some queries. fixes #15764
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16999 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 14:22:41 +00:00
Andrew Nacin
0b37b225a1
Grammar and spelling. see #15824 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16946 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-15 12:09:53 +00:00
Andrew Nacin
bdacc3985a
Move _doing_it_wrong to other debug functions. Modify docs and the output message. see #15824 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16945 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-15 12:06:39 +00:00
Peter Westwood
a95a5b65cc
Better message text to reflect that it might not just be an incorrect argument but maybe your calling something way too early. See #15824
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16942 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-15 11:39:23 +00:00
Peter Westwood
3b1748b60d
Zap the extra * props duck_
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16941 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-15 11:34:52 +00:00
Peter Westwood
052f67d71f
Introduce _doing_it_wrong(). See #15824 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16939 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-15 11:29:50 +00:00
Dion Hulse
c6f239ae68
Fix fatal error on IIS after r16797. props peaceablewhale. Limit variable string searching when possible. See #10187
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16904 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-14 08:31:33 +00:00
Ryan Boren
6dc2d07bc4
Pink trailing whites.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16900 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-13 21:21:50 +00:00
scribu
b8fdaa2dff
Correct get_file_data() inline doc. Fixes #14071
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16828 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-09 03:30:23 +00:00
Mark Jaquith
67ca818f87
Fix up the PHPdoc for get_file_data(). props hakre. fixes #14071
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16741 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-06 03:44:36 +00:00
Mark Jaquith
13ed00f2d4
Standardize around "Update" instead of "Upgrade." props RanYanivHartstein. props latz. fixes #14107
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16696 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-02 21:45:47 +00:00
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