whitespace and general cleanup (#63)
* cleanup, add missing abspath or die on uninstall.php
This commit is contained in:
parent
592c3f9193
commit
dd25f7ea57
7 changed files with 10 additions and 12 deletions
BIN
admin/images/speech-tab.jpg
Normal file
BIN
admin/images/speech-tab.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
|
@ -108,7 +108,7 @@ class LBRYPress
|
|||
$this->define('LBRY_VERSION', $this->version);
|
||||
|
||||
// Library Options Names
|
||||
$this->define('LBRY_SETTINGS_GROUP', 'lbry_settings_group');
|
||||
//$this->define('LBRY_SETTINGS_GROUP', 'lbry_settings_group');
|
||||
$this->define('LBRY_SETTINGS', 'lbry_settings');
|
||||
$this->define('LBRY_SETTINGS_SECTION_GENERAL', 'lbry_settings_section_general');
|
||||
$this->define('LBRY_ADMIN_PAGE', 'lbrypress');
|
||||
|
|
|
@ -290,7 +290,6 @@ class LBRY_Admin
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Checkbox to default to always allow publish on LBRY
|
||||
*/
|
||||
|
@ -305,7 +304,6 @@ class LBRY_Admin
|
|||
'<input type="checkbox" id="lbry_default_publish_setting" name="' . esc_attr('%2$s[%1$s]') . '" value="1" ' . esc_attr( $checked ) . '><p>Set Default to always Publish to <strong>LBRY</strong>, this can be adjusted when publishing a New Post.</p>',
|
||||
'lbry_default_publish_setting',
|
||||
LBRY_SETTINGS,
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -366,7 +364,6 @@ class LBRY_Admin
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Prints LBC per publish input
|
||||
*/
|
||||
|
|
|
@ -33,8 +33,7 @@ class LBRY_Daemon
|
|||
* https://lbry.tech/api/sdk#address_unused
|
||||
* @return string Unused wallet address in base58
|
||||
*/
|
||||
public function wallet_unused_address()
|
||||
{
|
||||
public function wallet_unused_address() {
|
||||
try {
|
||||
$result = $this->request( 'address_unused' );
|
||||
return $result->result;
|
||||
|
|
|
@ -39,6 +39,7 @@ class LBRY_Network
|
|||
|
||||
// Save the post meta on 'save_post' hook
|
||||
add_action( 'wp_insert_post', array( $this, 'save_post_meta' ), 11, 2 );
|
||||
|
||||
// Checkbox inside the WordPres meta box near "Publish" button
|
||||
add_action( 'post_submitbox_misc_actions', array( $this, 'publish_to_lbry_checkbox' ) );
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
*
|
||||
* @package LBRYPress
|
||||
*/
|
||||
defined('ABSPATH') || die(); // Exit if accessed directly
|
||||
|
||||
// if uninstall.php is not called by WordPress, die
|
||||
defined('WP_UNINSTALL_PLUGIN') || die();
|
||||
|
|
Loading…
Reference in a new issue