Skip to content

Commit ad5669f

Browse files
committed
Fixed PCP
1 parent 4db8b93 commit ad5669f

14 files changed

Lines changed: 41 additions & 42 deletions

add-to-all.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @copyright 2012-2025 Ajay D'Souza
1414
*
1515
* @wordpress-plugin
16-
* Plugin Name: WebberZone Snippetz
16+
* Plugin Name: WebberZone Snippetz - Header, Body and Footer manager
1717
* Version: 2.2.0-beta1
1818
* Plugin URI: https://webberzone.com/plugins/add-to-all/
1919
* Description: A simple yet powerful plugin that allows you to insert any code snippet or script into WordPress.
@@ -79,15 +79,13 @@
7979
// Load the autoloader.
8080
require_once plugin_dir_path( __FILE__ ) . 'includes/autoloader.php';
8181

82-
if ( ! function_exists( __NAMESPACE__ . '\load_wz_snippetz' ) ) {
83-
/**
84-
* The main function responsible for returning the one true WebberZone Snippetz instance to functions everywhere.
85-
*/
86-
function load_wz_snippetz() {
87-
return \WebberZone\Snippetz\Main::get_instance();
88-
}
89-
add_action( 'plugins_loaded', __NAMESPACE__ . '\load_wz_snippetz' );
82+
/**
83+
* The main function responsible for returning the one true WebberZone Snippetz instance to functions everywhere.
84+
*/
85+
function load_wz_snippetz() {
86+
\WebberZone\Snippetz\Main::get_instance();
9087
}
88+
add_action( 'plugins_loaded', __NAMESPACE__ . '\load_wz_snippetz' );
9189

9290
/*
9391
*----------------------------------------------------------------------------

includes/admin/images/support.webp

17.1 KB
Loading

includes/admin/images/twitter.jpg

-2.1 KB
Binary file not shown.

includes/admin/images/x.png

16.9 KB
Loading

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public static function enqueue_scripts_styles() {
162162
);
163163
wp_enqueue_script(
164164
'wz-codemirror-js',
165-
plugins_url( 'js/apply-codemirror' . $minimize . '.js', __FILE__ ),
165+
plugins_url( 'js/apply-cm' . $minimize . '.js', __FILE__ ),
166166
array( 'jquery' ),
167167
self::VERSION,
168168
true

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,12 @@ public function set_translation_strings( $strings ) {
236236
// Args prefixed with an underscore are reserved for internal use.
237237
$defaults = array(
238238
'page_header' => '',
239-
'reset_message' => __( 'Settings have been reset to their default values. Reload this page to view the updated settings.' ),
240-
'success_message' => __( 'Settings updated.' ),
241-
'save_changes' => __( 'Save Changes' ),
242-
'reset_settings' => __( 'Reset all settings' ),
243-
'reset_button_confirm' => __( 'Do you really want to reset all these settings to their default values?' ),
244-
'checkbox_modified' => __( 'Modified from default setting' ),
239+
'reset_message' => 'Settings have been reset to their default values. Reload this page to view the updated settings.',
240+
'success_message' => 'Settings updated.',
241+
'save_changes' => 'Save Changes',
242+
'reset_settings' => 'Reset all settings',
243+
'reset_button_confirm' => 'Do you really want to reset all these settings to their default values?',
244+
'checkbox_modified' => 'Modified from default setting',
245245
);
246246

247247
$strings = wp_parse_args( $strings, $defaults );
@@ -461,7 +461,7 @@ public static function enqueue_scripts_styles() {
461461
);
462462
wp_enqueue_script(
463463
'wz-codemirror-js',
464-
plugins_url( 'js/apply-codemirror' . $minimize . '.js', __FILE__ ),
464+
plugins_url( 'js/apply-cm' . $minimize . '.js', __FILE__ ),
465465
array( 'jquery' ),
466466
self::VERSION,
467467
true

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

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

118118
/**
@@ -470,7 +470,7 @@ public function callback_thumbsizes( $args ) {
470470
$name,
471471
(int) $option['width'],
472472
(int) $option['height'],
473-
(bool) $option['crop'] ? ' ' . __( 'cropped' ) : ''
473+
(bool) $option['crop'] ? ' cropped' : ''
474474
);
475475
}
476476

@@ -688,7 +688,7 @@ public function callback_file( $args ) {
688688
$value = isset( $args['value'] ) ? $args['value'] : $this->get_option( $args['id'], $args['options'] );
689689
$size = sanitize_html_class( isset( $args['size'] ) ? $args['size'] : 'regular' );
690690
$class = sanitize_html_class( $args['field_class'] );
691-
$label = isset( $args['options']['button_label'] ) ? $args['options']['button_label'] : __( 'Choose File' );
691+
$label = isset( $args['options']['button_label'] ) ? $args['options']['button_label'] : 'Choose File';
692692

693693
$html = sprintf(
694694
'<input type="text" class="%1$s" id="%2$s[%3$s]" name="%2$s[%3$s]" value="%4$s"/>',

includes/admin/settings/class-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ public static function settings_feed() {
747747
public static function get_copyright_text() {
748748

749749
$copyrightnotice = '&copy;' . gmdate( 'Y' ) . ' &quot;<a href="' . get_option( 'home' ) . '">' . get_option( 'blogname' ) . '</a>&quot;. ';
750-
$copyrightnotice .= esc_html__( 'Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at ', 'ald_ata_plugin' );
750+
$copyrightnotice .= esc_html__( 'Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at ', 'add-to-all' );
751751
$copyrightnotice .= '<!--email_off-->' . get_option( 'admin_email' ) . '<!--/email_off-->';
752752

753753
/**
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)