├── LICENSE
├── README.md
├── block-usage-tracker.php
├── script.js
├── style.css
└── vendor
└── plugin-update-checker
├── Puc
├── v5
│ └── PucFactory.php
└── v5p4
│ ├── Autoloader.php
│ ├── DebugBar
│ ├── Extension.php
│ ├── Panel.php
│ ├── PluginExtension.php
│ ├── PluginPanel.php
│ └── ThemePanel.php
│ ├── InstalledPackage.php
│ ├── Metadata.php
│ ├── OAuthSignature.php
│ ├── Plugin
│ ├── Package.php
│ ├── PluginInfo.php
│ ├── Ui.php
│ ├── Update.php
│ └── UpdateChecker.php
│ ├── PucFactory.php
│ ├── Scheduler.php
│ ├── StateStore.php
│ ├── Theme
│ ├── Package.php
│ ├── Update.php
│ └── UpdateChecker.php
│ ├── Update.php
│ ├── UpdateChecker.php
│ ├── UpgraderStatus.php
│ ├── Utils.php
│ ├── Vcs
│ ├── Api.php
│ ├── BaseChecker.php
│ ├── BitBucketApi.php
│ ├── GitHubApi.php
│ ├── GitLabApi.php
│ ├── PluginUpdateChecker.php
│ ├── Reference.php
│ ├── ReleaseAssetSupport.php
│ ├── ReleaseFilteringFeature.php
│ ├── ThemeUpdateChecker.php
│ └── VcsCheckerMethods.php
│ └── WpCliCheckTrigger.php
├── README.md
├── composer.json
├── css
└── puc-debug-bar.css
├── js
└── debug-bar.js
├── languages
├── plugin-update-checker-ca.mo
├── plugin-update-checker-ca.po
├── plugin-update-checker-cs_CZ.mo
├── plugin-update-checker-cs_CZ.po
├── plugin-update-checker-da_DK.mo
├── plugin-update-checker-da_DK.po
├── plugin-update-checker-de_DE.mo
├── plugin-update-checker-de_DE.po
├── plugin-update-checker-es_AR.mo
├── plugin-update-checker-es_AR.po
├── plugin-update-checker-es_CL.mo
├── plugin-update-checker-es_CL.po
├── plugin-update-checker-es_CO.mo
├── plugin-update-checker-es_CO.po
├── plugin-update-checker-es_CR.mo
├── plugin-update-checker-es_CR.po
├── plugin-update-checker-es_DO.mo
├── plugin-update-checker-es_DO.po
├── plugin-update-checker-es_ES.mo
├── plugin-update-checker-es_ES.po
├── plugin-update-checker-es_GT.mo
├── plugin-update-checker-es_GT.po
├── plugin-update-checker-es_HN.mo
├── plugin-update-checker-es_HN.po
├── plugin-update-checker-es_MX.mo
├── plugin-update-checker-es_MX.po
├── plugin-update-checker-es_PE.mo
├── plugin-update-checker-es_PE.po
├── plugin-update-checker-es_PR.mo
├── plugin-update-checker-es_PR.po
├── plugin-update-checker-es_UY.mo
├── plugin-update-checker-es_UY.po
├── plugin-update-checker-es_VE.mo
├── plugin-update-checker-es_VE.po
├── plugin-update-checker-fa_IR.mo
├── plugin-update-checker-fa_IR.po
├── plugin-update-checker-fr_CA.mo
├── plugin-update-checker-fr_CA.po
├── plugin-update-checker-fr_FR.mo
├── plugin-update-checker-fr_FR.po
├── plugin-update-checker-hu_HU.mo
├── plugin-update-checker-hu_HU.po
├── plugin-update-checker-it_IT.mo
├── plugin-update-checker-it_IT.po
├── plugin-update-checker-ja.mo
├── plugin-update-checker-ja.po
├── plugin-update-checker-nl_BE.mo
├── plugin-update-checker-nl_BE.po
├── plugin-update-checker-nl_NL.mo
├── plugin-update-checker-nl_NL.po
├── plugin-update-checker-pt_BR.mo
├── plugin-update-checker-pt_BR.po
├── plugin-update-checker-ru_RU.mo
├── plugin-update-checker-ru_RU.po
├── plugin-update-checker-sl_SI.mo
├── plugin-update-checker-sl_SI.po
├── plugin-update-checker-sv_SE.mo
├── plugin-update-checker-sv_SE.po
├── plugin-update-checker-tr_TR.mo
├── plugin-update-checker-tr_TR.po
├── plugin-update-checker-uk_UA.mo
├── plugin-update-checker-uk_UA.po
├── plugin-update-checker-zh_CN.mo
├── plugin-update-checker-zh_CN.po
└── plugin-update-checker.pot
├── license.txt
├── load-v5p4.php
├── plugin-update-checker.php
└── vendor
├── Parsedown.php
├── ParsedownModern.php
└── PucReadmeParser.php
/README.md:
--------------------------------------------------------------------------------
1 | # Block Usage Tracker
2 | **Block Usage Tracker** is a WordPress® admin tool designed to help content managers and developers monitor block usage across a site.
3 |
4 | The plugin lists each block type used in posts, counting the total occurrences and shows direct links to each post where a block appears.
5 |
6 | This functionality helps teams optimize content, understand block usage patterns, and maintain consistency.
7 |
8 | ## Features
9 |
10 | - Lists all active blocks across posts and their usage counts.
11 | - Displays links to each page/post where blocks are used.
12 | - Excludes duplicate links for better readability.
13 | - Caches block usage data for efficient, optimized performance.
14 | - User-friendly modal interface for viewing detailed block usage by post.
15 | - Designed with proper security and access restrictions.
16 |
17 | ## Installation
18 |
19 | ### From the WordPress® Admin Dashboard
20 |
21 | 1. Download the latest release from [GitHub](https://github.com/robertdevore/block-usage-tracker).
22 | 2. In your WordPress® dashboard, go to **Plugins > Add New**.
23 | 3. Click **Upload Plugin** and choose the downloaded ZIP file.
24 | 4. Install and activate the plugin.
25 |
26 | ### Manual Installation
27 |
28 | 1. Download the plugin files and extract the ZIP.
29 | 2. Upload the extracted folder to `/wp-content/plugins/block-usage-tracker`.
30 | 3. Activate the plugin through the **Plugins** menu in WordPress®.
31 |
32 | ## Usage
33 |
34 | 1. Once activated, go to **Settings > Block Usage Tracker** in your WordPress® admin.
35 | 2. You'll see a table with each block type, its total usage count, and a **View Details** button.
36 | 3. Click **View Details** for any block to open a modal with links to each post where that block is used.
37 |
38 | ## Contributing
39 |
40 | We welcome contributions to improve **Block Usage Tracker**! Here's how you can help:
41 |
42 | 1. Fork the repository.
43 | 2. Create a new branch (`git checkout -b feature-branch-name`).
44 | 3. Commit your changes (`git commit -am 'Add new feature or fix'`).
45 | 4. Push to the branch (`git push origin feature-branch-name`).
46 | 5. Open a pull request.
47 |
48 | For bug reports or feature requests, please open an issue in this repository.
--------------------------------------------------------------------------------
/block-usage-tracker.php:
--------------------------------------------------------------------------------
1 | setBranch( 'main' );
40 |
41 | /**
42 | * Current plugin version.
43 | */
44 | define( 'BLOCK_USAGE_TRACKER_VERSION', '1.0.0' );
45 |
46 | class BlockUsageTracker {
47 |
48 | public function __construct() {
49 | add_action( 'admin_menu', [ $this, 'add_admin_menu' ] );
50 | add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_admin_scripts' ] );
51 | add_action( 'admin_init', [ $this, 'track_block_usage' ] );
52 | }
53 |
54 | public function add_admin_menu() {
55 | add_options_page(
56 | esc_html__( 'Block Usage Tracker', 'block-usage-tracker' ),
57 | esc_html__( 'Block Usage Tracker', 'block-usage-tracker' ),
58 | 'manage_options',
59 | 'block-usage-tracker',
60 | [ $this, 'display_settings_page' ]
61 | );
62 | }
63 |
64 | public function enqueue_admin_scripts() {
65 | wp_enqueue_style( 'block-usage-tracker-styles', plugin_dir_url( __FILE__ ) . 'style.css', [], BLOCK_USAGE_TRACKER_VERSION );
66 | wp_enqueue_script( 'block-usage-tracker-scripts', plugin_dir_url( __FILE__ ) . 'script.js', [ 'jquery' ], BLOCK_USAGE_TRACKER_VERSION, true );
67 | }
68 |
69 | public function display_settings_page() {
70 | if ( ! current_user_can( 'manage_options' ) ) {
71 | return;
72 | }
73 |
74 | echo '
' . esc_html__( 'Active Block Usage', 'block-usage-tracker' ) . '
';
75 |
76 | $table = new BlockUsageTable();
77 | $table->prepare_items();
78 | $table->display();
79 |
80 | echo '';
81 |
82 | // Modal container for displaying post links
83 | echo '
84 |
85 |
×
86 |
' . esc_html__( 'Block Usage Details', 'block-usage-tracker' ) . '
87 |
88 |
89 |
';
90 | }
91 |
92 | public function track_block_usage() {
93 | // Initialize block counts and posts arrays
94 | $block_counts = get_transient( 'block_usage_counts' );
95 | $block_posts = get_transient( 'block_usage_posts' );
96 |
97 | // Check if transients already exist; if not, calculate block usage
98 | if ( false === $block_counts || false === $block_posts ) {
99 | $block_counts = [];
100 | $block_posts = [];
101 |
102 | $posts = get_posts(
103 | [
104 | 'post_type' => 'post',
105 | 'numberposts' => -1,
106 | 'post_status' => 'publish',
107 | ]
108 | );
109 |
110 | foreach ( $posts as $post ) {
111 | $blocks = parse_blocks( $post->post_content );
112 |
113 | foreach ( $blocks as $block ) {
114 | $block_name = $block['blockName'] ? $block['blockName'] : 'core/unknown';
115 |
116 | if ( isset( $block_counts[ $block_name ] ) ) {
117 | $block_counts[ $block_name ]++;
118 | } else {
119 | $block_counts[ $block_name ] = 1;
120 | }
121 |
122 | // Track post titles and links where this block is used
123 | $block_posts[ $block_name ][] = [
124 | 'title' => get_the_title( $post->ID ),
125 | 'url' => get_permalink( $post->ID ),
126 | ];
127 | }
128 | }
129 |
130 | // Set the transients
131 | set_transient( 'block_usage_counts', $block_counts, DAY_IN_SECONDS );
132 | set_transient( 'block_usage_posts', $block_posts, DAY_IN_SECONDS );
133 | }
134 |
135 | // Store the counts and posts data in the global variable for use in the table
136 | $GLOBALS['block_usage_counts'] = $block_counts;
137 | $GLOBALS['block_usage_posts'] = $block_posts;
138 | }
139 |
140 | }
141 |
142 | if ( ! class_exists( 'WP_List_Table' ) ) {
143 | require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
144 | }
145 |
146 | class BlockUsageTable extends WP_List_Table {
147 |
148 | public function __construct() {
149 | parent::__construct(
150 | [
151 | 'singular' => 'block',
152 | 'plural' => 'blocks',
153 | 'ajax' => false,
154 | ]
155 | );
156 | }
157 |
158 | public function prepare_items() {
159 | $columns = $this->get_columns();
160 | $this->_column_headers = [ $columns, [], [] ];
161 |
162 | $this->items = [];
163 | foreach ( $GLOBALS['block_usage_counts'] as $block_name => $count ) {
164 | $this->items[] = [
165 | 'name' => $block_name,
166 | 'count' => $count,
167 | 'posts' => $GLOBALS['block_usage_posts'][ $block_name ] ?? [],
168 | ];
169 | }
170 | }
171 |
172 | public function get_columns() {
173 | return [
174 | 'name' => esc_html__( 'Block Type', 'block-usage-tracker' ),
175 | 'count' => esc_html__( 'Usage Count', 'block-usage-tracker' ),
176 | 'view_details' => esc_html__( 'Details', 'block-usage-tracker' ),
177 | ];
178 | }
179 |
180 | public function column_default( $item, $column_name ) {
181 | switch ( $column_name ) {
182 | case 'name':
183 | return esc_html( $item['name'] );
184 | case 'count':
185 | return esc_html( number_format_i18n( $item['count'] ) );
186 | case 'view_details':
187 | // Properly JSON encode the posts data for HTML attribute use
188 | $posts_json = ! empty( $item['posts'] ) ? wp_json_encode( $item['posts'] ) : '[]';
189 |
190 | return sprintf(
191 | '%s',
192 | esc_attr( $item['name'] ),
193 | esc_attr( $posts_json ),
194 | esc_html__( 'View Details', 'block-usage-tracker' )
195 | );
196 | default:
197 | return '';
198 | }
199 | }
200 |
201 | }
202 |
203 | new BlockUsageTracker();
204 |
--------------------------------------------------------------------------------
/script.js:
--------------------------------------------------------------------------------
1 | jQuery(document).ready(function ($) {
2 | $('.view-details-button').on('click', function (e) {
3 | e.preventDefault();
4 |
5 | let blockName = $(this).data('block');
6 | let postsData = $(this).data('posts'); // Directly access data without JSON.parse()
7 | let modalBody = $('#block-usage-modal-body');
8 |
9 | // Clear the modal content from any previous usage
10 | modalBody.empty();
11 |
12 | // Display a summary message at the top
13 | let usageCount = postsData.length;
14 | modalBody.append('The ' + blockName + ' block was found ' + usageCount + ' times in the following content:
');
15 |
16 | // Filter unique URLs to avoid duplicates
17 | let uniquePosts = [];
18 | let uniqueUrls = new Set();
19 |
20 | postsData.forEach(post => {
21 | if (!uniqueUrls.has(post.url)) {
22 | uniqueUrls.add(post.url);
23 | uniquePosts.push(post);
24 | }
25 | });
26 |
27 | // Display each unique post
28 | if (uniquePosts.length > 0) {
29 | uniquePosts.forEach(post => {
30 | modalBody.append('' + post.title + '
');
31 | });
32 | } else {
33 | modalBody.append('No posts found for this block.
');
34 | }
35 |
36 | // Show the modal
37 | $('#block-usage-modal').fadeIn();
38 | });
39 |
40 | // Close the modal when the close button is clicked
41 | $('.block-usage-close').on('click', function () {
42 | $('#block-usage-modal').fadeOut();
43 | });
44 |
45 | // Close the modal when clicking outside of the modal content
46 | $(window).on('click', function (e) {
47 | if ($(e.target).is('#block-usage-modal')) {
48 | $('#block-usage-modal').fadeOut();
49 | }
50 | });
51 | });
52 |
--------------------------------------------------------------------------------
/style.css:
--------------------------------------------------------------------------------
1 | .block-usage-modal {
2 | display: none;
3 | position: fixed;
4 | z-index: 1000;
5 | left: 0;
6 | top: 0;
7 | width: 100%;
8 | height: 100%;
9 | overflow: auto;
10 | background-color: rgba(0, 0, 0, 0.7);
11 | }
12 |
13 | .block-usage-modal-content {
14 | background-color: #fff;
15 | margin: 10% auto;
16 | padding: 20px;
17 | width: 80%;
18 | max-width: 600px;
19 | border-radius: 8px;
20 | position: relative;
21 | }
22 |
23 | .block-usage-close {
24 | position: absolute;
25 | top: 10px;
26 | right: 20px;
27 | color: #000;
28 | font-size: 24px;
29 | cursor: pointer;
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5/PucFactory.php:
--------------------------------------------------------------------------------
1 | rootDir = dirname(__FILE__) . '/';
18 |
19 | $namespaceWithSlash = __NAMESPACE__ . '\\';
20 | $this->prefix = $namespaceWithSlash;
21 |
22 | $this->libraryDir = $this->rootDir . '../..';
23 | if ( !self::isPhar() ) {
24 | $this->libraryDir = realpath($this->libraryDir);
25 | }
26 | $this->libraryDir = $this->libraryDir . '/';
27 |
28 | //Usually, dependencies like Parsedown are in the global namespace,
29 | //but if someone adds a custom namespace to the entire library, they
30 | //will be in the same namespace as this class.
31 | $isCustomNamespace = (
32 | substr($namespaceWithSlash, 0, strlen(self::DEFAULT_NS_PREFIX)) !== self::DEFAULT_NS_PREFIX
33 | );
34 | $libraryPrefix = $isCustomNamespace ? $namespaceWithSlash : '';
35 |
36 | $this->staticMap = array(
37 | $libraryPrefix . 'PucReadmeParser' => 'vendor/PucReadmeParser.php',
38 | $libraryPrefix . 'Parsedown' => 'vendor/Parsedown.php',
39 | );
40 |
41 | //Add the generic, major-version-only factory class to the static map.
42 | $versionSeparatorPos = strrpos(__NAMESPACE__, '\\v');
43 | if ( $versionSeparatorPos !== false ) {
44 | $versionSegment = substr(__NAMESPACE__, $versionSeparatorPos + 1);
45 | $pointPos = strpos($versionSegment, 'p');
46 | if ( ($pointPos !== false) && ($pointPos > 1) ) {
47 | $majorVersionSegment = substr($versionSegment, 0, $pointPos);
48 | $majorVersionNs = __NAMESPACE__ . '\\' . $majorVersionSegment;
49 | $this->staticMap[$majorVersionNs . '\\PucFactory'] =
50 | 'Puc/' . $majorVersionSegment . '/Factory.php';
51 | }
52 | }
53 |
54 | spl_autoload_register(array($this, 'autoload'));
55 | }
56 |
57 | /**
58 | * Determine if this file is running as part of a Phar archive.
59 | *
60 | * @return bool
61 | */
62 | private static function isPhar() {
63 | //Check if the current file path starts with "phar://".
64 | static $pharProtocol = 'phar://';
65 | return (substr(__FILE__, 0, strlen($pharProtocol)) === $pharProtocol);
66 | }
67 |
68 | public function autoload($className) {
69 | if ( isset($this->staticMap[$className]) && file_exists($this->libraryDir . $this->staticMap[$className]) ) {
70 | include($this->libraryDir . $this->staticMap[$className]);
71 | return;
72 | }
73 |
74 | if ( strpos($className, $this->prefix) === 0 ) {
75 | $path = substr($className, strlen($this->prefix));
76 | $path = str_replace(array('_', '\\'), '/', $path);
77 | $path = $this->rootDir . $path . '.php';
78 |
79 | if ( file_exists($path) ) {
80 | include $path;
81 | }
82 | }
83 | }
84 | }
85 |
86 | endif;
87 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/DebugBar/Extension.php:
--------------------------------------------------------------------------------
1 | updateChecker = $updateChecker;
18 | if ( isset($panelClass) ) {
19 | $this->panelClass = $panelClass;
20 | }
21 |
22 | if ( (strpos($this->panelClass, '\\') === false) ) {
23 | $this->panelClass = __NAMESPACE__ . '\\' . $this->panelClass;
24 | }
25 |
26 | add_filter('debug_bar_panels', array($this, 'addDebugBarPanel'));
27 | add_action('debug_bar_enqueue_scripts', array($this, 'enqueuePanelDependencies'));
28 |
29 | add_action('wp_ajax_puc_v5_debug_check_now', array($this, 'ajaxCheckNow'));
30 | }
31 |
32 | /**
33 | * Register the PUC Debug Bar panel.
34 | *
35 | * @param array $panels
36 | * @return array
37 | */
38 | public function addDebugBarPanel($panels) {
39 | if ( $this->updateChecker->userCanInstallUpdates() ) {
40 | $panels[] = new $this->panelClass($this->updateChecker);
41 | }
42 | return $panels;
43 | }
44 |
45 | /**
46 | * Enqueue our Debug Bar scripts and styles.
47 | */
48 | public function enqueuePanelDependencies() {
49 | wp_enqueue_style(
50 | 'puc-debug-bar-style-v5',
51 | $this->getLibraryUrl("/css/puc-debug-bar.css"),
52 | array('debug-bar'),
53 | '20221008'
54 | );
55 |
56 | wp_enqueue_script(
57 | 'puc-debug-bar-js-v5',
58 | $this->getLibraryUrl("/js/debug-bar.js"),
59 | array('jquery'),
60 | '20221008'
61 | );
62 | }
63 |
64 | /**
65 | * Run an update check and output the result. Useful for making sure that
66 | * the update checking process works as expected.
67 | */
68 | public function ajaxCheckNow() {
69 | //phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce is checked in preAjaxRequest().
70 | if ( !isset($_POST['uid']) || ($_POST['uid'] !== $this->updateChecker->getUniqueName('uid')) ) {
71 | return;
72 | }
73 | $this->preAjaxRequest();
74 | $update = $this->updateChecker->checkForUpdates();
75 | if ( $update !== null ) {
76 | echo "An update is available:";
77 | //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r -- For debugging output.
78 | echo '', esc_html(print_r($update, true)), '
';
79 | } else {
80 | echo 'No updates found.';
81 | }
82 |
83 | $errors = $this->updateChecker->getLastRequestApiErrors();
84 | if ( !empty($errors) ) {
85 | printf('The update checker encountered %d API error%s.
', count($errors), (count($errors) > 1) ? 's' : '');
86 |
87 | foreach (array_values($errors) as $num => $item) {
88 | $wpError = $item['error'];
89 | /** @var \WP_Error $wpError */
90 | printf('%d) %s
', intval($num + 1), esc_html($wpError->get_error_message()));
91 |
92 | echo '';
93 | printf('- Error code:
%s
', esc_html($wpError->get_error_code()));
94 |
95 | if ( isset($item['url']) ) {
96 | printf('- Requested URL:
%s
', esc_html($item['url']));
97 | }
98 |
99 | if ( isset($item['httpResponse']) ) {
100 | if ( is_wp_error($item['httpResponse']) ) {
101 | $httpError = $item['httpResponse'];
102 | /** @var \WP_Error $httpError */
103 | printf(
104 | '- WordPress HTTP API error:
- %s (
%s
) ',
105 | esc_html($httpError->get_error_message()),
106 | esc_html($httpError->get_error_code())
107 | );
108 | } else {
109 | //Status code.
110 | printf(
111 | '- HTTP status:
%d %s
',
112 | esc_html(wp_remote_retrieve_response_code($item['httpResponse'])),
113 | esc_html(wp_remote_retrieve_response_message($item['httpResponse']))
114 | );
115 |
116 | //Headers.
117 | echo '- Response headers:
';
118 | foreach (wp_remote_retrieve_headers($item['httpResponse']) as $name => $value) {
119 | printf("%s: %s\n", esc_html($name), esc_html($value));
120 | }
121 | echo '
';
122 |
123 | //Body.
124 | $body = wp_remote_retrieve_body($item['httpResponse']);
125 | if ( $body === '' ) {
126 | $body = '(Empty response.)';
127 | } else if ( strlen($body) > self::RESPONSE_BODY_LENGTH_LIMIT ) {
128 | $length = strlen($body);
129 | $body = substr($body, 0, self::RESPONSE_BODY_LENGTH_LIMIT)
130 | . sprintf("\n(Long string truncated. Total length: %d bytes.)", $length);
131 | }
132 |
133 | printf('- Response body:
%s
', esc_html($body));
134 | }
135 | }
136 | echo '';
137 | }
138 | }
139 |
140 | exit;
141 | }
142 |
143 | /**
144 | * Check access permissions and enable error display (for debugging).
145 | */
146 | protected function preAjaxRequest() {
147 | if ( !$this->updateChecker->userCanInstallUpdates() ) {
148 | die('Access denied');
149 | }
150 | check_ajax_referer('puc-ajax');
151 |
152 | //phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.runtime_configuration_error_reporting -- Part of a debugging feature.
153 | error_reporting(E_ALL);
154 | //phpcs:ignore WordPress.PHP.IniSet.display_errors_Blacklisted
155 | @ini_set('display_errors', 'On');
156 | }
157 |
158 | /**
159 | * Remove hooks that were added by this extension.
160 | */
161 | public function removeHooks() {
162 | remove_filter('debug_bar_panels', array($this, 'addDebugBarPanel'));
163 | remove_action('debug_bar_enqueue_scripts', array($this, 'enqueuePanelDependencies'));
164 | remove_action('wp_ajax_puc_v5_debug_check_now', array($this, 'ajaxCheckNow'));
165 | }
166 |
167 | /**
168 | * @param string $filePath
169 | * @return string
170 | */
171 | private function getLibraryUrl($filePath) {
172 | $absolutePath = realpath(dirname(__FILE__) . '/../../../' . ltrim($filePath, '/'));
173 |
174 | //Where is the library located inside the WordPress directory structure?
175 | $absolutePath = PucFactory::normalizePath($absolutePath);
176 |
177 | $pluginDir = PucFactory::normalizePath(WP_PLUGIN_DIR);
178 | $muPluginDir = PucFactory::normalizePath(WPMU_PLUGIN_DIR);
179 | $themeDir = PucFactory::normalizePath(get_theme_root());
180 |
181 | if ( (strpos($absolutePath, $pluginDir) === 0) || (strpos($absolutePath, $muPluginDir) === 0) ) {
182 | //It's part of a plugin.
183 | return plugins_url(basename($absolutePath), $absolutePath);
184 | } else if ( strpos($absolutePath, $themeDir) === 0 ) {
185 | //It's part of a theme.
186 | $relativePath = substr($absolutePath, strlen($themeDir) + 1);
187 | $template = substr($relativePath, 0, strpos($relativePath, '/'));
188 | $baseUrl = get_theme_root_uri($template);
189 |
190 | if ( !empty($baseUrl) && $relativePath ) {
191 | return $baseUrl . '/' . $relativePath;
192 | }
193 | }
194 |
195 | return '';
196 | }
197 | }
198 |
199 | endif;
200 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/DebugBar/Panel.php:
--------------------------------------------------------------------------------
1 | ';
13 |
14 | public function __construct($updateChecker) {
15 | $this->updateChecker = $updateChecker;
16 | $title = sprintf(
17 | '',
18 | esc_attr($this->updateChecker->getUniqueName('uid')),
19 | $this->updateChecker->slug
20 | );
21 | parent::__construct($title);
22 | }
23 |
24 | public function render() {
25 | printf(
26 | '',
27 | esc_attr($this->updateChecker->getUniqueName('debug-bar-panel')),
28 | esc_attr($this->updateChecker->slug),
29 | esc_attr($this->updateChecker->getUniqueName('uid')),
30 | esc_attr(wp_create_nonce('puc-ajax'))
31 | );
32 |
33 | $this->displayConfiguration();
34 | $this->displayStatus();
35 | $this->displayCurrentUpdate();
36 |
37 | echo '
';
38 | }
39 |
40 | private function displayConfiguration() {
41 | echo 'Configuration
';
42 | echo '';
43 | $this->displayConfigHeader();
44 | $this->row('Slug', htmlentities($this->updateChecker->slug));
45 | $this->row('DB option', htmlentities($this->updateChecker->optionName));
46 |
47 | $requestInfoButton = $this->getMetadataButton();
48 | $this->row('Metadata URL', htmlentities($this->updateChecker->metadataUrl) . ' ' . $requestInfoButton . $this->responseBox);
49 |
50 | $scheduler = $this->updateChecker->scheduler;
51 | if ( $scheduler->checkPeriod > 0 ) {
52 | $this->row('Automatic checks', 'Every ' . $scheduler->checkPeriod . ' hours');
53 | } else {
54 | $this->row('Automatic checks', 'Disabled');
55 | }
56 |
57 | if ( isset($scheduler->throttleRedundantChecks) ) {
58 | if ( $scheduler->throttleRedundantChecks && ($scheduler->checkPeriod > 0) ) {
59 | $this->row(
60 | 'Throttling',
61 | sprintf(
62 | 'Enabled. If an update is already available, check for updates every %1$d hours instead of every %2$d hours.',
63 | $scheduler->throttledCheckPeriod,
64 | $scheduler->checkPeriod
65 | )
66 | );
67 | } else {
68 | $this->row('Throttling', 'Disabled');
69 | }
70 | }
71 |
72 | $this->updateChecker->onDisplayConfiguration($this);
73 |
74 | echo '
';
75 | }
76 |
77 | protected function displayConfigHeader() {
78 | //Do nothing. This should be implemented in subclasses.
79 | }
80 |
81 | protected function getMetadataButton() {
82 | return '';
83 | }
84 |
85 | private function displayStatus() {
86 | echo 'Status
';
87 | echo '';
88 | $state = $this->updateChecker->getUpdateState();
89 | $checkNowButton = '';
90 | if ( function_exists('get_submit_button') ) {
91 | $checkNowButton = get_submit_button(
92 | 'Check Now',
93 | 'secondary',
94 | 'puc-check-now-button',
95 | false,
96 | array('id' => $this->updateChecker->getUniqueName('check-now-button'))
97 | );
98 | }
99 |
100 | if ( $state->getLastCheck() > 0 ) {
101 | $this->row('Last check', $this->formatTimeWithDelta($state->getLastCheck()) . ' ' . $checkNowButton . $this->responseBox);
102 | } else {
103 | $this->row('Last check', 'Never');
104 | }
105 |
106 | $nextCheck = wp_next_scheduled($this->updateChecker->scheduler->getCronHookName());
107 | $this->row('Next automatic check', $this->formatTimeWithDelta($nextCheck));
108 |
109 | if ( $state->getCheckedVersion() !== '' ) {
110 | $this->row('Checked version', htmlentities($state->getCheckedVersion()));
111 | $this->row('Cached update', $state->getUpdate());
112 | }
113 | $this->row('Update checker class', htmlentities(get_class($this->updateChecker)));
114 | echo '
';
115 | }
116 |
117 | private function displayCurrentUpdate() {
118 | $update = $this->updateChecker->getUpdate();
119 | if ( $update !== null ) {
120 | echo 'An Update Is Available
';
121 | echo '';
122 | $fields = $this->getUpdateFields();
123 | foreach($fields as $field) {
124 | if ( property_exists($update, $field) ) {
125 | $this->row(
126 | ucwords(str_replace('_', ' ', $field)),
127 | isset($update->$field) ? htmlentities($update->$field) : null
128 | );
129 | }
130 | }
131 | echo '
';
132 | } else {
133 | echo 'No updates currently available
';
134 | }
135 | }
136 |
137 | protected function getUpdateFields() {
138 | return array('version', 'download_url', 'slug',);
139 | }
140 |
141 | private function formatTimeWithDelta($unixTime) {
142 | if ( empty($unixTime) ) {
143 | return 'Never';
144 | }
145 |
146 | $delta = time() - $unixTime;
147 | $result = human_time_diff(time(), $unixTime);
148 | if ( $delta < 0 ) {
149 | $result = 'after ' . $result;
150 | } else {
151 | $result = $result . ' ago';
152 | }
153 | $result .= ' (' . $this->formatTimestamp($unixTime) . ')';
154 | return $result;
155 | }
156 |
157 | private function formatTimestamp($unixTime) {
158 | return gmdate('Y-m-d H:i:s', $unixTime + (get_option('gmt_offset') * 3600));
159 | }
160 |
161 | public function row($name, $value) {
162 | if ( is_object($value) || is_array($value) ) {
163 | //This is specifically for debugging, so print_r() is fine.
164 | //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r
165 | $value = '' . htmlentities(print_r($value, true)) . '
';
166 | } else if ($value === null) {
167 | $value = 'null
';
168 | }
169 | printf(
170 | '%1$s | %2$s |
',
171 | esc_html($name),
172 | //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above.
173 | $value
174 | );
175 | }
176 | }
177 |
178 | endif;
179 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/DebugBar/PluginExtension.php:
--------------------------------------------------------------------------------
1 | updateChecker->getUniqueName('uid')) ) {
25 | return;
26 | }
27 | $this->preAjaxRequest();
28 | $info = $this->updateChecker->requestInfo();
29 | if ( $info !== null ) {
30 | echo 'Successfully retrieved plugin info from the metadata URL:';
31 | //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r -- For debugging output.
32 | echo '', esc_html(print_r($info, true)), '
';
33 | } else {
34 | echo 'Failed to retrieve plugin info from the metadata URL.';
35 | }
36 | exit;
37 | }
38 | }
39 |
40 | endif;
41 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/DebugBar/PluginPanel.php:
--------------------------------------------------------------------------------
1 | row('Plugin file', htmlentities($this->updateChecker->pluginFile));
16 | parent::displayConfigHeader();
17 | }
18 |
19 | protected function getMetadataButton() {
20 | $requestInfoButton = '';
21 | if ( function_exists('get_submit_button') ) {
22 | $requestInfoButton = get_submit_button(
23 | 'Request Info',
24 | 'secondary',
25 | 'puc-request-info-button',
26 | false,
27 | array('id' => $this->updateChecker->getUniqueName('request-info-button'))
28 | );
29 | }
30 | return $requestInfoButton;
31 | }
32 |
33 | protected function getUpdateFields() {
34 | return array_merge(
35 | parent::getUpdateFields(),
36 | array('homepage', 'upgrade_notice', 'tested',)
37 | );
38 | }
39 | }
40 |
41 | endif;
42 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/DebugBar/ThemePanel.php:
--------------------------------------------------------------------------------
1 | row('Theme directory', htmlentities($this->updateChecker->directoryName));
17 | parent::displayConfigHeader();
18 | }
19 |
20 | protected function getUpdateFields() {
21 | return array_merge(parent::getUpdateFields(), array('details_url'));
22 | }
23 | }
24 |
25 | endif;
26 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/InstalledPackage.php:
--------------------------------------------------------------------------------
1 | updateChecker = $updateChecker;
20 | }
21 |
22 | /**
23 | * Get the currently installed version of the plugin or theme.
24 | *
25 | * @return string|null Version number.
26 | */
27 | abstract public function getInstalledVersion();
28 |
29 | /**
30 | * Get the full path of the plugin or theme directory (without a trailing slash).
31 | *
32 | * @return string
33 | */
34 | abstract public function getAbsoluteDirectoryPath();
35 |
36 | /**
37 | * Check whether a regular file exists in the package's directory.
38 | *
39 | * @param string $relativeFileName File name relative to the package directory.
40 | * @return bool
41 | */
42 | public function fileExists($relativeFileName) {
43 | return is_file(
44 | $this->getAbsoluteDirectoryPath()
45 | . DIRECTORY_SEPARATOR
46 | . ltrim($relativeFileName, '/\\')
47 | );
48 | }
49 |
50 | /* -------------------------------------------------------------------
51 | * File header parsing
52 | * -------------------------------------------------------------------
53 | */
54 |
55 | /**
56 | * Parse plugin or theme metadata from the header comment.
57 | *
58 | * This is basically a simplified version of the get_file_data() function from /wp-includes/functions.php.
59 | * It's intended as a utility for subclasses that detect updates by parsing files in a VCS.
60 | *
61 | * @param string|null $content File contents.
62 | * @return string[]
63 | */
64 | public function getFileHeader($content) {
65 | $content = (string)$content;
66 |
67 | //WordPress only looks at the first 8 KiB of the file, so we do the same.
68 | $content = substr($content, 0, 8192);
69 | //Normalize line endings.
70 | $content = str_replace("\r", "\n", $content);
71 |
72 | $headers = $this->getHeaderNames();
73 | $results = array();
74 | foreach ($headers as $field => $name) {
75 | $success = preg_match('/^[ \t\/*#@]*' . preg_quote($name, '/') . ':(.*)$/mi', $content, $matches);
76 |
77 | if ( ($success === 1) && $matches[1] ) {
78 | $value = $matches[1];
79 | if ( function_exists('_cleanup_header_comment') ) {
80 | $value = _cleanup_header_comment($value);
81 | }
82 | $results[$field] = $value;
83 | } else {
84 | $results[$field] = '';
85 | }
86 | }
87 |
88 | return $results;
89 | }
90 |
91 | /**
92 | * @return array Format: ['HeaderKey' => 'Header Name']
93 | */
94 | abstract protected function getHeaderNames();
95 |
96 | /**
97 | * Get the value of a specific plugin or theme header.
98 | *
99 | * @param string $headerName
100 | * @return string Either the value of the header, or an empty string if the header doesn't exist.
101 | */
102 | abstract public function getHeaderValue($headerName);
103 |
104 | }
105 | endif;
106 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Metadata.php:
--------------------------------------------------------------------------------
1 |
22 | */
23 | protected $extraProperties = array();
24 |
25 | /**
26 | * Create an instance of this class from a JSON document.
27 | *
28 | * @abstract
29 | * @param string $json
30 | * @return self
31 | */
32 | public static function fromJson($json) {
33 | throw new LogicException('The ' . __METHOD__ . ' method must be implemented by subclasses');
34 | }
35 |
36 | /**
37 | * @param string $json
38 | * @param self $target
39 | * @return bool
40 | */
41 | protected static function createFromJson($json, $target) {
42 | /** @var \StdClass $apiResponse */
43 | $apiResponse = json_decode($json);
44 | if ( empty($apiResponse) || !is_object($apiResponse) ){
45 | $errorMessage = "Failed to parse update metadata. Try validating your .json file with https://jsonlint.com/";
46 | do_action('puc_api_error', new WP_Error('puc-invalid-json', $errorMessage));
47 | //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error -- For plugin developers.
48 | trigger_error(esc_html($errorMessage), E_USER_NOTICE);
49 | return false;
50 | }
51 |
52 | $valid = $target->validateMetadata($apiResponse);
53 | if ( is_wp_error($valid) ){
54 | do_action('puc_api_error', $valid);
55 | //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error -- For plugin developers.
56 | trigger_error(esc_html($valid->get_error_message()), E_USER_NOTICE);
57 | return false;
58 | }
59 |
60 | foreach(get_object_vars($apiResponse) as $key => $value){
61 | $target->$key = $value;
62 | }
63 |
64 | return true;
65 | }
66 |
67 | /**
68 | * No validation by default! Subclasses should check that the required fields are present.
69 | *
70 | * @param \StdClass $apiResponse
71 | * @return bool|\WP_Error
72 | */
73 | protected function validateMetadata($apiResponse) {
74 | return true;
75 | }
76 |
77 | /**
78 | * Create a new instance by copying the necessary fields from another object.
79 | *
80 | * @abstract
81 | * @param \StdClass|self $object The source object.
82 | * @return self The new copy.
83 | */
84 | public static function fromObject($object) {
85 | throw new LogicException('The ' . __METHOD__ . ' method must be implemented by subclasses');
86 | }
87 |
88 | /**
89 | * Create an instance of StdClass that can later be converted back to an
90 | * update or info container. Useful for serialization and caching, as it
91 | * avoids the "incomplete object" problem if the cached value is loaded
92 | * before this class.
93 | *
94 | * @return \StdClass
95 | */
96 | public function toStdClass() {
97 | $object = new stdClass();
98 | $this->copyFields($this, $object);
99 | return $object;
100 | }
101 |
102 | /**
103 | * Transform the metadata into the format used by WordPress core.
104 | *
105 | * @return object
106 | */
107 | abstract public function toWpFormat();
108 |
109 | /**
110 | * Copy known fields from one object to another.
111 | *
112 | * @param \StdClass|self $from
113 | * @param \StdClass|self $to
114 | */
115 | protected function copyFields($from, $to) {
116 | $fields = $this->getFieldNames();
117 |
118 | if ( property_exists($from, 'slug') && !empty($from->slug) ) {
119 | //Let plugins add extra fields without having to create subclasses.
120 | $fields = apply_filters($this->getPrefixedFilter('retain_fields') . '-' . $from->slug, $fields);
121 | }
122 |
123 | foreach ($fields as $field) {
124 | if ( property_exists($from, $field) ) {
125 | $to->$field = $from->$field;
126 | }
127 | }
128 | }
129 |
130 | /**
131 | * @return string[]
132 | */
133 | protected function getFieldNames() {
134 | return array();
135 | }
136 |
137 | /**
138 | * @param string $tag
139 | * @return string
140 | */
141 | protected function getPrefixedFilter($tag) {
142 | return 'puc_' . $tag;
143 | }
144 |
145 | public function __set($name, $value) {
146 | $this->extraProperties[$name] = $value;
147 | }
148 |
149 | public function __get($name) {
150 | return isset($this->extraProperties[$name]) ? $this->extraProperties[$name] : null;
151 | }
152 |
153 | public function __isset($name) {
154 | return isset($this->extraProperties[$name]);
155 | }
156 |
157 | public function __unset($name) {
158 | unset($this->extraProperties[$name]);
159 | }
160 | }
161 |
162 | endif;
163 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/OAuthSignature.php:
--------------------------------------------------------------------------------
1 | consumerKey = $consumerKey;
15 | $this->consumerSecret = $consumerSecret;
16 | }
17 |
18 | /**
19 | * Sign a URL using OAuth 1.0.
20 | *
21 | * @param string $url The URL to be signed. It may contain query parameters.
22 | * @param string $method HTTP method such as "GET", "POST" and so on.
23 | * @return string The signed URL.
24 | */
25 | public function sign($url, $method = 'GET') {
26 | $parameters = array();
27 |
28 | //Parse query parameters.
29 | $query = wp_parse_url($url, PHP_URL_QUERY);
30 | if ( !empty($query) ) {
31 | parse_str($query, $parsedParams);
32 | if ( is_array($parsedParams) ) {
33 | $parameters = $parsedParams;
34 | }
35 | //Remove the query string from the URL. We'll replace it later.
36 | $url = substr($url, 0, strpos($url, '?'));
37 | }
38 |
39 | $parameters = array_merge(
40 | $parameters,
41 | array(
42 | 'oauth_consumer_key' => $this->consumerKey,
43 | 'oauth_nonce' => $this->nonce(),
44 | 'oauth_signature_method' => 'HMAC-SHA1',
45 | 'oauth_timestamp' => time(),
46 | 'oauth_version' => '1.0',
47 | )
48 | );
49 | unset($parameters['oauth_signature']);
50 |
51 | //Parameters must be sorted alphabetically before signing.
52 | ksort($parameters);
53 |
54 | //The most complicated part of the request - generating the signature.
55 | //The string to sign contains the HTTP method, the URL path, and all of
56 | //our query parameters. Everything is URL encoded. Then we concatenate
57 | //them with ampersands into a single string to hash.
58 | $encodedVerb = urlencode($method);
59 | $encodedUrl = urlencode($url);
60 | $encodedParams = urlencode(http_build_query($parameters, '', '&'));
61 |
62 | $stringToSign = $encodedVerb . '&' . $encodedUrl . '&' . $encodedParams;
63 |
64 | //Since we only have one OAuth token (the consumer secret) we only have
65 | //to use it as our HMAC key. However, we still have to append an & to it
66 | //as if we were using it with additional tokens.
67 | $secret = urlencode($this->consumerSecret) . '&';
68 |
69 | //The signature is a hash of the consumer key and the base string. Note
70 | //that we have to get the raw output from hash_hmac and base64 encode
71 | //the binary data result.
72 | $parameters['oauth_signature'] = base64_encode(hash_hmac('sha1', $stringToSign, $secret, true));
73 |
74 | return ($url . '?' . http_build_query($parameters));
75 | }
76 |
77 | /**
78 | * Generate a random nonce.
79 | *
80 | * @return string
81 | */
82 | private function nonce() {
83 | $mt = microtime();
84 |
85 | $rand = null;
86 | if ( is_callable('random_bytes') ) {
87 | try {
88 | $rand = random_bytes(16);
89 | } catch (\Exception $ex) {
90 | //Fall back to mt_rand (below).
91 | }
92 | }
93 | if ( $rand === null ) {
94 | //phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand
95 | $rand = function_exists('wp_rand') ? wp_rand() : mt_rand();
96 | }
97 |
98 | return md5($mt . '_' . $rand);
99 | }
100 | }
101 |
102 | endif;
103 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Plugin/Package.php:
--------------------------------------------------------------------------------
1 | pluginAbsolutePath = $pluginAbsolutePath;
32 | $this->pluginFile = plugin_basename($this->pluginAbsolutePath);
33 |
34 | parent::__construct($updateChecker);
35 |
36 | //Clear the version number cache when something - anything - is upgraded or WP clears the update cache.
37 | add_filter('upgrader_post_install', array($this, 'clearCachedVersion'));
38 | add_action('delete_site_transient_update_plugins', array($this, 'clearCachedVersion'));
39 | }
40 |
41 | public function getInstalledVersion() {
42 | if ( isset($this->cachedInstalledVersion) ) {
43 | return $this->cachedInstalledVersion;
44 | }
45 |
46 | $pluginHeader = $this->getPluginHeader();
47 | if ( isset($pluginHeader['Version']) ) {
48 | $this->cachedInstalledVersion = $pluginHeader['Version'];
49 | return $pluginHeader['Version'];
50 | } else {
51 | //This can happen if the filename points to something that is not a plugin.
52 | $this->updateChecker->triggerError(
53 | sprintf(
54 | "Cannot read the Version header for '%s'. The filename is incorrect or is not a plugin.",
55 | $this->updateChecker->pluginFile
56 | ),
57 | E_USER_WARNING
58 | );
59 | return null;
60 | }
61 | }
62 |
63 | /**
64 | * Clear the cached plugin version. This method can be set up as a filter (hook) and will
65 | * return the filter argument unmodified.
66 | *
67 | * @param mixed $filterArgument
68 | * @return mixed
69 | */
70 | public function clearCachedVersion($filterArgument = null) {
71 | $this->cachedInstalledVersion = null;
72 | return $filterArgument;
73 | }
74 |
75 | public function getAbsoluteDirectoryPath() {
76 | return dirname($this->pluginAbsolutePath);
77 | }
78 |
79 | /**
80 | * Get the value of a specific plugin or theme header.
81 | *
82 | * @param string $headerName
83 | * @param string $defaultValue
84 | * @return string Either the value of the header, or $defaultValue if the header doesn't exist or is empty.
85 | */
86 | public function getHeaderValue($headerName, $defaultValue = '') {
87 | $headers = $this->getPluginHeader();
88 | if ( isset($headers[$headerName]) && ($headers[$headerName] !== '') ) {
89 | return $headers[$headerName];
90 | }
91 | return $defaultValue;
92 | }
93 |
94 | protected function getHeaderNames() {
95 | return array(
96 | 'Name' => 'Plugin Name',
97 | 'PluginURI' => 'Plugin URI',
98 | 'Version' => 'Version',
99 | 'Description' => 'Description',
100 | 'Author' => 'Author',
101 | 'AuthorURI' => 'Author URI',
102 | 'TextDomain' => 'Text Domain',
103 | 'DomainPath' => 'Domain Path',
104 | 'Network' => 'Network',
105 |
106 | //The newest WordPress version that this plugin requires or has been tested with.
107 | //We support several different formats for compatibility with other libraries.
108 | 'Tested WP' => 'Tested WP',
109 | 'Requires WP' => 'Requires WP',
110 | 'Tested up to' => 'Tested up to',
111 | 'Requires at least' => 'Requires at least',
112 | );
113 | }
114 |
115 | /**
116 | * Get the translated plugin title.
117 | *
118 | * @return string
119 | */
120 | public function getPluginTitle() {
121 | $title = '';
122 | $header = $this->getPluginHeader();
123 | if ( $header && !empty($header['Name']) && isset($header['TextDomain']) ) {
124 | $title = translate($header['Name'], $header['TextDomain']);
125 | }
126 | return $title;
127 | }
128 |
129 | /**
130 | * Get plugin's metadata from its file header.
131 | *
132 | * @return array
133 | */
134 | public function getPluginHeader() {
135 | if ( !is_file($this->pluginAbsolutePath) ) {
136 | //This can happen if the plugin filename is wrong.
137 | $this->updateChecker->triggerError(
138 | sprintf(
139 | "Can't to read the plugin header for '%s'. The file does not exist.",
140 | $this->updateChecker->pluginFile
141 | ),
142 | E_USER_WARNING
143 | );
144 | return array();
145 | }
146 |
147 | if ( !function_exists('get_plugin_data') ) {
148 | require_once(ABSPATH . '/wp-admin/includes/plugin.php');
149 | }
150 | return get_plugin_data($this->pluginAbsolutePath, false, false);
151 | }
152 |
153 | public function removeHooks() {
154 | remove_filter('upgrader_post_install', array($this, 'clearCachedVersion'));
155 | remove_action('delete_site_transient_update_plugins', array($this, 'clearCachedVersion'));
156 | }
157 |
158 | /**
159 | * Check if the plugin file is inside the mu-plugins directory.
160 | *
161 | * @return bool
162 | */
163 | public function isMuPlugin() {
164 | static $cachedResult = null;
165 |
166 | if ( $cachedResult === null ) {
167 | if ( !defined('WPMU_PLUGIN_DIR') || !is_string(WPMU_PLUGIN_DIR) ) {
168 | $cachedResult = false;
169 | return $cachedResult;
170 | }
171 |
172 | //Convert both paths to the canonical form before comparison.
173 | $muPluginDir = realpath(WPMU_PLUGIN_DIR);
174 | $pluginPath = realpath($this->pluginAbsolutePath);
175 | //If realpath() fails, just normalize the syntax instead.
176 | if (($muPluginDir === false) || ($pluginPath === false)) {
177 | $muPluginDir = PucFactory::normalizePath(WPMU_PLUGIN_DIR);
178 | $pluginPath = PucFactory::normalizePath($this->pluginAbsolutePath);
179 | }
180 |
181 | $cachedResult = (strpos($pluginPath, $muPluginDir) === 0);
182 | }
183 |
184 | return $cachedResult;
185 | }
186 | }
187 |
188 | endif;
189 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Plugin/PluginInfo.php:
--------------------------------------------------------------------------------
1 | sections = (array)$instance->sections;
63 | $instance->icons = (array)$instance->icons;
64 |
65 | return $instance;
66 | }
67 |
68 | /**
69 | * Very, very basic validation.
70 | *
71 | * @param \StdClass $apiResponse
72 | * @return bool|\WP_Error
73 | */
74 | protected function validateMetadata($apiResponse) {
75 | if (
76 | !isset($apiResponse->name, $apiResponse->version)
77 | || empty($apiResponse->name)
78 | || empty($apiResponse->version)
79 | ) {
80 | return new \WP_Error(
81 | 'puc-invalid-metadata',
82 | "The plugin metadata file does not contain the required 'name' and/or 'version' keys."
83 | );
84 | }
85 | return true;
86 | }
87 |
88 |
89 | /**
90 | * Transform plugin info into the format used by the native WordPress.org API
91 | *
92 | * @return object
93 | */
94 | public function toWpFormat(){
95 | $info = new \stdClass;
96 |
97 | //The custom update API is built so that many fields have the same name and format
98 | //as those returned by the native WordPress.org API. These can be assigned directly.
99 | $sameFormat = array(
100 | 'name', 'slug', 'version', 'requires', 'tested', 'rating', 'upgrade_notice',
101 | 'num_ratings', 'downloaded', 'active_installs', 'homepage', 'last_updated',
102 | 'requires_php',
103 | );
104 | foreach($sameFormat as $field){
105 | if ( isset($this->$field) ) {
106 | $info->$field = $this->$field;
107 | } else {
108 | $info->$field = null;
109 | }
110 | }
111 |
112 | //Other fields need to be renamed and/or transformed.
113 | $info->download_link = $this->download_url;
114 | $info->author = $this->getFormattedAuthor();
115 | $info->sections = array_merge(array('description' => ''), $this->sections);
116 |
117 | if ( !empty($this->banners) ) {
118 | //WP expects an array with two keys: "high" and "low". Both are optional.
119 | //Docs: https://wordpress.org/plugins/about/faq/#banners
120 | $info->banners = is_object($this->banners) ? get_object_vars($this->banners) : $this->banners;
121 | $info->banners = array_intersect_key($info->banners, array('high' => true, 'low' => true));
122 | }
123 |
124 | return $info;
125 | }
126 |
127 | protected function getFormattedAuthor() {
128 | if ( !empty($this->author_homepage) ){
129 | /** @noinspection HtmlUnknownTarget */
130 | return sprintf('%s', $this->author_homepage, $this->author);
131 | }
132 | return $this->author;
133 | }
134 | }
135 |
136 | endif;
137 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Plugin/Ui.php:
--------------------------------------------------------------------------------
1 | updateChecker = $updateChecker;
17 | $this->manualCheckErrorTransient = $this->updateChecker->getUniqueName('manual_check_errors');
18 |
19 | add_action('admin_init', array($this, 'onAdminInit'));
20 | }
21 |
22 | public function onAdminInit() {
23 | if ( $this->updateChecker->userCanInstallUpdates() ) {
24 | $this->handleManualCheck();
25 |
26 | add_filter('plugin_row_meta', array($this, 'addViewDetailsLink'), 10, 3);
27 | add_filter('plugin_row_meta', array($this, 'addCheckForUpdatesLink'), 10, 2);
28 | add_action('all_admin_notices', array($this, 'displayManualCheckResult'));
29 | }
30 | }
31 |
32 | /**
33 | * Add a "View Details" link to the plugin row in the "Plugins" page. By default,
34 | * the new link will appear before the "Visit plugin site" link (if present).
35 | *
36 | * You can change the link text by using the "puc_view_details_link-$slug" filter.
37 | * Returning an empty string from the filter will disable the link.
38 | *
39 | * You can change the position of the link using the
40 | * "puc_view_details_link_position-$slug" filter.
41 | * Returning 'before' or 'after' will place the link immediately before/after
42 | * the "Visit plugin site" link.
43 | * Returning 'append' places the link after any existing links at the time of the hook.
44 | * Returning 'replace' replaces the "Visit plugin site" link.
45 | * Returning anything else disables the link when there is a "Visit plugin site" link.
46 | *
47 | * If there is no "Visit plugin site" link 'append' is always used!
48 | *
49 | * @param array $pluginMeta Array of meta links.
50 | * @param string $pluginFile
51 | * @param array $pluginData Array of plugin header data.
52 | * @return array
53 | */
54 | public function addViewDetailsLink($pluginMeta, $pluginFile, $pluginData = array()) {
55 | if ( $this->isMyPluginFile($pluginFile) && !isset($pluginData['slug']) ) {
56 | $linkText = apply_filters($this->updateChecker->getUniqueName('view_details_link'), __('View details'));
57 | if ( !empty($linkText) ) {
58 | $viewDetailsLinkPosition = 'append';
59 |
60 | //Find the "Visit plugin site" link (if present).
61 | $visitPluginSiteLinkIndex = count($pluginMeta) - 1;
62 | if ( $pluginData['PluginURI'] ) {
63 | $escapedPluginUri = esc_url($pluginData['PluginURI']);
64 | foreach ($pluginMeta as $linkIndex => $existingLink) {
65 | if ( strpos($existingLink, $escapedPluginUri) !== false ) {
66 | $visitPluginSiteLinkIndex = $linkIndex;
67 | $viewDetailsLinkPosition = apply_filters(
68 | $this->updateChecker->getUniqueName('view_details_link_position'),
69 | 'before'
70 | );
71 | break;
72 | }
73 | }
74 | }
75 |
76 | $viewDetailsLink = sprintf('%s',
77 | esc_url(network_admin_url('plugin-install.php?tab=plugin-information&plugin=' . urlencode($this->updateChecker->slug) .
78 | '&TB_iframe=true&width=600&height=550')),
79 | esc_attr(sprintf(__('More information about %s'), $pluginData['Name'])),
80 | esc_attr($pluginData['Name']),
81 | $linkText
82 | );
83 | switch ($viewDetailsLinkPosition) {
84 | case 'before':
85 | array_splice($pluginMeta, $visitPluginSiteLinkIndex, 0, $viewDetailsLink);
86 | break;
87 | case 'after':
88 | array_splice($pluginMeta, $visitPluginSiteLinkIndex + 1, 0, $viewDetailsLink);
89 | break;
90 | case 'replace':
91 | $pluginMeta[$visitPluginSiteLinkIndex] = $viewDetailsLink;
92 | break;
93 | case 'append':
94 | default:
95 | $pluginMeta[] = $viewDetailsLink;
96 | break;
97 | }
98 | }
99 | }
100 | return $pluginMeta;
101 | }
102 |
103 | /**
104 | * Add a "Check for updates" link to the plugin row in the "Plugins" page. By default,
105 | * the new link will appear after the "Visit plugin site" link if present, otherwise
106 | * after the "View plugin details" link.
107 | *
108 | * You can change the link text by using the "puc_manual_check_link-$slug" filter.
109 | * Returning an empty string from the filter will disable the link.
110 | *
111 | * @param array $pluginMeta Array of meta links.
112 | * @param string $pluginFile
113 | * @return array
114 | */
115 | public function addCheckForUpdatesLink($pluginMeta, $pluginFile) {
116 | if ( $this->isMyPluginFile($pluginFile) ) {
117 | $linkUrl = wp_nonce_url(
118 | add_query_arg(
119 | array(
120 | 'puc_check_for_updates' => 1,
121 | 'puc_slug' => $this->updateChecker->slug,
122 | ),
123 | self_admin_url('plugins.php')
124 | ),
125 | 'puc_check_for_updates'
126 | );
127 |
128 | $linkText = apply_filters(
129 | $this->updateChecker->getUniqueName('manual_check_link'),
130 | __('Check for updates', 'plugin-update-checker')
131 | );
132 | if ( !empty($linkText) ) {
133 | /** @noinspection HtmlUnknownTarget */
134 | $pluginMeta[] = sprintf('%s', esc_attr($linkUrl), $linkText);
135 | }
136 | }
137 | return $pluginMeta;
138 | }
139 |
140 | protected function isMyPluginFile($pluginFile) {
141 | return ($pluginFile == $this->updateChecker->pluginFile)
142 | || (!empty($this->updateChecker->muPluginFile) && ($pluginFile == $this->updateChecker->muPluginFile));
143 | }
144 |
145 | /**
146 | * Check for updates when the user clicks the "Check for updates" link.
147 | *
148 | * @see self::addCheckForUpdatesLink()
149 | *
150 | * @return void
151 | */
152 | public function handleManualCheck() {
153 | $shouldCheck =
154 | isset($_GET['puc_check_for_updates'], $_GET['puc_slug'])
155 | && $_GET['puc_slug'] == $this->updateChecker->slug
156 | && check_admin_referer('puc_check_for_updates');
157 |
158 | if ( $shouldCheck ) {
159 | $update = $this->updateChecker->checkForUpdates();
160 | $status = ($update === null) ? 'no_update' : 'update_available';
161 | $lastRequestApiErrors = $this->updateChecker->getLastRequestApiErrors();
162 |
163 | if ( ($update === null) && !empty($lastRequestApiErrors) ) {
164 | //Some errors are not critical. For example, if PUC tries to retrieve the readme.txt
165 | //file from GitHub and gets a 404, that's an API error, but it doesn't prevent updates
166 | //from working. Maybe the plugin simply doesn't have a readme.
167 | //Let's only show important errors.
168 | $foundCriticalErrors = false;
169 | $questionableErrorCodes = array(
170 | 'puc-github-http-error',
171 | 'puc-gitlab-http-error',
172 | 'puc-bitbucket-http-error',
173 | );
174 |
175 | foreach ($lastRequestApiErrors as $item) {
176 | $wpError = $item['error'];
177 | /** @var \WP_Error $wpError */
178 | if ( !in_array($wpError->get_error_code(), $questionableErrorCodes) ) {
179 | $foundCriticalErrors = true;
180 | break;
181 | }
182 | }
183 |
184 | if ( $foundCriticalErrors ) {
185 | $status = 'error';
186 | set_site_transient($this->manualCheckErrorTransient, $lastRequestApiErrors, 60);
187 | }
188 | }
189 |
190 | wp_redirect(add_query_arg(
191 | array(
192 | 'puc_update_check_result' => $status,
193 | 'puc_slug' => $this->updateChecker->slug,
194 | ),
195 | self_admin_url('plugins.php')
196 | ));
197 | exit;
198 | }
199 | }
200 |
201 | /**
202 | * Display the results of a manual update check.
203 | *
204 | * @see self::handleManualCheck()
205 | *
206 | * You can change the result message by using the "puc_manual_check_message-$slug" filter.
207 | */
208 | public function displayManualCheckResult() {
209 | //phpcs:disable WordPress.Security.NonceVerification.Recommended -- Just displaying a message.
210 | if ( isset($_GET['puc_update_check_result'], $_GET['puc_slug']) && ($_GET['puc_slug'] == $this->updateChecker->slug) ) {
211 | $status = sanitize_key($_GET['puc_update_check_result']);
212 | $title = $this->updateChecker->getInstalledPackage()->getPluginTitle();
213 | $noticeClass = 'updated notice-success';
214 | $details = '';
215 |
216 | if ( $status == 'no_update' ) {
217 | $message = sprintf(_x('The %s plugin is up to date.', 'the plugin title', 'plugin-update-checker'), $title);
218 | } else if ( $status == 'update_available' ) {
219 | $message = sprintf(_x('A new version of the %s plugin is available.', 'the plugin title', 'plugin-update-checker'), $title);
220 | } else if ( $status === 'error' ) {
221 | $message = sprintf(_x('Could not determine if updates are available for %s.', 'the plugin title', 'plugin-update-checker'), $title);
222 | $noticeClass = 'error notice-error';
223 |
224 | $details = $this->formatManualCheckErrors(get_site_transient($this->manualCheckErrorTransient));
225 | delete_site_transient($this->manualCheckErrorTransient);
226 | } else {
227 | $message = sprintf(__('Unknown update checker status "%s"', 'plugin-update-checker'), $status);
228 | $noticeClass = 'error notice-error';
229 | }
230 |
231 | $message = esc_html($message);
232 |
233 | //Plugins can replace the message with their own, including adding HTML.
234 | $message = apply_filters(
235 | $this->updateChecker->getUniqueName('manual_check_message'),
236 | $message,
237 | $status
238 | );
239 |
240 | printf(
241 | '',
242 | esc_attr($noticeClass),
243 | //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Was escaped above, and plugins can add HTML.
244 | $message,
245 | //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Contains HTML. Content should already be escaped.
246 | $details
247 | );
248 | }
249 | //phpcs:enable
250 | }
251 |
252 | /**
253 | * Format the list of errors that were thrown during an update check.
254 | *
255 | * @param array $errors
256 | * @return string
257 | */
258 | protected function formatManualCheckErrors($errors) {
259 | if ( empty($errors) ) {
260 | return '';
261 | }
262 | $output = '';
263 |
264 | $showAsList = count($errors) > 1;
265 | if ( $showAsList ) {
266 | $output .= '';
267 | $formatString = '- %1$s
%2$s
';
268 | } else {
269 | $formatString = '%1$s %2$s
';
270 | }
271 | foreach ($errors as $item) {
272 | $wpError = $item['error'];
273 | /** @var \WP_Error $wpError */
274 | $output .= sprintf(
275 | $formatString,
276 | esc_html($wpError->get_error_message()),
277 | esc_html($wpError->get_error_code())
278 | );
279 | }
280 | if ( $showAsList ) {
281 | $output .= '
';
282 | }
283 |
284 | return $output;
285 | }
286 |
287 | public function removeHooks() {
288 | remove_action('admin_init', array($this, 'onAdminInit'));
289 | remove_filter('plugin_row_meta', array($this, 'addViewDetailsLink'), 10);
290 | remove_filter('plugin_row_meta', array($this, 'addCheckForUpdatesLink'), 10);
291 | remove_action('all_admin_notices', array($this, 'displayManualCheckResult'));
292 | }
293 | }
294 | endif;
295 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Plugin/Update.php:
--------------------------------------------------------------------------------
1 | copyFields($object, $update);
66 | return $update;
67 | }
68 |
69 | /**
70 | * @return string[]
71 | */
72 | protected function getFieldNames() {
73 | return array_merge(parent::getFieldNames(), self::$extraFields);
74 | }
75 |
76 | /**
77 | * Transform the update into the format used by WordPress native plugin API.
78 | *
79 | * @return object
80 | */
81 | public function toWpFormat() {
82 | $update = parent::toWpFormat();
83 |
84 | $update->id = $this->id;
85 | $update->url = $this->homepage;
86 | $update->tested = $this->tested;
87 | $update->requires_php = $this->requires_php;
88 | $update->plugin = $this->filename;
89 |
90 | if ( !empty($this->upgrade_notice) ) {
91 | $update->upgrade_notice = $this->upgrade_notice;
92 | }
93 |
94 | if ( !empty($this->icons) && is_array($this->icons) ) {
95 | //This should be an array with up to 4 keys: 'svg', '1x', '2x' and 'default'.
96 | //Docs: https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/#plugin-icons
97 | $icons = array_intersect_key(
98 | $this->icons,
99 | array('svg' => true, '1x' => true, '2x' => true, 'default' => true)
100 | );
101 | if ( !empty($icons) ) {
102 | $update->icons = $icons;
103 |
104 | //It appears that the 'default' icon isn't used anywhere in WordPress 4.9,
105 | //but lets set it just in case a future release needs it.
106 | if ( !isset($update->icons['default']) ) {
107 | $update->icons['default'] = current($update->icons);
108 | }
109 | }
110 | }
111 |
112 | return $update;
113 | }
114 | }
115 |
116 | endif;
117 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/StateStore.php:
--------------------------------------------------------------------------------
1 | optionName = $optionName;
34 | }
35 |
36 | /**
37 | * Get time elapsed since the last update check.
38 | *
39 | * If there are no recorded update checks, this method returns a large arbitrary number
40 | * (i.e. time since the Unix epoch).
41 | *
42 | * @return int Elapsed time in seconds.
43 | */
44 | public function timeSinceLastCheck() {
45 | $this->lazyLoad();
46 | return time() - $this->lastCheck;
47 | }
48 |
49 | /**
50 | * @return int
51 | */
52 | public function getLastCheck() {
53 | $this->lazyLoad();
54 | return $this->lastCheck;
55 | }
56 |
57 | /**
58 | * Set the time of the last update check to the current timestamp.
59 | *
60 | * @return $this
61 | */
62 | public function setLastCheckToNow() {
63 | $this->lazyLoad();
64 | $this->lastCheck = time();
65 | return $this;
66 | }
67 |
68 | /**
69 | * @return null|Update
70 | */
71 | public function getUpdate() {
72 | $this->lazyLoad();
73 | return $this->update;
74 | }
75 |
76 | /**
77 | * @param Update|null $update
78 | * @return $this
79 | */
80 | public function setUpdate(Update $update = null) {
81 | $this->lazyLoad();
82 | $this->update = $update;
83 | return $this;
84 | }
85 |
86 | /**
87 | * @return string
88 | */
89 | public function getCheckedVersion() {
90 | $this->lazyLoad();
91 | return $this->checkedVersion;
92 | }
93 |
94 | /**
95 | * @param string $version
96 | * @return $this
97 | */
98 | public function setCheckedVersion($version) {
99 | $this->lazyLoad();
100 | $this->checkedVersion = strval($version);
101 | return $this;
102 | }
103 |
104 | /**
105 | * Get translation updates.
106 | *
107 | * @return array
108 | */
109 | public function getTranslations() {
110 | $this->lazyLoad();
111 | if ( isset($this->update, $this->update->translations) ) {
112 | return $this->update->translations;
113 | }
114 | return array();
115 | }
116 |
117 | /**
118 | * Set translation updates.
119 | *
120 | * @param array $translationUpdates
121 | */
122 | public function setTranslations($translationUpdates) {
123 | $this->lazyLoad();
124 | if ( isset($this->update) ) {
125 | $this->update->translations = $translationUpdates;
126 | $this->save();
127 | }
128 | }
129 |
130 | public function save() {
131 | $state = new \stdClass();
132 |
133 | $state->lastCheck = $this->lastCheck;
134 | $state->checkedVersion = $this->checkedVersion;
135 |
136 | if ( isset($this->update)) {
137 | $state->update = $this->update->toStdClass();
138 |
139 | $updateClass = get_class($this->update);
140 | $state->updateClass = $updateClass;
141 | $prefix = $this->getLibPrefix();
142 | if ( Utils::startsWith($updateClass, $prefix) ) {
143 | $state->updateBaseClass = substr($updateClass, strlen($prefix));
144 | }
145 | }
146 |
147 | update_site_option($this->optionName, $state);
148 | $this->isLoaded = true;
149 | }
150 |
151 | /**
152 | * @return $this
153 | */
154 | public function lazyLoad() {
155 | if ( !$this->isLoaded ) {
156 | $this->load();
157 | }
158 | return $this;
159 | }
160 |
161 | protected function load() {
162 | $this->isLoaded = true;
163 |
164 | $state = get_site_option($this->optionName, null);
165 |
166 | if (
167 | !is_object($state)
168 | //Sanity check: If the Utils class is missing, the plugin is probably in the process
169 | //of being deleted (e.g. the old version gets deleted during an update).
170 | || !class_exists(Utils::class)
171 | ) {
172 | $this->lastCheck = 0;
173 | $this->checkedVersion = '';
174 | $this->update = null;
175 | return;
176 | }
177 |
178 | $this->lastCheck = intval(Utils::get($state, 'lastCheck', 0));
179 | $this->checkedVersion = Utils::get($state, 'checkedVersion', '');
180 | $this->update = null;
181 |
182 | if ( isset($state->update) ) {
183 | //This mess is due to the fact that the want the update class from this version
184 | //of the library, not the version that saved the update.
185 |
186 | $updateClass = null;
187 | if ( isset($state->updateBaseClass) ) {
188 | $updateClass = $this->getLibPrefix() . $state->updateBaseClass;
189 | } else if ( isset($state->updateClass) ) {
190 | $updateClass = $state->updateClass;
191 | }
192 |
193 | $factory = array($updateClass, 'fromObject');
194 | if ( ($updateClass !== null) && is_callable($factory) ) {
195 | $this->update = call_user_func($factory, $state->update);
196 | }
197 | }
198 | }
199 |
200 | public function delete() {
201 | delete_site_option($this->optionName);
202 |
203 | $this->lastCheck = 0;
204 | $this->checkedVersion = '';
205 | $this->update = null;
206 | }
207 |
208 | private function getLibPrefix() {
209 | //This assumes that the current class is at the top of the versioned namespace.
210 | return __NAMESPACE__ . '\\';
211 | }
212 | }
213 |
214 | endif;
215 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Theme/Package.php:
--------------------------------------------------------------------------------
1 | stylesheet = $stylesheet;
21 | $this->theme = wp_get_theme($this->stylesheet);
22 |
23 | parent::__construct($updateChecker);
24 | }
25 |
26 | public function getInstalledVersion() {
27 | return $this->theme->get('Version');
28 | }
29 |
30 | public function getAbsoluteDirectoryPath() {
31 | if ( method_exists($this->theme, 'get_stylesheet_directory') ) {
32 | return $this->theme->get_stylesheet_directory(); //Available since WP 3.4.
33 | }
34 | return get_theme_root($this->stylesheet) . '/' . $this->stylesheet;
35 | }
36 |
37 | /**
38 | * Get the value of a specific plugin or theme header.
39 | *
40 | * @param string $headerName
41 | * @param string $defaultValue
42 | * @return string Either the value of the header, or $defaultValue if the header doesn't exist or is empty.
43 | */
44 | public function getHeaderValue($headerName, $defaultValue = '') {
45 | $value = $this->theme->get($headerName);
46 | if ( ($headerName === false) || ($headerName === '') ) {
47 | return $defaultValue;
48 | }
49 | return $value;
50 | }
51 |
52 | protected function getHeaderNames() {
53 | return array(
54 | 'Name' => 'Theme Name',
55 | 'ThemeURI' => 'Theme URI',
56 | 'Description' => 'Description',
57 | 'Author' => 'Author',
58 | 'AuthorURI' => 'Author URI',
59 | 'Version' => 'Version',
60 | 'Template' => 'Template',
61 | 'Status' => 'Status',
62 | 'Tags' => 'Tags',
63 | 'TextDomain' => 'Text Domain',
64 | 'DomainPath' => 'Domain Path',
65 | );
66 | }
67 | }
68 |
69 | endif;
70 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Theme/Update.php:
--------------------------------------------------------------------------------
1 | $this->slug,
23 | 'new_version' => $this->version,
24 | 'url' => $this->details_url,
25 | );
26 |
27 | if ( !empty($this->download_url) ) {
28 | $update['package'] = $this->download_url;
29 | }
30 |
31 | return $update;
32 | }
33 |
34 | /**
35 | * Create a new instance of Theme_Update from its JSON-encoded representation.
36 | *
37 | * @param string $json Valid JSON string representing a theme information object.
38 | * @return self New instance of ThemeUpdate, or NULL on error.
39 | */
40 | public static function fromJson($json) {
41 | $instance = new self();
42 | if ( !parent::createFromJson($json, $instance) ) {
43 | return null;
44 | }
45 | return $instance;
46 | }
47 |
48 | /**
49 | * Create a new instance by copying the necessary fields from another object.
50 | *
51 | * @param \StdClass|self $object The source object.
52 | * @return self The new copy.
53 | */
54 | public static function fromObject($object) {
55 | $update = new self();
56 | $update->copyFields($object, $update);
57 | return $update;
58 | }
59 |
60 | /**
61 | * Basic validation.
62 | *
63 | * @param \StdClass $apiResponse
64 | * @return bool|\WP_Error
65 | */
66 | protected function validateMetadata($apiResponse) {
67 | $required = array('version', 'details_url');
68 | foreach($required as $key) {
69 | if ( !isset($apiResponse->$key) || empty($apiResponse->$key) ) {
70 | return new \WP_Error(
71 | 'tuc-invalid-metadata',
72 | sprintf('The theme metadata is missing the required "%s" key.', $key)
73 | );
74 | }
75 | }
76 | return true;
77 | }
78 |
79 | protected function getFieldNames() {
80 | return array_merge(parent::getFieldNames(), self::$extraFields);
81 | }
82 |
83 | protected function getPrefixedFilter($tag) {
84 | return parent::getPrefixedFilter($tag) . '_theme';
85 | }
86 | }
87 |
88 | endif;
89 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Theme/UpdateChecker.php:
--------------------------------------------------------------------------------
1 | stylesheet = $stylesheet;
27 |
28 | parent::__construct(
29 | $metadataUrl,
30 | $stylesheet,
31 | $customSlug ? $customSlug : $stylesheet,
32 | $checkPeriod,
33 | $optionName
34 | );
35 | }
36 |
37 | /**
38 | * For themes, the update array is indexed by theme directory name.
39 | *
40 | * @return string
41 | */
42 | protected function getUpdateListKey() {
43 | return $this->directoryName;
44 | }
45 |
46 | /**
47 | * Retrieve the latest update (if any) from the configured API endpoint.
48 | *
49 | * @return Update|null An instance of Update, or NULL when no updates are available.
50 | */
51 | public function requestUpdate() {
52 | list($themeUpdate, $result) = $this->requestMetadata(Update::class, 'request_update');
53 |
54 | if ( $themeUpdate !== null ) {
55 | /** @var Update $themeUpdate */
56 | $themeUpdate->slug = $this->slug;
57 | }
58 |
59 | $themeUpdate = $this->filterUpdateResult($themeUpdate, $result);
60 | return $themeUpdate;
61 | }
62 |
63 | protected function getNoUpdateItemFields() {
64 | return array_merge(
65 | parent::getNoUpdateItemFields(),
66 | array(
67 | 'theme' => $this->directoryName,
68 | 'requires' => '',
69 | )
70 | );
71 | }
72 |
73 | public function userCanInstallUpdates() {
74 | return current_user_can('update_themes');
75 | }
76 |
77 | /**
78 | * Create an instance of the scheduler.
79 | *
80 | * @param int $checkPeriod
81 | * @return Scheduler
82 | */
83 | protected function createScheduler($checkPeriod) {
84 | return new Scheduler($this, $checkPeriod, array('load-themes.php'));
85 | }
86 |
87 | /**
88 | * Is there an update being installed right now for this theme?
89 | *
90 | * @param \WP_Upgrader|null $upgrader The upgrader that's performing the current update.
91 | * @return bool
92 | */
93 | public function isBeingUpgraded($upgrader = null) {
94 | return $this->upgraderStatus->isThemeBeingUpgraded($this->stylesheet, $upgrader);
95 | }
96 |
97 | protected function createDebugBarExtension() {
98 | return new DebugBar\Extension($this, DebugBar\ThemePanel::class);
99 | }
100 |
101 | /**
102 | * Register a callback for filtering query arguments.
103 | *
104 | * The callback function should take one argument - an associative array of query arguments.
105 | * It should return a modified array of query arguments.
106 | *
107 | * @param callable $callback
108 | * @return void
109 | */
110 | public function addQueryArgFilter($callback){
111 | $this->addFilter('request_update_query_args', $callback);
112 | }
113 |
114 | /**
115 | * Register a callback for filtering arguments passed to wp_remote_get().
116 | *
117 | * The callback function should take one argument - an associative array of arguments -
118 | * and return a modified array or arguments. See the WP documentation on wp_remote_get()
119 | * for details on what arguments are available and how they work.
120 | *
121 | * @uses add_filter() This method is a convenience wrapper for add_filter().
122 | *
123 | * @param callable $callback
124 | * @return void
125 | */
126 | public function addHttpRequestArgFilter($callback) {
127 | $this->addFilter('request_update_options', $callback);
128 | }
129 |
130 | /**
131 | * Register a callback for filtering theme updates retrieved from the external API.
132 | *
133 | * The callback function should take two arguments. If the theme update was retrieved
134 | * successfully, the first argument passed will be an instance of Theme_Update. Otherwise,
135 | * it will be NULL. The second argument will be the corresponding return value of
136 | * wp_remote_get (see WP docs for details).
137 | *
138 | * The callback function should return a new or modified instance of Theme_Update or NULL.
139 | *
140 | * @uses add_filter() This method is a convenience wrapper for add_filter().
141 | *
142 | * @param callable $callback
143 | * @return void
144 | */
145 | public function addResultFilter($callback) {
146 | $this->addFilter('request_update_result', $callback, 10, 2);
147 | }
148 |
149 | /**
150 | * Create a package instance that represents this plugin or theme.
151 | *
152 | * @return InstalledPackage
153 | */
154 | protected function createInstalledPackage() {
155 | return new Package($this->stylesheet, $this);
156 | }
157 | }
158 |
159 | endif;
160 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Update.php:
--------------------------------------------------------------------------------
1 | slug = $this->slug;
31 | $update->new_version = $this->version;
32 | $update->package = $this->download_url;
33 |
34 | return $update;
35 | }
36 | }
37 |
38 | endif;
39 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/UpgraderStatus.php:
--------------------------------------------------------------------------------
1 | isBeingUpgraded('plugin', $pluginFile, $upgrader);
37 | }
38 |
39 | /**
40 | * Is there an update being installed for a specific theme?
41 | *
42 | * @param string $stylesheet Theme directory name.
43 | * @param \WP_Upgrader|null $upgrader The upgrader that's performing the current update.
44 | * @return bool
45 | */
46 | public function isThemeBeingUpgraded($stylesheet, $upgrader = null) {
47 | return $this->isBeingUpgraded('theme', $stylesheet, $upgrader);
48 | }
49 |
50 | /**
51 | * Check if a specific theme or plugin is being upgraded.
52 | *
53 | * @param string $type
54 | * @param string $id
55 | * @param \Plugin_Upgrader|\WP_Upgrader|null $upgrader
56 | * @return bool
57 | */
58 | protected function isBeingUpgraded($type, $id, $upgrader = null) {
59 | if ( isset($upgrader) ) {
60 | list($currentType, $currentId) = $this->getThingBeingUpgradedBy($upgrader);
61 | if ( $currentType !== null ) {
62 | $this->currentType = $currentType;
63 | $this->currentId = $currentId;
64 | }
65 | }
66 | return ($this->currentType === $type) && ($this->currentId === $id);
67 | }
68 |
69 | /**
70 | * Figure out which theme or plugin is being upgraded by a WP_Upgrader instance.
71 | *
72 | * Returns an array with two items. The first item is the type of the thing that's being
73 | * upgraded: "plugin" or "theme". The second item is either the plugin basename or
74 | * the theme directory name. If we can't determine what the upgrader is doing, both items
75 | * will be NULL.
76 | *
77 | * Examples:
78 | * ['plugin', 'plugin-dir-name/plugin.php']
79 | * ['theme', 'theme-dir-name']
80 | *
81 | * @param \Plugin_Upgrader|\WP_Upgrader $upgrader
82 | * @return array
83 | */
84 | private function getThingBeingUpgradedBy($upgrader) {
85 | if ( !isset($upgrader, $upgrader->skin) ) {
86 | return array(null, null);
87 | }
88 |
89 | //Figure out which plugin or theme is being upgraded.
90 | $pluginFile = null;
91 | $themeDirectoryName = null;
92 |
93 | $skin = $upgrader->skin;
94 | if ( isset($skin->theme_info) && ($skin->theme_info instanceof \WP_Theme) ) {
95 | $themeDirectoryName = $skin->theme_info->get_stylesheet();
96 | } elseif ( $skin instanceof \Plugin_Upgrader_Skin ) {
97 | if ( isset($skin->plugin) && is_string($skin->plugin) && ($skin->plugin !== '') ) {
98 | $pluginFile = $skin->plugin;
99 | }
100 | } elseif ( $skin instanceof \Theme_Upgrader_Skin ) {
101 | if ( isset($skin->theme) && is_string($skin->theme) && ($skin->theme !== '') ) {
102 | $themeDirectoryName = $skin->theme;
103 | }
104 | } elseif ( isset($skin->plugin_info) && is_array($skin->plugin_info) ) {
105 | //This case is tricky because Bulk_Plugin_Upgrader_Skin (etc) doesn't actually store the plugin
106 | //filename anywhere. Instead, it has the plugin headers in $plugin_info. So the best we can
107 | //do is compare those headers to the headers of installed plugins.
108 | $pluginFile = $this->identifyPluginByHeaders($skin->plugin_info);
109 | }
110 |
111 | if ( $pluginFile !== null ) {
112 | return array('plugin', $pluginFile);
113 | } elseif ( $themeDirectoryName !== null ) {
114 | return array('theme', $themeDirectoryName);
115 | }
116 | return array(null, null);
117 | }
118 |
119 | /**
120 | * Identify an installed plugin based on its headers.
121 | *
122 | * @param array $searchHeaders The plugin file header to look for.
123 | * @return string|null Plugin basename ("foo/bar.php"), or NULL if we can't identify the plugin.
124 | */
125 | private function identifyPluginByHeaders($searchHeaders) {
126 | if ( !function_exists('get_plugins') ){
127 | require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
128 | }
129 |
130 | $installedPlugins = get_plugins();
131 | $matches = array();
132 | foreach($installedPlugins as $pluginBasename => $headers) {
133 | $diff1 = array_diff_assoc($headers, $searchHeaders);
134 | $diff2 = array_diff_assoc($searchHeaders, $headers);
135 | if ( empty($diff1) && empty($diff2) ) {
136 | $matches[] = $pluginBasename;
137 | }
138 | }
139 |
140 | //It's possible (though very unlikely) that there could be two plugins with identical
141 | //headers. In that case, we can't unambiguously identify the plugin that's being upgraded.
142 | if ( count($matches) !== 1 ) {
143 | return null;
144 | }
145 |
146 | return reset($matches);
147 | }
148 |
149 | /**
150 | * @access private
151 | *
152 | * @param mixed $input
153 | * @param array $hookExtra
154 | * @return mixed Returns $input unaltered.
155 | */
156 | public function setUpgradedThing($input, $hookExtra) {
157 | if ( !empty($hookExtra['plugin']) && is_string($hookExtra['plugin']) ) {
158 | $this->currentId = $hookExtra['plugin'];
159 | $this->currentType = 'plugin';
160 | } elseif ( !empty($hookExtra['theme']) && is_string($hookExtra['theme']) ) {
161 | $this->currentId = $hookExtra['theme'];
162 | $this->currentType = 'theme';
163 | } else {
164 | $this->currentType = null;
165 | $this->currentId = null;
166 | }
167 | return $input;
168 | }
169 |
170 | /**
171 | * @access private
172 | *
173 | * @param array $options
174 | * @return array
175 | */
176 | public function setUpgradedPluginFromOptions($options) {
177 | if ( isset($options['hook_extra']['plugin']) && is_string($options['hook_extra']['plugin']) ) {
178 | $this->currentType = 'plugin';
179 | $this->currentId = $options['hook_extra']['plugin'];
180 | } else {
181 | $this->currentType = null;
182 | $this->currentId = null;
183 | }
184 | return $options;
185 | }
186 |
187 | /**
188 | * @access private
189 | *
190 | * @param mixed $input
191 | * @return mixed Returns $input unaltered.
192 | */
193 | public function clearUpgradedThing($input = null) {
194 | $this->currentId = null;
195 | $this->currentType = null;
196 | return $input;
197 | }
198 | }
199 |
200 | endif;
201 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Utils.php:
--------------------------------------------------------------------------------
1 | $node) ) {
27 | $currentValue = $currentValue->$node;
28 | } else {
29 | return $default;
30 | }
31 | }
32 |
33 | return $currentValue;
34 | }
35 |
36 | /**
37 | * Get the first array element that is not empty.
38 | *
39 | * @param array $values
40 | * @param mixed|null $default Returns this value if there are no non-empty elements.
41 | * @return mixed|null
42 | */
43 | public static function findNotEmpty($values, $default = null) {
44 | if ( empty($values) ) {
45 | return $default;
46 | }
47 |
48 | foreach ($values as $value) {
49 | if ( !empty($value) ) {
50 | return $value;
51 | }
52 | }
53 |
54 | return $default;
55 | }
56 |
57 | /**
58 | * Check if the input string starts with the specified prefix.
59 | *
60 | * @param string $input
61 | * @param string $prefix
62 | * @return bool
63 | */
64 | public static function startsWith($input, $prefix) {
65 | $length = strlen($prefix);
66 | return (substr($input, 0, $length) === $prefix);
67 | }
68 | }
69 |
70 | endif;
71 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Vcs/Api.php:
--------------------------------------------------------------------------------
1 | repositoryUrl = $repositoryUrl;
79 | $this->setAuthentication($credentials);
80 | }
81 |
82 | /**
83 | * @return string
84 | */
85 | public function getRepositoryUrl() {
86 | return $this->repositoryUrl;
87 | }
88 |
89 | /**
90 | * Figure out which reference (i.e. tag or branch) contains the latest version.
91 | *
92 | * @param string $configBranch Start looking in this branch.
93 | * @return null|Reference
94 | */
95 | public function chooseReference($configBranch) {
96 | $strategies = $this->getUpdateDetectionStrategies($configBranch);
97 |
98 | if ( !empty($this->strategyFilterName) ) {
99 | $strategies = apply_filters(
100 | $this->strategyFilterName,
101 | $strategies,
102 | $this->slug
103 | );
104 | }
105 |
106 | foreach ($strategies as $strategy) {
107 | $reference = call_user_func($strategy);
108 | if ( !empty($reference) ) {
109 | return $reference;
110 | }
111 | }
112 | return null;
113 | }
114 |
115 | /**
116 | * Get an ordered list of strategies that can be used to find the latest version.
117 | *
118 | * The update checker will try each strategy in order until one of them
119 | * returns a valid reference.
120 | *
121 | * @param string $configBranch
122 | * @return array Array of callables that return Vcs_Reference objects.
123 | */
124 | abstract protected function getUpdateDetectionStrategies($configBranch);
125 |
126 | /**
127 | * Get the readme.txt file from the remote repository and parse it
128 | * according to the plugin readme standard.
129 | *
130 | * @param string $ref Tag or branch name.
131 | * @return array Parsed readme.
132 | */
133 | public function getRemoteReadme($ref = 'master') {
134 | $fileContents = $this->getRemoteFile($this->getLocalReadmeName(), $ref);
135 | if ( empty($fileContents) ) {
136 | return array();
137 | }
138 |
139 | $parser = new PucReadmeParser();
140 | return $parser->parse_readme_contents($fileContents);
141 | }
142 |
143 | /**
144 | * Get the case-sensitive name of the local readme.txt file.
145 | *
146 | * In most cases it should just be called "readme.txt", but some plugins call it "README.txt",
147 | * "README.TXT", or even "Readme.txt". Most VCS are case-sensitive so we need to know the correct
148 | * capitalization.
149 | *
150 | * Defaults to "readme.txt" (all lowercase).
151 | *
152 | * @return string
153 | */
154 | public function getLocalReadmeName() {
155 | static $fileName = null;
156 | if ( $fileName !== null ) {
157 | return $fileName;
158 | }
159 |
160 | $fileName = 'readme.txt';
161 | if ( isset($this->localDirectory) ) {
162 | $files = scandir($this->localDirectory);
163 | if ( !empty($files) ) {
164 | foreach ($files as $possibleFileName) {
165 | if ( strcasecmp($possibleFileName, 'readme.txt') === 0 ) {
166 | $fileName = $possibleFileName;
167 | break;
168 | }
169 | }
170 | }
171 | }
172 | return $fileName;
173 | }
174 |
175 | /**
176 | * Get a branch.
177 | *
178 | * @param string $branchName
179 | * @return Reference|null
180 | */
181 | abstract public function getBranch($branchName);
182 |
183 | /**
184 | * Get a specific tag.
185 | *
186 | * @param string $tagName
187 | * @return Reference|null
188 | */
189 | abstract public function getTag($tagName);
190 |
191 | /**
192 | * Get the tag that looks like the highest version number.
193 | * (Implementations should skip pre-release versions if possible.)
194 | *
195 | * @return Reference|null
196 | */
197 | abstract public function getLatestTag();
198 |
199 | /**
200 | * Check if a tag name string looks like a version number.
201 | *
202 | * @param string $name
203 | * @return bool
204 | */
205 | protected function looksLikeVersion($name) {
206 | //Tag names may be prefixed with "v", e.g. "v1.2.3".
207 | $name = ltrim($name, 'v');
208 |
209 | //The version string must start with a number.
210 | if ( !is_numeric(substr($name, 0, 1)) ) {
211 | return false;
212 | }
213 |
214 | //The goal is to accept any SemVer-compatible or "PHP-standardized" version number.
215 | return (preg_match('@^(\d{1,5}?)(\.\d{1,10}?){0,4}?($|[abrdp+_\-]|\s)@i', $name) === 1);
216 | }
217 |
218 | /**
219 | * Check if a tag appears to be named like a version number.
220 | *
221 | * @param \stdClass $tag
222 | * @return bool
223 | */
224 | protected function isVersionTag($tag) {
225 | $property = $this->tagNameProperty;
226 | return isset($tag->$property) && $this->looksLikeVersion($tag->$property);
227 | }
228 |
229 | /**
230 | * Sort a list of tags as if they were version numbers.
231 | * Tags that don't look like version number will be removed.
232 | *
233 | * @param \stdClass[] $tags Array of tag objects.
234 | * @return \stdClass[] Filtered array of tags sorted in descending order.
235 | */
236 | protected function sortTagsByVersion($tags) {
237 | //Keep only those tags that look like version numbers.
238 | $versionTags = array_filter($tags, array($this, 'isVersionTag'));
239 | //Sort them in descending order.
240 | usort($versionTags, array($this, 'compareTagNames'));
241 |
242 | return $versionTags;
243 | }
244 |
245 | /**
246 | * Compare two tags as if they were version number.
247 | *
248 | * @param \stdClass $tag1 Tag object.
249 | * @param \stdClass $tag2 Another tag object.
250 | * @return int
251 | */
252 | protected function compareTagNames($tag1, $tag2) {
253 | $property = $this->tagNameProperty;
254 | if ( !isset($tag1->$property) ) {
255 | return 1;
256 | }
257 | if ( !isset($tag2->$property) ) {
258 | return -1;
259 | }
260 | return -version_compare(ltrim($tag1->$property, 'v'), ltrim($tag2->$property, 'v'));
261 | }
262 |
263 | /**
264 | * Get the contents of a file from a specific branch or tag.
265 | *
266 | * @param string $path File name.
267 | * @param string $ref
268 | * @return null|string Either the contents of the file, or null if the file doesn't exist or there's an error.
269 | */
270 | abstract public function getRemoteFile($path, $ref = 'master');
271 |
272 | /**
273 | * Get the timestamp of the latest commit that changed the specified branch or tag.
274 | *
275 | * @param string $ref Reference name (e.g. branch or tag).
276 | * @return string|null
277 | */
278 | abstract public function getLatestCommitTime($ref);
279 |
280 | /**
281 | * Get the contents of the changelog file from the repository.
282 | *
283 | * @param string $ref
284 | * @param string $localDirectory Full path to the local plugin or theme directory.
285 | * @return null|string The HTML contents of the changelog.
286 | */
287 | public function getRemoteChangelog($ref, $localDirectory) {
288 | $filename = $this->findChangelogName($localDirectory);
289 | if ( empty($filename) ) {
290 | return null;
291 | }
292 |
293 | $changelog = $this->getRemoteFile($filename, $ref);
294 | if ( $changelog === null ) {
295 | return null;
296 | }
297 |
298 | return Parsedown::instance()->text($changelog);
299 | }
300 |
301 | /**
302 | * Guess the name of the changelog file.
303 | *
304 | * @param string $directory
305 | * @return string|null
306 | */
307 | protected function findChangelogName($directory = null) {
308 | if ( !isset($directory) ) {
309 | $directory = $this->localDirectory;
310 | }
311 | if ( empty($directory) || !is_dir($directory) || ($directory === '.') ) {
312 | return null;
313 | }
314 |
315 | $possibleNames = array('CHANGES.md', 'CHANGELOG.md', 'changes.md', 'changelog.md');
316 | $files = scandir($directory);
317 | $foundNames = array_intersect($possibleNames, $files);
318 |
319 | if ( !empty($foundNames) ) {
320 | return reset($foundNames);
321 | }
322 | return null;
323 | }
324 |
325 | /**
326 | * Set authentication credentials.
327 | *
328 | * @param $credentials
329 | */
330 | public function setAuthentication($credentials) {
331 | $this->credentials = $credentials;
332 | }
333 |
334 | public function isAuthenticationEnabled() {
335 | return !empty($this->credentials);
336 | }
337 |
338 | /**
339 | * @param string $url
340 | * @return string
341 | */
342 | public function signDownloadUrl($url) {
343 | return $url;
344 | }
345 |
346 | /**
347 | * @param string $filterName
348 | */
349 | public function setHttpFilterName($filterName) {
350 | $this->httpFilterName = $filterName;
351 | }
352 |
353 | /**
354 | * @param string $filterName
355 | */
356 | public function setStrategyFilterName($filterName) {
357 | $this->strategyFilterName = $filterName;
358 | }
359 |
360 | /**
361 | * @param string $directory
362 | */
363 | public function setLocalDirectory($directory) {
364 | if ( empty($directory) || !is_dir($directory) || ($directory === '.') ) {
365 | $this->localDirectory = null;
366 | } else {
367 | $this->localDirectory = $directory;
368 | }
369 | }
370 |
371 | /**
372 | * @param string $slug
373 | */
374 | public function setSlug($slug) {
375 | $this->slug = $slug;
376 | }
377 | }
378 |
379 | endif;
380 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Vcs/BaseChecker.php:
--------------------------------------------------------------------------------
1 | [^/]+?)/(?P[^/#?&]+?)/?$@', $path, $matches) ) {
29 | $this->username = $matches['username'];
30 | $this->repository = $matches['repository'];
31 | } else {
32 | throw new \InvalidArgumentException('Invalid BitBucket repository URL: "' . $repositoryUrl . '"');
33 | }
34 |
35 | parent::__construct($repositoryUrl, $credentials);
36 | }
37 |
38 | protected function getUpdateDetectionStrategies($configBranch) {
39 | $strategies = array(
40 | self::STRATEGY_STABLE_TAG => function () use ($configBranch) {
41 | return $this->getStableTag($configBranch);
42 | },
43 | );
44 |
45 | if ( ($configBranch === 'master' || $configBranch === 'main') ) {
46 | $strategies[self::STRATEGY_LATEST_TAG] = array($this, 'getLatestTag');
47 | }
48 |
49 | $strategies[self::STRATEGY_BRANCH] = function () use ($configBranch) {
50 | return $this->getBranch($configBranch);
51 | };
52 | return $strategies;
53 | }
54 |
55 | public function getBranch($branchName) {
56 | $branch = $this->api('/refs/branches/' . $branchName);
57 | if ( is_wp_error($branch) || empty($branch) ) {
58 | return null;
59 | }
60 |
61 | //The "/src/{stuff}/{path}" endpoint doesn't seem to handle branch names that contain slashes.
62 | //If we don't encode the slash, we get a 404. If we encode it as "%2F", we get a 401.
63 | //To avoid issues, if the branch name is not URL-safe, let's use the commit hash instead.
64 | $ref = $branch->name;
65 | if ((urlencode($ref) !== $ref) && isset($branch->target->hash)) {
66 | $ref = $branch->target->hash;
67 | }
68 |
69 | return new Reference(array(
70 | 'name' => $ref,
71 | 'updated' => $branch->target->date,
72 | 'downloadUrl' => $this->getDownloadUrl($branch->name),
73 | ));
74 | }
75 |
76 | /**
77 | * Get a specific tag.
78 | *
79 | * @param string $tagName
80 | * @return Reference|null
81 | */
82 | public function getTag($tagName) {
83 | $tag = $this->api('/refs/tags/' . $tagName);
84 | if ( is_wp_error($tag) || empty($tag) ) {
85 | return null;
86 | }
87 |
88 | return new Reference(array(
89 | 'name' => $tag->name,
90 | 'version' => ltrim($tag->name, 'v'),
91 | 'updated' => $tag->target->date,
92 | 'downloadUrl' => $this->getDownloadUrl($tag->name),
93 | ));
94 | }
95 |
96 | /**
97 | * Get the tag that looks like the highest version number.
98 | *
99 | * @return Reference|null
100 | */
101 | public function getLatestTag() {
102 | $tags = $this->api('/refs/tags?sort=-target.date');
103 | if ( !isset($tags, $tags->values) || !is_array($tags->values) ) {
104 | return null;
105 | }
106 |
107 | //Filter and sort the list of tags.
108 | $versionTags = $this->sortTagsByVersion($tags->values);
109 |
110 | //Return the first result.
111 | if ( !empty($versionTags) ) {
112 | $tag = $versionTags[0];
113 | return new Reference(array(
114 | 'name' => $tag->name,
115 | 'version' => ltrim($tag->name, 'v'),
116 | 'updated' => $tag->target->date,
117 | 'downloadUrl' => $this->getDownloadUrl($tag->name),
118 | ));
119 | }
120 | return null;
121 | }
122 |
123 | /**
124 | * Get the tag/ref specified by the "Stable tag" header in the readme.txt of a given branch.
125 | *
126 | * @param string $branch
127 | * @return null|Reference
128 | */
129 | protected function getStableTag($branch) {
130 | $remoteReadme = $this->getRemoteReadme($branch);
131 | if ( !empty($remoteReadme['stable_tag']) ) {
132 | $tag = $remoteReadme['stable_tag'];
133 |
134 | //You can explicitly opt out of using tags by setting "Stable tag" to
135 | //"trunk" or the name of the current branch.
136 | if ( ($tag === $branch) || ($tag === 'trunk') ) {
137 | return $this->getBranch($branch);
138 | }
139 |
140 | return $this->getTag($tag);
141 | }
142 |
143 | return null;
144 | }
145 |
146 | /**
147 | * @param string $ref
148 | * @return string
149 | */
150 | protected function getDownloadUrl($ref) {
151 | return sprintf(
152 | 'https://bitbucket.org/%s/%s/get/%s.zip',
153 | $this->username,
154 | $this->repository,
155 | $ref
156 | );
157 | }
158 |
159 | /**
160 | * Get the contents of a file from a specific branch or tag.
161 | *
162 | * @param string $path File name.
163 | * @param string $ref
164 | * @return null|string Either the contents of the file, or null if the file doesn't exist or there's an error.
165 | */
166 | public function getRemoteFile($path, $ref = 'master') {
167 | $response = $this->api('src/' . $ref . '/' . ltrim($path));
168 | if ( is_wp_error($response) || !is_string($response) ) {
169 | return null;
170 | }
171 | return $response;
172 | }
173 |
174 | /**
175 | * Get the timestamp of the latest commit that changed the specified branch or tag.
176 | *
177 | * @param string $ref Reference name (e.g. branch or tag).
178 | * @return string|null
179 | */
180 | public function getLatestCommitTime($ref) {
181 | $response = $this->api('commits/' . $ref);
182 | if ( isset($response->values, $response->values[0], $response->values[0]->date) ) {
183 | return $response->values[0]->date;
184 | }
185 | return null;
186 | }
187 |
188 | /**
189 | * Perform a BitBucket API 2.0 request.
190 | *
191 | * @param string $url
192 | * @param string $version
193 | * @return mixed|\WP_Error
194 | */
195 | public function api($url, $version = '2.0') {
196 | $url = ltrim($url, '/');
197 | $isSrcResource = Utils::startsWith($url, 'src/');
198 |
199 | $url = implode('/', array(
200 | 'https://api.bitbucket.org',
201 | $version,
202 | 'repositories',
203 | $this->username,
204 | $this->repository,
205 | $url
206 | ));
207 | $baseUrl = $url;
208 |
209 | if ( $this->oauth ) {
210 | $url = $this->oauth->sign($url,'GET');
211 | }
212 |
213 | $options = array('timeout' => wp_doing_cron() ? 10 : 3);
214 | if ( !empty($this->httpFilterName) ) {
215 | $options = apply_filters($this->httpFilterName, $options);
216 | }
217 | $response = wp_remote_get($url, $options);
218 | if ( is_wp_error($response) ) {
219 | do_action('puc_api_error', $response, null, $url, $this->slug);
220 | return $response;
221 | }
222 |
223 | $code = wp_remote_retrieve_response_code($response);
224 | $body = wp_remote_retrieve_body($response);
225 | if ( $code === 200 ) {
226 | if ( $isSrcResource ) {
227 | //Most responses are JSON-encoded, but src resources just
228 | //return raw file contents.
229 | $document = $body;
230 | } else {
231 | $document = json_decode($body);
232 | }
233 | return $document;
234 | }
235 |
236 | $error = new \WP_Error(
237 | 'puc-bitbucket-http-error',
238 | sprintf('BitBucket API error. Base URL: "%s", HTTP status code: %d.', $baseUrl, $code)
239 | );
240 | do_action('puc_api_error', $error, $response, $url, $this->slug);
241 |
242 | return $error;
243 | }
244 |
245 | /**
246 | * @param array $credentials
247 | */
248 | public function setAuthentication($credentials) {
249 | parent::setAuthentication($credentials);
250 |
251 | if ( !empty($credentials) && !empty($credentials['consumer_key']) ) {
252 | $this->oauth = new OAuthSignature(
253 | $credentials['consumer_key'],
254 | $credentials['consumer_secret']
255 | );
256 | } else {
257 | $this->oauth = null;
258 | }
259 | }
260 |
261 | public function signDownloadUrl($url) {
262 | //Add authentication data to download URLs. Since OAuth signatures incorporate
263 | //timestamps, we have to do this immediately before inserting the update. Otherwise,
264 | //authentication could fail due to a stale timestamp.
265 | if ( $this->oauth ) {
266 | $url = $this->oauth->sign($url);
267 | }
268 | return $url;
269 | }
270 | }
271 |
272 | endif;
273 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Vcs/PluginUpdateChecker.php:
--------------------------------------------------------------------------------
1 | api = $api;
24 |
25 | parent::__construct($api->getRepositoryUrl(), $pluginFile, $slug, $checkPeriod, $optionName, $muPluginFile);
26 |
27 | $this->api->setHttpFilterName($this->getUniqueName('request_info_options'));
28 | $this->api->setStrategyFilterName($this->getUniqueName('vcs_update_detection_strategies'));
29 | $this->api->setSlug($this->slug);
30 | }
31 |
32 | public function requestInfo($unusedParameter = null) {
33 | //We have to make several remote API requests to gather all the necessary info
34 | //which can take a while on slow networks.
35 | if ( function_exists('set_time_limit') ) {
36 | @set_time_limit(60);
37 | }
38 |
39 | $api = $this->api;
40 | $api->setLocalDirectory($this->package->getAbsoluteDirectoryPath());
41 |
42 | $info = new Plugin\PluginInfo();
43 | $info->filename = $this->pluginFile;
44 | $info->slug = $this->slug;
45 |
46 | $this->setInfoFromHeader($this->package->getPluginHeader(), $info);
47 | $this->setIconsFromLocalAssets($info);
48 | $this->setBannersFromLocalAssets($info);
49 |
50 | //Pick a branch or tag.
51 | $updateSource = $api->chooseReference($this->branch);
52 | if ( $updateSource ) {
53 | $ref = $updateSource->name;
54 | $info->version = $updateSource->version;
55 | $info->last_updated = $updateSource->updated;
56 | $info->download_url = $updateSource->downloadUrl;
57 |
58 | if ( !empty($updateSource->changelog) ) {
59 | $info->sections['changelog'] = $updateSource->changelog;
60 | }
61 | if ( isset($updateSource->downloadCount) ) {
62 | $info->downloaded = $updateSource->downloadCount;
63 | }
64 | } else {
65 | //There's probably a network problem or an authentication error.
66 | do_action(
67 | 'puc_api_error',
68 | new \WP_Error(
69 | 'puc-no-update-source',
70 | 'Could not retrieve version information from the repository. '
71 | . 'This usually means that the update checker either can\'t connect '
72 | . 'to the repository or it\'s configured incorrectly.'
73 | ),
74 | null, null, $this->slug
75 | );
76 | return null;
77 | }
78 |
79 | //Get headers from the main plugin file in this branch/tag. Its "Version" header and other metadata
80 | //are what the WordPress install will actually see after upgrading, so they take precedence over releases/tags.
81 | $mainPluginFile = basename($this->pluginFile);
82 | $remotePlugin = $api->getRemoteFile($mainPluginFile, $ref);
83 | if ( !empty($remotePlugin) ) {
84 | $remoteHeader = $this->package->getFileHeader($remotePlugin);
85 | $this->setInfoFromHeader($remoteHeader, $info);
86 | }
87 |
88 | //Sanity check: Reject updates that don't have a version number.
89 | //This can happen when we're using a branch, and we either fail to retrieve the main plugin
90 | //file or the file doesn't have a "Version" header.
91 | if ( empty($info->version) ) {
92 | do_action(
93 | 'puc_api_error',
94 | new \WP_Error(
95 | 'puc-no-plugin-version',
96 | 'Could not find the version number in the repository.'
97 | ),
98 | null, null, $this->slug
99 | );
100 | return null;
101 | }
102 |
103 | //Try parsing readme.txt. If it's formatted according to WordPress.org standards, it will contain
104 | //a lot of useful information like the required/tested WP version, changelog, and so on.
105 | if ( $this->readmeTxtExistsLocally() ) {
106 | $this->setInfoFromRemoteReadme($ref, $info);
107 | }
108 |
109 | //The changelog might be in a separate file.
110 | if ( empty($info->sections['changelog']) ) {
111 | $info->sections['changelog'] = $api->getRemoteChangelog($ref, $this->package->getAbsoluteDirectoryPath());
112 | if ( empty($info->sections['changelog']) ) {
113 | $info->sections['changelog'] = __('There is no changelog available.', 'plugin-update-checker');
114 | }
115 | }
116 |
117 | if ( empty($info->last_updated) ) {
118 | //Fetch the latest commit that changed the tag or branch and use it as the "last_updated" date.
119 | $latestCommitTime = $api->getLatestCommitTime($ref);
120 | if ( $latestCommitTime !== null ) {
121 | $info->last_updated = $latestCommitTime;
122 | }
123 | }
124 |
125 | $info = apply_filters($this->getUniqueName('request_info_result'), $info, null);
126 | return $info;
127 | }
128 |
129 | /**
130 | * Check if the currently installed version has a readme.txt file.
131 | *
132 | * @return bool
133 | */
134 | protected function readmeTxtExistsLocally() {
135 | return $this->package->fileExists($this->api->getLocalReadmeName());
136 | }
137 |
138 | /**
139 | * Copy plugin metadata from a file header to a Plugin Info object.
140 | *
141 | * @param array $fileHeader
142 | * @param Plugin\PluginInfo $pluginInfo
143 | */
144 | protected function setInfoFromHeader($fileHeader, $pluginInfo) {
145 | $headerToPropertyMap = array(
146 | 'Version' => 'version',
147 | 'Name' => 'name',
148 | 'PluginURI' => 'homepage',
149 | 'Author' => 'author',
150 | 'AuthorName' => 'author',
151 | 'AuthorURI' => 'author_homepage',
152 |
153 | 'Requires WP' => 'requires',
154 | 'Tested WP' => 'tested',
155 | 'Requires at least' => 'requires',
156 | 'Tested up to' => 'tested',
157 |
158 | 'Requires PHP' => 'requires_php',
159 | );
160 | foreach ($headerToPropertyMap as $headerName => $property) {
161 | if ( isset($fileHeader[$headerName]) && !empty($fileHeader[$headerName]) ) {
162 | $pluginInfo->$property = $fileHeader[$headerName];
163 | }
164 | }
165 |
166 | if ( !empty($fileHeader['Description']) ) {
167 | $pluginInfo->sections['description'] = $fileHeader['Description'];
168 | }
169 | }
170 |
171 | /**
172 | * Copy plugin metadata from the remote readme.txt file.
173 | *
174 | * @param string $ref GitHub tag or branch where to look for the readme.
175 | * @param Plugin\PluginInfo $pluginInfo
176 | */
177 | protected function setInfoFromRemoteReadme($ref, $pluginInfo) {
178 | $readme = $this->api->getRemoteReadme($ref);
179 | if ( empty($readme) ) {
180 | return;
181 | }
182 |
183 | if ( isset($readme['sections']) ) {
184 | $pluginInfo->sections = array_merge($pluginInfo->sections, $readme['sections']);
185 | }
186 | if ( !empty($readme['tested_up_to']) ) {
187 | $pluginInfo->tested = $readme['tested_up_to'];
188 | }
189 | if ( !empty($readme['requires_at_least']) ) {
190 | $pluginInfo->requires = $readme['requires_at_least'];
191 | }
192 | if ( !empty($readme['requires_php']) ) {
193 | $pluginInfo->requires_php = $readme['requires_php'];
194 | }
195 |
196 | if ( isset($readme['upgrade_notice'], $readme['upgrade_notice'][$pluginInfo->version]) ) {
197 | $pluginInfo->upgrade_notice = $readme['upgrade_notice'][$pluginInfo->version];
198 | }
199 | }
200 |
201 | /**
202 | * Add icons from the currently installed version to a Plugin Info object.
203 | *
204 | * The icons should be in a subdirectory named "assets". Supported image formats
205 | * and file names are described here:
206 | * @link https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/#plugin-icons
207 | *
208 | * @param Plugin\PluginInfo $pluginInfo
209 | */
210 | protected function setIconsFromLocalAssets($pluginInfo) {
211 | $icons = $this->getLocalAssetUrls(array(
212 | 'icon.svg' => 'svg',
213 | 'icon-256x256.png' => '2x',
214 | 'icon-256x256.jpg' => '2x',
215 | 'icon-128x128.png' => '1x',
216 | 'icon-128x128.jpg' => '1x',
217 | ));
218 |
219 | if ( !empty($icons) ) {
220 | //The "default" key seems to be used only as last-resort fallback in WP core (5.8/5.9),
221 | //but we'll set it anyway in case some code somewhere needs it.
222 | reset($icons);
223 | $firstKey = key($icons);
224 | $icons['default'] = $icons[$firstKey];
225 |
226 | $pluginInfo->icons = $icons;
227 | }
228 | }
229 |
230 | /**
231 | * Add banners from the currently installed version to a Plugin Info object.
232 | *
233 | * The banners should be in a subdirectory named "assets". Supported image formats
234 | * and file names are described here:
235 | * @link https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/#plugin-headers
236 | *
237 | * @param Plugin\PluginInfo $pluginInfo
238 | */
239 | protected function setBannersFromLocalAssets($pluginInfo) {
240 | $banners = $this->getLocalAssetUrls(array(
241 | 'banner-772x250.png' => 'high',
242 | 'banner-772x250.jpg' => 'high',
243 | 'banner-1544x500.png' => 'low',
244 | 'banner-1544x500.jpg' => 'low',
245 | ));
246 |
247 | if ( !empty($banners) ) {
248 | $pluginInfo->banners = $banners;
249 | }
250 | }
251 |
252 | /**
253 | * @param array $filesToKeys
254 | * @return array
255 | */
256 | protected function getLocalAssetUrls($filesToKeys) {
257 | $assetDirectory = $this->package->getAbsoluteDirectoryPath() . DIRECTORY_SEPARATOR . 'assets';
258 | if ( !is_dir($assetDirectory) ) {
259 | return array();
260 | }
261 | $assetBaseUrl = trailingslashit(plugins_url('', $assetDirectory . '/imaginary.file'));
262 |
263 | $foundAssets = array();
264 | foreach ($filesToKeys as $fileName => $key) {
265 | $fullBannerPath = $assetDirectory . DIRECTORY_SEPARATOR . $fileName;
266 | if ( !isset($icons[$key]) && is_file($fullBannerPath) ) {
267 | $foundAssets[$key] = $assetBaseUrl . $fileName;
268 | }
269 | }
270 |
271 | return $foundAssets;
272 | }
273 | }
274 |
275 | endif;
276 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Vcs/Reference.php:
--------------------------------------------------------------------------------
1 | properties = $properties;
23 | }
24 |
25 | /**
26 | * @param string $name
27 | * @return mixed|null
28 | */
29 | public function __get($name) {
30 | return array_key_exists($name, $this->properties) ? $this->properties[$name] : null;
31 | }
32 |
33 | /**
34 | * @param string $name
35 | * @param mixed $value
36 | */
37 | public function __set($name, $value) {
38 | $this->properties[$name] = $value;
39 | }
40 |
41 | /**
42 | * @param string $name
43 | * @return bool
44 | */
45 | public function __isset($name) {
46 | return isset($this->properties[$name]);
47 | }
48 |
49 | }
50 |
51 | endif;
52 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Vcs/ReleaseAssetSupport.php:
--------------------------------------------------------------------------------
1 | releaseAssetsEnabled = true;
40 | $this->assetFilterRegex = $nameRegex;
41 | $this->releaseAssetPreference = $preference;
42 | }
43 |
44 | /**
45 | * Disable release assets.
46 | *
47 | * @return void
48 | * @noinspection PhpUnused -- Public API
49 | */
50 | public function disableReleaseAssets() {
51 | $this->releaseAssetsEnabled = false;
52 | $this->assetFilterRegex = null;
53 | }
54 |
55 | /**
56 | * Does the specified asset match the name regex?
57 | *
58 | * @param mixed $releaseAsset Data type and structure depend on the host/API.
59 | * @return bool
60 | */
61 | protected function matchesAssetFilter($releaseAsset) {
62 | if ( $this->assetFilterRegex === null ) {
63 | //The default is to accept all assets.
64 | return true;
65 | }
66 |
67 | $name = $this->getFilterableAssetName($releaseAsset);
68 | if ( !is_string($name) ) {
69 | return false;
70 | }
71 | return (bool)preg_match($this->assetFilterRegex, $releaseAsset->name);
72 | }
73 |
74 | /**
75 | * Get the part of asset data that will be checked against the filter regex.
76 | *
77 | * @param mixed $releaseAsset
78 | * @return string|null
79 | */
80 | abstract protected function getFilterableAssetName($releaseAsset);
81 | }
82 |
83 | endif;
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Vcs/ReleaseFilteringFeature.php:
--------------------------------------------------------------------------------
1 | 100 ) {
39 | throw new \InvalidArgumentException(sprintf(
40 | 'The max number of releases is too high (%d). It must be 100 or less.',
41 | $maxReleases
42 | ));
43 | } else if ( $maxReleases < 1 ) {
44 | throw new \InvalidArgumentException(sprintf(
45 | 'The max number of releases is too low (%d). It must be at least 1.',
46 | $maxReleases
47 | ));
48 | }
49 |
50 | $this->releaseFilterCallback = $callback;
51 | $this->releaseFilterByType = $releaseTypes;
52 | $this->releaseFilterMaxReleases = $maxReleases;
53 | return $this;
54 | }
55 |
56 | /**
57 | * Filter releases by their version number.
58 | *
59 | * @param string $regex A regular expression. The release version number must match this regex.
60 | * @param int $releaseTypes
61 | * @param int $maxReleasesToExamine
62 | * @return $this
63 | * @noinspection PhpUnused -- Public API
64 | */
65 | public function setReleaseVersionFilter(
66 | $regex,
67 | $releaseTypes = Api::RELEASE_FILTER_SKIP_PRERELEASE,
68 | $maxReleasesToExamine = 20
69 | ) {
70 | return $this->setReleaseFilter(
71 | function ($versionNumber) use ($regex) {
72 | return (preg_match($regex, $versionNumber) === 1);
73 | },
74 | $releaseTypes,
75 | $maxReleasesToExamine
76 | );
77 | }
78 |
79 | /**
80 | * @param string $versionNumber The detected release version number.
81 | * @param object $releaseObject Varies depending on the host/API.
82 | * @return bool
83 | */
84 | protected function matchesCustomReleaseFilter($versionNumber, $releaseObject) {
85 | if ( !is_callable($this->releaseFilterCallback) ) {
86 | return true; //No custom filter.
87 | }
88 | return call_user_func($this->releaseFilterCallback, $versionNumber, $releaseObject);
89 | }
90 |
91 | /**
92 | * @return bool
93 | */
94 | protected function shouldSkipPreReleases() {
95 | //Maybe this could be a bitfield in the future, if we need to support
96 | //more release types.
97 | return ($this->releaseFilterByType !== Api::RELEASE_FILTER_ALL);
98 | }
99 |
100 | /**
101 | * @return bool
102 | */
103 | protected function hasCustomReleaseFilter() {
104 | return isset($this->releaseFilterCallback) && is_callable($this->releaseFilterCallback);
105 | }
106 | }
107 |
108 | endif;
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Vcs/ThemeUpdateChecker.php:
--------------------------------------------------------------------------------
1 | api = $api;
24 |
25 | parent::__construct($api->getRepositoryUrl(), $stylesheet, $customSlug, $checkPeriod, $optionName);
26 |
27 | $this->api->setHttpFilterName($this->getUniqueName('request_update_options'));
28 | $this->api->setStrategyFilterName($this->getUniqueName('vcs_update_detection_strategies'));
29 | $this->api->setSlug($this->slug);
30 | }
31 |
32 | public function requestUpdate() {
33 | $api = $this->api;
34 | $api->setLocalDirectory($this->package->getAbsoluteDirectoryPath());
35 |
36 | $update = new Theme\Update();
37 | $update->slug = $this->slug;
38 |
39 | //Figure out which reference (tag or branch) we'll use to get the latest version of the theme.
40 | $updateSource = $api->chooseReference($this->branch);
41 | if ( $updateSource ) {
42 | $ref = $updateSource->name;
43 | $update->download_url = $updateSource->downloadUrl;
44 | } else {
45 | do_action(
46 | 'puc_api_error',
47 | new \WP_Error(
48 | 'puc-no-update-source',
49 | 'Could not retrieve version information from the repository. '
50 | . 'This usually means that the update checker either can\'t connect '
51 | . 'to the repository or it\'s configured incorrectly.'
52 | ),
53 | null, null, $this->slug
54 | );
55 | $ref = $this->branch;
56 | }
57 |
58 | //Get headers from the main stylesheet in this branch/tag. Its "Version" header and other metadata
59 | //are what the WordPress install will actually see after upgrading, so they take precedence over releases/tags.
60 | $remoteHeader = $this->package->getFileHeader($api->getRemoteFile('style.css', $ref));
61 | $update->version = Utils::findNotEmpty(array(
62 | $remoteHeader['Version'],
63 | Utils::get($updateSource, 'version'),
64 | ));
65 |
66 | //The details URL defaults to the Theme URI header or the repository URL.
67 | $update->details_url = Utils::findNotEmpty(array(
68 | $remoteHeader['ThemeURI'],
69 | $this->package->getHeaderValue('ThemeURI'),
70 | $this->metadataUrl,
71 | ));
72 |
73 | if ( empty($update->version) ) {
74 | //It looks like we didn't find a valid update after all.
75 | $update = null;
76 | }
77 |
78 | $update = $this->filterUpdateResult($update);
79 | return $update;
80 | }
81 | }
82 |
83 | endif;
84 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/Vcs/VcsCheckerMethods.php:
--------------------------------------------------------------------------------
1 | branch = $branch;
20 | return $this;
21 | }
22 |
23 | /**
24 | * Set authentication credentials.
25 | *
26 | * @param array|string $credentials
27 | * @return $this
28 | */
29 | public function setAuthentication($credentials) {
30 | $this->api->setAuthentication($credentials);
31 | return $this;
32 | }
33 |
34 | /**
35 | * @return Api
36 | */
37 | public function getVcsApi() {
38 | return $this->api;
39 | }
40 |
41 | public function getUpdate() {
42 | $update = parent::getUpdate();
43 |
44 | if ( isset($update) && !empty($update->download_url) ) {
45 | $update->download_url = $this->api->signDownloadUrl($update->download_url);
46 | }
47 |
48 | return $update;
49 | }
50 |
51 | public function onDisplayConfiguration($panel) {
52 | parent::onDisplayConfiguration($panel);
53 | $panel->row('Branch', $this->branch);
54 | $panel->row('Authentication enabled', $this->api->isAuthenticationEnabled() ? 'Yes' : 'No');
55 | $panel->row('API client', get_class($this->api));
56 | }
57 | }
58 |
59 | endif;
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/Puc/v5p4/WpCliCheckTrigger.php:
--------------------------------------------------------------------------------
1 | componentType = $componentType;
42 | $this->scheduler = $scheduler;
43 |
44 | if ( !defined('WP_CLI') || !class_exists(WP_CLI::class, false) ) {
45 | return; //Nothing to do if WP-CLI is not available.
46 | }
47 |
48 | /*
49 | * We can't hook directly into wp_update_plugins(), but we can hook into the WP-CLI
50 | * commands that call it. We'll use the "before_invoke:xyz" hook to trigger update checks.
51 | */
52 | foreach ($this->getRelevantCommands() as $command) {
53 | WP_CLI::add_hook('before_invoke:' . $command, [$this, 'triggerUpdateCheckOnce']);
54 | }
55 | }
56 |
57 | private function getRelevantCommands() {
58 | $result = [];
59 | foreach (['status', 'list', 'update'] as $subcommand) {
60 | $result[] = $this->componentType . ' ' . $subcommand;
61 | }
62 | return $result;
63 | }
64 |
65 | /**
66 | * Trigger a potential update check once.
67 | *
68 | * @param mixed $input
69 | * @return mixed The input value, unchanged.
70 | * @internal This method is public so that it can be used as a WP-CLI hook callback.
71 | * It should not be called directly.
72 | *
73 | */
74 | public function triggerUpdateCheckOnce($input = null) {
75 | if ( $this->wasCheckTriggered ) {
76 | return $input;
77 | }
78 |
79 | $this->wasCheckTriggered = true;
80 | $this->scheduler->maybeCheckForUpdates();
81 |
82 | return $input;
83 | }
84 | }
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "yahnis-elsts/plugin-update-checker",
3 | "type": "library",
4 | "description": "A custom update checker for WordPress plugins and themes. Useful if you can't host your plugin in the official WP repository but still want it to support automatic updates.",
5 | "keywords": ["wordpress", "plugin updates", "automatic updates", "theme updates"],
6 | "homepage": "https://github.com/YahnisElsts/plugin-update-checker/",
7 | "license": "MIT",
8 | "authors": [
9 | {
10 | "name": "Yahnis Elsts",
11 | "email": "whiteshadow@w-shadow.com",
12 | "homepage": "https://w-shadow.com/",
13 | "role": "Developer"
14 | }
15 | ],
16 | "require": {
17 | "php": ">=5.6.20",
18 | "ext-json": "*"
19 | },
20 | "autoload": {
21 | "files": ["load-v5p4.php"]
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/css/puc-debug-bar.css:
--------------------------------------------------------------------------------
1 | .puc-debug-bar-panel-v5 pre {
2 | margin-top: 0;
3 | }
4 |
5 | /* Style the debug data table to match "widefat" table style used by WordPress. */
6 | table.puc-debug-data {
7 | width: 100%;
8 | clear: both;
9 | margin: 0;
10 |
11 | border-spacing: 0;
12 | background-color: #f9f9f9;
13 |
14 | border-radius: 3px;
15 | border: 1px solid #dfdfdf;
16 | border-collapse: separate;
17 | }
18 |
19 | table.puc-debug-data * {
20 | word-wrap: break-word;
21 | }
22 |
23 | table.puc-debug-data th {
24 | width: 11em;
25 | padding: 7px 7px 8px;
26 | text-align: left;
27 |
28 | font-family: "Georgia", "Times New Roman", "Bitstream Charter", "Times", serif;
29 | font-weight: 400;
30 | font-size: 14px;
31 | line-height: 1.3em;
32 | text-shadow: rgba(255, 255, 255, 0.804) 0 1px 0;
33 | }
34 |
35 | table.puc-debug-data td, table.puc-debug-data th {
36 | border-width: 1px 0;
37 | border-style: solid;
38 |
39 | border-top-color: #fff;
40 | border-bottom-color: #dfdfdf;
41 |
42 | text-transform: none;
43 | }
44 |
45 | table.puc-debug-data td {
46 | color: #555;
47 | font-size: 12px;
48 | padding: 4px 7px 2px;
49 | vertical-align: top;
50 | }
51 |
52 | .puc-ajax-response {
53 | border: 1px solid #dfdfdf;
54 | border-radius: 3px;
55 | padding: 0.5em;
56 | margin: 5px 0;
57 | background-color: white;
58 | }
59 |
60 | .puc-ajax-nonce {
61 | display: none;
62 | }
63 |
64 | .puc-ajax-response dt {
65 | margin: 0;
66 | }
67 |
68 | .puc-ajax-response dd {
69 | margin: 0 0 1em;
70 | }
71 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/js/debug-bar.js:
--------------------------------------------------------------------------------
1 | jQuery(function($) {
2 |
3 | function runAjaxAction(button, action) {
4 | button = $(button);
5 | var panel = button.closest('.puc-debug-bar-panel-v5');
6 | var responseBox = button.closest('td').find('.puc-ajax-response');
7 |
8 | responseBox.text('Processing...').show();
9 | $.post(
10 | ajaxurl,
11 | {
12 | action : action,
13 | uid : panel.data('uid'),
14 | _wpnonce: panel.data('nonce')
15 | },
16 | function(data) {
17 | //The response contains HTML that should already be escaped in server-side code.
18 | //phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.html
19 | responseBox.html(data);
20 | },
21 | 'html'
22 | );
23 | }
24 |
25 | $('.puc-debug-bar-panel-v5 input[name="puc-check-now-button"]').on('click', function() {
26 | runAjaxAction(this, 'puc_v5_debug_check_now');
27 | return false;
28 | });
29 |
30 | $('.puc-debug-bar-panel-v5 input[name="puc-request-info-button"]').on('click', function() {
31 | runAjaxAction(this, 'puc_v5_debug_request_info');
32 | return false;
33 | });
34 |
35 |
36 | // Debug Bar uses the panel class name as part of its link and container IDs. This means we can
37 | // end up with multiple identical IDs if more than one plugin uses the update checker library.
38 | // Fix it by replacing the class name with the plugin slug.
39 | var panels = $('#debug-menu-targets').find('.puc-debug-bar-panel-v5');
40 | panels.each(function() {
41 | var panel = $(this);
42 | var uid = panel.data('uid');
43 | var target = panel.closest('.debug-menu-target');
44 |
45 | //Change the panel wrapper ID.
46 | target.attr('id', 'debug-menu-target-puc-' + uid);
47 |
48 | //Change the menu link ID as well and point it at the new target ID.
49 | $('#debug-bar-menu').find('.puc-debug-menu-link-' + uid)
50 | .closest('.debug-menu-link')
51 | .attr('id', 'debug-menu-link-puc-' + uid)
52 | .attr('href', '#' + target.attr('id'));
53 | });
54 | });
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-ca.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-ca.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-ca.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2019-09-25 18:15+0200\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: ca\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprova si hi ha actualitzacions"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "L’extensió %s està actualitzada."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nova versió de l’extensió %s està disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No s’ha pogut determinar si hi ha actualitzacions per a %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estat del comprovador d’actualitzacions desconegut \"%s\""
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hi ha cap registre de canvis disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-cs_CZ.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-cs_CZ.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-cs_CZ.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "Report-Msgid-Bugs-To: \n"
5 | "POT-Creation-Date: 2017-05-20 10:53+0300\n"
6 | "PO-Revision-Date: 2017-07-05 15:39+0000\n"
7 | "Last-Translator: Vojtěch Sajdl \n"
8 | "Language-Team: Czech (Czech Republic)\n"
9 | "Language: cs-CZ\n"
10 | "Plural-Forms: nplurals=2; plural=(n != 1)\n"
11 | "MIME-Version: 1.0\n"
12 | "Content-Type: text/plain; charset=UTF-8\n"
13 | "Content-Transfer-Encoding: 8bit\n"
14 | "X-Loco-Source-Locale: cs_CZ\n"
15 | "X-Generator: Loco - https://localise.biz/\n"
16 | "X-Poedit-Basepath: ..\n"
17 | "X-Poedit-SourceCharset: UTF-8\n"
18 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
19 | "X-Poedit-SearchPath-0: .\n"
20 | "X-Loco-Parser: loco_parse_po"
21 |
22 | #: Puc/v4p1/Plugin/UpdateChecker.php:358
23 | msgid "Check for updates"
24 | msgstr "Zkontrolovat aktualizace"
25 |
26 | #: Puc/v4p1/Plugin/UpdateChecker.php:405
27 | #, php-format
28 | msgctxt "the plugin title"
29 | msgid "The %s plugin is up to date."
30 | msgstr "Plugin %s je aktuální."
31 |
32 | #: Puc/v4p1/Plugin/UpdateChecker.php:407
33 | #, php-format
34 | msgctxt "the plugin title"
35 | msgid "A new version of the %s plugin is available."
36 | msgstr "Nová verze pluginu %s je dostupná."
37 |
38 | #: Puc/v4p1/Plugin/UpdateChecker.php:409
39 | #, php-format
40 | msgid "Unknown update checker status \"%s\""
41 | msgstr "Neznámý status kontroly aktualizací \"%s\""
42 |
43 | #: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
44 | msgid "There is no changelog available."
45 | msgstr "Changelog není dostupný."
46 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-da_DK.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-da_DK.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-da_DK.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-05-20 10:53+0300\n"
5 | "PO-Revision-Date: 2017-10-17 11:07+0200\n"
6 | "Last-Translator: Mikk3lRo\n"
7 | "Language-Team: Mikk3lRo\n"
8 | "MIME-Version: 1.0\n"
9 | "Content-Type: text/plain; charset=UTF-8\n"
10 | "Content-Transfer-Encoding: 8bit\n"
11 | "X-Generator: Poedit 2.0.4\n"
12 | "X-Poedit-Basepath: ..\n"
13 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14 | "X-Poedit-SourceCharset: UTF-8\n"
15 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
16 | "Language: da_DK\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p1/Plugin/UpdateChecker.php:358
20 | msgid "Check for updates"
21 | msgstr "Undersøg for opdateringer"
22 |
23 | #: Puc/v4p1/Plugin/UpdateChecker.php:405
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "Plugin'et %s er allerede opdateret."
28 |
29 | #: Puc/v4p1/Plugin/UpdateChecker.php:407
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "En ny version af plugin'et %s er tilgængelig."
34 |
35 | #: Puc/v4p1/Plugin/UpdateChecker.php:409
36 | #, php-format
37 | msgid "Unknown update checker status \"%s\""
38 | msgstr "Ukendt opdateringsstatus: \"%s\""
39 |
40 | #: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
41 | msgid "There is no changelog available."
42 | msgstr "Der er ingen ændringslog tilgængelig."
43 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-de_DE.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-de_DE.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-de_DE.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2016-06-29 20:21+0100\n"
5 | "PO-Revision-Date: 2016-06-29 20:23+0100\n"
6 | "Last-Translator: Igor Lückel \n"
7 | "Language-Team: \n"
8 | "MIME-Version: 1.0\n"
9 | "Content-Type: text/plain; charset=UTF-8\n"
10 | "Content-Transfer-Encoding: 8bit\n"
11 | "X-Generator: Poedit 1.8.1\n"
12 | "X-Poedit-Basepath: ..\n"
13 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14 | "X-Poedit-SourceCharset: UTF-8\n"
15 | "X-Poedit-KeywordsList: __;_e\n"
16 | "Language: de_DE\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: github-checker.php:137
20 | msgid "There is no changelog available."
21 | msgstr "Es ist keine Liste von Programmänderungen verfügbar."
22 |
23 | #: plugin-update-checker.php:852
24 | msgid "Check for updates"
25 | msgstr "Nach Update suchen"
26 |
27 | #: plugin-update-checker.php:896
28 | msgid "This plugin is up to date."
29 | msgstr "Das Plugin ist aktuell."
30 |
31 | #: plugin-update-checker.php:898
32 | msgid "A new version of this plugin is available."
33 | msgstr "Es ist eine neue Version für das Plugin verfügbar."
34 |
35 | #: plugin-update-checker.php:900
36 | #, php-format
37 | msgid "Unknown update checker status \"%s\""
38 | msgstr "Unbekannter Update Status \"%s\""
39 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_AR.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_AR.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_AR.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 15:13-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_CL.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_CL.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_CL.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 15:14-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_CO.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_CO.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_CO.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 15:14-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_CR.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_CR.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_CR.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 15:14-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_DO.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_DO.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_DO.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 15:14-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_ES.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_ES.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_ES.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 14:56-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_GT.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_GT.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_GT.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 15:14-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_HN.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_HN.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_HN.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 15:14-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_MX.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_MX.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_MX.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 14:57-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_PE.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_PE.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_PE.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 15:15-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_PR.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_PR.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_PR.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 15:15-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_UY.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_UY.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_UY.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 15:15-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_VE.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-es_VE.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-es_VE.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2020-03-21 14:57-0400\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.3\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: es_ES\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Comprobar si hay actualizaciones"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "El plugin %s está actualizado."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nueva versión del %s plugin está disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Estado del comprobador de actualización desconocido «%s»"
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "No hay un registro de cambios disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-fa_IR.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-fa_IR.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-fa_IR.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2016-02-17 14:21+0100\n"
5 | "PO-Revision-Date: 2016-10-28 14:30+0330\n"
6 | "Last-Translator: studio RVOLA \n"
7 | "Language-Team: Pro Style \n"
8 | "Language: fa_IR\n"
9 | "MIME-Version: 1.0\n"
10 | "Content-Type: text/plain; charset=UTF-8\n"
11 | "Content-Transfer-Encoding: 8bit\n"
12 | "X-Generator: Poedit 1.8.8\n"
13 | "X-Poedit-Basepath: ..\n"
14 | "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15 | "X-Poedit-SourceCharset: UTF-8\n"
16 | "X-Poedit-KeywordsList: __;_e\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: github-checker.php:120
20 | msgid "There is no changelog available."
21 | msgstr "شرحی برای تغییرات یافت نشد"
22 |
23 | #: plugin-update-checker.php:637
24 | msgid "Check for updates"
25 | msgstr "بررسی برای بروزرسانی "
26 |
27 | #: plugin-update-checker.php:681
28 | msgid "This plugin is up to date."
29 | msgstr "شما از آخرین نسخه استفاده میکنید . بهروز باشید"
30 |
31 | #: plugin-update-checker.php:683
32 | msgid "A new version of this plugin is available."
33 | msgstr "نسخه جدیدی برای افزونه ارائه شده است ."
34 |
35 | #: plugin-update-checker.php:685
36 | #, php-format
37 | msgid "Unknown update checker status \"%s\""
38 | msgstr "وضعیت ناشناخته برای بروزرسانی \"%s\""
39 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-fr_CA.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-fr_CA.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-fr_CA.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2018-02-12 10:32-0500\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.0.4\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n > 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: Eric Gagnon \n"
16 | "Language: fr_CA\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Vérifier les mises à jour"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "L’extension %s est à jour."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Une nouvelle version de l’extension %s est disponible."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "Impossible de déterminer si une mise à jour est disponible pour \"%s\""
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Un problème inconnu est survenu \"%s\""
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "Il n’y a aucun journal de mise à jour disponible."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-fr_FR.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-fr_FR.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-fr_FR.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-07-07 14:53+0200\n"
5 | "PO-Revision-Date: 2017-07-07 14:54+0200\n"
6 | "Language-Team: studio RVOLA \n"
7 | "Language: fr_FR\n"
8 | "MIME-Version: 1.0\n"
9 | "Content-Type: text/plain; charset=UTF-8\n"
10 | "Content-Transfer-Encoding: 8bit\n"
11 | "X-Generator: Poedit 2.0.2\n"
12 | "X-Poedit-Basepath: ..\n"
13 | "Plural-Forms: nplurals=2; plural=(n > 1);\n"
14 | "X-Poedit-SourceCharset: UTF-8\n"
15 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
16 | "Last-Translator: Nicolas GEHIN\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p1/Plugin/UpdateChecker.php:358
20 | msgid "Check for updates"
21 | msgstr "Vérifier les mises à jour"
22 |
23 | #: Puc/v4p1/Plugin/UpdateChecker.php:405
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "L’extension %s est à jour."
28 |
29 | #: Puc/v4p1/Plugin/UpdateChecker.php:407
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Une nouvelle version de l’extension %s est disponible."
34 |
35 | #: Puc/v4p1/Plugin/UpdateChecker.php:409
36 | #, php-format
37 | msgid "Unknown update checker status \"%s\""
38 | msgstr "Un problème inconnu est survenu \"%s\""
39 |
40 | #: Puc/v4p1/Vcs/PluginUpdateChecker.php:85
41 | msgid "There is no changelog available."
42 | msgstr "Il n’y a aucun journal de mise à jour disponible."
43 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-hu_HU.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-hu_HU.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-hu_HU.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2016-01-11 21:23+0100\n"
5 | "PO-Revision-Date: 2016-01-11 21:25+0100\n"
6 | "Last-Translator: Tamás András Horváth \n"
7 | "Language-Team: \n"
8 | "Language: hu_HU\n"
9 | "MIME-Version: 1.0\n"
10 | "Content-Type: text/plain; charset=UTF-8\n"
11 | "Content-Transfer-Encoding: 8bit\n"
12 | "X-Generator: Poedit 1.8.6\n"
13 | "X-Poedit-Basepath: ..\n"
14 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15 | "X-Poedit-SourceCharset: UTF-8\n"
16 | "X-Poedit-KeywordsList: __;_e\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: github-checker.php:137
20 | msgid "There is no changelog available."
21 | msgstr "Nem érhető el a changelog."
22 |
23 | #: plugin-update-checker.php:852
24 | msgid "Check for updates"
25 | msgstr "Frissítés ellenőrzése"
26 |
27 | #: plugin-update-checker.php:896
28 | msgid "This plugin is up to date."
29 | msgstr "Ez a plugin naprakész."
30 |
31 | #: plugin-update-checker.php:898
32 | msgid "A new version of this plugin is available."
33 | msgstr "Új verzió érhető el a kiegészítőhöz"
34 |
35 | #: plugin-update-checker.php:900
36 | #, php-format
37 | msgid "Unknown update checker status \"%s\""
38 | msgstr "Ismeretlen a frissítés ellenőrző státusza \"%s\""
39 |
40 | #~ msgid "Every %d hours"
41 | #~ msgstr "Minden %d órában"
42 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-it_IT.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-it_IT.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-it_IT.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2020-08-08 14:36+0300\n"
5 | "PO-Revision-Date: 2022-05-20 00:17+0200\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 3.0\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: d79\n"
16 | "Language: it_IT\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p11/Plugin/Ui.php:128
20 | msgid "Check for updates"
21 | msgstr "Verifica aggiornamenti"
22 |
23 | #: Puc/v4p11/Plugin/Ui.php:213
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "Il plugin %s è aggiornato."
28 |
29 | #: Puc/v4p11/Plugin/Ui.php:215
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Una nuova versione del plugin %s è disponibile."
34 |
35 | #: Puc/v4p11/Plugin/Ui.php:217
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "Non è possibile verificare se c'è un aggiornamento disponibile per %s."
40 |
41 | #: Puc/v4p11/Plugin/Ui.php:223
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Stato di controllo aggiornamenti sconosciuto \"%s\""
45 |
46 | #: Puc/v4p11/Vcs/PluginUpdateChecker.php:98
47 | msgid "There is no changelog available."
48 | msgstr "Non c'è alcun registro delle modifiche disponibile."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-ja.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-ja.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-ja.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: \n"
4 | "POT-Creation-Date: 2019-07-15 17:07+0900\n"
5 | "PO-Revision-Date: 2019-07-15 17:12+0900\n"
6 | "Last-Translator: tak \n"
7 | "Language-Team: \n"
8 | "Language: ja_JP\n"
9 | "MIME-Version: 1.0\n"
10 | "Content-Type: text/plain; charset=UTF-8\n"
11 | "Content-Transfer-Encoding: 8bit\n"
12 | "X-Generator: Poedit 2.2.3\n"
13 | "X-Poedit-Basepath: ../../../../../../Applications/XAMPP/xamppfiles/htdocs/"
14 | "kisagai/wordpress/wp-content/plugins/simple-stripe-gateway/Puc\n"
15 | "Plural-Forms: nplurals=1; plural=0;\n"
16 | "X-Poedit-KeywordsList: __;_x:1,2c\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: v4p7/Plugin/Ui.php:54
20 | msgid "View details"
21 | msgstr "詳細を表示"
22 |
23 | #: v4p7/Plugin/Ui.php:77
24 | #, php-format
25 | msgid "More information about %s"
26 | msgstr "%sについての詳細"
27 |
28 | #: v4p7/Plugin/Ui.php:128
29 | msgid "Check for updates"
30 | msgstr "アップデートを確認"
31 |
32 | #: v4p7/Plugin/Ui.php:213
33 | #, php-format
34 | msgctxt "the plugin title"
35 | msgid "The %s plugin is up to date."
36 | msgstr "%s プラグインは、最新バージョンです。"
37 |
38 | #: v4p7/Plugin/Ui.php:215
39 | #, php-format
40 | msgctxt "the plugin title"
41 | msgid "A new version of the %s plugin is available."
42 | msgstr "%s プラグインの最新バージョンがあります。"
43 |
44 | #: v4p7/Plugin/Ui.php:217
45 | #, php-format
46 | msgctxt "the plugin title"
47 | msgid "Could not determine if updates are available for %s."
48 | msgstr "%s のアップデートがあるかどうかを判断できませんでした。"
49 |
50 | #: v4p7/Plugin/Ui.php:223
51 | #, php-format
52 | msgid "Unknown update checker status \"%s\""
53 | msgstr "バージョンアップの確認で想定外の状態になりました。ステータス:”%s”"
54 |
55 | #: v4p7/Vcs/PluginUpdateChecker.php:98
56 | msgid "There is no changelog available."
57 | msgstr "更新履歴はありません。"
58 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-nl_BE.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-nl_BE.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-nl_BE.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2018-03-25 18:15+0200\n"
5 | "PO-Revision-Date: 2018-03-25 18:32+0200\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 1.8.7.1\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: Frank Goossens \n"
16 | "Language: nl_BE\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Controleer op nieuwe versies"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "De meest recente %s versie is geïnstalleerd."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Er is een nieuwe versie van %s beschikbaar."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "Kon niet bepalen of er nieuwe versie van %s beschikbaar is."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Ongekende status bij controle op nieuwe versie: \"%s\""
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "Er is geen changelog beschikbaar."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-nl_NL.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-nl_NL.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-nl_NL.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2018-03-25 18:15+0200\n"
5 | "PO-Revision-Date: 2018-03-25 18:32+0200\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 1.8.7.1\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: Frank Goossens \n"
16 | "Language: nl_NL\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Controleer op nieuwe versies"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "De meest recente %s versie is geïnstalleerd."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Er is een nieuwe versie van %s beschikbaar."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "Kon niet bepalen of er nieuwe versie van %s beschikbaar is."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Ongekende status bij controle op nieuwe versie: \"%s\""
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "Er is geen changelog beschikbaar."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-pt_BR.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-pt_BR.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-pt_BR.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-05-19 15:41-0300\n"
5 | "PO-Revision-Date: 2017-05-19 15:42-0300\n"
6 | "Last-Translator: \n"
7 | "Language-Team: \n"
8 | "Language: pt_BR\n"
9 | "MIME-Version: 1.0\n"
10 | "Content-Type: text/plain; charset=UTF-8\n"
11 | "Content-Transfer-Encoding: 8bit\n"
12 | "X-Generator: Poedit 1.8.8\n"
13 | "X-Poedit-Basepath: ..\n"
14 | "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15 | "X-Poedit-SourceCharset: UTF-8\n"
16 | "X-Poedit-KeywordsList: __;_e;_x;_x:1,2c\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p1/Plugin/UpdateChecker.php:358
20 | msgid "Check for updates"
21 | msgstr "Verificar Atualizações"
22 |
23 | #: Puc/v4p1/Plugin/UpdateChecker.php:401 Puc/v4p1/Plugin/UpdateChecker.php:406
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "O plugin %s já está na sua versão mais recente."
28 |
29 | #: Puc/v4p1/Plugin/UpdateChecker.php:408
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Há uma nova versão para o plugin %s disponível para download."
34 |
35 | #: Puc/v4p1/Plugin/UpdateChecker.php:410
36 | #, php-format
37 | msgid "Unknown update checker status \"%s\""
38 | msgstr "Status \"%s\" desconhecido."
39 |
40 | #: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
41 | msgid "There is no changelog available."
42 | msgstr "Não há um changelog disponível."
43 |
44 | #~ msgid "The %s plugin is up to date."
45 | #~ msgstr "O plugin %s já está na sua versão mais recente."
46 |
47 | #~ msgid "A new version of the %s plugin is available."
48 | #~ msgstr "Há uma nova versão para o plugin %s disponível para download."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-ru_RU.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-ru_RU.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-ru_RU.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2020-08-08 14:36+0300\n"
5 | "PO-Revision-Date: 2021-12-20 17:59+0200\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.2\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: ru_RU\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p11/Plugin/Ui.php:128
20 | msgid "Check for updates"
21 | msgstr "Проверить обновления"
22 |
23 | #: Puc/v4p11/Plugin/Ui.php:213
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "Плагин %s обновлён."
28 |
29 | #: Puc/v4p11/Plugin/Ui.php:215
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Новая версия %s доступна."
34 |
35 | #: Puc/v4p11/Plugin/Ui.php:217
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "Не удалось определить, доступны ли обновления для %s."
40 |
41 | #: Puc/v4p11/Plugin/Ui.php:223
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Неизвестный статус средства проверки обновлений \"%s\""
45 |
46 | #: Puc/v4p11/Vcs/PluginUpdateChecker.php:98
47 | msgid "There is no changelog available."
48 | msgstr "Журнал изменений отсутствует."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-sl_SI.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-sl_SI.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-sl_SI.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2018-10-27 20:36+0200\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.2\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100>=3 && n%100<=4 ? 2 : 3);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: Igor Funa\n"
16 | "Language: sl_SI\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Preveri posodobitve"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "Vtičnik %s je že posodobljen."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Nova različica vtičnika %s je na razpolago."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "Ne morem ugotoviti če se za vtičnik %s na razpolago posodobitve."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Neznan status preverjanja posodobitev za \"%s\""
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "Dnevnik sprememb ni na razpolago."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-sv_SE.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-sv_SE.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-sv_SE.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-05-20 10:53+0300\n"
5 | "PO-Revision-Date: 2017-10-16 15:02+0200\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.0.4\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: sv_SE\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p1/Plugin/UpdateChecker.php:358
20 | msgid "Check for updates"
21 | msgstr "Sök efter uppdateringar"
22 |
23 | #: Puc/v4p1/Plugin/UpdateChecker.php:405
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "Tillägget %s är uppdaterat."
28 |
29 | #: Puc/v4p1/Plugin/UpdateChecker.php:407
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Det finns en ny version av tillägget %s."
34 |
35 | #: Puc/v4p1/Plugin/UpdateChecker.php:409
36 | #, php-format
37 | msgid "Unknown update checker status \"%s\""
38 | msgstr "Okänd status för kontroll av uppdatering “%s”"
39 |
40 | #: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
41 | msgid "There is no changelog available."
42 | msgstr "Det finns ingen ändringslogg tillgänglig."
43 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-tr_TR.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-tr_TR.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-tr_TR.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5 | "PO-Revision-Date: 2021-11-15 19:07+0300\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 3.0\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: Emre Erkan \n"
16 | "Language: tr\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p3/Plugin/UpdateChecker.php:395
20 | msgid "Check for updates"
21 | msgstr "Güncellemeleri kontrol et"
22 |
23 | #: Puc/v4p3/Plugin/UpdateChecker.php:548
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "%s eklentisi güncel."
28 |
29 | #: Puc/v4p3/Plugin/UpdateChecker.php:550
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "%s eklentisinin yeni bir sürümü mevcut."
34 |
35 | #: Puc/v4p3/Plugin/UpdateChecker.php:552
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "%s için güncelleme olup olmadığı belirlenemedi."
40 |
41 | #: Puc/v4p3/Plugin/UpdateChecker.php:558
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Bilinmeyen güncelleme denetleyicisi durumu \"%s\""
45 |
46 | #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47 | msgid "There is no changelog available."
48 | msgstr "Kullanılabilir bir değişiklik yok."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-uk_UA.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-uk_UA.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-uk_UA.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2020-08-08 14:36+0300\n"
5 | "PO-Revision-Date: 2021-12-20 17:55+0200\n"
6 | "Language-Team: \n"
7 | "MIME-Version: 1.0\n"
8 | "Content-Type: text/plain; charset=UTF-8\n"
9 | "Content-Transfer-Encoding: 8bit\n"
10 | "X-Generator: Poedit 2.2\n"
11 | "X-Poedit-Basepath: ..\n"
12 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
13 | "X-Poedit-SourceCharset: UTF-8\n"
14 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15 | "Last-Translator: \n"
16 | "Language: uk_UA\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p11/Plugin/Ui.php:128
20 | msgid "Check for updates"
21 | msgstr "Перевірити оновлення"
22 |
23 | #: Puc/v4p11/Plugin/Ui.php:213
24 | #, php-format
25 | msgctxt "the plugin title"
26 | msgid "The %s plugin is up to date."
27 | msgstr "Плагін %s оновлено."
28 |
29 | #: Puc/v4p11/Plugin/Ui.php:215
30 | #, php-format
31 | msgctxt "the plugin title"
32 | msgid "A new version of the %s plugin is available."
33 | msgstr "Нова версія %s доступна."
34 |
35 | #: Puc/v4p11/Plugin/Ui.php:217
36 | #, php-format
37 | msgctxt "the plugin title"
38 | msgid "Could not determine if updates are available for %s."
39 | msgstr "Не вдалося визначити, чи доступні оновлення для %s."
40 |
41 | #: Puc/v4p11/Plugin/Ui.php:223
42 | #, php-format
43 | msgid "Unknown update checker status \"%s\""
44 | msgstr "Невідомий статус перевірки оновлень \"%s\""
45 |
46 | #: Puc/v4p11/Vcs/PluginUpdateChecker.php:98
47 | msgid "There is no changelog available."
48 | msgstr "Немає доступного журналу змін."
49 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-zh_CN.mo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/robertdevore/block-usage-tracker/0a56b18635b87a97b21fd4b8f80e7f6d4cbda6da/vendor/plugin-update-checker/languages/plugin-update-checker-zh_CN.mo
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker-zh_CN.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: plugin-update-checker\n"
4 | "POT-Creation-Date: 2022-01-29 12:09+0800\n"
5 | "PO-Revision-Date: 2022-01-29 12:10+0800\n"
6 | "Last-Translator: Seaton Jiang \n"
7 | "Language-Team: \n"
8 | "Language: zh_CN\n"
9 | "MIME-Version: 1.0\n"
10 | "Content-Type: text/plain; charset=UTF-8\n"
11 | "Content-Transfer-Encoding: 8bit\n"
12 | "X-Generator: Poedit 2.4.3\n"
13 | "X-Poedit-Basepath: ..\n"
14 | "Plural-Forms: nplurals=1; plural=0;\n"
15 | "X-Poedit-SourceCharset: UTF-8\n"
16 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
17 | "X-Poedit-SearchPath-0: .\n"
18 |
19 | #: Puc/v4p11/Plugin/Ui.php:54
20 | msgid "View details"
21 | msgstr "查看详情"
22 |
23 | #: Puc/v4p11/Plugin/Ui.php:77
24 | #, php-format
25 | msgid "More information about %s"
26 | msgstr "%s 的更多信息"
27 |
28 | #: Puc/v4p11/Plugin/Ui.php:128
29 | msgid "Check for updates"
30 | msgstr "检查更新"
31 |
32 | #: Puc/v4p11/Plugin/Ui.php:214
33 | #, php-format
34 | msgctxt "the plugin title"
35 | msgid "The %s plugin is up to date."
36 | msgstr "%s 目前是最新版本。"
37 |
38 | #: Puc/v4p11/Plugin/Ui.php:216
39 | #, php-format
40 | msgctxt "the plugin title"
41 | msgid "A new version of the %s plugin is available."
42 | msgstr "%s 当前有可用的更新。"
43 |
44 | #: Puc/v4p11/Plugin/Ui.php:218
45 | #, php-format
46 | msgctxt "the plugin title"
47 | msgid "Could not determine if updates are available for %s."
48 | msgstr "%s 无法确定是否有可用的更新。"
49 |
50 | #: Puc/v4p11/Plugin/Ui.php:224
51 | #, php-format
52 | msgid "Unknown update checker status \"%s\""
53 | msgstr "未知的更新检查状态:%s"
54 |
55 | #: Puc/v4p11/Vcs/PluginUpdateChecker.php:100
56 | msgid "There is no changelog available."
57 | msgstr "没有可用的更新日志。"
58 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/languages/plugin-update-checker.pot:
--------------------------------------------------------------------------------
1 | #, fuzzy
2 | msgid ""
3 | msgstr ""
4 | "Project-Id-Version: plugin-update-checker\n"
5 | "POT-Creation-Date: 2022-07-29 15:34+0300\n"
6 | "PO-Revision-Date: 2016-01-10 20:59+0100\n"
7 | "Last-Translator: \n"
8 | "Language-Team: \n"
9 | "Language: en_US\n"
10 | "MIME-Version: 1.0\n"
11 | "Content-Type: text/plain; charset=UTF-8\n"
12 | "Content-Transfer-Encoding: 8bit\n"
13 | "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14 | "X-Generator: Poedit 3.1.1\n"
15 | "X-Poedit-Basepath: ..\n"
16 | "X-Poedit-SourceCharset: UTF-8\n"
17 | "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
18 | "X-Poedit-SearchPath-0: .\n"
19 |
20 | #: Puc/v5p4/Plugin/Ui.php:128
21 | msgid "Check for updates"
22 | msgstr ""
23 |
24 | #: Puc/v5p4/Plugin/Ui.php:214
25 | #, php-format
26 | msgctxt "the plugin title"
27 | msgid "The %s plugin is up to date."
28 | msgstr ""
29 |
30 | #: Puc/v5p4/Plugin/Ui.php:216
31 | #, php-format
32 | msgctxt "the plugin title"
33 | msgid "A new version of the %s plugin is available."
34 | msgstr ""
35 |
36 | #: Puc/v5p4/Plugin/Ui.php:218
37 | #, php-format
38 | msgctxt "the plugin title"
39 | msgid "Could not determine if updates are available for %s."
40 | msgstr ""
41 |
42 | #: Puc/v5p4/Plugin/Ui.php:224
43 | #, php-format
44 | msgid "Unknown update checker status \"%s\""
45 | msgstr ""
46 |
47 | #: Puc/v5p4/Vcs/PluginUpdateChecker.php:100
48 | msgid "There is no changelog available."
49 | msgstr ""
50 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/license.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2023 Jānis Elsts
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/load-v5p4.php:
--------------------------------------------------------------------------------
1 | Plugin\UpdateChecker::class,
18 | 'Theme\\UpdateChecker' => Theme\UpdateChecker::class,
19 |
20 | 'Vcs\\PluginUpdateChecker' => Vcs\PluginUpdateChecker::class,
21 | 'Vcs\\ThemeUpdateChecker' => Vcs\ThemeUpdateChecker::class,
22 |
23 | 'GitHubApi' => Vcs\GitHubApi::class,
24 | 'BitBucketApi' => Vcs\BitBucketApi::class,
25 | 'GitLabApi' => Vcs\GitLabApi::class,
26 | )
27 | as $pucGeneralClass => $pucVersionedClass
28 | ) {
29 | MajorFactory::addVersion($pucGeneralClass, $pucVersionedClass, '5.4');
30 | //Also add it to the minor-version factory in case the major-version factory
31 | //was already defined by another, older version of the update checker.
32 | MinorFactory::addVersion($pucGeneralClass, $pucVersionedClass, '5.4');
33 | }
34 |
35 |
--------------------------------------------------------------------------------
/vendor/plugin-update-checker/plugin-update-checker.php:
--------------------------------------------------------------------------------
1 |