wordpress: remove bundled plugins and themes

Wordpress bundles some non-essential plugins and themes, then pesters
users to upgrade them. As we make the whole webroot readonly, it is
not possible to trivially delete them. Instead we should have users
explicitly install plugins via the existing nixos module.

+19
+8
nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
··· 304 304 </listitem> 305 305 <listitem> 306 306 <para> 307 + The <literal>wordpress</literal> derivation no longer contains 308 + any builtin plugins or themes; these can be found in 309 + <literal>wordpressPackages.{plugins,themes}</literal>, 310 + respectively. 311 + </para> 312 + </listitem> 313 + <listitem> 314 + <para> 307 315 <literal>llvmPackages_rocm.llvm</literal> will not contain 308 316 <literal>clang</literal> or <literal>compiler-rt</literal>. 309 317 <literal>llvmPackages_rocm.clang</literal> will not contain
+2
nixos/doc/manual/release-notes/rl-2305.section.md
··· 77 77 78 78 - `tut` has been updated from 1.0.34 to 2.0.0, and now uses the TOML format for the configuration file instead of INI. Additional information can be found [here](https://github.com/RasmusLindroth/tut/releases/tag/2.0.0). 79 79 80 + - The `wordpress` derivation no longer contains any builtin plugins or themes; these can be found in `wordpressPackages.{plugins,themes}`, respectively. 81 + 80 82 - `llvmPackages_rocm.llvm` will not contain `clang` or `compiler-rt`. `llvmPackages_rocm.clang` will not contain `llvm`. `llvmPackages_rocm.clangNoCompilerRt` has been removed in favor of using `llvmPackages_rocm.clang-unwrapped`. 81 83 82 84 - The EC2 image module previously detected and automatically mounted ext3-formatted instance store devices and partitions in stage-1 (initramfs), storing `/tmp` on the first discovered device. This behaviour, which only catered to very specific use cases and could not be disabled, has been removed. Users relying on this should provide their own implementation, and probably use ext4 and perform the mount in stage-2.
+9
pkgs/servers/web-apps/wordpress/generic.nix
··· 12 12 installPhase = '' 13 13 runHook preInstall 14 14 15 + # remove non-essential plugins and themes 16 + rm -r wp-content/{plugins,themes} 17 + mkdir wp-content/plugins 18 + cat << EOF > wp-content/plugins/index.php 19 + <?php 20 + // Silence is golden. 21 + EOF 22 + cp -a wp-content/{plugins,themes} 23 + 15 24 mkdir -p $out/share/wordpress 16 25 cp -r . $out/share/wordpress 17 26