Commit 351a058f authored by John Ciacia's avatar John Ciacia
Browse files

removing orphaned code

parent 355b8a97
......@@ -14,8 +14,6 @@ class CDN_Rewrite {
const OPTION_GENERAL = 'cdn_general';
private $submenu_general;
private $cdn_root_url;
private $file_extensions;
......@@ -44,11 +42,11 @@ class CDN_Rewrite {
}
public function initialize() {
if (!class_exists('Voce_Settings_Api')) {
if (!class_exists('Voce_Settings_API')) {
return;
}
self::add_options_page();
$this->add_options_page();
if ('' == $this->file_extensions || '' == $this->cdn_root_url) {
add_action('admin_notices', array($this, 'settings_warning'));
return;
......@@ -99,26 +97,6 @@ class CDN_Rewrite {
->add_setting( 'File Extensions for JS Files (optional, defaults to Root URL)', 'js_file_extensions' );
}
/**
* callback to display submenu_external
*
* @return void
*/
function submenu_general() {
?>
<div class="wrap">
<h2>CDN Rewrite Settings</h2>
<form method="post" action="options.php">
<?php settings_fields(self::OPTION_GENERAL); ?>
<?php do_settings_sections($this->submenu_general); ?>
<p class="submit">
<input name="Submit" type="submit" class="button-primary" value="<?php esc_attr_e('Save Changes'); ?>" />
</p>
</form>
</div>
<?php
}
/**
* start output buffering.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment