PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
← All changes | elementor-elements/elementor-init.php +2 -2 1.5.3 → 1.5.9 View file →
@@ -433,9 +433,9 @@
433 433 $post = get_post( $post_id );
434 434
435 435 if ( empty( $post ) ) { // create a new one.
436 436
437 - $post_title = 'WDK Template | #' . substr( md5( rand(0000,9999) ), 0, 4 );
437 + $post_title = 'WDK Template | #' . substr( md5( wp_rand(0000,9999) ), 0, 4 );
438 438
439 439 $params = array(
440 440 'post_content' => '',
441 441 'post_type' => 'elementor_library',
@@ -479,9 +479,9 @@
479 479
480 480 $post_type = array_map( 'sanitize_text_field', $post_type );
481 481
482 482 if ( empty( $post_type ) ) {
483 - wp_send_json_error( __( 'Empty Post Type.', 'premium-addons-for-elementor' ) );
483 + wp_send_json_error( esc_html__( 'Empty Post Type.', 'wpdirectorykit' ) );
484 484 }
485 485
486 486 $list = get_posts(
487 487 array(