Changeset 3404120
- Timestamp:
- 11/27/2025 01:01:39 PM (6 months ago)
- Location:
- decalog
- Files:
-
- 140 edited
- 1 copied
-
tags/4.5.0 (copied) (copied from decalog/trunk)
-
tags/4.5.0/CHANGELOG.md (modified) (4 diffs)
-
tags/4.5.0/HOOKS.md (modified) (2 diffs)
-
tags/4.5.0/WP-CLI.md (modified) (1 diff)
-
tags/4.5.0/admin/class-decalog-admin.php (modified) (1 diff)
-
tags/4.5.0/assets/fatal-error-handler.php (modified) (2 diffs)
-
tags/4.5.0/autoload.php (modified) (2 diffs)
-
tags/4.5.0/decalog.php (modified) (1 diff)
-
tags/4.5.0/functions.php (modified) (1 diff)
-
tags/4.5.0/includes/features/class-classtypes.php (modified) (2 diffs)
-
tags/4.5.0/includes/features/class-dlogger.php (modified) (1 diff)
-
tags/4.5.0/includes/features/class-dmonitor.php (modified) (1 diff)
-
tags/4.5.0/includes/features/class-dtracer.php (modified) (1 diff)
-
tags/4.5.0/includes/features/class-events.php (modified) (1 diff)
-
tags/4.5.0/includes/features/class-eventviewer.php (modified) (1 diff)
-
tags/4.5.0/includes/features/class-sdk.php (modified) (3 diffs)
-
tags/4.5.0/includes/formatters/class-datadogformatter.php (modified) (1 diff)
-
tags/4.5.0/includes/formatters/class-generichtmlformatter.php (modified) (1 diff)
-
tags/4.5.0/includes/formatters/class-newrelicformatter.php (modified) (1 diff)
-
tags/4.5.0/includes/handlers/class-abstractmonitoringhandler.php (modified) (1 diff)
-
tags/4.5.0/includes/handlers/class-abstracttracinghandler.php (modified) (1 diff)
-
tags/4.5.0/includes/integrations/class-optimizelogger.php (modified) (9 diffs)
-
tags/4.5.0/includes/libraries/elastic/elasticsearch/Client.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/elastic/elasticsearch/ClientBuilder.php (modified) (2 diffs)
-
tags/4.5.0/includes/libraries/elastic/elasticsearch/ClientInterface.php (modified) (2 diffs)
-
tags/4.5.0/includes/libraries/elastic/elasticsearch/Endpoints/Ml.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/elastic/elasticsearch/Helper/Iterators/SearchResponseIterator.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/elastic/elasticsearch/Response/Elasticsearch.php (modified) (2 diffs)
-
tags/4.5.0/includes/libraries/elastic/elasticsearch/Traits/EndpointTrait.php (modified) (2 diffs)
-
tags/4.5.0/includes/libraries/elastic/transport/Transport.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/guzzlehttp/Psr7/LimitStream.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/guzzlehttp/Psr7/NoSeekStream.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/http/client-common/Plugin/HeaderSetPlugin.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/http/client-common/Plugin/SeekableBodyPlugin.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/http/discovery/Composer/Plugin.php (modified) (3 diffs)
-
tags/4.5.0/includes/libraries/influxdb/ApiException.php (modified) (2 diffs)
-
tags/4.5.0/includes/libraries/influxdb/Configuration.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/influxdb/FluxCsvParser.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/influxdb/HeaderSelector.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/influxdb/WriteRetry.php (modified) (3 diffs)
-
tags/4.5.0/includes/libraries/jaeger/Thrift/Agent/Zipkin/Span.php (modified) (2 diffs)
-
tags/4.5.0/includes/libraries/lock/mutex/TransactionalMutex.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/lock/util/DoubleCheckedLocking.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/lock/util/PcntlTimeout.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/markdown/MarkdownParser.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/markdown/Parser.php (modified) (2 diffs)
-
tags/4.5.0/includes/libraries/markdown/inline/LinkTrait.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/monolog/ErrorHandler.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/prometheus/Storage/APC.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/spyc/Spyc.php (modified) (2 diffs)
-
tags/4.5.0/includes/libraries/thrift/Protocol/TJSONProtocol.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/thrift/Protocol/TProtocol.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/thrift/Server/TServerTransport.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/thrift/Server/TSimpleServer.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/thrift/Type/TConstant.php (modified) (1 diff)
-
tags/4.5.0/includes/libraries/tracy/Tracy/Debugger/Debugger.php (modified) (2 diffs)
-
tags/4.5.0/includes/listeners/class-abstractlistener.php (modified) (1 diff)
-
tags/4.5.0/includes/listeners/class-corelistener.php (modified) (2 diffs)
-
tags/4.5.0/includes/listeners/class-libaschedulerlistener.php (modified) (2 diffs)
-
tags/4.5.0/includes/listeners/class-phplistener.php (modified) (1 diff)
-
tags/4.5.0/includes/listeners/wp-cli/class-quiet.php (modified) (3 diffs)
-
tags/4.5.0/includes/plugin/class-initializer.php (modified) (1 diff)
-
tags/4.5.0/includes/plugin/class-updater.php (modified) (2 diffs)
-
tags/4.5.0/includes/system/class-blog.php (modified) (1 diff)
-
tags/4.5.0/includes/system/class-cache.php (modified) (5 diffs)
-
tags/4.5.0/includes/system/class-comment.php (modified) (1 diff)
-
tags/4.5.0/includes/system/class-role.php (modified) (1 diff)
-
tags/4.5.0/includes/system/class-sharedmemory.php (modified) (1 diff)
-
tags/4.5.0/init.php (modified) (1 diff)
-
tags/4.5.0/languages/decalog.pot (modified) (2 diffs)
-
tags/4.5.0/readme.txt (modified) (1 diff)
-
trunk/CHANGELOG.md (modified) (4 diffs)
-
trunk/HOOKS.md (modified) (2 diffs)
-
trunk/WP-CLI.md (modified) (1 diff)
-
trunk/admin/class-decalog-admin.php (modified) (1 diff)
-
trunk/assets/fatal-error-handler.php (modified) (2 diffs)
-
trunk/autoload.php (modified) (2 diffs)
-
trunk/decalog.php (modified) (1 diff)
-
trunk/functions.php (modified) (1 diff)
-
trunk/includes/features/class-classtypes.php (modified) (2 diffs)
-
trunk/includes/features/class-dlogger.php (modified) (1 diff)
-
trunk/includes/features/class-dmonitor.php (modified) (1 diff)
-
trunk/includes/features/class-dtracer.php (modified) (1 diff)
-
trunk/includes/features/class-events.php (modified) (1 diff)
-
trunk/includes/features/class-eventviewer.php (modified) (1 diff)
-
trunk/includes/features/class-sdk.php (modified) (3 diffs)
-
trunk/includes/formatters/class-datadogformatter.php (modified) (1 diff)
-
trunk/includes/formatters/class-generichtmlformatter.php (modified) (1 diff)
-
trunk/includes/formatters/class-newrelicformatter.php (modified) (1 diff)
-
trunk/includes/handlers/class-abstractmonitoringhandler.php (modified) (1 diff)
-
trunk/includes/handlers/class-abstracttracinghandler.php (modified) (1 diff)
-
trunk/includes/integrations/class-optimizelogger.php (modified) (9 diffs)
-
trunk/includes/libraries/elastic/elasticsearch/Client.php (modified) (1 diff)
-
trunk/includes/libraries/elastic/elasticsearch/ClientBuilder.php (modified) (2 diffs)
-
trunk/includes/libraries/elastic/elasticsearch/ClientInterface.php (modified) (2 diffs)
-
trunk/includes/libraries/elastic/elasticsearch/Endpoints/Ml.php (modified) (1 diff)
-
trunk/includes/libraries/elastic/elasticsearch/Helper/Iterators/SearchResponseIterator.php (modified) (1 diff)
-
trunk/includes/libraries/elastic/elasticsearch/Response/Elasticsearch.php (modified) (2 diffs)
-
trunk/includes/libraries/elastic/elasticsearch/Traits/EndpointTrait.php (modified) (2 diffs)
-
trunk/includes/libraries/elastic/transport/Transport.php (modified) (1 diff)
-
trunk/includes/libraries/guzzlehttp/Psr7/LimitStream.php (modified) (1 diff)
-
trunk/includes/libraries/guzzlehttp/Psr7/NoSeekStream.php (modified) (1 diff)
-
trunk/includes/libraries/http/client-common/Plugin/HeaderSetPlugin.php (modified) (1 diff)
-
trunk/includes/libraries/http/client-common/Plugin/SeekableBodyPlugin.php (modified) (1 diff)
-
trunk/includes/libraries/http/discovery/Composer/Plugin.php (modified) (3 diffs)
-
trunk/includes/libraries/influxdb/ApiException.php (modified) (2 diffs)
-
trunk/includes/libraries/influxdb/Configuration.php (modified) (1 diff)
-
trunk/includes/libraries/influxdb/FluxCsvParser.php (modified) (1 diff)
-
trunk/includes/libraries/influxdb/HeaderSelector.php (modified) (1 diff)
-
trunk/includes/libraries/influxdb/WriteRetry.php (modified) (3 diffs)
-
trunk/includes/libraries/jaeger/Thrift/Agent/Zipkin/Span.php (modified) (2 diffs)
-
trunk/includes/libraries/lock/mutex/TransactionalMutex.php (modified) (1 diff)
-
trunk/includes/libraries/lock/util/DoubleCheckedLocking.php (modified) (1 diff)
-
trunk/includes/libraries/lock/util/PcntlTimeout.php (modified) (1 diff)
-
trunk/includes/libraries/markdown/MarkdownParser.php (modified) (1 diff)
-
trunk/includes/libraries/markdown/Parser.php (modified) (2 diffs)
-
trunk/includes/libraries/markdown/inline/LinkTrait.php (modified) (1 diff)
-
trunk/includes/libraries/monolog/ErrorHandler.php (modified) (1 diff)
-
trunk/includes/libraries/prometheus/Storage/APC.php (modified) (1 diff)
-
trunk/includes/libraries/spyc/Spyc.php (modified) (2 diffs)
-
trunk/includes/libraries/thrift/Protocol/TJSONProtocol.php (modified) (1 diff)
-
trunk/includes/libraries/thrift/Protocol/TProtocol.php (modified) (1 diff)
-
trunk/includes/libraries/thrift/Server/TServerTransport.php (modified) (1 diff)
-
trunk/includes/libraries/thrift/Server/TSimpleServer.php (modified) (1 diff)
-
trunk/includes/libraries/thrift/Type/TConstant.php (modified) (1 diff)
-
trunk/includes/libraries/tracy/Tracy/Debugger/Debugger.php (modified) (2 diffs)
-
trunk/includes/listeners/class-abstractlistener.php (modified) (1 diff)
-
trunk/includes/listeners/class-corelistener.php (modified) (2 diffs)
-
trunk/includes/listeners/class-libaschedulerlistener.php (modified) (2 diffs)
-
trunk/includes/listeners/class-phplistener.php (modified) (1 diff)
-
trunk/includes/listeners/wp-cli/class-quiet.php (modified) (3 diffs)
-
trunk/includes/plugin/class-initializer.php (modified) (1 diff)
-
trunk/includes/plugin/class-updater.php (modified) (2 diffs)
-
trunk/includes/system/class-blog.php (modified) (1 diff)
-
trunk/includes/system/class-cache.php (modified) (5 diffs)
-
trunk/includes/system/class-comment.php (modified) (1 diff)
-
trunk/includes/system/class-role.php (modified) (1 diff)
-
trunk/includes/system/class-sharedmemory.php (modified) (1 diff)
-
trunk/init.php (modified) (1 diff)
-
trunk/languages/decalog.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
decalog/tags/4.5.0/CHANGELOG.md
r3272132 r3404120 3 3 4 4 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and **DecaLog** adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 5 6 ## [4.5.0] - 2025-11-27 7 8 ### Added 9 - Compatibility with WordPress 6.9. 10 11 ### Changed 12 - [BC] Default PHP errors mapping has changed: now, `E_USER_NOTICE`, `E_STRICT` and `E_USER_DEPRECATED` are logged as `debug` events. 13 - [BC] Some Action Scheduler events have a lower level (thanks to [Jan Thiel](https://github.com/JanThiel)). 14 - [WP-CLI] Using `--quiet` now disables logging of events that are not errors. (thanks to [Jan Thiel](https://github.com/JanThiel)). 15 - The levels of `pre_clear_scheduled_hook` are now debug/info to prevent excessive noise. 16 - The level mapping is now usable earlyer while logging PHP errors (thanks to [s.protasov](https://github.com/pro2s)). 17 - The auto loading sequence have been improved (thanks to [Viktor Szépe](https://github.com/szepeviktor)). 18 19 ### Fixed 20 - Using last version of WP-Optimize plugin breaks the site (thanks to [123kubix123](https://github.com/123kubix123)). 21 - There are many typos (thanks to [Viktor Szépe](https://github.com/szepeviktor)). 5 22 6 23 ## [4.4.0] - 2025-04-14 … … 31 48 ### Changed 32 49 - To avoid name collision with some third-party configurations, the version tag in Datadog, Loki and Grafana loggers is now named `wp_version` (it was previously `version`). 33 - Ability to self-update from Git hub.50 - Ability to self-update from GitHub. 34 51 - The plugin user agent is now more consistent and "standard". 35 52 … … 64 81 > **Important note about this version:** 65 82 > - **DecaLog 4 is a transition version to prepare DecaLog 5.** 66 > - **No migration path wil be available to migrate from DecaLog 3.x to 5.x, so don't ignore this version 4: install it!**83 > - **No migration path will be available to migrate from DecaLog 3.x to 5.x, so don't ignore this version 4: install it!** 67 84 > - **DecaLog 5 will be available in early 2025.** 68 85 … … 946 963 - The word "blog" has been replaced by "site" in events messages. 947 964 - Some help strings have been modified to be more clear. 948 - Lower severity of serialized json messages (triggered by `wp_die` handler) from critic ial to debug.965 - Lower severity of serialized json messages (triggered by `wp_die` handler) from critical to debug. 949 966 950 967 ### Removed -
decalog/tags/4.5.0/HOOKS.md
r3085475 r3404120 11 11 The format of the filtered value is an array of array(s). Each of the deepest array MUST contain 3 fields: 12 12 13 * `url`: the full url of the action to perfo m. This url is opened in a new tab of the user's browser.13 * `url`: the full url of the action to perform. This url is opened in a new tab of the user's browser. 14 14 * `hint`: the text displayed while hovering the icon. 15 15 * `icon`: the "index" of the icon. Since DecaLog embeds the [Feather icon library](https://feathericons.com/), you can choose any index of this library. … … 38 38 The format of the filtered value is an array of array(s). Each of the deepest array MUST contain 2 fields: 39 39 40 * `url`: the full url of the action to perfo m. This url is opened in a new tab of the user's browser.40 * `url`: the full url of the action to perform. This url is opened in a new tab of the user's browser. 41 41 * `text`: the text of the link anchor. 42 42 -
decalog/tags/4.5.0/WP-CLI.md
r2552001 r3404120 18 18 If you don't specify `<count>`, DecaLog will launch an interactive logging session: it will display events as soon as they occur on your site. To quit this session, hit `CTRL+C`. 19 19 20 If you specif iy a value for `<count>` between 1 to 60, DecaLog will show you the *count* last events triggered on your site.20 If you specify a value for `<count>` between 1 to 60, DecaLog will show you the *count* last events triggered on your site. 21 21 22 22 > Note the `tail` command needs shared memory support on your server, both for web server and command-line configuration. If it's not already the case, you must activate the ***shmop*** PHP module. -
decalog/tags/4.5.0/admin/class-decalog-admin.php
r3202160 r3404120 1197 1197 if ( Cache::$apcu_available) { 1198 1198 $help = '<img style="width:16px;vertical-align:text-bottom;" src="' . \Feather\Icons::get_base64( 'thumbs-up', 'none', '#00C800' ) . '" /> '; 1199 $help .= decalog_esc_html__('APCu is available on your server: you can use high pe formance storage mechanism.', 'decalog' );1199 $help .= decalog_esc_html__('APCu is available on your server: you can use high performance storage mechanism.', 'decalog' ); 1200 1200 } else { 1201 1201 $help = '<img style="width:16px;vertical-align:text-bottom;" src="' . \Feather\Icons::get_base64( 'alert-triangle', 'none', '#FF8C00' ) . '" /> '; 1202 $help .= sprintf( decalog_esc_html__('APCu is not available on your server. To use high pe formance storage mechanism you must activate %s PHP module.', 'decalog' ), '<code>apcu</code>' );1202 $help .= sprintf( decalog_esc_html__('APCu is not available on your server. To use high performance storage mechanism you must activate %s PHP module.', 'decalog' ), '<code>apcu</code>' ); 1203 1203 } 1204 1204 add_settings_field( -
decalog/tags/4.5.0/assets/fatal-error-handler.php
r3085475 r3404120 55 55 E_USER_WARNING => 300, 56 56 E_NOTICE => 250, 57 E_USER_NOTICE => 250,58 E_STRICT => 250,57 E_USER_NOTICE => 100, 58 E_STRICT => 100, 59 59 E_DEPRECATED => 200, 60 E_USER_DEPRECATED => 200,60 E_USER_DEPRECATED => 100, 61 61 ]; 62 62 … … 128 128 */ 129 129 public function handle_error( $code, $message, $file = '', $line = 0, $context = [] ) { 130 $level = $this->error_level_map[ $code ] ?? 500; 130 /** 131 * Filters the error levels map 132 * 133 * @See https://github.com/Pierre-Lannoy/wp-decalog/blob/master/HOOKS.md 134 * @since 4.5.0 135 * @param array $levels The current map 136 */ 137 $map = apply_filters( 'decalog_error_level_map', $this->error_level_map ); 138 $level = $map[ $code ] ?? 500; 131 139 $file = $this->normalized_file_line( $file, $line ); 132 140 $message = \sprintf( 'Error (%s): "%s" at `%s`.', $this->error_string_map[ $code ] ?? 'Unknown PHP error', $message, $file ); -
decalog/tags/4.5.0/autoload.php
r2794866 r3404120 10 10 spl_autoload_register( 11 11 function ( $class ) { 12 $paths = array( 13 'Decalog\\System\\' => DECALOG_INCLUDES_DIR . 'system/', 14 'Decalog\\Plugin\\Feature\\' => DECALOG_INCLUDES_DIR . 'features/', 15 'Decalog\\Plugin\\' => DECALOG_INCLUDES_DIR . 'plugin/', 16 'Decalog\\Processor\\' => DECALOG_INCLUDES_DIR . 'processors/', 17 'Decalog\\Handler\\' => DECALOG_INCLUDES_DIR . 'handlers/', 18 'Decalog\\Storage\\' => DECALOG_INCLUDES_DIR . 'storage/', 19 'Decalog\\Formatter\\' => DECALOG_INCLUDES_DIR . 'formatters/', 20 'Decalog\\Listener\\WP_CLI\\' => DECALOG_INCLUDES_DIR . 'listeners/wp-cli/', 21 'Decalog\\Listener\\' => DECALOG_INCLUDES_DIR . 'listeners/', 22 'Decalog\\Panel\\' => DECALOG_INCLUDES_DIR . 'panels/', 23 'Decalog\\Library\\' => DECALOG_VENDOR_DIR, 24 'Decalog\\Integration\\' => DECALOG_INCLUDES_DIR . 'integrations/', 25 'Decalog\\API\\' => DECALOG_INCLUDES_DIR . 'api/', 26 'Decalog\\' => DECALOG_INCLUDES_DIR . 'api/', 27 ); 28 12 29 $classname = $class; 13 30 $filepath = __DIR__ . '/'; … … 17 34 } 18 35 $filename = 'class-' . str_replace( '_', '-', strtolower( $classname ) ) . '.php'; 19 if ( strpos( $class, 'Decalog\System\\' ) === 0 ) { 20 $filepath = DECALOG_INCLUDES_DIR . 'system/'; 21 } elseif ( strpos( $class, 'Decalog\Plugin\Feature\\' ) === 0 ) { 22 $filepath = DECALOG_INCLUDES_DIR . 'features/'; 23 } elseif ( strpos( $class, 'Decalog\Plugin\\' ) === 0 ) { 24 $filepath = DECALOG_INCLUDES_DIR . 'plugin/'; 25 } elseif ( strpos( $class, 'Decalog\Processor\\' ) === 0 ) { 26 $filepath = DECALOG_INCLUDES_DIR . 'processors/'; 27 } elseif ( strpos( $class, 'Decalog\Handler\\' ) === 0 ) { 28 $filepath = DECALOG_INCLUDES_DIR . 'handlers/'; 29 } elseif ( strpos( $class, 'Decalog\Storage\\' ) === 0 ) { 30 $filepath = DECALOG_INCLUDES_DIR . 'storage/'; 31 } elseif ( strpos( $class, 'Decalog\Formatter\\' ) === 0 ) { 32 $filepath = DECALOG_INCLUDES_DIR . 'formatters/'; 33 } elseif ( strpos( $class, 'Decalog\Listener\WP_CLI\\' ) === 0 ) { 34 $filepath = DECALOG_INCLUDES_DIR . 'listeners/wp-cli/'; 35 } elseif ( strpos( $class, 'Decalog\Listener\\' ) === 0 ) { 36 $filepath = DECALOG_INCLUDES_DIR . 'listeners/'; 37 } elseif ( strpos( $class, 'Decalog\Panel\\' ) === 0 ) { 38 $filepath = DECALOG_INCLUDES_DIR . 'panels/'; 39 } elseif ( strpos( $class, 'Decalog\Library\\' ) === 0 ) { 40 $filepath = DECALOG_VENDOR_DIR; 41 } elseif ( strpos( $class, 'Decalog\Integration\\' ) === 0 ) { 42 $filepath = DECALOG_INCLUDES_DIR . 'integrations/'; 43 } elseif ( strpos( $class, 'Decalog\API\\' ) === 0 ) { 44 $filepath = DECALOG_INCLUDES_DIR . 'api/'; 45 } elseif ( strpos( $class, 'Decalog\\' ) === 0 ) { 46 $filepath = DECALOG_INCLUDES_DIR . 'api/'; 36 foreach ( $paths as $prefix => $dir ) { 37 if ( strpos( $class, $prefix ) === 0 ) { 38 $filepath = $dir; 39 break; 40 } 47 41 } 48 42 if ( strpos( $filename, '-public' ) !== false ) { -
decalog/tags/4.5.0/decalog.php
r3272132 r3404120 11 11 * Plugin URI: https://perfops.one/decalog 12 12 * Description: Capture and log events, metrics and traces on your site. Make WordPress observable – finally! 13 * Version: 4. 4.013 * Version: 4.5.0 14 14 * Requires at least: 6.2 15 15 * Requires PHP: 8.1 -
decalog/tags/4.5.0/functions.php
r3195163 r3404120 86 86 * Functionally, the equivalent of the standard str_pad function, but is capable of successfully padding multibyte strings. 87 87 * 88 * @param string $input The string to be fully trim ed.88 * @param string $input The string to be fully trimmed. 89 89 * @param string $replacement Optional. The string replacement. 90 90 * 91 * @return string A fully trim ed multibyte string.91 * @return string A fully trimmed multibyte string. 92 92 * @since 3.6.0 93 93 */ -
decalog/tags/4.5.0/includes/features/class-classtypes.php
r3195163 r3404120 35 35 * 36 36 * @since 1.0.0 37 * @var array $class e_names Maintains the classes list.37 * @var array $class_names Maintains the classes list. 38 38 */ 39 public static $class e_names = [];39 public static $class_names = []; 40 40 41 41 /** … … 45 45 */ 46 46 public static function init() { 47 self::$class e_names['core'] = decalog_esc_html__( 'Core', 'decalog' );48 self::$class e_names['plugin'] = decalog_esc_html__( 'Plugin', 'decalog' );49 self::$class e_names['theme'] = decalog_esc_html__( 'Theme', 'decalog' );50 self::$class e_names['db'] = decalog_esc_html__( 'Database', 'decalog' );51 self::$class e_names['php'] = decalog_esc_html__( 'PHP', 'decalog' );52 self::$class e_names['library'] = decalog_esc_html__( 'Library', 'decalog' );53 self::$class e_names['unknown'] = decalog_esc_html__( 'Unknown', 'decalog' );47 self::$class_names['core'] = decalog_esc_html__( 'Core', 'decalog' ); 48 self::$class_names['plugin'] = decalog_esc_html__( 'Plugin', 'decalog' ); 49 self::$class_names['theme'] = decalog_esc_html__( 'Theme', 'decalog' ); 50 self::$class_names['db'] = decalog_esc_html__( 'Database', 'decalog' ); 51 self::$class_names['php'] = decalog_esc_html__( 'PHP', 'decalog' ); 52 self::$class_names['library'] = decalog_esc_html__( 'Library', 'decalog' ); 53 self::$class_names['unknown'] = decalog_esc_html__( 'Unknown', 'decalog' ); 54 54 55 55 } -
decalog/tags/4.5.0/includes/features/class-dlogger.php
r3195163 r3404120 39 39 * @var string $class Maintains the class of the component. 40 40 */ 41 protected $class = 'unkn won';41 protected $class = 'unknown'; 42 42 43 43 /** -
decalog/tags/4.5.0/includes/features/class-dmonitor.php
r3085475 r3404120 37 37 * @var string $class Maintains the class of the component. 38 38 */ 39 protected $class = 'unkn won';39 protected $class = 'unknown'; 40 40 41 41 /** -
decalog/tags/4.5.0/includes/features/class-dtracer.php
r3085475 r3404120 39 39 * @var string $class Maintains the class of the component. 40 40 */ 41 protected $class = 'unkn won';41 protected $class = 'unknown'; 42 42 43 43 /** -
decalog/tags/4.5.0/includes/features/class-events.php
r3195163 r3404120 205 205 $icon = '<img style="width:28px;float:left;padding-top:6px;padding-right:6px;" src="' . SDK::get_icon( $item['component'] ) . '" />'; 206 206 $name = $item['component'] . $this->get_filter( 'component', $item['component'] ) . $this->get_actions( 'source', $item ) . ' <span style="color:silver">' . $item['version'] . '</span>'; 207 $result = $icon . $name . '<br /><span style="color:silver">' . ClassTypes::$class e_names[ $item['class'] ] . $this->get_filter( 'class', $item['class'], true ) . '</span>';207 $result = $icon . $name . '<br /><span style="color:silver">' . ClassTypes::$class_names[ $item['class'] ] . $this->get_filter( 'class', $item['class'], true ) . '</span>'; 208 208 return $result; 209 209 } -
decalog/tags/4.5.0/includes/features/class-eventviewer.php
r3195163 r3404120 454 454 $hour = $this->get_section( $content ); 455 455 // Event source. 456 $class = ClassTypes::$class e_names[ strtolower( $this->event['class'] ) ];456 $class = ClassTypes::$class_names[ strtolower( $this->event['class'] ) ]; 457 457 $component = $this->event['component'] . ' ' . $this->event['version']; 458 458 $content = '<span style="width:40%;cursor: default;float:left">' . $this->get_icon( 'folder' ) . $class . '</span>'; -
decalog/tags/4.5.0/includes/features/class-sdk.php
r3094032 r3404120 34 34 * Verify if SDK is present. 35 35 * 36 * @retu n boolean True if SDK is present, false otherwise.36 * @return boolean True if SDK is present, false otherwise. 37 37 * @since 3.0.0 38 38 */ … … 50 50 if ( self::is_present() ) { 51 51 $result = \DecaLog\Engine::getLoggers(); 52 foreach ( $result as $slug => $log er ) {52 foreach ( $result as $slug => $logger ) { 53 53 $result[ $slug ]['slug'] = $slug; 54 54 } … … 317 317 $source = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" preserveAspectRatio="xMidYMid meet">'; 318 318 $source .= '<g transform="scale(2,2) translate(0,0)">'; 319 $source .= '<g id="or ginal" style="fill-rule:nonzero;clip-rule:nonzero;stroke:' . $color1 . ';stroke-miterlimit:4;"></g>';319 $source .= '<g id="original" style="fill-rule:nonzero;clip-rule:nonzero;stroke:' . $color1 . ';stroke-miterlimit:4;"></g>'; 320 320 $source .= '<g id="Layer_x0020_3" style="fill-rule:nonzero;clip-rule:nonzero;fill:none;stroke:' . $color3 . ';stroke-width:12.4651;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;">'; 321 321 $source .= '<path style="fill:' . $color1 . ';stroke:' . $color1 . ';stroke-width:37.3953;stroke-linecap:butt;stroke-linejoin:miter;" d="M323.205,324.227c2.833-23.601,1.984-27.062,19.563-23.239l4.463,0.392c13.517,0.615,31.199-2.174,41.587-7c22.362-10.376,35.622-27.7,13.572-23.148c-50.297,10.376-53.755-6.655-53.755-6.655c53.111-78.803,75.313-178.836,56.149-203.322 C352.514-5.534,262.036,26.049,260.522,26.869l-0.482,0.089c-9.938-2.062-21.06-3.294-33.554-3.496c-22.761-0.374-40.032,5.967-53.133,15.904c0,0-161.408-66.498-153.899,83.628c1.597,31.936,45.777,241.655,98.47,178.31 c19.259-23.163,37.871-42.748,37.871-42.748c9.242,6.14,20.307,9.272,31.912,8.147l0.897-0.765c-0.281,2.876-0.157,5.689,0.359,9.019c-13.572,15.167-9.584,17.83-36.723,23.416c-27.457,5.659-11.326,15.734-0.797,18.367c12.768,3.193,42.305,7.716,62.268-20.224 l-0.795,3.188c5.325,4.26,4.965,30.619,5.72,49.452c0.756,18.834,2.017,36.409,5.856,46.771c3.839,10.36,8.369,37.05,44.036,29.406c29.809-6.388,52.6-15.582,54.677-101.107"/>'; -
decalog/tags/4.5.0/includes/formatters/class-datadogformatter.php
r3195163 r3404120 53 53 $event['message'] = $record['message']; 54 54 } else { 55 $event['message'] = '<no mess sage>';55 $event['message'] = '<no message>'; 56 56 } 57 57 if ( array_key_exists( 'level', $record ) ) { -
decalog/tags/4.5.0/includes/formatters/class-generichtmlformatter.php
r3195163 r3404120 118 118 119 119 /** 120 * Get t arce detail.120 * Get trace detail. 121 121 * 122 122 * @param array $trace The trace records. -
decalog/tags/4.5.0/includes/formatters/class-newrelicformatter.php
r2658577 r3404120 69 69 $event['message'] = str_replace( '\'', '`', $event['message'] ); 70 70 } else { 71 $event['message'] = '<no mess sage>';71 $event['message'] = '<no message>'; 72 72 } 73 73 if ( array_key_exists( 'level', $record ) ) { -
decalog/tags/4.5.0/includes/handlers/class-abstractmonitoringhandler.php
r2870563 r3404120 146 146 $message = wp_remote_retrieve_response_message( $result ); 147 147 if ( '' === $message ) { 148 $message = 'Unknow error';148 $message = 'Unknown error'; 149 149 } 150 150 if ( $this->error_control ) { -
decalog/tags/4.5.0/includes/handlers/class-abstracttracinghandler.php
r2870563 r3404120 535 535 $message = wp_remote_retrieve_response_message( $result ); 536 536 if ( '' === $message ) { 537 $message = 'Unknow error';537 $message = 'Unknown error'; 538 538 } 539 539 if ( $this->error_control ) { -
decalog/tags/4.5.0/includes/integrations/class-optimizelogger.php
r3195163 r3404120 66 66 * @since 1.9.0 67 67 */ 68 public function emergency( $message, array$context = [] ) {68 public function emergency( $message, $context = [] ) { 69 69 $this->logger->emergency( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 70 70 } … … 77 77 * @since 1.9.0 78 78 */ 79 public function alert( $message, array$context = [] ) {79 public function alert( $message, $context = [] ) { 80 80 $this->logger->alert( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 81 81 } … … 88 88 * @since 1.9.0 89 89 */ 90 public function critical( $message, array$context = [] ) {90 public function critical( $message, $context = [] ) { 91 91 $this->logger->critical( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 92 92 } … … 100 100 * @since 1.9.0 101 101 */ 102 public function error( $message, array$context = [] ) {102 public function error( $message, $context = [] ) { 103 103 $this->logger->error( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 104 104 } … … 111 111 * @since 1.9.0 112 112 */ 113 public function warning( $message, array$context = [] ) {113 public function warning( $message, $context = [] ) { 114 114 $this->logger->warning( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 115 115 } … … 122 122 * @since 1.9.0 123 123 */ 124 public function notice( $message, array$context = [] ) {124 public function notice( $message, $context = [] ) { 125 125 $this->logger->notice( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 126 126 } … … 135 135 * @since 1.9.0 136 136 */ 137 public function info( $message, array$context = [] ) {137 public function info( $message, $context = [] ) { 138 138 $this->logger->info( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 139 139 } … … 146 146 * @since 1.9.0 147 147 */ 148 public function debug( $message, array$context = [] ) {148 public function debug( $message, $context = [] ) { 149 149 $this->logger->debug( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 150 150 } … … 158 158 * @since 1.9.0 159 159 */ 160 public function log( $level, $message, array$context = [] ) {160 public function log( $level, $message, $context = [] ) { 161 161 $this->logger->log( $level, (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 162 162 } -
decalog/tags/4.5.0/includes/libraries/elastic/elasticsearch/Client.php
r3085475 r3404120 40 40 41 41 /** 42 * Specify is the request is async ronous42 * Specify is the request is asynchronous 43 43 */ 44 44 protected bool $async = false; -
decalog/tags/4.5.0/includes/libraries/elastic/elasticsearch/ClientBuilder.php
r3085475 r3404120 52 52 53 53 /** 54 * The Node lPool54 * The NodePool 55 55 */ 56 56 private NodePoolInterface $nodePool; … … 385 385 if (!empty($this->apiKey)) { 386 386 if (!empty($this->username)) { 387 throw new AuthenticationException('You cannot use APIKey and Basic Authen ication together');387 throw new AuthenticationException('You cannot use APIKey and Basic Authentication together'); 388 388 } 389 389 $transport->setHeader('Authorization', sprintf("ApiKey %s", $this->apiKey)); -
decalog/tags/4.5.0/includes/libraries/elastic/elasticsearch/ClientInterface.php
r3085475 r3404120 34 34 35 35 /** 36 * Set the async ronous HTTP request36 * Set the asynchronous HTTP request 37 37 */ 38 38 public function setAsync(bool $async): self; 39 39 40 40 /** 41 * Get the async ronous HTTP request setting41 * Get the asynchronous HTTP request setting 42 42 */ 43 43 public function getAsync(): bool; … … 65 65 /** 66 66 * Send the HTTP request using the Elastic Transport. 67 * It manages sync ronous and asyncronus requests using Client::getAsync()67 * It manages synchronous and asynchronous requests using Client::getAsync() 68 68 * 69 69 * @return Elasticsearch|Promise -
decalog/tags/4.5.0/includes/libraries/elastic/elasticsearch/Endpoints/Ml.php
r3085475 r3404120 1131 1131 * influencer_score: double, // influencer score threshold for the requested influencers 1132 1132 * sort: string, // sort field for the requested influencers 1133 * desc: boolean, // whether the results should be sorted in de cending order1133 * desc: boolean, // whether the results should be sorted in descending order 1134 1134 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false) 1135 1135 * human: boolean, // Return human readable values for statistics. (DEFAULT: true) -
decalog/tags/4.5.0/includes/libraries/elastic/elasticsearch/Helper/Iterators/SearchResponseIterator.php
r3085475 r3404120 136 136 137 137 /** 138 * Fetches every "page" after the first one using the la stest "scroll_id"138 * Fetches every "page" after the first one using the latest "scroll_id" 139 139 * 140 140 * @return void -
decalog/tags/4.5.0/includes/libraries/elastic/elasticsearch/Response/Elasticsearch.php
r3085475 r3404120 119 119 } 120 120 throw new UnknownContentTypeException(sprintf( 121 "Cannot deserialize the re ponse as array with Content-Type: %s",121 "Cannot deserialize the response as array with Content-Type: %s", 122 122 $contentType 123 123 )); … … 152 152 } 153 153 throw new UnknownContentTypeException(sprintf( 154 "Cannot deserialize the re ponse as object with Content-Type: %s",154 "Cannot deserialize the response as object with Content-Type: %s", 155 155 $contentType 156 156 )); -
decalog/tags/4.5.0/includes/libraries/elastic/elasticsearch/Traits/EndpointTrait.php
r3085475 r3404120 31 31 { 32 32 /** 33 * Check if an array contain ts nested array33 * Check if an array contains nested array 34 34 */ 35 35 private function isNestedArray(array $a): bool … … 157 157 /** 158 158 * Build the API compatibility headers 159 * transf rom Content-Type and Accept adding vnd.elasticsearch+ and compatible-with159 * transform Content-Type and Accept adding vnd.elasticsearch+ and compatible-with 160 160 * 161 161 * @see https://github.com/elastic/elasticsearch-php/pull/1142 -
decalog/tags/4.5.0/includes/libraries/elastic/transport/Transport.php
r3085475 r3404120 153 153 $phpSemVersion, 154 154 $this->purgePreReleaseTag(self::VERSION), 155 $async ? 1 : 0 // 0=sync ronous, 1=asynchronous155 $async ? 1 : 0 // 0=synchronous, 1=asynchronous 156 156 ); 157 157 $lib = $this->getClientLibraryInfo(); -
decalog/tags/4.5.0/includes/libraries/guzzlehttp/Psr7/LimitStream.php
r3085475 r3404120 106 106 * @param int $offset Offset to seek to and begin byte limiting from 107 107 * 108 * @throws \RuntimeException if the stream cannot be s eeked.108 * @throws \RuntimeException if the stream cannot be sought. 109 109 */ 110 110 public function setOffset(int $offset): void -
decalog/tags/4.5.0/includes/libraries/guzzlehttp/Psr7/NoSeekStream.php
r3085475 r3404120 8 8 9 9 /** 10 * Stream decorator that prevents a stream from being s eeked.10 * Stream decorator that prevents a stream from being sought. 11 11 */ 12 12 final class NoSeekStream implements StreamInterface -
decalog/tags/4.5.0/includes/libraries/http/client-common/Plugin/HeaderSetPlugin.php
r3085475 r3404120 12 12 * Set headers on the request. 13 13 * 14 * If the header does not exist it wil be set, if the header already exists it will be replaced.14 * If the header does not exist it will be set, if the header already exists it will be replaced. 15 15 * 16 16 * @author Soufiane Ghzal <sghzal@gmail.com> -
decalog/tags/4.5.0/includes/libraries/http/client-common/Plugin/SeekableBodyPlugin.php
r3085475 r3404120 24 24 25 25 /** 26 * @param array{'use_file_buffer'?: bool, 'memory_b offer_size'?: int} $config26 * @param array{'use_file_buffer'?: bool, 'memory_buffer_size'?: int} $config 27 27 * 28 28 * Configuration options: -
decalog/tags/4.5.0/includes/libraries/http/discovery/Composer/Plugin.php
r3085475 r3404120 28 28 * virtual packages, this plugin will auto-install a well-known implementation if none is 29 29 * found. The plugin will first look at already installed packages and figure out the 30 * preferred implementation to install based on the below stick yness rules (or on the first30 * preferred implementation to install based on the below stickiness rules (or on the first 31 31 * listed implementation if no rules match.) 32 32 * … … 90 90 * depending on which one is already installed on the right side. 91 91 */ 92 private const STICK YNESS_RULES = [92 private const STICKINESS_RULES = [ 93 93 'symfony/http-client' => 'symfony/framework-bundle', 94 94 'php-http/guzzle7-adapter' => 'guzzlehttp/guzzle:^7', … … 339 339 } 340 340 341 foreach (array_intersect_key(self::STICK YNESS_RULES, $candidates) as $candidate => $stickyRule) {341 foreach (array_intersect_key(self::STICKINESS_RULES, $candidates) as $candidate => $stickyRule) { 342 342 [$stickyName, $stickyVersion] = explode(':', $stickyRule, 2) + [1 => null]; 343 343 if (!isset($allPackages[$stickyName]) || ($isProject && !$dev && isset($devPackages[$stickyName]))) { -
decalog/tags/4.5.0/includes/libraries/influxdb/ApiException.php
r3085475 r3404120 101 101 102 102 /** 103 * Sets the deser alized response object (during deserialization)103 * Sets the deserialized response object (during deserialization) 104 104 * 105 105 * @param mixed $obj Deserialized response object … … 113 113 114 114 /** 115 * Gets the deser alized response object (during deserialization)115 * Gets the deserialized response object (during deserialization) 116 116 * 117 117 * @return mixed the deserialized response object -
decalog/tags/4.5.0/includes/libraries/influxdb/Configuration.php
r2552001 r3404120 376 376 377 377 /** 378 * Sets the de tault configuration instance378 * Sets the default configuration instance 379 379 * 380 380 * @param Configuration $config An instance of the Configuration Object -
decalog/tags/4.5.0/includes/libraries/influxdb/FluxCsvParser.php
r3085475 r3404120 292 292 293 293 if ('dateTime:RFC3339' == $column->dataType || 'dateTime:RFC3339Nano' == $column->dataType) { 294 # #todo nanoseconds precission, php datetime is only in microseconds precision294 # @todo nanoseconds precision, php datetime is only in microseconds precision 295 295 return $strVal; 296 296 } -
decalog/tags/4.5.0/includes/libraries/influxdb/HeaderSelector.php
r3085475 r3404120 93 93 * Return the content type based on an array of content-type provided 94 94 * 95 * @param string[] $contentType Array focontent-type95 * @param string[] $contentType Array of content-type 96 96 * 97 97 * @return string Content-Type (e.g. application/json) -
decalog/tags/4.5.0/includes/libraries/influxdb/WriteRetry.php
r3085475 r3404120 16 16 private $jitterInterval; 17 17 private $maxRetryTime; 18 private $retryTim out;18 private $retryTimeout; 19 19 /** 20 20 * @var array … … 58 58 $this->options = $options; 59 59 60 //retry tim out61 $this->retryTim out = microtime(true) * 1000 + $maxRetryTime;60 //retry timeout 61 $this->retryTimeout = microtime(true) * 1000 + $maxRetryTime; 62 62 } 63 63 … … 82 82 83 83 // throws exception when max retry time is exceeded 84 if (microtime(true) * 1000 > $this->retryTim out) {84 if (microtime(true) * 1000 > $this->retryTimeout) { 85 85 DefaultApi::log("ERROR", "Maximum retry time $this->maxRetryTime ms exceeded", $this->options); 86 86 throw $e; -
decalog/tags/4.5.0/includes/libraries/jaeger/Thrift/Agent/Zipkin/Span.php
r2552001 r3404120 130 130 * against a tick of currentTimeMillis. 131 131 * 132 * For compatibil ty with instrumentation that precede this field, collectors132 * For compatibility with instrumentation that precede this field, collectors 133 133 * or span stores can derive this via Annotation.timestamp. 134 134 * For example, SERVER_RECV.timestamp or CLIENT_SEND.timestamp. … … 147 147 * updates causing time to move backwards. 148 148 * 149 * For compatibil ty with instrumentation that precede this field, collectors149 * For compatibility with instrumentation that precede this field, collectors 150 150 * or span stores can derive this by subtracting Annotation.timestamp. 151 151 * For example, SERVER_SEND.timestamp - SERVER_RECV.timestamp. -
decalog/tags/4.5.0/includes/libraries/lock/mutex/TransactionalMutex.php
r2552001 r3404120 104 104 * @param callable $code The synchronized execution block. 105 105 * @throws \Exception The execution block threw an exception. 106 * @throws LockAcquireException The transaction was not commit ed.106 * @throws LockAcquireException The transaction was not committed. 107 107 * @return mixed The return value of the execution block. 108 108 * @SuppressWarnings(PHPMD) -
decalog/tags/4.5.0/includes/libraries/lock/util/DoubleCheckedLocking.php
r2391127 r3404120 50 50 * If then returns boolean boolean false, the check did not pass before or 51 51 * after acquiring the lock. A boolean false can also be returned from the 52 * critical code callback to indicate that processing did not occur eor has52 * critical code callback to indicate that processing did not occur or has 53 53 * failed. It is up to the user to decide the last point. 54 54 * -
decalog/tags/4.5.0/includes/libraries/lock/util/PcntlTimeout.php
r2391127 r3404120 53 53 * 54 54 * This method has the side effect, that any signal handler for SIGALRM will 55 * be reset to the default han lder (SIG_DFL). It also expects that there is55 * be reset to the default handler (SIG_DFL). It also expects that there is 56 56 * no previously scheduled alarm. If your application uses alarms 57 57 * ({@link pcntl_alarm()}) or a signal handler for SIGALRM, don't use this 58 * method. It will interfer with your application and lead to unexpected58 * method. It will interfere with your application and lead to unexpected 59 59 * behaviour. 60 60 * -
decalog/tags/4.5.0/includes/libraries/markdown/MarkdownParser.php
r2391127 r3404120 45 45 46 46 /** 47 * @var array these are "escap eable" characters. When using one of these prefixed with a47 * @var array these are "escapable" characters. When using one of these prefixed with a 48 48 * backslash, the character will be outputted without the backslash and is not interpreted 49 49 * as markdown. -
decalog/tags/4.5.0/includes/libraries/markdown/Parser.php
r2391127 r3404120 27 27 protected $context = []; 28 28 /** 29 * @var array these are "escap eable" characters. When using one of these prefixed with a29 * @var array these are "escapable" characters. When using one of these prefixed with a 30 30 * backslash, the character will be outputted without the backslash and is not interpreted 31 31 * as markdown. … … 130 130 131 131 /** 132 * Given a set of lines and an index of a current line it uses the registe d block types to132 * Given a set of lines and an index of a current line it uses the registered block types to 133 133 * detect the type of this line. 134 134 * @param array $lines -
decalog/tags/4.5.0/includes/libraries/markdown/inline/LinkTrait.php
r2391127 r3404120 12 12 13 13 /** 14 * Add es links and images as well as url markers.14 * Adds links and images as well as url markers. 15 15 * 16 16 * This trait conflicts with the HtmlTrait. If both are used together, -
decalog/tags/4.5.0/includes/libraries/monolog/ErrorHandler.php
r3085475 r3404120 168 168 E_USER_ERROR => LogLevel::ERROR, 169 169 E_USER_WARNING => LogLevel::WARNING, 170 E_USER_NOTICE => LogLevel:: NOTICE,171 E_STRICT => LogLevel:: NOTICE,170 E_USER_NOTICE => LogLevel::DEBUG, 171 E_STRICT => LogLevel::DEBUG, 172 172 E_RECOVERABLE_ERROR => LogLevel::ERROR, 173 E_DEPRECATED => LogLevel:: NOTICE,174 E_USER_DEPRECATED => LogLevel:: NOTICE,173 E_DEPRECATED => LogLevel::INFO, 174 E_USER_DEPRECATED => LogLevel::DEBUG, 175 175 ]; 176 176 } -
decalog/tags/4.5.0/includes/libraries/prometheus/Storage/APC.php
r2552001 r3404120 142 142 public function wipeStorage(): void 143 143 { 144 // / / | PCRE expres ion boundary144 // / / | PCRE expression boundary 145 145 // ^ | match from first character only 146 146 // %s: | common prefix substitute with colon suffix -
decalog/tags/4.5.0/includes/libraries/spyc/Spyc.php
r2397530 r3404120 83 83 84 84 /** 85 * Setting this to true will for se YAMLLoad to use syck_load function when85 * Setting this to true will force YAMLLoad to use syck_load function when 86 86 * possible. False by default. 87 87 * @var bool … … 90 90 91 91 /** 92 * Setting this to true will for se YAMLLoad to use syck_load function when92 * Setting this to true will force YAMLLoad to use syck_load function when 93 93 * possible. False by default. 94 94 * @var bool -
decalog/tags/4.5.0/includes/libraries/thrift/Protocol/TJSONProtocol.php
r2552001 r3404120 662 662 * @param string $name Function name 663 663 * @param int $type message type TMessageType::CALL or TMessageType::REPLY 664 * @par em int $seqid The sequence id of this message664 * @param int $seqid The sequence id of this message 665 665 */ 666 666 public function readMessageBegin(&$name, &$type, &$seqid) -
decalog/tags/4.5.0/includes/libraries/thrift/Protocol/TProtocol.php
r2552001 r3404120 135 135 * @param string $name Function name 136 136 * @param int $type message type TMessageType::CALL or TMessageType::REPLY 137 * @par em int $seqid The sequence id of this message137 * @param int $seqid The sequence id of this message 138 138 */ 139 139 abstract public function readMessageBegin(&$name, &$type, &$seqid); -
decalog/tags/4.5.0/includes/libraries/thrift/Server/TServerTransport.php
r2552001 r3404120 38 38 39 39 /** 40 * Uses the accept implem tation. If null is returned, an40 * Uses the accept implementation. If null is returned, an 41 41 * exception is thrown. 42 42 * -
decalog/tags/4.5.0/includes/libraries/thrift/Server/TSimpleServer.php
r2552001 r3404120 6 6 7 7 /** 8 * Simple implem tation of a Thrift server.8 * Simple implementation of a Thrift server. 9 9 * 10 10 * @package thrift.server -
decalog/tags/4.5.0/includes/libraries/thrift/Type/TConstant.php
r2552001 r3404120 29 29 { 30 30 /** 31 * Don't instan ciate this class31 * Don't instantiate this class 32 32 */ 33 33 protected function __construct() -
decalog/tags/4.5.0/includes/libraries/tracy/Tracy/Debugger/Debugger.php
r3085475 r3404120 205 205 if (function_exists('ini_set')) { 206 206 ini_set('display_errors', '0'); // or 'stderr' 207 ini_set('html_errors', '0'); // additionally turns off stack trace displa ing by xdebug207 ini_set('html_errors', '0'); // additionally turns off stack trace displaying by xdebug 208 208 ini_set('log_errors', '0'); 209 209 ini_set('zend.exception_ignore_args', '0'); … … 429 429 if (empty(self::$logger)) { 430 430 self::$logger = new Logger(self::$logDirectory, self::$email, self::getBlueScreen()); 431 self::$logger->directory = &self::$logDirectory; // back compatib lity431 self::$logger->directory = &self::$logDirectory; // back compatibility 432 432 self::$logger->email = &self::$email; 433 433 } -
decalog/tags/4.5.0/includes/listeners/class-abstractlistener.php
r2794866 r3404120 59 59 * 60 60 * @since 3.0.0 61 * @var \Decalog\Plugin\Feature\DTracer $monitor An instance of DTracer to trace listener t arces.61 * @var \Decalog\Plugin\Feature\DTracer $monitor An instance of DTracer to trace listener traces. 62 62 */ 63 63 protected $tracer = null; -
decalog/tags/4.5.0/includes/listeners/class-corelistener.php
r3195163 r3404120 192 192 add_filter( 'pre_unschedule_hook', [ $this, 'pre_unschedule_hook' ], PHP_INT_MAX, 2 ); 193 193 } 194 // Ap lications Passwords194 // Applications Passwords 195 195 add_action( 'wp_create_application_password', [ $this, 'wp_create_application_password' ], 10, 4 ); 196 196 add_action( 'wp_update_application_password', [ $this, 'wp_update_application_password' ], 10, 3 ); … … 1387 1387 public function pre_clear_scheduled_hook( $pre, $hook, $args = null, $wp_error = null ) { 1388 1388 if ( is_null( $pre ) ) { 1389 $this->logger-> info( sprintf( 'The "%s" event will be cleared.', $hook ) );1389 $this->logger->debug( sprintf( 'The "%s" event will be cleared.', $hook ) ); 1390 1390 } else { 1391 $this->logger-> notice( sprintf( 'A plugin prevented the "%s" event to be cleared.', $hook ) );1391 $this->logger->info( sprintf( 'A plugin prevented the "%s" event to be cleared.', $hook ) ); 1392 1392 } 1393 1393 return $pre; -
decalog/tags/4.5.0/includes/listeners/class-libaschedulerlistener.php
r3085475 r3404120 138 138 */ 139 139 public function action_scheduler_deleted_action( $action_id ) { 140 $this->logger-> notice( sprintf( 'Action "%s" (action ID %s) deleted.', \ActionScheduler::store()->fetch_action( $action_id )->get_hook(), $action_id ) );140 $this->logger->info( sprintf( 'Action "%s" (action ID %s) deleted.', \ActionScheduler::store()->fetch_action( $action_id )->get_hook(), $action_id ) ); 141 141 } 142 142 … … 192 192 */ 193 193 public function action_scheduler_failed_old_action_deletion( $action_id, $exception ) { 194 $this->logger-> error( sprintf( 'Unable to delete old action "%s" (action ID %s): %s.', \ActionScheduler::store()->fetch_action( $action_id )->get_hook(), $action_id, ( $exception instanceof \Throwable ? $exception->getMessage() : 'unknown error' ) ) );194 $this->logger->notice( sprintf( 'Unable to delete old action "%s" (action ID %s): %s.', \ActionScheduler::store()->fetch_action( $action_id )->get_hook(), $action_id, ( $exception instanceof \Throwable ? $exception->getMessage() : 'unknown error' ) ) ); 195 195 } 196 196 -
decalog/tags/4.5.0/includes/listeners/class-phplistener.php
r3085475 r3404120 48 48 E_USER_WARNING => Logger::WARNING, 49 49 E_NOTICE => Logger::NOTICE, 50 E_USER_NOTICE => Logger:: NOTICE,51 E_STRICT => Logger:: NOTICE,50 E_USER_NOTICE => Logger::DEBUG, 51 E_STRICT => Logger::DEBUG, 52 52 E_DEPRECATED => Logger::INFO, 53 E_USER_DEPRECATED => Logger:: INFO,53 E_USER_DEPRECATED => Logger::DEBUG, 54 54 ]; 55 55 -
decalog/tags/4.5.0/includes/listeners/wp-cli/class-quiet.php
r2794866 r3404120 51 51 */ 52 52 public function info( $message ) { 53 $this->logger->info( ucfirst( $message ) );54 53 parent::info( $message ); 55 54 } … … 62 61 */ 63 62 public function success( $message ) { 64 $this->logger->notice( ucfirst( $message ) );65 63 parent::success( $message ); 66 64 } … … 73 71 */ 74 72 public function warning( $message ) { 75 $this->logger->warning( ucfirst( $message ) );76 73 parent::warning( $message ); 77 74 } -
decalog/tags/4.5.0/includes/plugin/class-initializer.php
r3195163 r3404120 69 69 } catch ( \Exception $e ) { 70 70 $logger = Log::bootstrap( 'plugin', DECALOG_PRODUCT_SHORTNAME, DECALOG_VERSION ); 71 $logger->critical( sprintf( 'Unable to instan ciate `%s` class. DecaLog will not log following WP-CLI events.', $class ) );71 $logger->critical( sprintf( 'Unable to instantiate `%s` class. DecaLog will not log following WP-CLI events.', $class ) ); 72 72 } 73 73 } else { -
decalog/tags/4.5.0/includes/plugin/class-updater.php
r3272132 r3404120 223 223 } 224 224 $md = new Markdown(); 225 $res = new \stdClass(); 225 if ( ! is_object( $res ) ) { 226 $res = new \stdClass(); 227 } 226 228 $res->name = $this->name; 227 229 $res->homepage = 'https://perfops.one/' . $this->slug; … … 238 240 $res->download_link = $infos->download_url; 239 241 $res->trunk = $infos->download_url; 240 $res->sections = [ 241 'changelog' => $md->get_inline( $infos->changelog, [] ) . '<br/><br/><p><a target="_blank" href="' . $res->homepage . '-changelog">CHANGELOG »</a></p>', 242 ]; 243 $res->banners = [ 244 "low" => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-772x250.jpg', 245 "high" => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-1544x500.jpg' 246 ]; 242 if ( isset( $res->sections['changelog'] ) ) { 243 $res->sections['changelog'] = $md->get_inline( $infos->changelog, [] ) . '<br/><br/><p><a target="_blank" href="' . $res->homepage . '-changelog">CHANGELOG »</a></p>'; 244 } else { 245 $res->sections = [ 246 'changelog' => $md->get_inline( $infos->changelog, [] ) . '<br/><br/><p><a target="_blank" href="' . $res->homepage . '-changelog">CHANGELOG »</a></p>', 247 ]; 248 } 249 if ( isset( $res->banners['low'] ) && isset( $res->banners['high'] )) { 250 $res->banners['low'] = str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-772x250.jpg'; 251 $res->banners['high'] = str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-1544x500.jpg'; 252 } else { 253 $res->banners = [ 254 'low' => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-772x250.jpg', 255 'high' => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-1544x500.jpg' 256 ]; 257 } 247 258 return $res; 248 259 } -
decalog/tags/4.5.0/includes/system/class-blog.php
r2595032 r3404120 116 116 return sprintf( '"%s" (site ID %s)', (string) $id->blogname, $id->id ); 117 117 } 118 return 'unknow site';118 return 'unknown site'; 119 119 } 120 120 -
decalog/tags/4.5.0/includes/system/class-cache.php
r2794866 r3404120 419 419 * @since 1.0.0 420 420 */ 421 private static function delete_for_ful _name( $item_name ) {421 private static function delete_for_full_name( $item_name ) { 422 422 $item_name = self::normalized_item_name( $item_name ); 423 423 $result = 0; … … 461 461 * @since 3.4.0 462 462 */ 463 private static function delete_apcu_for_ful _name( $item_name ) {463 private static function delete_apcu_for_full_name( $item_name ) { 464 464 $item_name = self::normalized_item_name( $item_name ); 465 465 $result = 0; … … 516 516 */ 517 517 public static function delete_global( $item_name ) { 518 return self::delete_for_ful _name( self::full_item_name( $item_name ) );518 return self::delete_for_full_name( self::full_item_name( $item_name ) ); 519 519 } 520 520 … … 527 527 */ 528 528 public static function delete_global_apcu( $item_name ) { 529 return self::delete_apcu_for_ful _name( self::full_item_name( $item_name ) );529 return self::delete_apcu_for_full_name( self::full_item_name( $item_name ) ); 530 530 } 531 531 … … 543 543 */ 544 544 public static function delete( $item_name, $blog_aware = false, $locale_aware = false, $user_aware = false ) { 545 return self::delete_for_ful _name( self::full_item_name( $item_name, $blog_aware, $locale_aware, $user_aware ) );545 return self::delete_for_full_name( self::full_item_name( $item_name, $blog_aware, $locale_aware, $user_aware ) ); 546 546 } 547 547 -
decalog/tags/4.5.0/includes/system/class-comment.php
r2552001 r3404120 49 49 return sprintf( '"%s" (comment ID %s)', wp_trim_words( wp_kses( $comment->comment_content, [] ), 8 ), $comment->comment_ID ); 50 50 } else { 51 return 'unknow comment';51 return 'unknown comment'; 52 52 } 53 53 } -
decalog/tags/4.5.0/includes/system/class-role.php
r2481266 r3404120 87 87 * 88 88 * @param integer $user_id Optional. The user id. 89 * @return boolean True if privileges can be overridde d, false otherwise.89 * @return boolean True if privileges can be overridden, false otherwise. 90 90 * @since 2.4.0 91 91 */ -
decalog/tags/4.5.0/includes/system/class-sharedmemory.php
r3085475 r3404120 79 79 80 80 /** 81 * Acquire a res source.81 * Acquire a resource. 82 82 * 83 83 * @param string $flags Optional. The flags for opening. -
decalog/tags/4.5.0/init.php
r3272132 r3404120 13 13 define( 'DECALOG_PRODUCT_ABBREVIATION', 'decalog' ); 14 14 define( 'DECALOG_SLUG', 'decalog' ); 15 define( 'DECALOG_VERSION', '4. 4.0' );15 define( 'DECALOG_VERSION', '4.5.0' ); 16 16 define( 'DECALOG_API_VERSION', '3' ); 17 17 define( 'DECALOG_MONOLOG_VERSION', '2.9.3' ); -
decalog/tags/4.5.0/languages/decalog.pot
r2713367 r3404120 442 442 #: admin/class-decalog-admin.php:1186 443 443 msgid "" 444 "APCu is available on your server: you can use high pe formance storage "444 "APCu is available on your server: you can use high performance storage " 445 445 "mechanism." 446 446 msgstr "" … … 449 449 #, php-format 450 450 msgid "" 451 "APCu is not available on your server. To use high pe formance storage "451 "APCu is not available on your server. To use high performance storage " 452 452 "mechanism you must activate %s PHP module." 453 453 msgstr "" -
decalog/tags/4.5.0/readme.txt
r3272132 r3404120 4 4 Requires at least: 6.2 5 5 Requires PHP: 8.1 6 Tested up to: 6. 87 Stable tag: 4. 4.06 Tested up to: 6.9 7 Stable tag: 4.5.0 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
decalog/trunk/CHANGELOG.md
r3272132 r3404120 3 3 4 4 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and **DecaLog** adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 5 6 ## [4.5.0] - 2025-11-27 7 8 ### Added 9 - Compatibility with WordPress 6.9. 10 11 ### Changed 12 - [BC] Default PHP errors mapping has changed: now, `E_USER_NOTICE`, `E_STRICT` and `E_USER_DEPRECATED` are logged as `debug` events. 13 - [BC] Some Action Scheduler events have a lower level (thanks to [Jan Thiel](https://github.com/JanThiel)). 14 - [WP-CLI] Using `--quiet` now disables logging of events that are not errors. (thanks to [Jan Thiel](https://github.com/JanThiel)). 15 - The levels of `pre_clear_scheduled_hook` are now debug/info to prevent excessive noise. 16 - The level mapping is now usable earlyer while logging PHP errors (thanks to [s.protasov](https://github.com/pro2s)). 17 - The auto loading sequence have been improved (thanks to [Viktor Szépe](https://github.com/szepeviktor)). 18 19 ### Fixed 20 - Using last version of WP-Optimize plugin breaks the site (thanks to [123kubix123](https://github.com/123kubix123)). 21 - There are many typos (thanks to [Viktor Szépe](https://github.com/szepeviktor)). 5 22 6 23 ## [4.4.0] - 2025-04-14 … … 31 48 ### Changed 32 49 - To avoid name collision with some third-party configurations, the version tag in Datadog, Loki and Grafana loggers is now named `wp_version` (it was previously `version`). 33 - Ability to self-update from Git hub.50 - Ability to self-update from GitHub. 34 51 - The plugin user agent is now more consistent and "standard". 35 52 … … 64 81 > **Important note about this version:** 65 82 > - **DecaLog 4 is a transition version to prepare DecaLog 5.** 66 > - **No migration path wil be available to migrate from DecaLog 3.x to 5.x, so don't ignore this version 4: install it!**83 > - **No migration path will be available to migrate from DecaLog 3.x to 5.x, so don't ignore this version 4: install it!** 67 84 > - **DecaLog 5 will be available in early 2025.** 68 85 … … 946 963 - The word "blog" has been replaced by "site" in events messages. 947 964 - Some help strings have been modified to be more clear. 948 - Lower severity of serialized json messages (triggered by `wp_die` handler) from critic ial to debug.965 - Lower severity of serialized json messages (triggered by `wp_die` handler) from critical to debug. 949 966 950 967 ### Removed -
decalog/trunk/HOOKS.md
r3085475 r3404120 11 11 The format of the filtered value is an array of array(s). Each of the deepest array MUST contain 3 fields: 12 12 13 * `url`: the full url of the action to perfo m. This url is opened in a new tab of the user's browser.13 * `url`: the full url of the action to perform. This url is opened in a new tab of the user's browser. 14 14 * `hint`: the text displayed while hovering the icon. 15 15 * `icon`: the "index" of the icon. Since DecaLog embeds the [Feather icon library](https://feathericons.com/), you can choose any index of this library. … … 38 38 The format of the filtered value is an array of array(s). Each of the deepest array MUST contain 2 fields: 39 39 40 * `url`: the full url of the action to perfo m. This url is opened in a new tab of the user's browser.40 * `url`: the full url of the action to perform. This url is opened in a new tab of the user's browser. 41 41 * `text`: the text of the link anchor. 42 42 -
decalog/trunk/WP-CLI.md
r2552001 r3404120 18 18 If you don't specify `<count>`, DecaLog will launch an interactive logging session: it will display events as soon as they occur on your site. To quit this session, hit `CTRL+C`. 19 19 20 If you specif iy a value for `<count>` between 1 to 60, DecaLog will show you the *count* last events triggered on your site.20 If you specify a value for `<count>` between 1 to 60, DecaLog will show you the *count* last events triggered on your site. 21 21 22 22 > Note the `tail` command needs shared memory support on your server, both for web server and command-line configuration. If it's not already the case, you must activate the ***shmop*** PHP module. -
decalog/trunk/admin/class-decalog-admin.php
r3202160 r3404120 1197 1197 if ( Cache::$apcu_available) { 1198 1198 $help = '<img style="width:16px;vertical-align:text-bottom;" src="' . \Feather\Icons::get_base64( 'thumbs-up', 'none', '#00C800' ) . '" /> '; 1199 $help .= decalog_esc_html__('APCu is available on your server: you can use high pe formance storage mechanism.', 'decalog' );1199 $help .= decalog_esc_html__('APCu is available on your server: you can use high performance storage mechanism.', 'decalog' ); 1200 1200 } else { 1201 1201 $help = '<img style="width:16px;vertical-align:text-bottom;" src="' . \Feather\Icons::get_base64( 'alert-triangle', 'none', '#FF8C00' ) . '" /> '; 1202 $help .= sprintf( decalog_esc_html__('APCu is not available on your server. To use high pe formance storage mechanism you must activate %s PHP module.', 'decalog' ), '<code>apcu</code>' );1202 $help .= sprintf( decalog_esc_html__('APCu is not available on your server. To use high performance storage mechanism you must activate %s PHP module.', 'decalog' ), '<code>apcu</code>' ); 1203 1203 } 1204 1204 add_settings_field( -
decalog/trunk/assets/fatal-error-handler.php
r3085475 r3404120 55 55 E_USER_WARNING => 300, 56 56 E_NOTICE => 250, 57 E_USER_NOTICE => 250,58 E_STRICT => 250,57 E_USER_NOTICE => 100, 58 E_STRICT => 100, 59 59 E_DEPRECATED => 200, 60 E_USER_DEPRECATED => 200,60 E_USER_DEPRECATED => 100, 61 61 ]; 62 62 … … 128 128 */ 129 129 public function handle_error( $code, $message, $file = '', $line = 0, $context = [] ) { 130 $level = $this->error_level_map[ $code ] ?? 500; 130 /** 131 * Filters the error levels map 132 * 133 * @See https://github.com/Pierre-Lannoy/wp-decalog/blob/master/HOOKS.md 134 * @since 4.5.0 135 * @param array $levels The current map 136 */ 137 $map = apply_filters( 'decalog_error_level_map', $this->error_level_map ); 138 $level = $map[ $code ] ?? 500; 131 139 $file = $this->normalized_file_line( $file, $line ); 132 140 $message = \sprintf( 'Error (%s): "%s" at `%s`.', $this->error_string_map[ $code ] ?? 'Unknown PHP error', $message, $file ); -
decalog/trunk/autoload.php
r2794866 r3404120 10 10 spl_autoload_register( 11 11 function ( $class ) { 12 $paths = array( 13 'Decalog\\System\\' => DECALOG_INCLUDES_DIR . 'system/', 14 'Decalog\\Plugin\\Feature\\' => DECALOG_INCLUDES_DIR . 'features/', 15 'Decalog\\Plugin\\' => DECALOG_INCLUDES_DIR . 'plugin/', 16 'Decalog\\Processor\\' => DECALOG_INCLUDES_DIR . 'processors/', 17 'Decalog\\Handler\\' => DECALOG_INCLUDES_DIR . 'handlers/', 18 'Decalog\\Storage\\' => DECALOG_INCLUDES_DIR . 'storage/', 19 'Decalog\\Formatter\\' => DECALOG_INCLUDES_DIR . 'formatters/', 20 'Decalog\\Listener\\WP_CLI\\' => DECALOG_INCLUDES_DIR . 'listeners/wp-cli/', 21 'Decalog\\Listener\\' => DECALOG_INCLUDES_DIR . 'listeners/', 22 'Decalog\\Panel\\' => DECALOG_INCLUDES_DIR . 'panels/', 23 'Decalog\\Library\\' => DECALOG_VENDOR_DIR, 24 'Decalog\\Integration\\' => DECALOG_INCLUDES_DIR . 'integrations/', 25 'Decalog\\API\\' => DECALOG_INCLUDES_DIR . 'api/', 26 'Decalog\\' => DECALOG_INCLUDES_DIR . 'api/', 27 ); 28 12 29 $classname = $class; 13 30 $filepath = __DIR__ . '/'; … … 17 34 } 18 35 $filename = 'class-' . str_replace( '_', '-', strtolower( $classname ) ) . '.php'; 19 if ( strpos( $class, 'Decalog\System\\' ) === 0 ) { 20 $filepath = DECALOG_INCLUDES_DIR . 'system/'; 21 } elseif ( strpos( $class, 'Decalog\Plugin\Feature\\' ) === 0 ) { 22 $filepath = DECALOG_INCLUDES_DIR . 'features/'; 23 } elseif ( strpos( $class, 'Decalog\Plugin\\' ) === 0 ) { 24 $filepath = DECALOG_INCLUDES_DIR . 'plugin/'; 25 } elseif ( strpos( $class, 'Decalog\Processor\\' ) === 0 ) { 26 $filepath = DECALOG_INCLUDES_DIR . 'processors/'; 27 } elseif ( strpos( $class, 'Decalog\Handler\\' ) === 0 ) { 28 $filepath = DECALOG_INCLUDES_DIR . 'handlers/'; 29 } elseif ( strpos( $class, 'Decalog\Storage\\' ) === 0 ) { 30 $filepath = DECALOG_INCLUDES_DIR . 'storage/'; 31 } elseif ( strpos( $class, 'Decalog\Formatter\\' ) === 0 ) { 32 $filepath = DECALOG_INCLUDES_DIR . 'formatters/'; 33 } elseif ( strpos( $class, 'Decalog\Listener\WP_CLI\\' ) === 0 ) { 34 $filepath = DECALOG_INCLUDES_DIR . 'listeners/wp-cli/'; 35 } elseif ( strpos( $class, 'Decalog\Listener\\' ) === 0 ) { 36 $filepath = DECALOG_INCLUDES_DIR . 'listeners/'; 37 } elseif ( strpos( $class, 'Decalog\Panel\\' ) === 0 ) { 38 $filepath = DECALOG_INCLUDES_DIR . 'panels/'; 39 } elseif ( strpos( $class, 'Decalog\Library\\' ) === 0 ) { 40 $filepath = DECALOG_VENDOR_DIR; 41 } elseif ( strpos( $class, 'Decalog\Integration\\' ) === 0 ) { 42 $filepath = DECALOG_INCLUDES_DIR . 'integrations/'; 43 } elseif ( strpos( $class, 'Decalog\API\\' ) === 0 ) { 44 $filepath = DECALOG_INCLUDES_DIR . 'api/'; 45 } elseif ( strpos( $class, 'Decalog\\' ) === 0 ) { 46 $filepath = DECALOG_INCLUDES_DIR . 'api/'; 36 foreach ( $paths as $prefix => $dir ) { 37 if ( strpos( $class, $prefix ) === 0 ) { 38 $filepath = $dir; 39 break; 40 } 47 41 } 48 42 if ( strpos( $filename, '-public' ) !== false ) { -
decalog/trunk/decalog.php
r3272132 r3404120 11 11 * Plugin URI: https://perfops.one/decalog 12 12 * Description: Capture and log events, metrics and traces on your site. Make WordPress observable – finally! 13 * Version: 4. 4.013 * Version: 4.5.0 14 14 * Requires at least: 6.2 15 15 * Requires PHP: 8.1 -
decalog/trunk/functions.php
r3195163 r3404120 86 86 * Functionally, the equivalent of the standard str_pad function, but is capable of successfully padding multibyte strings. 87 87 * 88 * @param string $input The string to be fully trim ed.88 * @param string $input The string to be fully trimmed. 89 89 * @param string $replacement Optional. The string replacement. 90 90 * 91 * @return string A fully trim ed multibyte string.91 * @return string A fully trimmed multibyte string. 92 92 * @since 3.6.0 93 93 */ -
decalog/trunk/includes/features/class-classtypes.php
r3195163 r3404120 35 35 * 36 36 * @since 1.0.0 37 * @var array $class e_names Maintains the classes list.37 * @var array $class_names Maintains the classes list. 38 38 */ 39 public static $class e_names = [];39 public static $class_names = []; 40 40 41 41 /** … … 45 45 */ 46 46 public static function init() { 47 self::$class e_names['core'] = decalog_esc_html__( 'Core', 'decalog' );48 self::$class e_names['plugin'] = decalog_esc_html__( 'Plugin', 'decalog' );49 self::$class e_names['theme'] = decalog_esc_html__( 'Theme', 'decalog' );50 self::$class e_names['db'] = decalog_esc_html__( 'Database', 'decalog' );51 self::$class e_names['php'] = decalog_esc_html__( 'PHP', 'decalog' );52 self::$class e_names['library'] = decalog_esc_html__( 'Library', 'decalog' );53 self::$class e_names['unknown'] = decalog_esc_html__( 'Unknown', 'decalog' );47 self::$class_names['core'] = decalog_esc_html__( 'Core', 'decalog' ); 48 self::$class_names['plugin'] = decalog_esc_html__( 'Plugin', 'decalog' ); 49 self::$class_names['theme'] = decalog_esc_html__( 'Theme', 'decalog' ); 50 self::$class_names['db'] = decalog_esc_html__( 'Database', 'decalog' ); 51 self::$class_names['php'] = decalog_esc_html__( 'PHP', 'decalog' ); 52 self::$class_names['library'] = decalog_esc_html__( 'Library', 'decalog' ); 53 self::$class_names['unknown'] = decalog_esc_html__( 'Unknown', 'decalog' ); 54 54 55 55 } -
decalog/trunk/includes/features/class-dlogger.php
r3195163 r3404120 39 39 * @var string $class Maintains the class of the component. 40 40 */ 41 protected $class = 'unkn won';41 protected $class = 'unknown'; 42 42 43 43 /** -
decalog/trunk/includes/features/class-dmonitor.php
r3085475 r3404120 37 37 * @var string $class Maintains the class of the component. 38 38 */ 39 protected $class = 'unkn won';39 protected $class = 'unknown'; 40 40 41 41 /** -
decalog/trunk/includes/features/class-dtracer.php
r3085475 r3404120 39 39 * @var string $class Maintains the class of the component. 40 40 */ 41 protected $class = 'unkn won';41 protected $class = 'unknown'; 42 42 43 43 /** -
decalog/trunk/includes/features/class-events.php
r3195163 r3404120 205 205 $icon = '<img style="width:28px;float:left;padding-top:6px;padding-right:6px;" src="' . SDK::get_icon( $item['component'] ) . '" />'; 206 206 $name = $item['component'] . $this->get_filter( 'component', $item['component'] ) . $this->get_actions( 'source', $item ) . ' <span style="color:silver">' . $item['version'] . '</span>'; 207 $result = $icon . $name . '<br /><span style="color:silver">' . ClassTypes::$class e_names[ $item['class'] ] . $this->get_filter( 'class', $item['class'], true ) . '</span>';207 $result = $icon . $name . '<br /><span style="color:silver">' . ClassTypes::$class_names[ $item['class'] ] . $this->get_filter( 'class', $item['class'], true ) . '</span>'; 208 208 return $result; 209 209 } -
decalog/trunk/includes/features/class-eventviewer.php
r3195163 r3404120 454 454 $hour = $this->get_section( $content ); 455 455 // Event source. 456 $class = ClassTypes::$class e_names[ strtolower( $this->event['class'] ) ];456 $class = ClassTypes::$class_names[ strtolower( $this->event['class'] ) ]; 457 457 $component = $this->event['component'] . ' ' . $this->event['version']; 458 458 $content = '<span style="width:40%;cursor: default;float:left">' . $this->get_icon( 'folder' ) . $class . '</span>'; -
decalog/trunk/includes/features/class-sdk.php
r3094032 r3404120 34 34 * Verify if SDK is present. 35 35 * 36 * @retu n boolean True if SDK is present, false otherwise.36 * @return boolean True if SDK is present, false otherwise. 37 37 * @since 3.0.0 38 38 */ … … 50 50 if ( self::is_present() ) { 51 51 $result = \DecaLog\Engine::getLoggers(); 52 foreach ( $result as $slug => $log er ) {52 foreach ( $result as $slug => $logger ) { 53 53 $result[ $slug ]['slug'] = $slug; 54 54 } … … 317 317 $source = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" preserveAspectRatio="xMidYMid meet">'; 318 318 $source .= '<g transform="scale(2,2) translate(0,0)">'; 319 $source .= '<g id="or ginal" style="fill-rule:nonzero;clip-rule:nonzero;stroke:' . $color1 . ';stroke-miterlimit:4;"></g>';319 $source .= '<g id="original" style="fill-rule:nonzero;clip-rule:nonzero;stroke:' . $color1 . ';stroke-miterlimit:4;"></g>'; 320 320 $source .= '<g id="Layer_x0020_3" style="fill-rule:nonzero;clip-rule:nonzero;fill:none;stroke:' . $color3 . ';stroke-width:12.4651;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;">'; 321 321 $source .= '<path style="fill:' . $color1 . ';stroke:' . $color1 . ';stroke-width:37.3953;stroke-linecap:butt;stroke-linejoin:miter;" d="M323.205,324.227c2.833-23.601,1.984-27.062,19.563-23.239l4.463,0.392c13.517,0.615,31.199-2.174,41.587-7c22.362-10.376,35.622-27.7,13.572-23.148c-50.297,10.376-53.755-6.655-53.755-6.655c53.111-78.803,75.313-178.836,56.149-203.322 C352.514-5.534,262.036,26.049,260.522,26.869l-0.482,0.089c-9.938-2.062-21.06-3.294-33.554-3.496c-22.761-0.374-40.032,5.967-53.133,15.904c0,0-161.408-66.498-153.899,83.628c1.597,31.936,45.777,241.655,98.47,178.31 c19.259-23.163,37.871-42.748,37.871-42.748c9.242,6.14,20.307,9.272,31.912,8.147l0.897-0.765c-0.281,2.876-0.157,5.689,0.359,9.019c-13.572,15.167-9.584,17.83-36.723,23.416c-27.457,5.659-11.326,15.734-0.797,18.367c12.768,3.193,42.305,7.716,62.268-20.224 l-0.795,3.188c5.325,4.26,4.965,30.619,5.72,49.452c0.756,18.834,2.017,36.409,5.856,46.771c3.839,10.36,8.369,37.05,44.036,29.406c29.809-6.388,52.6-15.582,54.677-101.107"/>'; -
decalog/trunk/includes/formatters/class-datadogformatter.php
r3195163 r3404120 53 53 $event['message'] = $record['message']; 54 54 } else { 55 $event['message'] = '<no mess sage>';55 $event['message'] = '<no message>'; 56 56 } 57 57 if ( array_key_exists( 'level', $record ) ) { -
decalog/trunk/includes/formatters/class-generichtmlformatter.php
r3195163 r3404120 118 118 119 119 /** 120 * Get t arce detail.120 * Get trace detail. 121 121 * 122 122 * @param array $trace The trace records. -
decalog/trunk/includes/formatters/class-newrelicformatter.php
r2658577 r3404120 69 69 $event['message'] = str_replace( '\'', '`', $event['message'] ); 70 70 } else { 71 $event['message'] = '<no mess sage>';71 $event['message'] = '<no message>'; 72 72 } 73 73 if ( array_key_exists( 'level', $record ) ) { -
decalog/trunk/includes/handlers/class-abstractmonitoringhandler.php
r2870563 r3404120 146 146 $message = wp_remote_retrieve_response_message( $result ); 147 147 if ( '' === $message ) { 148 $message = 'Unknow error';148 $message = 'Unknown error'; 149 149 } 150 150 if ( $this->error_control ) { -
decalog/trunk/includes/handlers/class-abstracttracinghandler.php
r2870563 r3404120 535 535 $message = wp_remote_retrieve_response_message( $result ); 536 536 if ( '' === $message ) { 537 $message = 'Unknow error';537 $message = 'Unknown error'; 538 538 } 539 539 if ( $this->error_control ) { -
decalog/trunk/includes/integrations/class-optimizelogger.php
r3195163 r3404120 66 66 * @since 1.9.0 67 67 */ 68 public function emergency( $message, array$context = [] ) {68 public function emergency( $message, $context = [] ) { 69 69 $this->logger->emergency( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 70 70 } … … 77 77 * @since 1.9.0 78 78 */ 79 public function alert( $message, array$context = [] ) {79 public function alert( $message, $context = [] ) { 80 80 $this->logger->alert( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 81 81 } … … 88 88 * @since 1.9.0 89 89 */ 90 public function critical( $message, array$context = [] ) {90 public function critical( $message, $context = [] ) { 91 91 $this->logger->critical( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 92 92 } … … 100 100 * @since 1.9.0 101 101 */ 102 public function error( $message, array$context = [] ) {102 public function error( $message, $context = [] ) { 103 103 $this->logger->error( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 104 104 } … … 111 111 * @since 1.9.0 112 112 */ 113 public function warning( $message, array$context = [] ) {113 public function warning( $message, $context = [] ) { 114 114 $this->logger->warning( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 115 115 } … … 122 122 * @since 1.9.0 123 123 */ 124 public function notice( $message, array$context = [] ) {124 public function notice( $message, $context = [] ) { 125 125 $this->logger->notice( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 126 126 } … … 135 135 * @since 1.9.0 136 136 */ 137 public function info( $message, array$context = [] ) {137 public function info( $message, $context = [] ) { 138 138 $this->logger->info( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 139 139 } … … 146 146 * @since 1.9.0 147 147 */ 148 public function debug( $message, array$context = [] ) {148 public function debug( $message, $context = [] ) { 149 149 $this->logger->debug( (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 150 150 } … … 158 158 * @since 1.9.0 159 159 */ 160 public function log( $level, $message, array$context = [] ) {160 public function log( $level, $message, $context = [] ) { 161 161 $this->logger->log( $level, (string) $message, is_array( $context ) && array_key_exists( 'code', $context ) && is_scalar( $context['code'] ) ? (int) $context['code'] : 0 ); 162 162 } -
decalog/trunk/includes/libraries/elastic/elasticsearch/Client.php
r3085475 r3404120 40 40 41 41 /** 42 * Specify is the request is async ronous42 * Specify is the request is asynchronous 43 43 */ 44 44 protected bool $async = false; -
decalog/trunk/includes/libraries/elastic/elasticsearch/ClientBuilder.php
r3085475 r3404120 52 52 53 53 /** 54 * The Node lPool54 * The NodePool 55 55 */ 56 56 private NodePoolInterface $nodePool; … … 385 385 if (!empty($this->apiKey)) { 386 386 if (!empty($this->username)) { 387 throw new AuthenticationException('You cannot use APIKey and Basic Authen ication together');387 throw new AuthenticationException('You cannot use APIKey and Basic Authentication together'); 388 388 } 389 389 $transport->setHeader('Authorization', sprintf("ApiKey %s", $this->apiKey)); -
decalog/trunk/includes/libraries/elastic/elasticsearch/ClientInterface.php
r3085475 r3404120 34 34 35 35 /** 36 * Set the async ronous HTTP request36 * Set the asynchronous HTTP request 37 37 */ 38 38 public function setAsync(bool $async): self; 39 39 40 40 /** 41 * Get the async ronous HTTP request setting41 * Get the asynchronous HTTP request setting 42 42 */ 43 43 public function getAsync(): bool; … … 65 65 /** 66 66 * Send the HTTP request using the Elastic Transport. 67 * It manages sync ronous and asyncronus requests using Client::getAsync()67 * It manages synchronous and asynchronous requests using Client::getAsync() 68 68 * 69 69 * @return Elasticsearch|Promise -
decalog/trunk/includes/libraries/elastic/elasticsearch/Endpoints/Ml.php
r3085475 r3404120 1131 1131 * influencer_score: double, // influencer score threshold for the requested influencers 1132 1132 * sort: string, // sort field for the requested influencers 1133 * desc: boolean, // whether the results should be sorted in de cending order1133 * desc: boolean, // whether the results should be sorted in descending order 1134 1134 * pretty: boolean, // Pretty format the returned JSON response. (DEFAULT: false) 1135 1135 * human: boolean, // Return human readable values for statistics. (DEFAULT: true) -
decalog/trunk/includes/libraries/elastic/elasticsearch/Helper/Iterators/SearchResponseIterator.php
r3085475 r3404120 136 136 137 137 /** 138 * Fetches every "page" after the first one using the la stest "scroll_id"138 * Fetches every "page" after the first one using the latest "scroll_id" 139 139 * 140 140 * @return void -
decalog/trunk/includes/libraries/elastic/elasticsearch/Response/Elasticsearch.php
r3085475 r3404120 119 119 } 120 120 throw new UnknownContentTypeException(sprintf( 121 "Cannot deserialize the re ponse as array with Content-Type: %s",121 "Cannot deserialize the response as array with Content-Type: %s", 122 122 $contentType 123 123 )); … … 152 152 } 153 153 throw new UnknownContentTypeException(sprintf( 154 "Cannot deserialize the re ponse as object with Content-Type: %s",154 "Cannot deserialize the response as object with Content-Type: %s", 155 155 $contentType 156 156 )); -
decalog/trunk/includes/libraries/elastic/elasticsearch/Traits/EndpointTrait.php
r3085475 r3404120 31 31 { 32 32 /** 33 * Check if an array contain ts nested array33 * Check if an array contains nested array 34 34 */ 35 35 private function isNestedArray(array $a): bool … … 157 157 /** 158 158 * Build the API compatibility headers 159 * transf rom Content-Type and Accept adding vnd.elasticsearch+ and compatible-with159 * transform Content-Type and Accept adding vnd.elasticsearch+ and compatible-with 160 160 * 161 161 * @see https://github.com/elastic/elasticsearch-php/pull/1142 -
decalog/trunk/includes/libraries/elastic/transport/Transport.php
r3085475 r3404120 153 153 $phpSemVersion, 154 154 $this->purgePreReleaseTag(self::VERSION), 155 $async ? 1 : 0 // 0=sync ronous, 1=asynchronous155 $async ? 1 : 0 // 0=synchronous, 1=asynchronous 156 156 ); 157 157 $lib = $this->getClientLibraryInfo(); -
decalog/trunk/includes/libraries/guzzlehttp/Psr7/LimitStream.php
r3085475 r3404120 106 106 * @param int $offset Offset to seek to and begin byte limiting from 107 107 * 108 * @throws \RuntimeException if the stream cannot be s eeked.108 * @throws \RuntimeException if the stream cannot be sought. 109 109 */ 110 110 public function setOffset(int $offset): void -
decalog/trunk/includes/libraries/guzzlehttp/Psr7/NoSeekStream.php
r3085475 r3404120 8 8 9 9 /** 10 * Stream decorator that prevents a stream from being s eeked.10 * Stream decorator that prevents a stream from being sought. 11 11 */ 12 12 final class NoSeekStream implements StreamInterface -
decalog/trunk/includes/libraries/http/client-common/Plugin/HeaderSetPlugin.php
r3085475 r3404120 12 12 * Set headers on the request. 13 13 * 14 * If the header does not exist it wil be set, if the header already exists it will be replaced.14 * If the header does not exist it will be set, if the header already exists it will be replaced. 15 15 * 16 16 * @author Soufiane Ghzal <sghzal@gmail.com> -
decalog/trunk/includes/libraries/http/client-common/Plugin/SeekableBodyPlugin.php
r3085475 r3404120 24 24 25 25 /** 26 * @param array{'use_file_buffer'?: bool, 'memory_b offer_size'?: int} $config26 * @param array{'use_file_buffer'?: bool, 'memory_buffer_size'?: int} $config 27 27 * 28 28 * Configuration options: -
decalog/trunk/includes/libraries/http/discovery/Composer/Plugin.php
r3085475 r3404120 28 28 * virtual packages, this plugin will auto-install a well-known implementation if none is 29 29 * found. The plugin will first look at already installed packages and figure out the 30 * preferred implementation to install based on the below stick yness rules (or on the first30 * preferred implementation to install based on the below stickiness rules (or on the first 31 31 * listed implementation if no rules match.) 32 32 * … … 90 90 * depending on which one is already installed on the right side. 91 91 */ 92 private const STICK YNESS_RULES = [92 private const STICKINESS_RULES = [ 93 93 'symfony/http-client' => 'symfony/framework-bundle', 94 94 'php-http/guzzle7-adapter' => 'guzzlehttp/guzzle:^7', … … 339 339 } 340 340 341 foreach (array_intersect_key(self::STICK YNESS_RULES, $candidates) as $candidate => $stickyRule) {341 foreach (array_intersect_key(self::STICKINESS_RULES, $candidates) as $candidate => $stickyRule) { 342 342 [$stickyName, $stickyVersion] = explode(':', $stickyRule, 2) + [1 => null]; 343 343 if (!isset($allPackages[$stickyName]) || ($isProject && !$dev && isset($devPackages[$stickyName]))) { -
decalog/trunk/includes/libraries/influxdb/ApiException.php
r3085475 r3404120 101 101 102 102 /** 103 * Sets the deser alized response object (during deserialization)103 * Sets the deserialized response object (during deserialization) 104 104 * 105 105 * @param mixed $obj Deserialized response object … … 113 113 114 114 /** 115 * Gets the deser alized response object (during deserialization)115 * Gets the deserialized response object (during deserialization) 116 116 * 117 117 * @return mixed the deserialized response object -
decalog/trunk/includes/libraries/influxdb/Configuration.php
r2552001 r3404120 376 376 377 377 /** 378 * Sets the de tault configuration instance378 * Sets the default configuration instance 379 379 * 380 380 * @param Configuration $config An instance of the Configuration Object -
decalog/trunk/includes/libraries/influxdb/FluxCsvParser.php
r3085475 r3404120 292 292 293 293 if ('dateTime:RFC3339' == $column->dataType || 'dateTime:RFC3339Nano' == $column->dataType) { 294 # #todo nanoseconds precission, php datetime is only in microseconds precision294 # @todo nanoseconds precision, php datetime is only in microseconds precision 295 295 return $strVal; 296 296 } -
decalog/trunk/includes/libraries/influxdb/HeaderSelector.php
r3085475 r3404120 93 93 * Return the content type based on an array of content-type provided 94 94 * 95 * @param string[] $contentType Array focontent-type95 * @param string[] $contentType Array of content-type 96 96 * 97 97 * @return string Content-Type (e.g. application/json) -
decalog/trunk/includes/libraries/influxdb/WriteRetry.php
r3085475 r3404120 16 16 private $jitterInterval; 17 17 private $maxRetryTime; 18 private $retryTim out;18 private $retryTimeout; 19 19 /** 20 20 * @var array … … 58 58 $this->options = $options; 59 59 60 //retry tim out61 $this->retryTim out = microtime(true) * 1000 + $maxRetryTime;60 //retry timeout 61 $this->retryTimeout = microtime(true) * 1000 + $maxRetryTime; 62 62 } 63 63 … … 82 82 83 83 // throws exception when max retry time is exceeded 84 if (microtime(true) * 1000 > $this->retryTim out) {84 if (microtime(true) * 1000 > $this->retryTimeout) { 85 85 DefaultApi::log("ERROR", "Maximum retry time $this->maxRetryTime ms exceeded", $this->options); 86 86 throw $e; -
decalog/trunk/includes/libraries/jaeger/Thrift/Agent/Zipkin/Span.php
r2552001 r3404120 130 130 * against a tick of currentTimeMillis. 131 131 * 132 * For compatibil ty with instrumentation that precede this field, collectors132 * For compatibility with instrumentation that precede this field, collectors 133 133 * or span stores can derive this via Annotation.timestamp. 134 134 * For example, SERVER_RECV.timestamp or CLIENT_SEND.timestamp. … … 147 147 * updates causing time to move backwards. 148 148 * 149 * For compatibil ty with instrumentation that precede this field, collectors149 * For compatibility with instrumentation that precede this field, collectors 150 150 * or span stores can derive this by subtracting Annotation.timestamp. 151 151 * For example, SERVER_SEND.timestamp - SERVER_RECV.timestamp. -
decalog/trunk/includes/libraries/lock/mutex/TransactionalMutex.php
r2552001 r3404120 104 104 * @param callable $code The synchronized execution block. 105 105 * @throws \Exception The execution block threw an exception. 106 * @throws LockAcquireException The transaction was not commit ed.106 * @throws LockAcquireException The transaction was not committed. 107 107 * @return mixed The return value of the execution block. 108 108 * @SuppressWarnings(PHPMD) -
decalog/trunk/includes/libraries/lock/util/DoubleCheckedLocking.php
r2391127 r3404120 50 50 * If then returns boolean boolean false, the check did not pass before or 51 51 * after acquiring the lock. A boolean false can also be returned from the 52 * critical code callback to indicate that processing did not occur eor has52 * critical code callback to indicate that processing did not occur or has 53 53 * failed. It is up to the user to decide the last point. 54 54 * -
decalog/trunk/includes/libraries/lock/util/PcntlTimeout.php
r2391127 r3404120 53 53 * 54 54 * This method has the side effect, that any signal handler for SIGALRM will 55 * be reset to the default han lder (SIG_DFL). It also expects that there is55 * be reset to the default handler (SIG_DFL). It also expects that there is 56 56 * no previously scheduled alarm. If your application uses alarms 57 57 * ({@link pcntl_alarm()}) or a signal handler for SIGALRM, don't use this 58 * method. It will interfer with your application and lead to unexpected58 * method. It will interfere with your application and lead to unexpected 59 59 * behaviour. 60 60 * -
decalog/trunk/includes/libraries/markdown/MarkdownParser.php
r2391127 r3404120 45 45 46 46 /** 47 * @var array these are "escap eable" characters. When using one of these prefixed with a47 * @var array these are "escapable" characters. When using one of these prefixed with a 48 48 * backslash, the character will be outputted without the backslash and is not interpreted 49 49 * as markdown. -
decalog/trunk/includes/libraries/markdown/Parser.php
r2391127 r3404120 27 27 protected $context = []; 28 28 /** 29 * @var array these are "escap eable" characters. When using one of these prefixed with a29 * @var array these are "escapable" characters. When using one of these prefixed with a 30 30 * backslash, the character will be outputted without the backslash and is not interpreted 31 31 * as markdown. … … 130 130 131 131 /** 132 * Given a set of lines and an index of a current line it uses the registe d block types to132 * Given a set of lines and an index of a current line it uses the registered block types to 133 133 * detect the type of this line. 134 134 * @param array $lines -
decalog/trunk/includes/libraries/markdown/inline/LinkTrait.php
r2391127 r3404120 12 12 13 13 /** 14 * Add es links and images as well as url markers.14 * Adds links and images as well as url markers. 15 15 * 16 16 * This trait conflicts with the HtmlTrait. If both are used together, -
decalog/trunk/includes/libraries/monolog/ErrorHandler.php
r3085475 r3404120 168 168 E_USER_ERROR => LogLevel::ERROR, 169 169 E_USER_WARNING => LogLevel::WARNING, 170 E_USER_NOTICE => LogLevel:: NOTICE,171 E_STRICT => LogLevel:: NOTICE,170 E_USER_NOTICE => LogLevel::DEBUG, 171 E_STRICT => LogLevel::DEBUG, 172 172 E_RECOVERABLE_ERROR => LogLevel::ERROR, 173 E_DEPRECATED => LogLevel:: NOTICE,174 E_USER_DEPRECATED => LogLevel:: NOTICE,173 E_DEPRECATED => LogLevel::INFO, 174 E_USER_DEPRECATED => LogLevel::DEBUG, 175 175 ]; 176 176 } -
decalog/trunk/includes/libraries/prometheus/Storage/APC.php
r2552001 r3404120 142 142 public function wipeStorage(): void 143 143 { 144 // / / | PCRE expres ion boundary144 // / / | PCRE expression boundary 145 145 // ^ | match from first character only 146 146 // %s: | common prefix substitute with colon suffix -
decalog/trunk/includes/libraries/spyc/Spyc.php
r2397530 r3404120 83 83 84 84 /** 85 * Setting this to true will for se YAMLLoad to use syck_load function when85 * Setting this to true will force YAMLLoad to use syck_load function when 86 86 * possible. False by default. 87 87 * @var bool … … 90 90 91 91 /** 92 * Setting this to true will for se YAMLLoad to use syck_load function when92 * Setting this to true will force YAMLLoad to use syck_load function when 93 93 * possible. False by default. 94 94 * @var bool -
decalog/trunk/includes/libraries/thrift/Protocol/TJSONProtocol.php
r2552001 r3404120 662 662 * @param string $name Function name 663 663 * @param int $type message type TMessageType::CALL or TMessageType::REPLY 664 * @par em int $seqid The sequence id of this message664 * @param int $seqid The sequence id of this message 665 665 */ 666 666 public function readMessageBegin(&$name, &$type, &$seqid) -
decalog/trunk/includes/libraries/thrift/Protocol/TProtocol.php
r2552001 r3404120 135 135 * @param string $name Function name 136 136 * @param int $type message type TMessageType::CALL or TMessageType::REPLY 137 * @par em int $seqid The sequence id of this message137 * @param int $seqid The sequence id of this message 138 138 */ 139 139 abstract public function readMessageBegin(&$name, &$type, &$seqid); -
decalog/trunk/includes/libraries/thrift/Server/TServerTransport.php
r2552001 r3404120 38 38 39 39 /** 40 * Uses the accept implem tation. If null is returned, an40 * Uses the accept implementation. If null is returned, an 41 41 * exception is thrown. 42 42 * -
decalog/trunk/includes/libraries/thrift/Server/TSimpleServer.php
r2552001 r3404120 6 6 7 7 /** 8 * Simple implem tation of a Thrift server.8 * Simple implementation of a Thrift server. 9 9 * 10 10 * @package thrift.server -
decalog/trunk/includes/libraries/thrift/Type/TConstant.php
r2552001 r3404120 29 29 { 30 30 /** 31 * Don't instan ciate this class31 * Don't instantiate this class 32 32 */ 33 33 protected function __construct() -
decalog/trunk/includes/libraries/tracy/Tracy/Debugger/Debugger.php
r3085475 r3404120 205 205 if (function_exists('ini_set')) { 206 206 ini_set('display_errors', '0'); // or 'stderr' 207 ini_set('html_errors', '0'); // additionally turns off stack trace displa ing by xdebug207 ini_set('html_errors', '0'); // additionally turns off stack trace displaying by xdebug 208 208 ini_set('log_errors', '0'); 209 209 ini_set('zend.exception_ignore_args', '0'); … … 429 429 if (empty(self::$logger)) { 430 430 self::$logger = new Logger(self::$logDirectory, self::$email, self::getBlueScreen()); 431 self::$logger->directory = &self::$logDirectory; // back compatib lity431 self::$logger->directory = &self::$logDirectory; // back compatibility 432 432 self::$logger->email = &self::$email; 433 433 } -
decalog/trunk/includes/listeners/class-abstractlistener.php
r2794866 r3404120 59 59 * 60 60 * @since 3.0.0 61 * @var \Decalog\Plugin\Feature\DTracer $monitor An instance of DTracer to trace listener t arces.61 * @var \Decalog\Plugin\Feature\DTracer $monitor An instance of DTracer to trace listener traces. 62 62 */ 63 63 protected $tracer = null; -
decalog/trunk/includes/listeners/class-corelistener.php
r3195163 r3404120 192 192 add_filter( 'pre_unschedule_hook', [ $this, 'pre_unschedule_hook' ], PHP_INT_MAX, 2 ); 193 193 } 194 // Ap lications Passwords194 // Applications Passwords 195 195 add_action( 'wp_create_application_password', [ $this, 'wp_create_application_password' ], 10, 4 ); 196 196 add_action( 'wp_update_application_password', [ $this, 'wp_update_application_password' ], 10, 3 ); … … 1387 1387 public function pre_clear_scheduled_hook( $pre, $hook, $args = null, $wp_error = null ) { 1388 1388 if ( is_null( $pre ) ) { 1389 $this->logger-> info( sprintf( 'The "%s" event will be cleared.', $hook ) );1389 $this->logger->debug( sprintf( 'The "%s" event will be cleared.', $hook ) ); 1390 1390 } else { 1391 $this->logger-> notice( sprintf( 'A plugin prevented the "%s" event to be cleared.', $hook ) );1391 $this->logger->info( sprintf( 'A plugin prevented the "%s" event to be cleared.', $hook ) ); 1392 1392 } 1393 1393 return $pre; -
decalog/trunk/includes/listeners/class-libaschedulerlistener.php
r3085475 r3404120 138 138 */ 139 139 public function action_scheduler_deleted_action( $action_id ) { 140 $this->logger-> notice( sprintf( 'Action "%s" (action ID %s) deleted.', \ActionScheduler::store()->fetch_action( $action_id )->get_hook(), $action_id ) );140 $this->logger->info( sprintf( 'Action "%s" (action ID %s) deleted.', \ActionScheduler::store()->fetch_action( $action_id )->get_hook(), $action_id ) ); 141 141 } 142 142 … … 192 192 */ 193 193 public function action_scheduler_failed_old_action_deletion( $action_id, $exception ) { 194 $this->logger-> error( sprintf( 'Unable to delete old action "%s" (action ID %s): %s.', \ActionScheduler::store()->fetch_action( $action_id )->get_hook(), $action_id, ( $exception instanceof \Throwable ? $exception->getMessage() : 'unknown error' ) ) );194 $this->logger->notice( sprintf( 'Unable to delete old action "%s" (action ID %s): %s.', \ActionScheduler::store()->fetch_action( $action_id )->get_hook(), $action_id, ( $exception instanceof \Throwable ? $exception->getMessage() : 'unknown error' ) ) ); 195 195 } 196 196 -
decalog/trunk/includes/listeners/class-phplistener.php
r3085475 r3404120 48 48 E_USER_WARNING => Logger::WARNING, 49 49 E_NOTICE => Logger::NOTICE, 50 E_USER_NOTICE => Logger:: NOTICE,51 E_STRICT => Logger:: NOTICE,50 E_USER_NOTICE => Logger::DEBUG, 51 E_STRICT => Logger::DEBUG, 52 52 E_DEPRECATED => Logger::INFO, 53 E_USER_DEPRECATED => Logger:: INFO,53 E_USER_DEPRECATED => Logger::DEBUG, 54 54 ]; 55 55 -
decalog/trunk/includes/listeners/wp-cli/class-quiet.php
r2794866 r3404120 51 51 */ 52 52 public function info( $message ) { 53 $this->logger->info( ucfirst( $message ) );54 53 parent::info( $message ); 55 54 } … … 62 61 */ 63 62 public function success( $message ) { 64 $this->logger->notice( ucfirst( $message ) );65 63 parent::success( $message ); 66 64 } … … 73 71 */ 74 72 public function warning( $message ) { 75 $this->logger->warning( ucfirst( $message ) );76 73 parent::warning( $message ); 77 74 } -
decalog/trunk/includes/plugin/class-initializer.php
r3195163 r3404120 69 69 } catch ( \Exception $e ) { 70 70 $logger = Log::bootstrap( 'plugin', DECALOG_PRODUCT_SHORTNAME, DECALOG_VERSION ); 71 $logger->critical( sprintf( 'Unable to instan ciate `%s` class. DecaLog will not log following WP-CLI events.', $class ) );71 $logger->critical( sprintf( 'Unable to instantiate `%s` class. DecaLog will not log following WP-CLI events.', $class ) ); 72 72 } 73 73 } else { -
decalog/trunk/includes/plugin/class-updater.php
r3272132 r3404120 223 223 } 224 224 $md = new Markdown(); 225 $res = new \stdClass(); 225 if ( ! is_object( $res ) ) { 226 $res = new \stdClass(); 227 } 226 228 $res->name = $this->name; 227 229 $res->homepage = 'https://perfops.one/' . $this->slug; … … 238 240 $res->download_link = $infos->download_url; 239 241 $res->trunk = $infos->download_url; 240 $res->sections = [ 241 'changelog' => $md->get_inline( $infos->changelog, [] ) . '<br/><br/><p><a target="_blank" href="' . $res->homepage . '-changelog">CHANGELOG »</a></p>', 242 ]; 243 $res->banners = [ 244 "low" => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-772x250.jpg', 245 "high" => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-1544x500.jpg' 246 ]; 242 if ( isset( $res->sections['changelog'] ) ) { 243 $res->sections['changelog'] = $md->get_inline( $infos->changelog, [] ) . '<br/><br/><p><a target="_blank" href="' . $res->homepage . '-changelog">CHANGELOG »</a></p>'; 244 } else { 245 $res->sections = [ 246 'changelog' => $md->get_inline( $infos->changelog, [] ) . '<br/><br/><p><a target="_blank" href="' . $res->homepage . '-changelog">CHANGELOG »</a></p>', 247 ]; 248 } 249 if ( isset( $res->banners['low'] ) && isset( $res->banners['high'] )) { 250 $res->banners['low'] = str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-772x250.jpg'; 251 $res->banners['high'] = str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-1544x500.jpg'; 252 } else { 253 $res->banners = [ 254 'low' => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-772x250.jpg', 255 'high' => str_replace( 'github.com', 'raw.githubusercontent.com', $this->product ) . '/refs/heads/master/.wordpress-org/banner-1544x500.jpg' 256 ]; 257 } 247 258 return $res; 248 259 } -
decalog/trunk/includes/system/class-blog.php
r2595032 r3404120 116 116 return sprintf( '"%s" (site ID %s)', (string) $id->blogname, $id->id ); 117 117 } 118 return 'unknow site';118 return 'unknown site'; 119 119 } 120 120 -
decalog/trunk/includes/system/class-cache.php
r2794866 r3404120 419 419 * @since 1.0.0 420 420 */ 421 private static function delete_for_ful _name( $item_name ) {421 private static function delete_for_full_name( $item_name ) { 422 422 $item_name = self::normalized_item_name( $item_name ); 423 423 $result = 0; … … 461 461 * @since 3.4.0 462 462 */ 463 private static function delete_apcu_for_ful _name( $item_name ) {463 private static function delete_apcu_for_full_name( $item_name ) { 464 464 $item_name = self::normalized_item_name( $item_name ); 465 465 $result = 0; … … 516 516 */ 517 517 public static function delete_global( $item_name ) { 518 return self::delete_for_ful _name( self::full_item_name( $item_name ) );518 return self::delete_for_full_name( self::full_item_name( $item_name ) ); 519 519 } 520 520 … … 527 527 */ 528 528 public static function delete_global_apcu( $item_name ) { 529 return self::delete_apcu_for_ful _name( self::full_item_name( $item_name ) );529 return self::delete_apcu_for_full_name( self::full_item_name( $item_name ) ); 530 530 } 531 531 … … 543 543 */ 544 544 public static function delete( $item_name, $blog_aware = false, $locale_aware = false, $user_aware = false ) { 545 return self::delete_for_ful _name( self::full_item_name( $item_name, $blog_aware, $locale_aware, $user_aware ) );545 return self::delete_for_full_name( self::full_item_name( $item_name, $blog_aware, $locale_aware, $user_aware ) ); 546 546 } 547 547 -
decalog/trunk/includes/system/class-comment.php
r2552001 r3404120 49 49 return sprintf( '"%s" (comment ID %s)', wp_trim_words( wp_kses( $comment->comment_content, [] ), 8 ), $comment->comment_ID ); 50 50 } else { 51 return 'unknow comment';51 return 'unknown comment'; 52 52 } 53 53 } -
decalog/trunk/includes/system/class-role.php
r2481266 r3404120 87 87 * 88 88 * @param integer $user_id Optional. The user id. 89 * @return boolean True if privileges can be overridde d, false otherwise.89 * @return boolean True if privileges can be overridden, false otherwise. 90 90 * @since 2.4.0 91 91 */ -
decalog/trunk/includes/system/class-sharedmemory.php
r3085475 r3404120 79 79 80 80 /** 81 * Acquire a res source.81 * Acquire a resource. 82 82 * 83 83 * @param string $flags Optional. The flags for opening. -
decalog/trunk/init.php
r3272132 r3404120 13 13 define( 'DECALOG_PRODUCT_ABBREVIATION', 'decalog' ); 14 14 define( 'DECALOG_SLUG', 'decalog' ); 15 define( 'DECALOG_VERSION', '4. 4.0' );15 define( 'DECALOG_VERSION', '4.5.0' ); 16 16 define( 'DECALOG_API_VERSION', '3' ); 17 17 define( 'DECALOG_MONOLOG_VERSION', '2.9.3' ); -
decalog/trunk/languages/decalog.pot
r2713367 r3404120 442 442 #: admin/class-decalog-admin.php:1186 443 443 msgid "" 444 "APCu is available on your server: you can use high pe formance storage "444 "APCu is available on your server: you can use high performance storage " 445 445 "mechanism." 446 446 msgstr "" … … 449 449 #, php-format 450 450 msgid "" 451 "APCu is not available on your server. To use high pe formance storage "451 "APCu is not available on your server. To use high performance storage " 452 452 "mechanism you must activate %s PHP module." 453 453 msgstr "" -
decalog/trunk/readme.txt
r3272132 r3404120 4 4 Requires at least: 6.2 5 5 Requires PHP: 8.1 6 Tested up to: 6. 87 Stable tag: 4. 4.06 Tested up to: 6.9 7 Stable tag: 4.5.0 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.
