Преглед изворни кода

:fire: removing php-console-log

tags/0.9.0
J пре 4 година
родитељ
комит
517c503b81

+ 0
- 53
plugins/php-console-log/admin/css/php-console-log-style.css Прегледај датотеку

@@ -1,53 +0,0 @@
1
-#php-console-log-help {
2
-  max-width: 40%;
3
-}
4
-
5
-#php-console-log-help code {
6
-  font-size: 1em;
7
-  margin-top: 8px;
8
-  padding: 8px;
9
-  line-height: 16px;
10
-  display: block;
11
-}
12
-
13
-#php-console-log-help code span {
14
-  display: block;
15
-  padding-bottom: 2px;
16
-  padding-top: 2px;
17
-}
18
-
19
-#php-console-log-help code span.tab1 {
20
-  padding-left: 20px;
21
-}
22
-
23
-#php-console-log-help code span.tab2 {
24
-  padding-left: 40px;
25
-}
26
-
27
-#php-console-log-help code span.tab3 {
28
-  padding-left: 60px;
29
-}
30
-
31
-#php-console-log-help code span.tab4 {
32
-  padding-left: 80px;
33
-}
34
-
35
-#php-console-log-help .troubleshooting ul {
36
-  display: block;
37
-  list-style-type: disc;
38
-  margin-top: 1em;
39
-  margin-bottom: 1 em;
40
-  margin-left: 0;
41
-  margin-right: 0;
42
-  padding-left: 40px;
43
-}
44
-
45
-#php-console-log-help .troubleshooting li {
46
-  padding-bottom: 5px;
47
-  padding-top: 5px;
48
-}
49
-
50
-#php-console-log-help .troubleshooting li p {
51
-  margin-bottom: 5px;
52
-  margin-top: 0;
53
-}

BIN
plugins/php-console-log/assets/banner-1544x500-rtl.png Прегледај датотеку


BIN
plugins/php-console-log/assets/banner-1544x500.png Прегледај датотеку


BIN
plugins/php-console-log/assets/banner-772x250-rtl.png Прегледај датотеку


BIN
plugins/php-console-log/assets/banner-772x250.png Прегледај датотеку


BIN
plugins/php-console-log/assets/icon-128x128.png Прегледај датотеку


BIN
plugins/php-console-log/assets/icon-256x256.png Прегледај датотеку


+ 0
- 30
plugins/php-console-log/assets/icon.svg
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


BIN
plugins/php-console-log/assets/screenshot-1.png Прегледај датотеку


+ 0
- 44
plugins/php-console-log/includes/php-console-log-menu.php Прегледај датотеку

@@ -1,44 +0,0 @@
1
-<?php
2
-
3
-// If this file is called directly, abort.
4
-if ( !defined( 'WPINC' ) ) {
5
-	die;
6
-}
7
-
8
-/**
9
- * @func php_console_log_help_page()
10
- *
11
- * Create a menu link so PHP_CONSOLE_LOG_PLUGIN_PAGE_LINK_FILTER can add links
12
- * to plugin page. No menu link is actually displayed. This is just a
13
- * placeholder.
14
- *
15
- * @since 1.0.0
16
- */
17
-function php_console_log_help_page() {
18
-	add_submenu_page(
19
-		'php-console-log-placeholder',
20
-		__( 'PHP Console Log Help', 'php-console-log' ),
21
-		__( 'PHP Console Log Help', 'php-console-log' ),
22
-		'manage_options',
23
-		'php-console-log-help',
24
-		'php_console_log_page_help'
25
-	);
26
-}
27
-add_action( 'admin_menu', 'php_console_log_help_page' );
28
-
29
-/**
30
- * @func php_console_log_add_help_link()
31
- *
32
- * Adds a link to PHP Console Log help page on the plugins page in admin.
33
- *
34
- * @since 1.0.0
35
- *
36
- * @param array $links Array of links to show on the plugins page.
37
- * @return array The $links array with Console Log help page link appended to it.
38
- */
39
-function php_console_log_add_help_link( $links ) {
40
-	$help_link = '<a href="admin.php?page=php-console-log-help">' . __( 'Help', 'php-console-log' ) . '</a>';
41
-	array_push( $links, $help_link );
42
-	return $links;
43
-}
44
-add_filter( PHP_CONSOLE_LOG_PLUGIN_PAGE_LINK_FILTER, 'php_console_log_add_help_link' );

+ 0
- 81
plugins/php-console-log/includes/php-console-log-scripts.php Прегледај датотеку

@@ -1,81 +0,0 @@
1
-<?php
2
-
3
-// If this file is called directly, abort.
4
-if ( !defined( 'WPINC' ) ) {
5
-	die;
6
-}
7
-
8
-/**
9
- * @func wp_set_script_translations()
10
- *
11
- * Backport wp_set_script_translations() to WP < 5.0.0. Only if another plugin
12
- * or theme has not already backported it.
13
- *
14
- * @since 1.0.0
15
- */
16
-if ( !function_exists( 'wp_set_script_translations' ) ) {
17
-	function wp_set_script_translations() {}
18
-}
19
-
20
-/**
21
- * @func php_console_log_script()
22
- *
23
- * Load php-console-log.js on all pages. Make php_console_log_array available as
24
- * javascript variable.
25
- *
26
- * @since 1.0.0
27
- *
28
- * @param string/array $php_var_to_console_log PHP string or array to be logged
29
- * to JavaScript console.
30
- */
31
-function php_console_log_script( $php_var_to_console_log ) {
32
-	global $php_console_log_array;
33
-
34
-	// register php-console-log.js
35
-	wp_register_script(
36
-		'php-console-log',
37
-		PHP_CONSOLE_LOG_PLUGIN_DIR_URL . 'js/php-console-log.js',
38
-		['jquery'],
39
-		PHP_CONSOLE_LOG_VERSION
40
-	);
41
-
42
-	/**
43
-	 * @info Build default message sent to web console if PHP Console Log plugin
44
-	 * is active but do_action( 'php_console_log', 'My String or Array' ); is not
45
-	 * called. Built here, in PHP, for i18n backward compatibility with WP < 5.0.0
46
-	 *
47
-	 * @since 1.0.0
48
-	 */
49
-	$cl_do_action = "do_action( 'php_console_log', 'My String or Array' );";
50
-	$cl_new_line = "\n";
51
-	$cl_indent = '   ';
52
-	$cl_default_output = esc_html__(
53
-		sprintf(
54
-			'%3$sPlace the %1$s function anywhere in your WordPress plugin PHP code.%2$s%3$sThe value(s) you pass into %1$s will be logged to the web console in your browser.%2$s%3$sSee "Help" link found on plugins page in your WordPress Admin for more information.%2$s%2$s',
55
-			$cl_do_action,
56
-			$cl_new_line,
57
-			$cl_indent
58
-		)
59
-	);
60
-
61
-	// make php_console_log_array available as javascript variable
62
-	wp_localize_script( 'php-console-log', 'phpConsoleLogI18n', [
63
-		'phpConsoleLogArray' => $php_console_log_array,
64
-		'File' => esc_html__( 'File', 'php-console-log' ),
65
-		'Line' => esc_html__( 'Line', 'php-console-log' ),
66
-		'Args' => esc_html__( 'Args', 'php-console-log' ),
67
-		'clDefaultOutput' => $cl_default_output,
68
-	] );
69
-
70
-	// Load php-console-log.js on all pages
71
-	wp_enqueue_script( 'php-console-log' );
72
-
73
-}
74
-
75
-/**
76
- * @info Load php-console-log.js on all pages of site
77
- * @since 1.0.0
78
- */
79
-add_action( 'wp_enqueue_scripts', 'php_console_log_script', 10, 1 );
80
-add_action( 'admin_enqueue_scripts', 'php_console_log_script', 10, 1 );
81
-add_action( 'login_enqueue_scripts', 'php_console_log_script', 10, 1 );

+ 0
- 25
plugins/php-console-log/includes/php-console-log-styles.php Прегледај датотеку

@@ -1,25 +0,0 @@
1
-<?php
2
-
3
-// If this file is called directly, abort.
4
-if ( !defined( 'WPINC' ) ) {
5
-	die;
6
-}
7
-
8
-/**
9
- * @func php_console_log_admin_styles()
10
- *
11
- * Load stylesheet for PHP Console Log pages.
12
- *
13
- * @since 1.0.0
14
- */
15
-function php_console_log_admin_styles() {
16
-
17
-	wp_enqueue_style(
18
-		'php-console-log-style',
19
-		PHP_CONSOLE_LOG_PLUGIN_DIR_URL . 'admin/css/php-console-log-style.css',
20
-		[],
21
-		PHP_CONSOLE_LOG_VERSION
22
-	);
23
-
24
-}
25
-add_action( 'admin_enqueue_scripts', 'php_console_log_admin_styles', 10 );

+ 0
- 2
plugins/php-console-log/index.php Прегледај датотеку

@@ -1,2 +0,0 @@
1
-<?php
2
-# Silence is golden.

+ 0
- 142
plugins/php-console-log/js/php-console-log.js Прегледај датотеку

@@ -1,142 +0,0 @@
1
-var phpConsoleLogIndentNum = 3,
2
-  phpConsoleLogSeparator = '\n\n',
3
-  phpConsoleLogHeader = '\n<<<<<<<<<<< PHP Console Log <<<<<<<<<<<\n\n',
4
-  phpConsoleLogBody = '',
5
-  phpConsoleLogFooter = '>>>>>>>>>>> PHP Console Log >>>>>>>>>>>\n\n';
6
-
7
-/**
8
- * @func phpConsoleLogIndent(()
9
- *
10
- * Add indentation to single line in global phpConsoleLogBody.
11
- *
12
- * @since 1.0.0
13
- *
14
- * @param number indent The number of spaces to intent current line.
15
- * @return string String of spaces.
16
- */
17
-function phpConsoleLogIndent(indent) {
18
-  var curIndent = '';
19
-  for (var i = 0; i <= indent; i++) {
20
-    curIndent += ' ';
21
-  }
22
-  return curIndent;
23
-}
24
-
25
-/**
26
- * @func phpConsoleLogRecursiveParseObject()
27
- *
28
- * Recursively parse objects passed in. Adds string to global phpConsoleLogBody.
29
- *
30
- * @since 1.0.0
31
- *
32
- * @param object argVal The object to parse.
33
- * @param number indent The number of spaces to intent current line.
34
- */
35
-function phpConsoleLogRecursiveParseObject(argVal, indent) {
36
-
37
-  jQuery.each(argVal, function (objKey, objValue) {
38
-
39
-    if (typeof objValue == 'object') {
40
-
41
-      // add key for this object to global phpConsoleLogBody
42
-      phpConsoleLogBody += phpConsoleLogIndent(indent) + objKey + ':\n';
43
-
44
-      // parse the object
45
-      phpConsoleLogRecursiveParseObject(objValue, indent + 3);
46
-
47
-    } else {
48
-
49
-      // add value of object as string to global phpConsoleLogBody
50
-      phpConsoleLogBody += phpConsoleLogIndent(indent) + objKey + ': ' + objValue + '\n';
51
-
52
-    }
53
-
54
-    // add 1 extra line break after each top level arg passed in
55
-    if (indent == phpConsoleLogIndentNum * 3) {
56
-      phpConsoleLogBody += '\n';
57
-    }
58
-
59
-  });
60
-
61
-}
62
-
63
-/**
64
- * @info Run code only after document is ready. Make $ = jQuery inside this
65
- * function.
66
- * @since 1.0.0
67
- */
68
-jQuery(document).ready(function ($) {
69
-
70
-  var phpConsoleLogNum = 0;
71
-
72
-  /**
73
-   * @info Recursively loop through every php_console_log_array passed from
74
-   * php_console_log() function in php-console-log.php
75
-   * @since 1.0.0
76
-   */
77
-  $.each(phpConsoleLogI18n.phpConsoleLogArray, function (key, phpConsoleLogArray) {
78
-
79
-    // separate and number instances of do_action( 'php_console_log' )
80
-    phpConsoleLogBody += phpConsoleLogIndent(phpConsoleLogIndentNum) + '----------- ' + phpConsoleLogNum + ' -----------\n\n'
81
-
82
-    // path to file do_action( 'php_console_log' ) was used in
83
-    phpConsoleLogBody += phpConsoleLogIndent(phpConsoleLogIndentNum) + phpConsoleLogI18n.File + ': ' + phpConsoleLogArray.file + '\n';
84
-
85
-    // line number do_action( 'php_console_log' ) was used on
86
-    phpConsoleLogBody += phpConsoleLogIndent(phpConsoleLogIndentNum) + phpConsoleLogI18n.Line + ': ' + phpConsoleLogArray.line + '\n';
87
-
88
-    /**
89
-     * @info Loop through every top level arg passed in
90
-     * @since 1.0.0
91
-     */
92
-    $.each(phpConsoleLogArray.args, function (argKey, argVal) {
93
-
94
-      if (typeof argVal === 'object') {
95
-
96
-        /**
97
-         * @info If an array is passed in.
98
-         * @since 1.0.0
99
-         */
100
-
101
-        phpConsoleLogBody += phpConsoleLogIndent(phpConsoleLogIndentNum) + phpConsoleLogI18n.Args + ': ' + '\n\n';
102
-
103
-        phpConsoleLogRecursiveParseObject(argVal, phpConsoleLogIndentNum * 3);
104
-
105
-      } else {
106
-
107
-        /**
108
-         * @info If a non-array (string, boolean, null...) is passed in.
109
-         * @since 1.0.0
110
-         */
111
-
112
-        phpConsoleLogBody += phpConsoleLogIndent(phpConsoleLogIndentNum) + phpConsoleLogI18n.Args + ': ' + ' ' + argVal + '\n\n';
113
-
114
-      }
115
-
116
-    });
117
-
118
-    phpConsoleLogNum++;
119
-
120
-  });
121
-
122
-  /**
123
-   * @info Log to web console only if args are passed in.
124
-   * @since 1.0.0
125
-   */
126
-  if (phpConsoleLogNum > 0) {
127
-
128
-    // build string to log
129
-    var phpConsoleLogOutput = phpConsoleLogHeader + phpConsoleLogBody + phpConsoleLogFooter;
130
-
131
-  } else {
132
-
133
-    // build string to log
134
-    phpConsoleLogBody = phpConsoleLogI18n.clDefaultOutput;
135
-    var phpConsoleLogOutput = phpConsoleLogHeader + phpConsoleLogBody + phpConsoleLogFooter;
136
-
137
-  }
138
-
139
-  // log to web console
140
-  console.log(phpConsoleLogOutput);
141
-
142
-});

