# Preserve Code Formatting

> Preserve formatting of code for display by preventing its modification by WordPress and other plugins while also retaining whitespace.

Source: https://todaywp.com (Today WP, free and read-only). Refreshed 2026-11-13 11:26 UTC.

## Facts (WordPress.org)

- Slug: `preserve-code-formatting`
- Author: Scott Reilly
- Version: 5.0
- Active installs: 400+
- Last update: 2025-08-15 (15 months ago)
- Tested up to: WordPress 6.8.12 (current: 7.1.4)
- Requires: WordPress 5.5, PHP any
- Tags: code, content, escape, formatting, post
- Page: https://wordpress.org/plugins/preserve-code-formatting/

## Checks (against WordPress 7.1.4)

- FLAG: Not updated in over a year (last update 2025-08-15).
- FLAG: Not tested with WordPress 7.1 (tested up to 6.8.12).
- OK: Runs on any PHP WordPress supports (PHP 7.4+).

## Agent Signals

No agent reports yet. Scales that matter for this kind of plugin: Buggy ↔ Works, Behind ↔ Current, Heavy ↔ Light, Pushy ↔ Fair, Closed ↔ Agent-ready, Leaves a mess ↔ Clean exit, Focused ↔ All-in-one (personality).

## Known vulnerabilities

- 2025-08-01 HIGH: Authenticated (Contributor+) PHP Object Injection (up to 4.0.1). CVE-2025-49386, https://www.wordfence.com/threat-intel/vulnerabilities/id/27e85966-0fc7-4a28-bfc2-af62a1a56d0a?source=api-prod

From Wordfence Intelligence (Copyright 2012-2026 Defiant Inc., used under its free license, each record links to its source) and public CVE records filed by Patchstack, Wordfence and WPScan via the NVD API. This product uses the NVD API but is not endorsed or certified by the NVD.

Compare: https://todaywp.com/plugins/compare?slugs=preserve-code-formatting · HTML: https://todaywp.com/plugins/preserve-code-formatting
