Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions owa-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function __construct() {
// needed???
ob_start();

// bail if this isn't a request type that OWA needs ot be loaded on.
// bail if this isn't a request type that OWA needs to be loaded on.
if ( ! $this->isProperWordPressRequest() ) {

return;
Expand Down Expand Up @@ -125,7 +125,7 @@ private function isProperWordPressRequest() {
}

/**
* Singelton
* Singleton
*/
static function getInstance() {

Expand Down Expand Up @@ -178,7 +178,7 @@ function _init() {
// Create a new tracked site in OWA
add_action('wpmu_new_blog', array($this, 'createTrackedSiteForNewBlog'), 10, 6);

// remove this if uneeded
// remove this if unneeded
if ( ! $this->isOwaReadyToTrack() ) {

$this->adminMsgs[] = ['message' => 'Open Web Analytics requires that you select a <b>Site ID</b> before tracking can begin.', 'class' => 'notice-warning'];
Expand Down Expand Up @@ -711,7 +711,7 @@ function trackedPostEditAction( $post_id, $post ) {
/**
* Post Action Tracker
*
* Trackes new and edited post actions. Including custom post types.
* Tracks new and edited post actions. Including custom post types.
*/
function trackPostAction( $new_status, $old_status, $post ) {

Expand Down
12 changes: 6 additions & 6 deletions src/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function init() {
}

/**
* Inititalizes Settings Page Objects
* Initializes Settings Page Objects
*
*/
public function initSettingsPage() {
Expand Down Expand Up @@ -196,12 +196,12 @@ public function processAdminConfig() {
// hook settings fields into WordPress
if ( $this->settings ) {

// we need ot init the settings page objects here
// as they are needed by two the callbacks to seperate WordPress Hooks admin_init and admin_menu.
// we need to init the settings page objects here
// as they are needed by the two callbacks to separate WordPress Hooks admin_init and admin_menu.
//$this->initSettingsPage();

add_action( 'admin_init', array($this, 'registerSettings'),10,0);
// regsiter the settings pages with WordPress
// register the settings pages with WordPress
add_action( 'admin_menu', array($this, 'addSettingsPages'), 11,0);

}
Expand All @@ -221,11 +221,11 @@ public function registerSettings() {

//add_action( 'admin_menu', array($this, 'addSettingsPages'), 10, 0 );

// iterate throught group of settings fields.
// iterate through group of settings fields.

foreach ( $this->settings as $group_name => $group ) {

// iterate throug thhe fields in the group
// iterate through the fields in the group
foreach ( $group as $k => $v ) {

// register each field with WordPress
Expand Down
2 changes: 1 addition & 1 deletion src/settings/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class field {
public $validator_callback;

//
// name of the santizer callback to be used
// name of the sanitizer callback to be used
//
public $santizer_callback;

Expand Down
4 changes: 2 additions & 2 deletions src/settings/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function validateAndSanitize( $options ) {

} else {

// set a false value in case it's a boollean type
// set a false value in case it's a boolean type
$sanitized[ $k ] = $f->setFalseValue();
}
}
Expand Down Expand Up @@ -304,7 +304,7 @@ public function renderPage() {
// Outputs Settings Sections and Fields
//
// Sadly this is a replacement for WP's do_settings_sections template function
// because it doesn't allows for filtered output which we need for adding tabs.
// because it doesn't allow for filtered output which we need for adding tabs.
//
// var $page string name of the settings page.
//
Expand Down