Commit Graph

176 Commits

Author SHA1 Message Date
Helen Hou-Sandi efda431bc2 Open external links to plugin homepages, plugin author homepages, and theme author homepages in a new window/tab. props SergeyBiryukov. fixes #20839.
git-svn-id: https://develop.svn.wordpress.org/trunk@23394 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 16:20:01 +00:00
Helen Hou-Sandi 1303e7377a its <=> it's in documentation, along with a rogue the, The, and looses. props trepmal. fixes #22665.
git-svn-id: https://develop.svn.wordpress.org/trunk@23191 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-20 15:55:32 +00:00
Andrew Nacin e59bf3e6d5 HiDPI versions of the generic menu page icon. props empireoflight, lessbloat. see #21019.
git-svn-id: https://develop.svn.wordpress.org/trunk@22393 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-06 00:25:18 +00:00
Andrew Ozz 7485a0ceed Admin menu: add phpdoc/inline comments describing the usage of the param $icon_url in add_menu_page(), add string 'none' to be used when a menu icon is added from CSS, switch core items in the admin menu to use 'none', fixes #21349
git-svn-id: https://develop.svn.wordpress.org/trunk@21877 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-16 22:51:44 +00:00
Andrew Nacin f62839c45b Fold Privacy Settings into Reading Settings, moving blog_public (search engine/robots) to options-reading and removing options-privacy.
When blog_public only has two values (as judged by whether the blog_privacy_selector action is used), convert from radio buttons to a checkbox, and rename from 'Site Visibility' to a more specific 'Search Engine Visibility'.

The text and implementation may change a bit. see #16416.



git-svn-id: https://develop.svn.wordpress.org/trunk@21838 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-13 17:28:57 +00:00
Andrew Nacin 6557b319c4 Use the key we found using array_search() to unset it from the array. props hakre. fixes #16562.
git-svn-id: https://develop.svn.wordpress.org/trunk@21812 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 02:12:34 +00:00
Ryan Boren 92ea34f6a2 Use set_url_scheme(). Props johnbillion, MarcusPope. see #19037 #20759
git-svn-id: https://develop.svn.wordpress.org/trunk@21664 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 13:33:00 +00:00
Andrew Nacin f01b41eb1e Fix order of @param's for deactivate_plugins(). props Viper007Bond, fixes #21269.
git-svn-id: https://develop.svn.wordpress.org/trunk@21291 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-20 15:09:40 +00:00
Andrew Nacin a660b3818d Back compat for plugins looking for networkwide=1 during a plugin activation hook.
Proper way to detect this: An activation hook callback receives (bool) $network_wide as the first argument.

see #20995 for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@21104 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-25 19:32:34 +00:00
Andrew Nacin 40b676037c Correct logic in deactivate_plugins() where network_wide = null. props SergeyBiryukov. fixes #20497.
git-svn-id: https://develop.svn.wordpress.org/trunk@20555 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-21 00:45:53 +00:00
Andrew Nacin 5ed7eb7f1c Clean up plugins.php with regards to recently edited files, deactivations, and the network admin. see #20468, #20104.
* Limit recently_activated to the site dashboard, and properly remove bulk-activated plugins from the array.
 * Remove code used from before the network admin, such as the unused 'network' plugin_status.
 * Don't try to deactivate a plugin already deactivated.
 * Use more specific caps (manage_network_plugins) rather than is_super_admin().



git-svn-id: https://develop.svn.wordpress.org/trunk@20525 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 03:41:29 +00:00
Andrew Nacin 910804c30e Clean up get_plugin_data() and _get_plugin_data_markup_translate(), and standardize sanitization. fixes #20266.
git-svn-id: https://develop.svn.wordpress.org/trunk@20229 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-20 23:04:59 +00:00
Andrew Nacin 80b14c9de7 Allow bundled plugin headers to be translated. see #19597.
git-svn-id: https://develop.svn.wordpress.org/trunk@19965 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-21 15:26:08 +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 a8d77cbae9 User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302
git-svn-id: https://develop.svn.wordpress.org/trunk@19687 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:50:54 +00:00
Ryan Boren 5e76729992 One newline is enough.
git-svn-id: https://develop.svn.wordpress.org/trunk@19684 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:10:39 +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
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
Jon Cave 83d7fbe1a6 Revert r18887 due to back compat issues. Fixes #18914.
For example 'intval' couldn't be used as a sanitisation callback.


