Ticket #1671: 1671.3.patch
| File 1671.3.patch, 1.4 KB (added by , 10 years ago) |
|---|
-
inc/user-content.php
62 62 */ 63 63 public static function scripts_and_styles() { 64 64 if ( is_singular() ) { 65 if ( '0' != get_comments_number() || \DevHub\post_type_has_source_code() || wporg_is_handbook_post_type() ) { 65 $is_handbook_post_type = function_exists( 'wporg_is_handbook_post_type' ) ? wporg_is_handbook_post_type() : false; 66 67 if ( '0' != get_comments_number() || \DevHub\post_type_has_source_code() || $is_handbook_post_type ) { 66 68 wp_enqueue_script( 'wporg-developer-function-reference', get_template_directory_uri() . '/js/function-reference.js', array( 'jquery', 'syntaxhighlighter-core', 'syntaxhighlighter-brush-php' ), '20150319', true ); 67 69 wp_enqueue_style( 'syntaxhighlighter-core' ); 68 70 wp_enqueue_style( 'syntaxhighlighter-theme-default' ); -
searchform.php
34 34 <?php } ?> 35 35 36 36 <?php 37 $is_handbook = wporg_is_handbook();37 $is_handbook = function_exists( 'wporg_is_handbook' ) ? wporg_is_handbook() : false; 38 38 $search_url = $is_handbook ? wporg_get_current_handbook_home_url() : home_url( '/' ); 39 39 $form_class = $is_handbook ? ' searchform-handbook' : ''; 40 40 ?>