1 %define plugin unfiltered
2 Summary: unfiltered-html capability for WordPress
3 Name: wpmu-plugin-%{plugin}
6 License: Unknown, but it safe to assume, it's under wordpress' license (GPL)
7 Group: Applications/Publishing
8 URL: http://wordpress.org/extend/plugins/unfiltered-mu/
9 Source0: http://downloads.wordpress.org/plugin/unfiltered-mu.zip
10 # Source0-md5: 323784d2024f2d8e6e45113f3313a456
12 Requires: wpmu >= 2.8.4
13 Obsoletes: wordpress-plugin-unfiltered-mu
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define wp_root %{_datadir}/wpmu
18 %define wp_content %{wp_root}/wp-content
19 %define pluginsdir %{wp_content}/mu-plugins
22 Unfiltered MU gives Administrators and Editors the unfiltered_html
23 capability. This prevents WordPress MU from stripping <iframe>,
24 <embed>, etc. from these users' posts. Authors and Contributors do not
25 get this capability for security reasons.
27 Warning! This is a very dangerous plugin to activate if you have
28 untrusted users on your site. Any user could add Javascript code to
29 steal the login cookies of any visitor who runs a blog on the same
30 site. The rogue user can then inpersonate any of those users and wreak
31 havoc. If all you want is to display videos on your WordPress MU
32 blogs, use Viper's Video Quicktags or any of the other video plugins
35 The plugin can either be used globally for your entire MU site, or it
36 can be applied on a blog-by-blog basis.
39 %setup -q -n unfiltered-mu
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{pluginsdir}
44 cp -a unfiltered-mu.php $RPM_BUILD_ROOT%{pluginsdir}
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{pluginsdir}/unfiltered-mu.php