git-svn-id: https://develop.svn.wordpress.org/trunk@18951 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-12 16:35:33 +00:00
Mark Jaquith 46737bef61 Pass both parameters to the sanitize_option_FOO callback set in register_setting(). props lumination. fixes #15335
git-svn-id: https://develop.svn.wordpress.org/trunk@18887 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-05 17:48:41 +00:00
Andrew Nacin 4e3cdbfc61 Document that add_submenu_page() might return false if ! current_user_can(). see #17677.
git-svn-id: https://develop.svn.wordpress.org/trunk@18136 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-03 23:30:46 +00:00
Ryan Boren 89561d578e s/seperator/separator/. Props brandonburke. fixes #17610
git-svn-id: https://develop.svn.wordpress.org/trunk@18084 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-31 19:58:36 +00:00
Dion Hulse e849d6437d Move closedir() to better locations to prevent the need for error suppression, prevents suppressed Warnings/Notices to be thrown during Plugin Installation. Fixes #16547
git-svn-id: https://develop.svn.wordpress.org/trunk@17617 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-07 09:07:56 +00:00
Andrew Nacin 6227ef5aa2 Offer the standard tags for the plugin name datapoint. props Kawauso, fixes #16241.
git-svn-id: https://develop.svn.wordpress.org/trunk@17310 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-15 07:26:45 +00:00
Andrew Nacin 92fe9ad043 Remove a random nacin typo introduced in 3.0. see [12976], #16055.
git-svn-id: https://develop.svn.wordpress.org/trunk@17196 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-31 23:58:02 +00:00
Ryan Boren 34ef8c8df9 Translations in title attributes require esc_attr().
git-svn-id: https://develop.svn.wordpress.org/trunk@17102 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-21 17:17:58 +00:00
scribu 9835b5ff25 Add @return to add_*menu_page() docs. Fixes #15747
git-svn-id: https://develop.svn.wordpress.org/trunk@16831 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-09 06:54:48 +00:00
Andrew Nacin 684d85ff2f Fix menu_page_url() for submenu pages attached to custom menu pages. props duck_, see #14159.
git-svn-id: https://develop.svn.wordpress.org/trunk@16829 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-09 04:02:37 +00:00
Andrew Nacin efa71cfe2c Set AuthorName even when no translation or markup is processed. see #15662.
git-svn-id: https://develop.svn.wordpress.org/trunk@16758 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-06 21:18:18 +00:00
Andrew Nacin efbe42fc1c Add AuthorName to get_plugins() and use it when deleting a plugin. fixes #15662.
git-svn-id: https://develop.svn.wordpress.org/trunk@16757 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-06 20:49:54 +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
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
Andrew Nacin d8c91db1f4 Remove more create_function calls. props huichen, see #14424.
git-svn-id: https://develop.svn.wordpress.org/trunk@16313 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 22:50:36 +00:00
Andrew Nacin 19bb470821 Kill a create_function by introducing is_plugin_inactive. see #14424.
git-svn-id: https://develop.svn.wordpress.org/trunk@16312 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 22:21:04 +00:00
Peter Westwood e6d62aeb48 Blankity Blank. Fixes #15380 props arena.
git-svn-id: https://develop.svn.wordpress.org/trunk@16281 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-10 20:54:56 +00:00
scribu 3c1191be53 Prevent double inclusion of plugin when already activated on main site. See #14435
git-svn-id: https://develop.svn.wordpress.org/trunk@16027 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 23:54:43 +00:00
scribu 7d80f2e1b3 Don't call activation hooks when upgrading. Props joelhardi for initial patch. See #14915
git-svn-id: https://develop.svn.wordpress.org/trunk@16012 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 13:40:14 +00:00
scribu 3682e8fc98 Pass $network_wide flag to de/activation hooks. See #14170
git-svn-id: https://develop.svn.wordpress.org/trunk@16011 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 13:20:53 +00:00
scribu 500d2be317 Revert part of [15753]. See [12914]. See #14666
git-svn-id: https://develop.svn.wordpress.org/trunk@15754 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 22:58:45 +00:00
scribu 63d011c9dc Introduce remove_menu_page() and remove_submenu_page(). Fixes #12718
git-svn-id: https://develop.svn.wordpress.org/trunk@15753 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 22:35:31 +00:00
scribu 3950973583 Fix irrelevant error message on plugin activation again. Props andy. Fixes #7671
git-svn-id: https://develop.svn.wordpress.org/trunk@15744 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 15:27:47 +00:00
scribu 67cb12cebb Fix delete plugin links. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@15597 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-08 12:15:50 +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
Andrew Nacin 9d381db2cb Only ask for active_sitewide_plugins in deactivate_plugins() if we're running multisite.
git-svn-id: https://develop.svn.wordpress.org/trunk@15376 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-07 20:35:51 +00:00
Andrew Nacin 44bb966035 Use add_query_arg() in menu_page_url(). fixes #13923.
git-svn-id: https://develop.svn.wordpress.org/trunk@15268 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-16 20:08:58 +00:00
Ryan Boren 82be9621ec Trim trailing whitespace.
git-svn-id: https://develop.svn.wordpress.org/trunk@15235 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 20:19:35 +00:00
Peter Westwood 063ca11e7a Introduce menu_page_url() for plugins to use to get the url for the pages they have added. Fixes #13829 props o'malley for all the cuteness.
git-svn-id: https://develop.svn.wordpress.org/trunk@15203 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 21:38:41 +00:00
Ryan Boren dca1da7a1c Allow plugin activation even if plugin generates extra output. Make warning more informative. fixes #13585
git-svn-id: https://develop.svn.wordpress.org/trunk@15017 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 00:18:00 +00:00
Andrew Nacin 8235a24f35 Fix double-tabbing in get_dropins.
git-svn-id: https://develop.svn.wordpress.org/trunk@14546 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 20:41:14 +00:00
Andrew Nacin 81ec5c6d42 Apply [14540] to get_mu_plugins and get_dropins. fixes #13322, props Miloslav.
git-svn-id: https://develop.svn.wordpress.org/trunk@14545 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 20:40:15 +00:00