Skip to content

Commit

Permalink
fix inconsistent err
Browse files Browse the repository at this point in the history
  • Loading branch information
shouc committed Mar 27, 2020
1 parent e35cb2d commit e21eac9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions api/sexpert-status.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ function get_sexpert_status(WP_REST_Request $request){
);
}


function change_sexpert_status(WP_REST_Request $request){
global $wpdb, $POST_TABLE_NAME;
if (!authorize("admin")){
Expand All @@ -83,9 +82,8 @@ function change_sexpert_status(WP_REST_Request $request){
);
}

$disabled_banner = _get_config()->disabled_banner;
$CONTENT_ENABLED = "<!-- wp:paragraph --><p>[sexpertform]</p><!-- /wp:paragraph -->";
$CONTENT_DISABLED = "<!-- wp:paragraph --><p>$disabled_banner</p><!-- /wp:paragraph -->";
$CONTENT_DISABLED = "<!-- wp:paragraph -->[smartslider3 slider=4]<p>[sexpertoff]</p><!-- /wp:paragraph -->";
$sexpert_post = $wpdb->get_results(
$wpdb->prepare(
"SELECT * FROM $POST_TABLE_NAME WHERE post_content = %s AND post_status='publish'",
Expand Down
6 changes: 6 additions & 0 deletions home/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,10 @@ function form_creation(){
<button onclick="submit_inquiry()">Submit</button>
</div>
<?php
}


function form_off(){
$disabled_banner = _get_config()->disabled_banner;
return "<p>$disabled_banner</p>";
}

0 comments on commit e21eac9

Please sign in to comment.