Skip to content

Commit

Permalink
cleaning up unused or unecessary functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Sep 18, 2021
1 parent 61e9b10 commit f2f554e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions src/settings/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,6 @@ public function registerSection( $params ) {
add_settings_section( $section->get('id'), $section->get('title'), $section->get('callback'), $this->page_slug );
}

public function echoHtml( $html ) {

echo $html;
}

public function registerField( $key, $params ) {

// Add to params array
Expand Down
7 changes: 1 addition & 6 deletions src/util.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,13 @@ public static function addAction( $hook, $callback, $priority = '', $accepted_ar
return add_action( $hook, $callback, $priority, $accepted_args );
}

public static function escapeOutput( $string ) {

return esc_html( $string );
}

//
// Outputs Localized String
//
//
public static function out( $string ) {

echo ( self::escapeOutput ( $string ) );
echo ( esc_html( $string ) );
}

//
Expand Down

0 comments on commit f2f554e

Please sign in to comment.