better sanitize supports page #78
3 changed files with 8 additions and 4 deletions
|
@ -12,6 +12,7 @@ First, install the LBRYPress plugin on WordPress.
|
||||||
|
|
||||||
1) Download the [zip file for this repository](https://github.com/lbryio/lbrypress/archive/master.zip).
|
1) Download the [zip file for this repository](https://github.com/lbryio/lbrypress/archive/master.zip).
|
||||||
1) In WordPress, upload and install the plugin zip file from the WordPress admin dashboard. After activating, errors will show until the next steps are completed.
|
1) In WordPress, upload and install the plugin zip file from the WordPress admin dashboard. After activating, errors will show until the next steps are completed.
|
||||||
|
1) LBRYPress is not currently working correctly with the WordPress block editor, try a plugin that reactivates the classic WP Editor screen. LBRYPress may work in the future with Gutenberg block editor.
|
||||||
|
|
||||||
## Downloading and installing LBRY
|
## Downloading and installing LBRY
|
||||||
This will step you through downloading the LBRY SDK, installing it, and running as a system service.
|
This will step you through downloading the LBRY SDK, installing it, and running as a system service.
|
||||||
|
|
|
@ -56,7 +56,10 @@ class LBRY_Network
|
||||||
array($this, 'meta_box_html'), // Callback function
|
array($this, 'meta_box_html'), // Callback function
|
||||||
'post', // Screen Options (or post type)
|
'post', // Screen Options (or post type)
|
||||||
'side', // Context
|
'side', // Context
|
||||||
'high' // Priority
|
'high', // Priority
|
||||||
|
array(
|
||||||
|
'__block_editor_compatible_meta_box' => false,
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -34,8 +34,8 @@ if ( ( $lbry_published == true ) && ( ( $lbry_claim_id ) ) && ( ! ( $lbry_publis
|
||||||
$lbry_canonical_url = get_post_meta( $post_id, '_lbry_canonical_url', true );
|
$lbry_canonical_url = get_post_meta( $post_id, '_lbry_canonical_url', true );
|
||||||
if ( ! $lbry_canonical_url ) {
|
if ( ! $lbry_canonical_url ) {
|
||||||
$result = LBRY()->daemon->claim_search( $lbry_claim_id );
|
$result = LBRY()->daemon->claim_search( $lbry_claim_id );
|
||||||
$canonical_url = $result->items[0]->canonical_url;
|
$lbry_canonical_url = $result->items[0]->canonical_url;
|
||||||
update_post_meta( $post_id, '_lbry_canonical_url', $canonical_url );
|
update_post_meta( $post_id, '_lbry_canonical_url', $lbry_canonical_url );
|
||||||
}
|
}
|
||||||
$lbry_url = $lbry_canonical_url;
|
$lbry_url = $lbry_canonical_url;
|
||||||
$cur_channel = ( get_post_meta( $post_id, LBRY_POST_PUB_CHANNEL, true ) ? get_post_meta( $post_id, LBRY_POST_PUB_CHANNEL, true ) : get_post_meta( $post_id, '_lbry_channel', true ) );
|
$cur_channel = ( get_post_meta( $post_id, LBRY_POST_PUB_CHANNEL, true ) ? get_post_meta( $post_id, LBRY_POST_PUB_CHANNEL, true ) : get_post_meta( $post_id, '_lbry_channel', true ) );
|
||||||
|
@ -134,4 +134,4 @@ $chan_open_url = ( 'open.lbry.com/'. $lbry_published_channel .'#' . $lbry_channe
|
||||||
LBRY_POST_PUB_LICENSE,
|
LBRY_POST_PUB_LICENSE,
|
||||||
$options
|
$options
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue