Changeset 7357 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/functions.php
- Timestamp:
- 07/02/2018 11:21:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/functions.php
r7350 r7357 171 171 172 172 /** 173 * Filter page templates that require `$rosetta` to be available.174 *175 * @global Rosetta_Sites $rosetta176 *177 * @param array $post_templates Array of page templates. Keys are filenames,178 * values are translated names.179 */180 function rosetta_page_templates( $post_templates ) {181 if ( empty( $GLOBALS['rosetta'] ) ) {182 unset( $post_templates['page-releases.php'] );183 }184 185 return $post_templates;186 }187 add_filter( 'theme_page_templates', __NAMESPACE__ . '\rosetta_page_templates' );188 189 /**190 173 * Passes SEO-optimized title and description to embeds. 191 174 */
Note: See TracChangeset
for help on using the changeset viewer.