Skip to content

Commit

Permalink
Fixed security issues, added nav support and automatic-feed-links.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Morris committed Nov 23, 2011
1 parent dab2bf0 commit e9a7596
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<?php

// Table of Contents
// * jQuery CDN
// * Enable / Disable Admin Bar
// * Registering Navigation Menus
// * Adding support for custom comments.php template

// Load a copy of jQuery from Google's CDN instead of the local copy.

function my_scripts_method() {
Expand All @@ -16,14 +10,27 @@ function my_scripts_method() {

add_action('wp_enqueue_scripts', 'my_scripts_method');

// Disable WordPress version reporting as a basic protection against automatic attacks
function remove_generators() {
return '';
}

add_filter('the_generator','remove_generators');

// Disable the admin bar, set to true if you want it to be visible.

show_admin_bar(FALSE);

// Function to create a custom comments.php template, for modification, refer to 'comments.php'.

// Add theme support for Automatic Feed Links

add_theme_support( 'automatic-feed-links' );

// Register Navigation Menus - you can add more if you like!

add_theme_support('nav-menus');

if ( function_exists( 'register_nav_menus' ) ) {
register_nav_menus(
array(
Expand Down Expand Up @@ -263,6 +270,7 @@ function Orbit(){

// Orbit, for WordPress
// Call this where you want the slider

function SliderContent(){

$args = array( 'post_type' => 'Orbit');
Expand Down

0 comments on commit e9a7596

Please sign in to comment.