Skip to content

Janitorial: handle deprecation of TEMPLATEPATH and STYLESHEETPATH #33874

Open
@jeherve

Description

The TEMPLATEPATH and STYLESHEETPATH constants have been deprecated. get_template_directory() and get_stylesheet_directory() should be used instead.
-- https://core.trac.wordpress.org/ticket/18298

In Jetpack CRM

'path' => TEMPLATEPATH . '/' . $zbs->template_path . '/'

'path' => STYLESHEETPATH . '/' . $zbs->template_path . '/'

In Jetpack

if ( false === defined( 'STYLESHEETPATH' ) ) {


Primary issue: #32865

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions