Skip to content

Files

Latest commit

 

History

History
14 lines (8 loc) · 709 Bytes

WordPress.DB.RestrictedClasses.md

File metadata and controls

14 lines (8 loc) · 709 Bytes

Pattern: Use of DB-restricted class

Issue: -

Description

Verifies that no database related PHP classes are used.

Avoid touching the database directly. If there is a defined function that can get the data you need, use it. Database abstraction (using functions instead of queries) helps keep your code forward-compatible and, in cases where results are cached in memory, it can be many times faster.

Further Reading