Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Commit

Permalink
minor change to class names
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotcondon committed Nov 30, 2017
1 parent 435c334 commit fb8e184
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions acf-FIELD-NAME/acf-FIELD-NAME.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@


// check if class already exists
if( !class_exists('NAMESPACE_plugin_FIELD_NAME') ) :
if( !class_exists('NAMESPACE_acf_plugin_FIELD_NAME') ) :

class NAMESPACE_plugin_FIELD_NAME {
class NAMESPACE_acf_plugin_FIELD_NAME {

// vars
var $settings;
Expand Down Expand Up @@ -80,15 +80,15 @@ function include_field_types( $version = false ) {


// include
include_once('fields/class-NAMESPACE-field-FIELD-NAME-v' . $version . '.php');
include_once('fields/class-NAMESPACE-acf-field-FIELD-NAME-v' . $version . '.php');

}

}


// initialize
new NAMESPACE_plugin_FIELD_NAME();
new NAMESPACE_acf_plugin_FIELD_NAME();


// class_exists check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@


// check if class already exists
if( !class_exists('NAMESPACE_field_FIELD_NAME') ) :
if( !class_exists('NAMESPACE_acf_field_FIELD_NAME') ) :


class NAMESPACE_field_FIELD_NAME extends acf_field {
class NAMESPACE_acf_field_FIELD_NAME extends acf_field {

// vars
var $settings, // will hold info such as dir / path
Expand Down Expand Up @@ -373,7 +373,7 @@ function update_field( $field, $post_id )


// initialize
new NAMESPACE_field_FIELD_NAME( $this->settings );
new NAMESPACE_acf_field_FIELD_NAME( $this->settings );


// class_exists check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@


// check if class already exists
if( !class_exists('NAMESPACE_field_FIELD_NAME') ) :
if( !class_exists('NAMESPACE_acf_field_FIELD_NAME') ) :


class NAMESPACE_field_FIELD_NAME extends acf_field {
class NAMESPACE_acf_field_FIELD_NAME extends acf_field {


/*
Expand Down Expand Up @@ -557,7 +557,7 @@ function delete_field( $field ) {


// initialize
new NAMESPACE_field_FIELD_NAME( $this->settings );
new NAMESPACE_acf_field_FIELD_NAME( $this->settings );


// class_exists check
Expand Down

0 comments on commit fb8e184

Please sign in to comment.