+ 0
- 241
plugins/php-console-log/languages/php-console-log.pot Прегледај датотеку

@@ -1,241 +0,0 @@
1
-# PHP Console Log.
2
-# Copyright (C) 2019 Marcus Viar
3
-# This file is distributed under the same license as the PACKAGE package.
4
-#
5
-#, fuzzy
6
-msgid ""
7
-msgstr ""
8
-"Project-Id-Version: PHP Console Log 1.0.0\n"
9
-"Report-Msgid-Bugs-To: marcus@marcusviar.com\n"
10
-"POT-Creation-Date: 2019-07-06 18:16-0500\n"
11
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
-"Language: \n"
14
-"MIME-Version: 1.0\n"
15
-"Content-Type: text/plain; charset=CHARSET\n"
16
-"Content-Transfer-Encoding: 8bit\n"
17
-
18
-#: includes/php-console-log-menu.php:20 includes/php-console-log-menu.php:21
19
-msgid "PHP Console Log Help"
20
-msgstr ""
21
-
22
-#: includes/php-console-log-menu.php:40
23
-msgid "Help"
24
-msgstr ""
25
-
26
-#: includes/php-console-log-scripts.php:65
27
-msgid "File"
28
-msgstr ""
29
-
30
-#: includes/php-console-log-scripts.php:66
31
-msgid "Line"
32
-msgstr ""
33
-
34
-#: includes/php-console-log-scripts.php:67
35
-msgid "Args"
36
-msgstr ""
37
-
38
-#: pages/php-console-log-page-help.php:39
39
-msgid "None."
40
-msgstr ""
41
-
42
-#: pages/php-console-log-page-help.php:39
43
-msgid "loads first."
44
-msgstr ""
45
-
46
-#: pages/php-console-log-page-help.php:77
47
-msgid "Important:"
48
-msgstr ""
49
-
50
-#: pages/php-console-log-page-help.php:78
51
-msgid ""
52
-"For security and performance on a production site, make sure to deactivate "
53
-"this plugin and remove all calls to"
54
-msgstr ""
55
-
56
-#: pages/php-console-log-page-help.php:78
57
-#: pages/php-console-log-page-help.php:85
58
-#: pages/php-console-log-page-help.php:207
59
-#: pages/php-console-log-page-help.php:211
60
-msgid "My String or Array"
61
-msgstr ""
62
-
63
-#: pages/php-console-log-page-help.php:78
64
-msgid ""
65
-"from your PHP code before going live to avoid exposing your PHP variables to "
66
-"the public."
67
-msgstr ""
68
-
69
-#: pages/php-console-log-page-help.php:80
70
-msgid "Plugins That Load Before PHP Console Log"
71
-msgstr ""
72
-
73
-#: pages/php-console-log-page-help.php:81
74
-msgid ""
75
-"PHP Console Log's functions are not accessible to any plugins that load "
76
-"before PHP Console Log is loaded. Therefore, Any plugins listed here will "
77
-"not be able to use PHP Console Log features."
78
-msgstr ""
79
-
80
-#: pages/php-console-log-page-help.php:84
81
-msgid "Examples:"
82
-msgstr ""
83
-
84
-#: pages/php-console-log-page-help.php:85
85
-msgid "Place the"
86
-msgstr ""
87
-
88
-#: pages/php-console-log-page-help.php:85
89
-msgid ""
90
-"function anywhere in your WordPress plugin PHP code. The value(s) "
91
-"you pass into"
92
-msgstr ""
93
-
94
-#: pages/php-console-log-page-help.php:85
95
-msgid "will be logged to the web console in your browser."
96
-msgstr ""
97
-
98
-#: pages/php-console-log-page-help.php:88
99
-msgid "Pass in a string:"
100
-msgstr ""
101
-
102
-#: pages/php-console-log-page-help.php:98
103
-msgid "Pass in an array:"
104
-msgstr ""
105
-
106
-#: pages/php-console-log-page-help.php:111
107
-msgid "Pass in an associative array:"
108
-msgstr ""
109
-
110
-#: pages/php-console-log-page-help.php:124
111
-msgid ""
112
-"Pass in an unlimited number of arguments nested to an unlimited depth (multi-"
113
-"dimensional array):"
114
-msgstr ""
115
-
116
-#: pages/php-console-log-page-help.php:150
117
-msgid "Opening Web Console in your browser:"
118
-msgstr ""
119
-
120
-#: pages/php-console-log-page-help.php:156
121
-msgid ""
122
-"Press Command + Option + J (Mac) or Control + Shift + J (Windows, Linux, "
123
-"Chrome OS) to jump straight into the Console panel."
124
-msgstr ""
125
-
126
-#: pages/php-console-log-page-help.php:158
127
-#: pages/php-console-log-page-help.php:167
128
-#: pages/php-console-log-page-help.php:175
129
-msgid "source"
130
-msgstr ""
131
-
132
-#: pages/php-console-log-page-help.php:163
133
-msgid ""
134
-"Select Web Console from the Web Developer submenu in the Firefox Menu (or "
135
-"Tools menu if you display the menu bar or are on Mac OS X)."
136
-msgstr ""
137
-
138
-#: pages/php-console-log-page-help.php:165
139
-msgid "OR"
140
-msgstr ""
141
-
142
-#: pages/php-console-log-page-help.php:166
143
-msgid ""
144
-"Press the Ctrl + Shift + K (Command + Option + K on OS X) keyboard shortcut."
145
-msgstr ""
146
-
147
-#: pages/php-console-log-page-help.php:172
148
-msgid "Select Develop menu in the menu bar, choose Show JavaScript Console."
149
-msgstr ""
150
-
151
-#: pages/php-console-log-page-help.php:174
152
-msgid ""
153
-"If you dont see the Develop menu in the menu bar, choose Safari > "
154
-"Preferences, click Advanced, then select \"Show Develop menu in menu bar\"."
155
-msgstr ""
156
-
157
-#: pages/php-console-log-page-help.php:180
158
-msgid "Troubleshooting:"
159
-msgstr ""
160
-
161
-#: pages/php-console-log-page-help.php:181
162
-msgid ""
163
-"The most common reasons that cause PHP Console Log to fail when logging your "
164
-"information to the web console are:"
165
-msgstr ""
166
-
167
-#: pages/php-console-log-page-help.php:186
168
-#: pages/php-console-log-page-help.php:196
169
-#: pages/php-console-log-page-help.php:206
170
-#: pages/php-console-log-page-help.php:216
171
-msgid "Cause:"
172
-msgstr ""
173
-
174
-#: pages/php-console-log-page-help.php:187
175
-msgid "The PHP Console log plugin is not activated."
176
-msgstr ""
177
-
178
-#: pages/php-console-log-page-help.php:190
179
-#: pages/php-console-log-page-help.php:200
180
-#: pages/php-console-log-page-help.php:210
181
-#: pages/php-console-log-page-help.php:220
182
-msgid "Solution:"
183
-msgstr ""
184
-
185
-#: pages/php-console-log-page-help.php:191
186
-msgid "Activate the PHP Console Log Plugin."
187
-msgstr ""
188
-
189
-#: pages/php-console-log-page-help.php:197
190
-msgid ""
191
-"Another plugin has changed the order in which your plugins load. Making the "
192
-"PHP Console Log functions not available yet."
193
-msgstr ""
194
-
195
-#: pages/php-console-log-page-help.php:201
196
-msgid ""
197
-"PHP Console Log updates the order in which plugins are loaded any time a "
198
-"plugin is activated or deactivated. However, it is still possible for other "
199
-"plugins to change the order in which plugins load afterwards. Deactivate any "
200
-"plugins that change the order in which your plugins load."
201
-msgstr ""
202
-
203
-#: pages/php-console-log-page-help.php:207
204
-msgid "was called inside a block of code that was not run."
205
-msgstr ""
206
-
207
-#: pages/php-console-log-page-help.php:211
208
-msgid "Make sure the function you called"
209
-msgstr ""
210
-
211
-#: pages/php-console-log-page-help.php:211
212
-msgid "in is run via an action or filter hook such as:"
213
-msgstr ""
214
-
215
-#: pages/php-console-log-page-help.php:211
216
-msgid "Or call"
217
-msgstr ""
218
-
219
-#: pages/php-console-log-page-help.php:211
220
-msgid "outside of any other functions in a file that you know is run."
221
-msgstr ""
222
-
223
-#: pages/php-console-log-page-help.php:217
224
-msgid "PHP throws errors."
225
-msgstr ""
226
-
227
-#: pages/php-console-log-page-help.php:217
228
-msgid "Side Note:"
229
-msgstr ""
230
-
231
-#: pages/php-console-log-page-help.php:217
232
-msgid "Make sure you are using"
233
-msgstr ""
234
-
235
-#: pages/php-console-log-page-help.php:217
236
-msgid "in your wp-config.php file so you can see PHP errors."
237
-msgstr ""
238
-
239
-#: pages/php-console-log-page-help.php:221
240
-msgid "Fix the error that PHP is showing you. Then try again."
241
-msgstr ""

+ 0
- 229
plugins/php-console-log/pages/php-console-log-page-help.php Прегледај датотеку

@@ -1,229 +0,0 @@
1
-<?php
2
-
3
-// If this file is called directly, abort.
4
-if ( !defined( 'WPINC' ) ) {
5
-	die;
6
-}
7
-
8
-/**
9
- * @func php_console_log_get_active_plugins()
10
- *
11
- * Retrieve list of active plugins from active_plugins row in the options table
12
- * of the database. Evaluate if any plugins load before PHP Console Log.
13
- *
14
- * @since 1.0.0
15
- *
16
- * @return string HTML ordered list of active plugins that load before PHP
17
- * Console Log plugin or string stating PHP Console Log is the first plugin
18
- * loaded.
19
- */
20
-function php_console_log_get_active_plugins() {
21
-	$plugin_list = array();
22
-	$plugins = get_option( 'active_plugins' );
23
-
24
-	// get key of PHP Console Log plugin
25
-	$key = array_search( PHP_CONSOLE_LOG_PLUGIN_BASENAME, $plugins );
26
-
27
-	// if PHP Console Log is not the first plugin in the array
28
-	if ( $key > 0 ) {
29
-
30
-		// add every plugin that loads before PHP Console Log to $plugin_list array
31
-		for ( $i = 0; $i < $key; $i++ ) {
32
-			$plugin_list[] = $plugins[$i];
33
-		}
34
-
35
-	}
36
-
37
-	// set default response
38
-	// $return_html = '<p>None. PHP Console Log loads first.</p>';
39
-	$return_html = '<p>' . esc_html__( 'None.', 'php-console-log' ) . ' PHP Console Log ' . esc_html__( 'loads first.', 'php-console-log' ) . '</p>';
40
-
41
-	// build HTML ordered list of all plugins that load before PHP Console Log
42
-	if ( count( $plugin_list ) ) {
43
-		$return_html = '<ol>';
44
-		foreach ( $plugin_list as $this_key => $plugin_path ) {
45
-			// return PHP_CONSOLE_LOG_WP_PLUGIN_DIR_PATH . $plugin_path;
46
-			$this_plugin_data = get_plugin_data( PHP_CONSOLE_LOG_WP_PLUGIN_DIR_PATH . $plugin_path, false, true );
47
-			$return_html .= '<li>' . $this_plugin_data['Name'] . '</li>';
48
-		}
49
-		$return_html .= '</ol>';
50
-
51
-	}
52
-
53
-	echo $return_html;
54
-
55
-	// printf( esc_html__( '%s', 'php-console-log' ), $return_html );
56
-
57
-}
58
-
59
-/**
60
- * @func php_console_log_page_help()
61
- *
62
- * Build and output help page.
63
- *
64
- * @since 1.0.0
65
- *
66
- */
67
-function php_console_log_page_help() {
68
-
69
-	// Double check user capabilities
70
-	if ( !current_user_can( 'manage_options' ) ) {
71
-		return;
72
-	}
73
-	?>
74
-<div id="php-console-log-help" class="wrap">
75
-  <h1><?php esc_html_e( get_admin_page_title() );?></h1>
76
-
77
-  <h3><?php esc_html_e( 'Important:', 'php-console-log' );?></h3>
78
-  <p><?php esc_html_e( 'For security and performance on a production site, make sure to deactivate this plugin and remove all calls to', 'php-console-log' );?> <strong>do_action( 'php_console_log', '<?php esc_html_e( 'My String or Array', 'php-console-log' );?>' );</strong> <?php esc_html_e( 'from your PHP code before going live to avoid exposing your PHP variables to the public.', 'php-console-log' );?></p>
79
-
80
-  <h3><?php esc_html_e( 'Plugins That Load Before PHP Console Log', 'php-console-log' );?></h3>
81
-  <p><?php esc_html_e( 'PHP Console Log\'s functions are not accessible to any plugins that load before PHP Console Log is loaded. Therefore, Any plugins listed here will not be able to use PHP Console Log features.', 'php-console-log' );?></p>
82
-  <code><?php php_console_log_get_active_plugins();?></code>
83
-
84
-  <h3><?php esc_html_e( 'Examples:', 'php-console-log' );?></h3>
85
-  <p><?php esc_html_e( 'Place the', 'php-console-log' );?> <strong>do_action( 'php_console_log', '<?php esc_html_e( 'My String or Array', 'php-console-log' );?>' );</strong> <?php esc_html_e( 'function anywhere in your WordPress plugin PHP code. The value(s) you pass into', 'php-console-log' );?> <strong>do_action( 'php_console_log', '<?php esc_html_e( 'My String or Array', 'php-console-log' );?>' );</strong> <?php esc_html_e( 'will be logged to the web console in your browser.', 'php-console-log' );?></p>
86
-
87
-  <p>
88
-    <strong><?php esc_html_e( 'Pass in a string:', 'php-console-log' );?></strong>
89
-  </p>
90
-  <p>
91
-    <code>
92
-      <span>$my_string = 'My String';</span>
93
-      <span>do_action( 'php_console_log', $my_string );</span>
94
-    </code>
95
-  </p>
96
-
97
-  <p>
98
-    <strong><?php esc_html_e( 'Pass in an array:', 'php-console-log' );?></strong>
99
-  </p>
100
-  <p>
101
-    <code>
102
-      <span>$my_array = array(</span>
103
-      <span class="tab2">'elm 1',</span>
104
-      <span class="tab2">'elm 2',</span>
105
-      <span class="tab1">);</span>
106
-      <span>do_action( 'php_console_log', $my_array );</span>
107
-    </code>
108
-  </p>
109
-
110
-  <p>
111
-    <strong><?php esc_html_e( 'Pass in an associative array:', 'php-console-log' );?></strong>
112
-  </p>
113
-  <p>
114
-    <code>
115
-      <span>$my_array = array(</span>
116
-      <span class="tab2">'key 1'=>'elm 1',</span>
117
-      <span class="tab2">'key 2'=>'elm 2',</span>
118
-      <span class="tab1">);</span>
119
-      <span>do_action( 'php_console_log', $my_array);</span>
120
-    </code>
121
-  </p>
122
-
123
-  <p>
124
-    <strong><?php esc_html_e( 'Pass in an unlimited number of arguments nested to an unlimited depth (multi-dimensional array):', 'php-console-log' );?></strong>
125
-  </p>
126
-  <p>
127
-    <code>
128
-      <span>$my_array = array(</span>
129
-      <span class="tab2">'My String 1',</span>
130
-      <span class="tab2">'My String 2',</span>
131
-      <span class="tab2">array(</span>
132
-      <span class="tab3">'elm 1',</span>
133
-      <span class="tab3">'elm 2',</span>
134
-      <span class="tab2">),</span>
135
-      <span class="tab2">'My String 3',</span>
136
-      <span class="tab2">array(</span>
137
-      <span class="tab3">'key 1'=>'elm 1',</span>
138
-      <span class="tab3">'key 2'=>'elm 2',</span>
139
-      <span class="tab3">'key 3' => array(</span>
140
-      <span class="tab4">'key 3a' => 'elm 3a',</span>
141
-      <span class="tab4">'key 3b' => 'elm 3b',</span>
142
-      <span class="tab3">),</span>
143
-      <span class="tab2">),</span>
144
-      <span class="tab2">'My String 4'</span>
145
-      <span class="tab1">);</span>
146
-      <span>do_action( 'php_console_log', $my_array);</span>
147
-    </code>
148
-  </p>
149
-
150
-  <h3><?php esc_html_e( 'Opening Web Console in your browser:', 'php-console-log' );?></h3>
151
-  <div class="troubleshooting">
152
-    <ul>
153
-      <li>
154
-        <p>
155
-          <strong>Chrome:</strong><br>
156
-          <?php esc_html_e( 'Press Command + Option + J (Mac) or Control + Shift + J (Windows, Linux, Chrome OS) to jump straight into the Console panel.', 'php-console-log' );?>
157
-        </p>
158
-        <p><?php esc_html_e( 'source', 'php-console-log' );?>: <a href="https://developers.google.com/web/tools/chrome-devtools/open#console">https://developers.google.com/web/tools/chrome-devtools/open#console</a></p>
159
-      </li>
160
-      <li>
161
-        <p>
162
-          <strong>Firefox:</strong><br>
163
-          <?php esc_html_e( 'Select Web Console from the Web Developer submenu in the Firefox Menu (or Tools menu if you display the menu bar or are on Mac OS X).', 'php-console-log' );?>
164
-        </p>
165
-        <p><strong><?php esc_html_e( 'OR', 'php-console-log' );?></strong></p>
166
-        <p><?php esc_html_e( 'Press the Ctrl + Shift + K (Command + Option + K on OS X) keyboard shortcut.', 'php-console-log' );?></p>
167
-        <p><?php esc_html_e( 'source', 'php-console-log' );?>: <a href="https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Opening_the_Web_Console">https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Opening_the_Web_Console</a></p>
168
-      </li>
169
-      <li>
170
-        <p>
171
-          <strong>Safari:</strong><br>
172
-          <?php esc_html_e( 'Select Develop menu in the menu bar, choose Show JavaScript Console.', 'php-console-log' );?>
173
-        </p>
174
-        <p><?php esc_html_e( 'If you don\'t see the Develop menu in the menu bar, choose Safari > Preferences, click Advanced, then select "Show Develop menu in menu bar".', 'php-console-log' );?></p>
175
-        <p><?php esc_html_e( 'source', 'php-console-log' );?>: <a href="https://support.apple.com/guide/safari-developer/develop-menu-dev39df999c1/mac">https://support.apple.com/guide/safari-developer/develop-menu-dev39df999c1/mac</a></p>
176
-      </li>
177
-    </ul>
178
-  </div>
179
-
180
-  <h3><?php esc_html_e( 'Troubleshooting:', 'php-console-log' );?></h3>
181
-  <p><?php esc_html_e( 'The most common reasons that cause PHP Console Log to fail when logging your information to the web console are:', 'php-console-log' );?></p>
182
-  <div class="troubleshooting">
183
-    <ol>
184
-      <li>
185
-        <p>
186
-          <strong><?php esc_html_e( 'Cause:', 'php-console-log' );?></strong><br>
187
-          <?php esc_html_e( 'The PHP Console log plugin is not activated.', 'php-console-log' );?>
188
-        </p>
189
-        <p>
190
-          <strong><?php esc_html_e( 'Solution:', 'php-console-log' );?></strong><br>
191
-          <?php esc_html_e( 'Activate the PHP Console Log Plugin.', 'php-console-log' );?>
192
-        </p>
193
-      </li>
194
-      <li>
195
-        <p>
196
-          <strong><?php esc_html_e( 'Cause:', 'php-console-log' );?></strong><br>
197
-          <?php esc_html_e( 'Another plugin has changed the order in which your plugins load. Making the PHP Console Log functions not available yet.', 'php-console-log' );?>
198
-        </p>
199
-        <p>
200
-          <strong><?php esc_html_e( 'Solution:', 'php-console-log' );?></strong><br>
201
-          <?php esc_html_e( 'PHP Console Log updates the order in which plugins are loaded any time a plugin is activated or deactivated. However, it is still possible for other plugins to change the order in which plugins load afterwards. Deactivate any plugins that change the order in which your plugins load.', 'php-console-log' );?>
202
-        </p>
203
-      </li>
204
-      <li>
205
-        <p>
206
-          <strong><?php esc_html_e( 'Cause:', 'php-console-log' );?></strong><br>
207
-          <strong>do_action( 'php_console_log', '<?php esc_html_e( 'My String or Array', 'php-console-log' );?>' );</strong> <?php esc_html_e( 'was called inside a block of code that was not run.', 'php-console-log' );?>
208
-        </p>
209
-        <p>
210
-          <strong><?php esc_html_e( 'Solution:', 'php-console-log' );?></strong><br>
211
-          <?php esc_html_e( 'Make sure the function you called', 'php-console-log' );?> <strong>do_action( 'php_console_log', '<?php esc_html_e( 'My String or Array', 'php-console-log' );?>' );</strong> <?php esc_html_e( 'in is run via an action or filter hook such as:', 'php-console-log' );?> <strong>add_action( 'init', 'my_function' );</strong> <?php esc_html_e( 'Or call', 'php-console-log' );?> <strong>do_action( 'php_console_log', '<?php esc_html_e( 'My String or Array', 'php-console-log' );?>' );</strong> <?php esc_html_e( 'outside of any other functions in a file that you know is run.', 'php-console-log' );?>
212
-        </p>
213
-      </li>
214
-      <li>
215
-        <p>
216
-          <strong><?php esc_html_e( 'Cause:', 'php-console-log' );?></strong><br>
217
-          <?php esc_html_e( 'PHP throws errors.', 'php-console-log' );?> <strong><?php esc_html_e( 'Side Note:', 'php-console-log' );?></strong> <?php esc_html_e( 'Make sure you are using', 'php-console-log' );?> <strong>define( 'WP_DEBUG', true );</strong> <?php esc_html_e( 'in your wp-config.php file so you can see PHP errors.', 'php-console-log' );?>
218
-        </p>
219
-        <p>
220
-          <strong><?php esc_html_e( 'Solution:', 'php-console-log' );?></strong><br>
221
-          <?php esc_html_e( 'Fix the error that PHP is showing you. Then try again.', 'php-console-log' );?>
222
-        </p>
223
-      </li>
224
-    </ol>
225
-  </div>
226
-
227
-</div>
228
-<?php
229
-}

+ 0
- 183
plugins/php-console-log/php-console-log.php Прегледај датотеку

@@ -1,183 +0,0 @@
1
-<?php
2
-/*
3
-Plugin Name: PHP Console Log
4
-Plugin URI: https://marcusviar.com/php-console-log
5
-Description: Log PHP variables and arrays to the web console in your browser via JavaScript's console.log(). No browser extensions required.
6
-Version: 1.0.1
7
-Contributors: marcusviar
8
-Author: Marcus Viar
9
-Author URI: https://profiles.wordpress.org/marcusviar/
10
-License: GPLv2 or later
11
-License URI:  https://www.gnu.org/licenses/gpl-2.0.html
12
-Text Domain: php-console-log
13
-Domain Path: /languages/
14
-*/
15
-
16
-// If this file is called directly, abort.
17
-if ( !defined( 'WPINC' ) ) {
18
-	die;
19
-}
20
-
21
-/**
22
- * @info Define constants for use throughout the plugin.
23
- *
24
- * @since 1.0.0
25
- *
26
- * @var string PHP_CONSOLE_LOG_PLUGIN_BASENAME Plugin folder and file name.
27
- * @var string PHP_CONSOLE_LOG_PLUGIN_DIR_PATH Absolute path to plugin directory.
28
- * @var string PHP_CONSOLE_LOG_PLUGIN_DIR_NAME This plugins directory name.
29
- * @var string PHP_CONSOLE_LOG_WP_PLUGIN_DIR_PATH Absolute path to WP plugin directory.
30
- * @var string PHP_CONSOLE_LOG_PLUGINS_URL URL to WordPress plugins directory.
31
- * @var string PHP_CONSOLE_LOG_PLUGIN_DIR_URL Url to PHP_CONSOLE_LOG plugin directory.
32
- * @var string PHP_CONSOLE_LOG_PLUGIN_PAGE_LINK_FILTER Builds filter name for links on plugin page.
33
- * @var string PHP_CONSOLE_LOG_VERSION The version number for this plugin.
34
- */
35
-define( 'PHP_CONSOLE_LOG_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
36
-define( 'PHP_CONSOLE_LOG_PLUGIN_DIR_PATH', plugin_dir_path( __FILE__ ) );
37
-define( 'PHP_CONSOLE_LOG_PLUGIN_DIR_NAME', dirname( PHP_CONSOLE_LOG_PLUGIN_BASENAME ) );
38
-define( 'PHP_CONSOLE_LOG_WP_PLUGIN_DIR_PATH', plugin_dir_path( __DIR__ ) );
39
-define( 'PHP_CONSOLE_LOG_PLUGINS_URL', plugins_url( __FILE__ ) );
40
-define( 'PHP_CONSOLE_LOG_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) );
41
-define( 'PHP_CONSOLE_LOG_PLUGIN_PAGE_LINK_FILTER', "plugin_action_links_" . PHP_CONSOLE_LOG_PLUGIN_BASENAME );
42
-define( 'PHP_CONSOLE_LOG_VERSION', '1.0.1' );
43
-
44
-/**
45
- * @info Build menu.
46
- * @since 1.0.0
47
- */
48
-include 'includes/php-console-log-menu.php';
49
-
50
-/**
51
- * @info Load styles.
52
- * @since 1.0.0
53
- */
54
-include 'includes/php-console-log-styles.php';
55
-
56
-/**
57
- * @info Load scripts.
58
- * @since 1.0.0
59
- */
60
-include 'includes/php-console-log-scripts.php';
61
-
62
-/**
63
- * @info Build pages.
64
- * @since 1.0.0
65
- */
66
-include 'pages/php-console-log-page-help.php';
67
-
68
-/**
69
- * @info Global array that will be logged to the web Console.
70
- * @since 1.0.0
71
- */
72
-$php_console_log_array = array();
73
-
74
-/**
75
- * @func php_console_log_load_plugin_textdomain()
76
- *
77
- * Load textdomain to allow translations for this plugin.
78
- *
79
- * @since 1.0.0
80
- *
81
- */
82
-function php_console_log_load_plugin_textdomain() {
83
-	load_plugin_textdomain( 'php-console-log', false, PHP_CONSOLE_LOG_PLUGIN_DIR_NAME . '/languages/' );
84
-}
85
-add_action( 'plugins_loaded', 'php_console_log_load_plugin_textdomain' );
86
-
87
-/**
88
- * @func php_console_log()
89
- *
90
- * Function the end user places in any plugin PHP file. Accepts any
91
- * number of arguments that will be logged to the web Console (your browser's
92
- * console) via JavaScript's console.log().
93
- *
94
- * @since 1.0.0
95
- *
96
- * @param string/array PHP strings or arrays to be logged to web console via
97
- * php-console-log.js.
98
- */
99
-function php_console_log() {
100
-	// uses global so php_console_log() can be used multiple times and not
101
-	// overwrite itself
102
-	global $php_console_log_array;
103
-	// number of arguments passed to this function
104
-	$num_args = func_num_args();
105
-	if ( $num_args > 0 ) {
106
-		// array of arguments passed to this function
107
-		$arg_list = func_get_args();
108
-
109
-		// set backtrace key based on WordPress version number
110
-		global $wp_version;
111
-		$backtrack_key = 3;
112
-		if ( $wp_version < 4.7 ) {
113
-			$backtrack_key = 1;
114
-		}
115
-		// backtrace args key is always 0
116
-		$backtrack_args_key = 0;
117
-
118
-		foreach ( $arg_list as $arg_value ) {
119
-			// build backtrace info
120
-			$backtrace = debug_backtrace();
121
-
122
-			// path to file do_action( 'php_console_log' ) was used in
123
-			$backtrace_array['file'] = $backtrace[$backtrack_key]['file'];
124
-
125
-			// line number do_action( 'php_console_log' ) was used on
126
-			$backtrace_array['line'] = $backtrace[$backtrack_key]['line'];
127
-
128
-			// args passed in with do_action( 'php_console_log' )
129
-			$backtrace_array['args'] = $backtrace[$backtrack_args_key]['args'];
130
-
131
-			// add each argument to the global $php_console_log_array
132
-			$php_console_log_array[] = $backtrace_array;
133
-
134
-		}
135
-
136
-	}
137
-}
138
-
139
-/**
140
- * @info Custom action that is called by end user to log info to web console.
141
- * @since 1.0.0
142
- */
143
-add_action( 'php_console_log', 'php_console_log' );
144
-
145
-/**
146
- * @func php_console_log_load_first()
147
- *
148
- * Make sure PHP Console Log plugin is loaded first so
149
- * do_action('php_console_log' ) can be used in other plugins. Runs when a
150
- * plugin is activated and deactivated. Option "active_plugins" order in the
151
- * options table of the database can be changed by other plugins after this
152
- * runs. Any plugin that loads before PHP Console Log will not be able to use
153
- * this plugin's features.
154
- *
155
- * @since 1.0.0
156
- *
157
- */
158
-function php_console_log_load_first() {
159
-
160
-	// get active_plugins row from options table
161
-	if ( $plugins = get_option( 'active_plugins' ) ) {
162
-
163
-		// if PHP Console Log plugin is not the first element in active_plugins array
164
-		if ( $key = array_search( PHP_CONSOLE_LOG_PLUGIN_BASENAME, $plugins ) ) {
165
-
166
-			// make PHP Console Log plugin first in active_plugins array
167
-			array_splice( $plugins, $key, 1 );
168
-			array_unshift( $plugins, PHP_CONSOLE_LOG_PLUGIN_BASENAME );
169
-
170
-			// update active_plugins row in options table
171
-			update_option( 'active_plugins', $plugins );
172
-
173
-		}
174
-	}
175
-}
176
-
177
-/**
178
- * @info Set PHP Console Log as first plugin to load when any plugin is
179
- * activated or deactivated.
180
- * @since 1.0.0
181
- */
182
-add_action( 'activated_plugin', 'php_console_log_load_first' );
183
-add_action( 'deactivated_plugin', 'php_console_log_load_first' );

+ 0
- 151
plugins/php-console-log/readme.txt Прегледај датотеку

@@ -1,151 +0,0 @@
1
-=== PHP Console Log ===
2
-Contributors: marcusviar
3
-Donate link: https://paypal.me/marcusviar
4
-Tags: console log, debug, browser, development, php, web console, console, log, debugging, errors, dev, javascript
5
-Requires at least: 4.4
6
-Tested up to: 5.3.2
7
-Stable tag: 1.0.1
8
-Requires PHP: 5.6.20
9
-License: GPLv2 or later
10
-License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
-
12
-Log PHP variables and arrays to the web console in your browser via JavaScript's console.log(). No browser extensions required.
13
-
14
-== Description ==
15
-
16
-= Examples =
17
-
18
-Place the **do_action( 'php_console_log', 'My String or Array' );** function anywhere in your WordPress plugin PHP code. The value(s) you pass into **do_action( 'php_console_log', 'My String or Array' );** will be logged to the web console in your browser.
19
-
20
-= Pass in a string =
21
-
22
-`$my_string = 'My String';
23
-do_action( 'php_console_log', $my_string );`
24
-
25
-= Pass in an array =
26
-
27
-`$my_array = array(
28
-    'elm 1'
29
-    'elm 2',
30
-);
31
-do_action( 'php_console_log', $my_array );`
32
-
33
-= Pass in an associative array =
34
-
35
-`$my_array = array(
36
-    'key 1'=>'elm 1',
37
-    'key 2'=>'elm 2',
38
-);
39
-do_action( 'php_console_log', $my_array);`
40
-
41
-=  Pass in an unlimited number of arguments nested to an unlimited depth (multi-dimensional array) =
42
-
43
-`$my_array = array(
44
-    'My String 1',
45
-    'My String 2',
46
-    array(
47
-        'elm 1',
48
-        'elm 2',
49
-    ),
50
-    'My String 3',
51
-    array(
52
-        'key 1'=>'elm 1',
53
-        'key 2'=>'elm 2',
54
-        'key 3' => array(
55
-            'key 3a' => 'elm 3a',
56
-            'key 3b' => 'elm 3b',
57
-        ),
58
-    ),
59
-    'My String 4'
60
-);
61
-do_action( 'php_console_log', $my_array);`
62
-
63
-== Installation ==
64
-
65
-1. Upload the plugin files to the `/wp-content/plugins/php-console-log` directory, or install the plugin through the WordPress plugins screen directly.
66
-2. Activate the plugin through the 'Plugins' screen in WordPress.
67
-3. You can find the help page in Plugins->PHP Console Log->Help for usage instructions.
68
-
69
-== Frequently Asked Questions ==
70
-
71
-= How do I know PHP Console Log is working? =
72
-
73
-If PHP Console Log is working and you have not called **do_action( 'php_console_log', 'My String or Array' );** you will see a message similar to this in your browsers web console:
74
-
75
-> ----------- PHP Console Log -----------
76
->
77
->   Place the do_action( 'php_console_log', 'My String or Array' ); function anywhere in your WordPress plugin PHP code.
78
->   The value(s) you pass into do_action( 'php_console_log', 'My String or Array' ); will be logged to the web console in your browser.
79
->   See "Help" link found on plugins page in your WordPress Admin for more information.
80
->
81
-> ----------- PHP Console Log -----------
82
-
83
-= Why is PHP Console Log not working? =
84
-
85
-The most common reasons that cause PHP Console Log to fail when logging your information to the web console are:
86
-
87
-1. **Cause:**
88
-The PHP Console log plugin is not activated.
89
-
90
- **Solution:**
91
-Activate the PHP Console Log Plugin.
92
-
93
-2. **Cause:**
94
-Another plugin has changed the order in which your plugins load. Making the PHP Console Log functions not available yet.
95
-
96
- **Solution:**
97
-PHP Console Log updates the order in which plugins are loaded any time a plugin is activated or deactivated. However, it is still possible for other plugins to change the order in which plugins load afterwards. Deactivate any plugins that change the order in which your plugins load.
98
-
99
-3. **Cause:**
100
-do_action( 'php_console_log', 'My String or Array' ); was called inside a block of code that was not run.
101
-
102
- **Solution:**
103
-Make sure the function you called do_action( 'php_console_log', 'My String or Array' ); in is run via an action or filter hook such as: add_action( 'init', 'my_function' ); Or call do_action( 'php_console_log', 'My String or Array' ); outside of any other functions in a file that you know is run.
104
-
105
-4. **Cause:**
106
-PHP throws errors. Side Note: Make sure you are using define( 'WP_DEBUG', true ); in your wp-config.php file so you can see PHP errors.
107
-
108
- **Solution:**
109
-Fix the error that PHP is showing you. Then try again.
110
-
111
-= How do I open the web console in Chrome? =
112
-
113
-Press Command+Option+J (Mac) or Control+Shift+J (Windows, Linux, Chrome OS) to jump straight into the Console panel.
114
-
115
-source: (https://developers.google.com/web/tools/chrome-devtools/open#console)
116
-
117
-= How do I open the web console in Firefox? =
118
-
119
-* Select **Web Console** from the Web Developer submenu in the Firefox Menu (or Tools menu if you display the menu bar or are on Mac OS X).
120
-
121
- **OR**
122
-
123
-* Press the Ctrl + Shift + K (Command + Option + K on OS X) keyboard shortcut.
124
-
125
-source: (https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Opening_the_Web_Console)
126
-
127
-= How do I open the web console in Safari? =
128
-
129
-Select **Develop menu** in the menu bar, choose **Show JavaScript Console**
130
-
131
-If you don’t see the Develop menu in the menu bar, choose Safari > Preferences, click Advanced, then select "Show Develop menu in menu bar".
132
-
133
-source: (https://support.apple.com/guide/safari-developer/develop-menu-dev39df999c1/mac)
134
-
135
-== Screenshots ==
136
-
137
-1. If PHP Console Log is working and you have not called **do_action( 'php_console_log', 'My String or Array' );** you will see a message similar to this in your browsers web console.
138
-
139
-== Changelog ==
140
-
141
-= 1.0.0 =
142
-Initial release.
143
-
144
-== Upgrade Notice ==
145
-
146
-= 1.0.0 =
147
-Initial release.
148
-
149
-= 1.0.1 =
150
-* Removed (unneeded) assets folder
151
-* Bumped WP compatibility to 5.3.2

Loading…
Откажи
Сачувај