Skip to content

Commit 2e0352a

Browse files
committed
Fixed PCP errors
1 parent a3ecfc9 commit 2e0352a

File tree

8 files changed

+15
-17
lines changed

8 files changed

+15
-17
lines changed

includes/admin/settings/class-settings-api.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ public function set_translation_strings( $strings ) {
252252
// Args prefixed with an underscore are reserved for internal use.
253253
$defaults = array(
254254
'page_header' => '',
255-
'reset_message' => __( 'Settings have been reset to their default values. Reload this page to view the updated settings.' ),
256-
'success_message' => __( 'Settings updated.' ),
257-
'save_changes' => __( 'Save Changes' ),
258-
'reset_settings' => __( 'Reset all settings' ),
259-
'reset_button_confirm' => __( 'Do you really want to reset all these settings to their default values?' ),
260-
'checkbox_modified' => __( 'Modified from default setting' ),
255+
'reset_message' => 'Settings have been reset to their default values. Reload this page to view the updated settings.',
256+
'success_message' => 'Settings updated.',
257+
'save_changes' => 'Save Changes',
258+
'reset_settings' => 'Reset all settings',
259+
'reset_button_confirm' => 'Do you really want to reset all these settings to their default values?',
260+
'checkbox_modified' => 'Modified from default setting',
261261
);
262262

263263
$strings = wp_parse_args( $strings, $defaults );
@@ -486,7 +486,7 @@ public function admin_enqueue_scripts( $hook ) {
486486
);
487487
wp_register_script(
488488
'wz-codemirror-js',
489-
plugins_url( 'js/apply-codemirror' . $minimize . '.js', __FILE__ ),
489+
plugins_url( 'js/apply-cm' . $minimize . '.js', __FILE__ ),
490490
array( 'jquery' ),
491491
self::VERSION,
492492
true

includes/admin/settings/class-settings-form.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function get_option( $option, $default_value = '' ) {
115115
*/
116116
public function callback_missing( $args ) {
117117
/* translators: 1: Code. */
118-
printf( esc_html__( 'The callback function used for the %1$s setting is missing.' ), '<strong>' . esc_attr( $args['id'] ) . '</strong>' );
118+
printf( 'The callback function used for the %1$s setting is missing.', '<strong>' . esc_attr( $args['id'] ) . '</strong>' );
119119
}
120120

121121
/**
@@ -478,7 +478,7 @@ public function callback_thumbsizes( $args ) {
478478
$name,
479479
(int) $option['width'],
480480
(int) $option['height'],
481-
(bool) $option['crop'] ? ' ' . __( 'cropped' ) : ''
481+
(bool) $option['crop'] ? ' cropped' : ''
482482
);
483483
}
484484

@@ -704,7 +704,7 @@ public function callback_file( $args ) {
704704
$value = isset( $args['value'] ) ? $args['value'] : $this->get_option( $args['id'], $args['options'] );
705705
$size = sanitize_html_class( isset( $args['size'] ) ? $args['size'] : 'regular' );
706706
$class = sanitize_html_class( $args['field_class'] );
707-
$label = isset( $args['options']['button_label'] ) ? $args['options']['button_label'] : __( 'Choose File' );
707+
$label = isset( $args['options']['button_label'] ) ? $args['options']['button_label'] : 'Choose File';
708708

709709
$html = sprintf(
710710
'<input type="text" class="%1$s" id="%2$s[%3$s]" name="%2$s[%3$s]" value="%4$s"/>',
File renamed without changes.
File renamed without changes.

includes/frontend/templates/archive-wz_knowledgebase.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
// If no content, include the "No posts found" template.
3636
else :
37-
esc_html_e( 'No results found', 'wzkb' );
37+
esc_html_e( 'No results found', 'knowledgebase' );
3838

3939
endif;
4040
?>
@@ -50,5 +50,3 @@
5050

5151
<?php
5252
get_footer();
53-
54-

includes/options-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function wz_tag_search() {
262262

263263
$s = isset( $_REQUEST['q'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['q'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
264264

265-
$comma = _x( ',', 'tag delimiter' );
265+
$comma = _x( ',', 'tag delimiter', 'knowledgebase' );
266266
if ( ',' !== $comma ) {
267267
$s = str_replace( $comma, ',', $s );
268268
}

includes/widgets/class-articles-widget.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ public function form( $instance ) {
6363
</p>
6464
<p>
6565
<label for="<?php echo esc_attr( $this->get_field_id( 'limit' ) ); ?>">
66-
<?php esc_html_e( 'No. of posts', 'contextual-related-posts' ); ?>: <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'limit' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'limit' ) ); ?>" type="text" value="<?php echo esc_attr( $limit ); ?>" />
66+
<?php esc_html_e( 'No. of posts', 'knowledgebase' ); ?>: <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'limit' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'limit' ) ); ?>" type="text" value="<?php echo esc_attr( $limit ); ?>" />
6767
</label>
6868
</p>
6969
<p>
7070
<label for="<?php echo esc_attr( $this->get_field_id( 'show_excerpt' ) ); ?>">
71-
<input id="<?php echo esc_attr( $this->get_field_id( 'show_excerpt' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'show_excerpt' ) ); ?>" type="checkbox" <?php checked( true, $show_excerpt, true ); ?> /> <?php esc_html_e( ' Show excerpt?', 'contextual-related-posts' ); ?>
71+
<input id="<?php echo esc_attr( $this->get_field_id( 'show_excerpt' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'show_excerpt' ) ); ?>" type="checkbox" <?php checked( true, $show_excerpt, true ); ?> /> <?php esc_html_e( ' Show excerpt?', 'knowledgebase' ); ?>
7272
</label>
7373
</p>
7474

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== Knowledge Base ===
22
Contributors: Ajay, webberzone
33
Donate link: https://ajaydsouza.com/donate/
4-
Tags: knowledge base, knowledgebase, FAQ, frequently asked questions, support, documentation
4+
Tags: knowledge base, knowledgebase, FAQ, support, documentation
55
Requires at least: 6.3
66
Tested up to: 6.8
77
Requires PHP: 7.4

0 commit comments

Comments
 (0)