Просмотр исходного кода

Merge pull request #179 from maxlapides/master

Bunch of typo fixes in comments
Eddie Machado 13 лет назад
Родитель
Сommit
13c4ece443
5 измененных файлов с 14 добавлено и 14 удалено
  1. 2 2
      functions.php
  2. 3 3
      library/admin.php
  3. 4 4
      library/bones.php
  4. 4 4
      library/custom-post-type.php
  5. 1 1
      library/js/scripts.js

+ 2 - 2
functions.php

@@ -13,7 +13,7 @@ sidebars, comments, ect.
 /*
 /*
 1. library/bones.php
 1. library/bones.php
     - head cleanup (remove rsd, uri links, junk css, ect)
     - head cleanup (remove rsd, uri links, junk css, ect)
-	- enqeueing scripts & styles
+	- enqueueing scripts & styles
 	- theme support functions
 	- theme support functions
     - custom menu output & fallbacks
     - custom menu output & fallbacks
 	- related post function
 	- related post function
@@ -139,7 +139,7 @@ function bones_comments($comment, $args, $depth) {
 			</section>
 			</section>
 			<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
 			<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
 		</article>
 		</article>
-    <!-- </li> is added by wordpress automatically -->
+    <!-- </li> is added by WordPress automatically -->
 <?php
 <?php
 } // don't remove this bracket!
 } // don't remove this bracket!
 
 

+ 3 - 3
library/admin.php

@@ -93,7 +93,7 @@ add_action('wp_dashboard_setup', 'bones_custom_dashboard_widgets');
 
 
 // calling your own login css so you can style it
 // calling your own login css so you can style it
 function bones_login_css() {
 function bones_login_css() {
-	/* i couldn't get wp_enqueue_style to work :( */
+	/* I couldn't get wp_enqueue_style to work :( */
 	echo '<link rel="stylesheet" href="' . get_stylesheet_directory_uri() . '/library/css/login.css">';
 	echo '<link rel="stylesheet" href="' . get_stylesheet_directory_uri() . '/library/css/login.css">';
 }
 }
 
 
@@ -112,8 +112,8 @@ add_filter('login_headertitle', 'bones_login_title');
 /************* CUSTOMIZE ADMIN *******************/
 /************* CUSTOMIZE ADMIN *******************/
 
 
 /*
 /*
-I don't really reccomend editing the admin too much
-as things may get funky if Wordpress updates. Here
+I don't really recommend editing the admin too much
+as things may get funky if WordPress updates. Here
 are a few funtions which you can choose to use if
 are a few funtions which you can choose to use if
 you like.
 you like.
 */
 */

+ 4 - 4
library/bones.php

@@ -106,7 +106,7 @@ function bones_gallery_style($css) {
 
 
 
 
 /*********************
 /*********************
-SCRIPTS & ENQEUEING
+SCRIPTS & ENQUEUEING
 *********************/
 *********************/
 
 
 // loading modernizr and jquery, and reply script 
 // loading modernizr and jquery, and reply script 
@@ -127,7 +127,7 @@ function bones_scripts_and_styles() {
       wp_enqueue_script( 'comment-reply' );
       wp_enqueue_script( 'comment-reply' );
     }
     }
     
     
-    //adding scripts file in the footer
+    // adding scripts file in the footer
     wp_register_script( 'bones-js', get_stylesheet_directory_uri() . '/library/js/scripts.js', array( 'jquery' ), '', true );
     wp_register_script( 'bones-js', get_stylesheet_directory_uri() . '/library/js/scripts.js', array( 'jquery' ), '', true );
     
     
     // enqueue styles and scripts
     // enqueue styles and scripts
