mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-06 11:10:43 +08:00
parent
148109d980
commit
0d9a1dd3a6
8 changed files with 31 additions and 33 deletions
|
@ -432,7 +432,7 @@ class MainWP_Child_Back_WP_Up {
|
|||
echo '<tr title=""><td>' . __( 'WP-Cron url:', 'mainwp-child' ) . '</td><td>' . esc_html( site_url( 'wp-cron.php' ) ) . '</td></tr>';
|
||||
|
||||
echo '<tr><td>' . __( 'Server self connect:', 'mainwp-child' ) . '</td><td>';
|
||||
$raw_response =\BackWPup_Job::get_jobrun_url( 'test' );
|
||||
$raw_response = \BackWPup_Job::get_jobrun_url( 'test' );
|
||||
$test_result = '';
|
||||
if ( is_wp_error( $raw_response ) ) {
|
||||
$test_result .= sprintf( __( 'The HTTP response test get an error "%s"', 'mainwp-child' ), esc_html( $raw_response->get_error_message() ) );
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace MainWP\Child;
|
||||
|
||||
|
||||
class MainWP_Child_DB {
|
||||
// phpcs:disable WordPress.DB.RestrictedFunctions, WordPress.DB.PreparedSQL.NotPrepared -- unprepared SQL ok, accessing the database directly to custom database functions.
|
||||
// Support old & new versions of WordPress (3.9+).
|
||||
|
|
|
@ -112,7 +112,6 @@ if ( ! function_exists( 'mainwp_child_helper' ) ) {
|
|||
* Get MainWP Child helper instance.
|
||||
*
|
||||
* @return mixed MainWP\Child\MainWP_Helper
|
||||
*
|
||||
*/
|
||||
function mainwp_child_helper() {
|
||||
return MainWP\Child\MainWP_Helper::instance();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue