Automattic / Automattic/jetpack

Janitorial: handle deprecation of TEMPLATEPATH and STYLESHEETPATH

Open
#33,874 3 comments 0 reactions 1 assignee Claimed by @jeherve View on GitHub
[Feature] WPCOM API [Pri] Normal [Type] Janitorial General
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

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**

https://github.com/Automattic/jetpack/blob/413617e798c5e783bfd44af61af907181d97c306/projects/plugins/crm/includes/jpcrm-templating.php#L218

https://github.com/Automattic/jetpack/blob/413617e798c5e783bfd44af61af907181d97c306/projects/plugins/crm/includes/jpcrm-templating.php#L214

**In Jetpack**

https://github.com/Automattic/jetpack/blob/eb7ffd7b2fa6174a02dd9243b4595c7052e97bd9/projects/plugins/jetpack/class.json-api-endpoints.php#L1894

https://github.com/Automattic/jetpack/blob/f121662ca0f60bdfbe4675e2ddfb4c3dbfe79e36/projects/plugins/jetpack/json-endpoints/class.wpcom-json-api-render-endpoint.php#L24

********

Primary issue: #32865

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.