@@ -135,7 +135,7 @@ function bones_scripts_and_styles() {
     wp_enqueue_style( 'bones-stylesheet' ); 
     wp_enqueue_style( 'bones-stylesheet' ); 
     wp_enqueue_style('bones-ie-only');
     wp_enqueue_style('bones-ie-only');
     /*
     /*
-    I reccomend using a plugin to call jQuery
+    I recommend using a plugin to call jQuery
     using the google cdn. That way it stays cached
     using the google cdn. That way it stays cached
     and your site will load faster.
     and your site will load faster.
     */
     */
@@ -220,7 +220,7 @@ function bones_main_nav() {
     wp_nav_menu(array( 
     wp_nav_menu(array( 
     	'container' => false,                           // remove nav container
     	'container' => false,                           // remove nav container
     	'container_class' => 'menu clearfix',           // class of container (should you choose to use it)
     	'container_class' => 'menu clearfix',           // class of container (should you choose to use it)
-    	'menu' => 'The Main Menu',                           // nav name
+    	'menu' => 'The Main Menu',                      // nav name
     	'menu_class' => 'nav top-nav clearfix',         // adding custom nav class
     	'menu_class' => 'nav top-nav clearfix',         // adding custom nav class
     	'theme_location' => 'main-nav',                 // where it's located in the theme
     	'theme_location' => 'main-nav',                 // where it's located in the theme
     	'before' => '',                                 // before the menu
     	'before' => '',                                 // before the menu

+ 4 - 4
library/custom-post-type.php

@@ -43,7 +43,7 @@ function custom_post_example() {
 			'query_var' => true,
 			'query_var' => true,
 			'menu_position' => 8, /* this is what order you want it to appear in on the left hand side menu */ 
 			'menu_position' => 8, /* this is what order you want it to appear in on the left hand side menu */ 
 			'menu_icon' => get_stylesheet_directory_uri() . '/library/images/custom-post-icon.png', /* the icon for the custom post type menu */
 			'menu_icon' => get_stylesheet_directory_uri() . '/library/images/custom-post-icon.png', /* the icon for the custom post type menu */
-			'rewrite'	=> array( 'slug' => 'custom_type', 'with_front' => false ), /* you can specify it's url slug */
+			'rewrite'	=> array( 'slug' => 'custom_type', 'with_front' => false ), /* you can specify its url slug */
 			'has_archive' => 'custom_type', /* you can rename the slug here */
 			'has_archive' => 'custom_type', /* you can rename the slug here */
 			'capability_type' => 'post',
 			'capability_type' => 'post',
 			'hierarchical' => false,
 			'hierarchical' => false,
@@ -52,9 +52,9 @@ function custom_post_example() {
 	 	) /* end of options */
 	 	) /* end of options */
 	); /* end of register post type */
 	); /* end of register post type */
 	
 	
-	/* this ads your post categories to your custom post type */
+	/* this adds your post categories to your custom post type */
 	register_taxonomy_for_object_type('category', 'custom_type');
 	register_taxonomy_for_object_type('category', 'custom_type');
-	/* this ads your post tags to your custom post type */
+	/* this adds your post tags to your custom post type */
 	register_taxonomy_for_object_type('post_tag', 'custom_type');
 	register_taxonomy_for_object_type('post_tag', 'custom_type');
 	
 	
 } 
 } 
@@ -70,7 +70,7 @@ function custom_post_example() {
 	// now let's add custom categories (these act like categories)
 	// now let's add custom categories (these act like categories)
     register_taxonomy( 'custom_cat', 
     register_taxonomy( 'custom_cat', 
     	array('custom_type'), /* if you change the name of register_post_type( 'custom_type', then you have to change this */
     	array('custom_type'), /* if you change the name of register_post_type( 'custom_type', then you have to change this */
-    	array('hierarchical' => true,     /* if this is true it acts like categories */             
+    	array('hierarchical' => true,     /* if this is true, it acts like categories */             
     		'labels' => array(
     		'labels' => array(
     			'name' => __( 'Custom Categories', 'bonestheme' ), /* name of the custom taxonomy */
     			'name' => __( 'Custom Categories', 'bonestheme' ), /* name of the custom taxonomy */
     			'singular_name' => __( 'Custom Category', 'bonestheme' ), /* single taxonomy name */
     			'singular_name' => __( 'Custom Category', 'bonestheme' ), /* single taxonomy name */

+ 1 - 1
library/js/scripts.js

@@ -33,7 +33,7 @@ jQuery(document).ready(function($) {
     /*
     /*
     Responsive jQuery is a tricky thing.
     Responsive jQuery is a tricky thing.
     There's a bunch of different ways to handle
     There's a bunch of different ways to handle
-    it so, be sure to research and find the one
+    it, so be sure to research and find the one
     that works for you best.
     that works for you best.
     */
     */