Andrew Nacin
f9a131231d
Always return a WP_Theme object from wp_get_theme(). Check \$theme->exists() or \$theme->errors() to confirm the requested theme actually exists. see #20361 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20363 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:05:49 +00:00
Andrew Nacin
47a29d2c26
Ensure we get a theme back from wp_get_theme() before checking ->errors(). see #20103 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20331 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-30 16:35:51 +00:00
Andrew Nacin
0459805741
Increase default upload space for sites on a network from 10M to 100M. props andrea_r. fixes #18831 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20170 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-10 22:07:17 +00:00
Jon Cave
9e9f4ad923
Use WP_Rewrite::set_permalink_structure instead of plain update_option() in populate_network(). Fixes #20174 .
...
This has the benefit of calling WP_Rewrite::init() which correctly resets the permalink_structure
property of the $wp_rewrite global so that the rewrite rules generated on the next flush are correct.
git-svn-id: https://develop.svn.wordpress.org/trunk@20117 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-05 17:39:26 +00:00
Andrew Nacin
129754ed3d
Don't autoload the uninstall_plugins option. fixes #16741 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20080 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 20:13:35 +00:00
Andrew Nacin
53a209a4ee
Introduce WP_Theme, wp_get_themes(), and wp_get_theme() to replace get_themes(), get_theme(), get_theme_data(), current_theme_info(), and others.
...
* Getters and Helpers: Introduces a series of methods to allow for easy generation of headers for display, and other theme metadata, including page templates.
* Screenshots: Handles support for multiple screenshots. (see # Additional screenshots must be PNG and start with screenshot-2.png, and be sequential to be counted. see #19816 .
* Error Handling: Broken themes have a WP_Error object attached to them.
* Caching: Introduces a wp_cache_themes_persistently filter (also in [20020]) to enable persistent caching of all filesystem and sanitization operations normally handled by WP_Theme (and formerly get_file_data() and get_themes()). Themes are cached individually and across five different cache keys for different data pieces.
* Compatibility: A WP_Theme object is backwards compatible with a theme's array formerly returned by get_themes() and get_theme(), and an stdClass object formerly returned by current_theme_info().
* i18n/L10n: Theme headers are now localizable with proper Text Domain and Domain Path headers, like plugins. (Language packs may remove the requirement for headers.) For page templates, see #6007 (not fixed yet, but will be easy now). For headers, fixes #15858 .
* PHP and CSS files: New methods that fetch a list of theme files (for the theme editor) only on demand, rather than only loading them into memory. fixes #11214 .
Functions deprecated:
* get_themes(), get_allowed_themes() and get_broken_themes() -- use wp_get_themes()
* get_theme() and current_theme_info() -- use wp_get_theme()
* get_site_allowed_themes() -- use WP_Theme::get_allowed_on_network()
* wpmu_get_blog_allowedthemes() -- use WP_theme::get_allowed_on_site()
see also [20016], [20018], [20019], [20020], [20021], [20022], [20025], [20026], [20027]. also fixes #19244 .
see #20103 .
git-svn-id: https://develop.svn.wordpress.org/trunk@20029 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 21:24:44 +00:00
Jon Cave
cafa8dab24
Reduce references to the $wp_rewrite global because it's no longer used or a wrapper function can be used instead. Fixes #14546.#14546.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20023 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-28 20:29:33 +00:00
Ryan Boren
6622691fbf
Switch post_content_filtered from text to longtext so that it matches post_content. Props ejdanderson. fixes #19387
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19863 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 14:51:18 +00:00
Ryan Boren
52048ffa75
Drop the comment_approved index from the comments table. comment_approved_date_gmt is sufficient. fixes #19935
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19799 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-31 18:26:07 +00:00
Ryan Boren
3d3073d095
Remove blog_id column from wp_options. Props scribu. fixes #17188
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19793 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-30 20:47:25 +00:00
Andrew Nacin
fd475e222d
Use the _x context function. props Mamaduka. see #19601 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19788 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-29 23:43:14 +00:00
Andrew Nacin
7ed9b79485
Allow translators to specify a default timezone string OR GMT offset. Stop doing date('Z')/3600 math for default gmt_offset, as since WP 2.9, we set server time to UTC. Server time is unreliable, so no workarounds for now. fixes #19601 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19785 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-29 20:04:11 +00:00
Andrew Nacin
75b11699c1
Use the site's locale for the feed language. Provides the same result as language_attributes(). Removes the rss_language option. fixes #13440 . see #5517 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19784 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-29 19:56:33 +00:00
Andrew Nacin
2bb75d0e27
Offer start_of_week for translation. see #19601 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19780 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-29 04:21:53 +00:00
Ryan Boren
2b186b0c45
Lose EOF ?>. Clean up EOF newlines. fixes #12307
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +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
Ryan Boren
ef187a99f6
Initialize active_sitewide_plugins during network install and upgrade. fixes #19385
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19470 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-28 20:35:36 +00:00
Mark Jaquith
eae2fc5944
Fix "wp_db_current_db_version" typo. see #18693
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19411 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-22 22:05:42 +00:00
Mark Jaquith
00fd073cc0
Introduce initial_db_version and leverage it so that pointers only get shown to updated installs, not new 3.3 installs. props nacin. see #18693
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19410 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-22 21:50:50 +00:00
Ryan Boren
371bb1eb98
Properly handle child themes for WP_DEFAULT_THEME. Props SergeyBiryukov. fixes #18591
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19249 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-10 21:06:57 +00:00
Dion Hulse
527935e883
Fix Undefined Variable Notices when no charset/collate is set for $wpdb. See #12028
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18986 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-18 02:48:07 +00:00
Ryan Boren
319d070078
Introduce wp_get_db_schema() for rerieving the various flavors of the WP db schema. Eliminates need to use global. Allows multiple calls to wpmu_create_blog(). see #12028
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18899 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-06 00:21:24 +00:00
Ryan Boren
c8cbea1d66
Syncronize some strings. Props dcowgill, SergeyBiryukov. fixes #17770
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18878 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-04 16:09:24 +00:00
Ryan Boren
eda7d43e85
Deprecate get_userdatabylogin() and get_user_by_email(). Props scribu. fixes #18333
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18513 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-05 16:57:31 +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
Mark Jaquith
72608a1197
A few "login" used as a verb fixes. props xibe. fixes #17335
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17831 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-07 03:26:23 +00:00
Andrew Nacin
cc3ed56b35
More room for your content! Increase default post edit rows as the meta boxes are all hidden by default. see #14212 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17225 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-06 00:57:24 +00:00
Andrew Nacin
f660585656
Allow dfault post format selections. fixes #15882 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17056 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-19 05:36:11 +00:00
scribu
48141dcc84
Get only required fields in populate_network(). See #15854
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17012 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-17 00:11:21 +00:00
Andrew Nacin
8546c6797b
Kill what_to_show on upgrade. fixes #9815 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16092 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 22:39:05 +00:00
scribu
9344ecc8b5
fix wp_getAuthors in xmlrpc.php. See #14572 and [15566]
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15567 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-05 14:49:52 +00:00
Andrew Nacin
5154f54e0a
Tiny code cleanup. intval is used earlier so it is stored properly in the db; we just need true/false.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15305 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-23 05:10:45 +00:00
Andrew Nacin
15a13b431b
Translate, don't echo. props SergeyBiryukov, fixes #14008 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15293 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-21 05:36:18 +00:00
Dion Hulse
f13e3b1dc2
Move plugin installer install_popular_tags() to use a site transient rather than its own caching logic. Fixes #13108
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15287 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-19 07:28:27 +00:00
Andrew Nacin
b7fe818d58
Use correct variable in populate_network(). props wpmuguru, fixes #13859 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15238 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-12 05:16:21 +00:00
Andrew Nacin
e45ec0a52c
Fix warnings related to static pages. props zeo for initial patch. fixes #13830 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15227 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 17:04:06 +00:00
Ron Rennick
06dadab38b
alway update fileupload_url during initial network install, see #13828
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15202 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 21:31:46 +00:00
Ryan Boren
171d6811cc
Add export capability. fixes #13681
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15096 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-01 18:02:05 +00:00
Ron Rennick
9ac718a3eb
add fileupload_url option to main site on network install, see #13483
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14998 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 18:06:48 +00:00
Dion Hulse
a6194f1e0c
Fully implement the 'delete_themes' capability. See also r13547
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14984 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 09:49:38 +00:00
Ryan Boren
aec821c651
Strip trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14924 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 02:42:15 +00:00
Mark Jaquith
2a90aeb2a6
stripslashes() the site name before passing to populate_network(), not in it. We should always expect unslashed data. reverts [14754]. fixes #13448
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14845 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 19:18:30 +00:00
Ron Rennick
705e174f02
strip slashes from site name during network install, fixes #13448
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14754 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 20:43:53 +00:00
Ron Rennick
5e7eb09e19
block creation of 'files' sub site, see #13304
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14681 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 22:18:40 +00:00
Andrew Nacin
7d118a4628
Remove default_comment_status_pages setting from the options table. see #12991 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14651 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 05:01:04 +00:00
Andrew Nacin
f92765c934
Remove default_comment_status_pages setting. Reverts [14451], [14448] for 3.0. see #12991 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14650 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 04:56:56 +00:00
Ron Rennick
e3ee37d8a2
don't allow blog sub site in folder install, see #13304
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14516 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-08 18:37:38 +00:00
Andrew Nacin
910c8e8bc9
Remove WP_FALLBACK_THEME, use WP_DEFAULT_THEME instead. We now only fall back to the default theme if the theme is broken. Incomplete themes that need to inherit templates will inherit them from wp-includes/theme-compat -- this behavior is deprecated. fixes #12846 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14485 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 19:53:40 +00:00
Ron Rennick
0a20229178
add default comment status setting to populate_options(), see #12991
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14451 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 19:54:42 +00:00
Andrew Nacin
f049bc949c
s/blog/site/ in more places.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14326 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-01 07:09:38 +00:00