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
Andrew Nacin
9a68d977e6
s/plugin/theme/ in an edge case string in the theme updater. props pavelevap, fixes #19940 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19809 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-01 16:08:36 +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
Dion Hulse
31f8d18597
Show Changelog by default for "View version x.y.z details" links for Plugin updates. Props linuxologos. Fixes #19208
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19711 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 12:36:17 +00:00
Ryan Boren
54067a5f20
Remove extraneous spaces. Props kenan3008, dimadin. fixes #19501 #19433
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19596 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-14 17:36:38 +00:00
Mark Jaquith
b587d4c2ac
More consistent right-now/footer messages related to version and upgrades in multisite. propx SergeyBiryukov. fixes #15545
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18843 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-30 17:31:52 +00:00
Jon Cave
60d321b14b
Fix typos in documentation (wp-admin/). See #18560 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18632 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-03 14:18:10 +00:00
Andrew Nacin
8e17573655
Move the closing tags inside the same conditional in wp_plugin_update_row. props mitchoyoshitaka, fixes #17536 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17984 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-22 21:24:32 +00:00
Andrew Nacin
2b4674a3b4
Remove AJAX from list tables. first pass. see #16262 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17322 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-16 21:47:24 +00:00
Andrew Nacin
541c45ba0e
Make network_admin_url() return admin_url() when not multisite like its home and site counterparts. Kill the now redundant maybe_network_admin_url() function. fixes #15840 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16994 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 09:31:42 +00:00
Andrew Nacin
3653bb7926
Use maybe_network_admin_url. see #15840 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16978 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 06:12:55 +00:00
Andrew Nacin
8abcb8e5ce
Link to network/update-core when running multisite. Remove theme/plugin editors from blog menu when running multisite. Redirect to network/* when accessing theme/plugin-install/editor. props ocean90, see #15525 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16747 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-06 15:41:19 +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
scribu
2b895dda71
Introduce WP_List_Table::get_column_count() and take care of update notice <tr>. Props ocean90 for initial patch. Fixes #15318
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16368 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-14 18:00:09 +00:00
Andrew Nacin
d583c2be0e
Add theme updates to the network themes screen. props PeteMall, see #14897 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16141 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-01 20:08:25 +00:00
Andrew Nacin
036d6dbfa4
Don't show plugin update notifications outside of the network admin. props PeteMall, see #14435 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16037 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 08:31:16 +00:00
Ryan Boren
771bf8b862
Add plugin update notifications, plugin install, plugin update to the network admin screen. Props PeteMall. see #15129
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15867 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-20 14:16:03 +00:00
Andrew Nacin
6121122d9a
Capitalization and grammar changes in upgrade strings. fixes #13628 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15300 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-21 19:38:19 +00:00
Andrew Nacin
8722ccc178
Use a class for update-nag, as especially in MS we're sometimes hooking in more than one per page.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14319 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-30 15:37:46 +00:00
Andrew Nacin
35eafcfed4
Add links to the codex changelog in update notification strings. props dtoj, see #11739
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13250 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 12:28:10 +00:00
Ryan Boren
f260b32d25
Use cap checks instead of multisite and super admin checks. Add some new caps. Merge cleanup. see #11644 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12753 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-18 22:21:36 +00:00
Ryan Boren
e2adfc832a
Coding standards, space after if
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12752 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-18 20:34:48 +00:00
Ron Rennick
542f2132ab
merge multisite wp-admin/includes except schema, See #11644
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12726 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 00:21:13 +00:00
Ryan Boren
71bef9fe26
Convert update_themes, update_plugins, update_core, and dismissed_update_core into site transients/plugins. Remove no longer need compat code.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12673 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 20:49:55 +00:00
Ryan Boren
2ca56ce091
Start roughing in GUU. see #10973
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12066 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-20 16:11:59 +00:00
Peter Westwood
fa9b9d3ad3
phpDoc subpackage is Administration not Admin.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11933 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 21:13:25 +00:00
Andrew Ozz
194d325e3f
Fix warnings in wp_plugin_update_rows(), see #10464
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11785 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-07 09:33:40 +00:00
Peter Westwood
d99cec0a57
Move plugin update notice output to the plugin specific hook so as to make them easier to filter and manage from plugins that want to do there own thing. Fixes #10464 props strider72.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11775 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-04 21:52:31 +00:00
Andrew Ozz
230a4bc6f0
Add gray background to inactive rows on plugins screen
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11517 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-04 02:08:34 +00:00
Ryan Boren
e12c642c54
Trim tailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11450 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-24 23:47:49 +00:00
Andrew Ozz
846cdf43c9
Some more styling for the plugins screen
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11391 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-19 01:27:34 +00:00
Mark Jaquith
ba1c3bdd5b
Deprecate sanitize_url() and clean_url() in favor of esc_url_raw() and esc_url()
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11383 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 16:00:33 +00:00
Andrew Ozz
3780ca0212
Sanitize plugin update information, props hakre, fixes #5422
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11376 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-17 20:26:36 +00:00
Ryan Boren
d7a4c9f7a0
Remove unneeded pipe in admin footer. Props DD32, Denis-de-Bernardy. fixes #8676
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11298 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-12 06:10:08 +00:00
Ryan Boren
f39359771a
Fix plugin update notice
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11276 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 20:14:27 +00:00
Ryan Boren
77fd53d47c
Fix plugin update notice
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11275 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 20:12:03 +00:00
Ryan Boren
318e19884c
Typo fix
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11262 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 05:24:56 +00:00
Ryan Boren
8d19b10d66
Sanitize plugin update information. Props hakre, Viper007Bond. fixes #5422
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11258 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 04:50:36 +00:00
Ryan Boren
2deb2b1087
Add hook for adding info to plugin update message. Props JohnLamansky. fixes #9553
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11193 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 05:19:53 +00:00
Ryan Boren
12c7093645
Trailing whitespace cleanup
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11013 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-20 18:18:39 +00:00
Ryan Boren
603fba4ad4
consolidate plugin/theme/core upgrade/install functions. Props DD32. see #7875
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11005 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-19 19:36:28 +00:00
Andrew Ozz
3ca11d47c9
Disable PHP error reporting in gears-manifest.php, load-scripts.php and load-styles.php since they don't load wp-settings, fix some notices
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10939 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-15 19:55:41 +00:00
Ryan Boren
5b21863011
Use get_transient() for update_themes.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10649 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-25 23:18:42 +00:00
Ryan Boren
4e52545293
Use transient for update_core, update_plugins, update_themes. see #9048
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10515 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-06 18:06:20 +00:00
Ryan Boren
baaaa352ba
Strip trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-09 18:03:31 +00:00
Ryan Boren
1c84611441
Allow override of default file permissions with FS_CHMOD_DIR and FS_CHMOD_FILE. Props DD32. see #8478
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10050 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-04 21:58:46 +00:00
Ryan Boren
e6dc2f520b
Notice fix
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9719 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-15 18:41:27 +00:00
Ryan Boren
cbc9efcf9d
Do not show update nag on update page. Props nbachiyski. fixes #8199
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9669 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-13 21:10:53 +00:00
Ryan Boren
a070a5e38f
Revert [9523]. fixes #8195 see #7395
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9664 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-13 18:48:54 +00:00
Ryan Boren
0ba3c10f99
Bring back update nag.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@9593 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-10 18:17:47 +00:00