mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-10 02:07:05 +08:00
Merge pull request #159 from mainwp/bogdan01-cf-autofix
Apply fixes from CodeFactor
This commit is contained in:
commit
d00912c26e
2 changed files with 2 additions and 2 deletions
|
@ -996,7 +996,7 @@ class MainWP_Child_Posts {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function post_plus_update_categories( $new_post_id, $post_custom ) {
|
||||
$random_category = isset( $post_custom['_saved_draft_random_category'] ) ? $post_custom['_saved_draft_random_category'] : false;
|
||||
$random_category = is_array( $random_category ) ? current( $random_category ) : null;
|
||||
|
|
|
@ -121,7 +121,7 @@ class MainWP_Clone {
|
|||
}
|
||||
|
||||
$branding_opts = MainWP_Child_Branding::instance()->get_branding_options();
|
||||
$hide_restore = isset( $branding_opts['remove_restore'] ) && $branding_opts['remove_restore'] ? true : false;
|
||||
$hide_restore = isset( $branding_opts['remove_restore'] ) && $branding_opts['remove_restore'] ? true : false;
|
||||
if ( ! $hide_restore ) {
|
||||
if ( '' == session_id() ) {
|
||||
session_start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue