Changeset 2665116
- Timestamp:
- 01/26/2022 12:28:41 AM (4 years ago)
- Location:
- wp-vgwort
- Files:
-
- 2 added
- 9 edited
- 2 copied
-
tags/3.25.3 (copied) (copied from wp-vgwort/trunk)
-
tags/3.25.3/.php-cs-fixer.cache (added)
-
tags/3.25.3/includes/long-task.php (modified) (4 diffs)
-
tags/3.25.3/includes/markers-manager.php (modified) (1 diff)
-
tags/3.25.3/includes/shortcodes.php (modified) (1 diff)
-
tags/3.25.3/readme.txt (copied) (copied from wp-vgwort/trunk/readme.txt) (3 diffs)
-
tags/3.25.3/wp-vgwort.php (modified) (2 diffs)
-
trunk/.php-cs-fixer.cache (added)
-
trunk/includes/long-task.php (modified) (4 diffs)
-
trunk/includes/markers-manager.php (modified) (1 diff)
-
trunk/includes/shortcodes.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wp-vgwort.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-vgwort/tags/3.25.3/includes/long-task.php
r2504484 r2665116 52 52 } else { 53 53 $stats = json_decode(stripslashes($stats), true); 54 if ($stats === false || $stats === null ||!is_array($stats)) {54 if ($stats === false || !is_array($stats)) { 55 55 wp_send_json(static::create_result(false, null, 0, '', array( array( __('Das Status-Objekt konnte nicht gelesen werden.', WPVGW_TEXT_DOMAIN), WPVGW_ErrorType::Error ) ))); 56 56 } … … 58 58 } 59 59 $offset = $_POST['wpvgw_task_offset'] ?? null; 60 if ( $offset === null ||!is_numeric($offset) || intval($offset) <= -1) {60 if (!is_numeric($offset) || intval($offset) <= -1) { 61 61 wp_send_json(static::create_result(false, null, 0, '', array( array( __('Das Offset hat einen ungültigen Wert.', WPVGW_TEXT_DOMAIN), WPVGW_ErrorType::Error ) ))); 62 62 } … … 69 69 $numberOfIterations = call_user_func_array($this->runFunction, array( $offset, &$stats, &$error_messages )); 70 70 $offset += $numberOfIterations; 71 if ( $error_messages !== null &&is_array($error_messages)) {71 if (is_array($error_messages)) { 72 72 $hasMoreSteps = false; 73 73 $messages = $error_messages; … … 103 103 wp_send_json(self::create_result($hasMoreSteps, $stats, $offset, sprintf($this->statusTextTemplate, number_format_i18n($offset)), $messages)); 104 104 } 105 private static function create_result($has_more_steps, $stats, $offset, $status_text, $messages = array())105 private static function create_result($has_more_steps, WPVGW_LongTaskStats $stats = null, $offset = 1, $status_text = '', $messages = array()) 106 106 { 107 107 if ($stats !== null && !is_subclass_of($stats, WPVGW_LongTaskStats::class, false)) { -
wp-vgwort/tags/3.25.3/includes/markers-manager.php
r2504484 r2665116 375 375 } 376 376 $marker = array( 'public_marker' => $public_marker, 'private_marker' => $private_marker, 'server' => $server, 'order_date' => $order_date, 'is_marker_disabled' => $is_marker_disabled, 'is_marker_blocked' => $is_marker_blocked, ); 377 switch ($this->insert_marker_in_db($marker)) { case WPVGW_InsertMarkerResults::Inserted : $importMarkersStats->numberOfInsertedMarkers++; break; case WPVGW_InsertMarkerResults::IntegrityError: $updateMarker = array( 'private_marker' => $private_marker, 'order_date' => $order_date ); switch ($this->update_marker_in_db($public_marker, 'public_marker', $updateMarker, array( 'private_marker' => array( null, $private_marker ), 'order_date' => array( null, $order_date ) ))) { case WPVGW_UpdateMarkerResults::Updated: $importMarkersStats->numberOfUpdatedMarkers++; break; case WPVGW_UpdateMarkerResults::UpdateNotNecessary: $importMarkersStats->numberOfDuplicateMarkers++; break; default: $importMarkersStats->numberOfIntegrityErrors++; break; } break; default: WPVGW_Helper::throw_unknown_result_exception(); break; }377 switch ($this->insert_marker_in_db($marker)) { case WPVGW_InsertMarkerResults::Inserted : $importMarkersStats->numberOfInsertedMarkers++; break; case WPVGW_InsertMarkerResults::IntegrityError : $updateMarker = array( 'private_marker' => $private_marker, 'order_date' => $order_date ); switch ($this->update_marker_in_db($public_marker, 'public_marker', $updateMarker, array( 'private_marker' => array( null, $private_marker ), 'order_date' => array( null, $order_date ) ))) { case WPVGW_UpdateMarkerResults::Updated: $importMarkersStats->numberOfUpdatedMarkers++; break; case WPVGW_UpdateMarkerResults::UpdateNotNecessary: $importMarkersStats->numberOfDuplicateMarkers++; break; default: $importMarkersStats->numberOfIntegrityErrors++; break; } break; default: WPVGW_Helper::throw_unknown_result_exception(); break; } 378 378 return $importMarkersStats; 379 379 } -
wp-vgwort/tags/3.25.3/includes/shortcodes.php
r2504484 r2665116 63 63 switch ($type) { case 'standard-page-count': if ($formatted) { 64 64 return esc_html(number_format_i18n($this->round($standardPageCount, $decimals, $roundHalf), $decimals)); 65 } return $round ? $this->round($standardPageCount, $decimals, $roundHalf) : $standardPageCount; case 'custom-page-count' : if ($formatted) {65 } return $round ? $this->round($standardPageCount, $decimals, $roundHalf) : $standardPageCount; case 'custom-page-count' : if ($formatted) { 66 66 return esc_html(number_format_i18n($this->round($customPageCount, $decimals, $roundHalf), $decimals)); 67 67 } return $round ? $this->round($customPageCount, $decimals, $roundHalf) : $customPageCount; case 'text': if ($formatted) { -
wp-vgwort/tags/3.25.3/readme.txt
r2665066 r2665116 6 6 Tested up to: 5.9 7 7 Requires PHP: 7.0 8 Stable tag: 3.25. 28 Stable tag: 3.25.3 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 159 159 == Changelog == 160 160 161 = 3.25.3 = 162 * Fehler bez. aufwendiger Operationen behoben. 163 161 164 = 3.25.2 = 162 165 * Fehler bez. Zählmarke (in-)aktiv setzen behoben. … … 627 630 == Upgrade Notice == 628 631 632 = 3.25.3 = 633 Einen Fehler behoben. 634 629 635 = 3.25.2 = 630 636 Einen Fehler behoben. -
wp-vgwort/tags/3.25.3/wp-vgwort.php
r2583135 r2665116 4 4 * Plugin URI: https://wordpress.org/plugins/wp-vgwort/ 5 5 * Description: Verdienen Sie mit Ihren Beiträgen/Texten Geld durch die Integration von Zählmarken der VG WORT. 6 * Version: 3.25. 26 * Version: 3.25.3 7 7 * Author: Prosodia – Verlag für Musik und Literatur 8 8 * Author URI: https://prosodia.de/ … … 33 33 * The global plugin version. 34 34 */ 35 define( 'WPVGW_VERSION', '3.25. 2' );35 define( 'WPVGW_VERSION', '3.25.3' ); 36 36 37 37 /** -
wp-vgwort/trunk/includes/long-task.php
r2504484 r2665116 52 52 } else { 53 53 $stats = json_decode(stripslashes($stats), true); 54 if ($stats === false || $stats === null ||!is_array($stats)) {54 if ($stats === false || !is_array($stats)) { 55 55 wp_send_json(static::create_result(false, null, 0, '', array( array( __('Das Status-Objekt konnte nicht gelesen werden.', WPVGW_TEXT_DOMAIN), WPVGW_ErrorType::Error ) ))); 56 56 } … … 58 58 } 59 59 $offset = $_POST['wpvgw_task_offset'] ?? null; 60 if ( $offset === null ||!is_numeric($offset) || intval($offset) <= -1) {60 if (!is_numeric($offset) || intval($offset) <= -1) { 61 61 wp_send_json(static::create_result(false, null, 0, '', array( array( __('Das Offset hat einen ungültigen Wert.', WPVGW_TEXT_DOMAIN), WPVGW_ErrorType::Error ) ))); 62 62 } … … 69 69 $numberOfIterations = call_user_func_array($this->runFunction, array( $offset, &$stats, &$error_messages )); 70 70 $offset += $numberOfIterations; 71 if ( $error_messages !== null &&is_array($error_messages)) {71 if (is_array($error_messages)) { 72 72 $hasMoreSteps = false; 73 73 $messages = $error_messages; … … 103 103 wp_send_json(self::create_result($hasMoreSteps, $stats, $offset, sprintf($this->statusTextTemplate, number_format_i18n($offset)), $messages)); 104 104 } 105 private static function create_result($has_more_steps, $stats, $offset, $status_text, $messages = array())105 private static function create_result($has_more_steps, WPVGW_LongTaskStats $stats = null, $offset = 1, $status_text = '', $messages = array()) 106 106 { 107 107 if ($stats !== null && !is_subclass_of($stats, WPVGW_LongTaskStats::class, false)) { -
wp-vgwort/trunk/includes/markers-manager.php
r2504484 r2665116 375 375 } 376 376 $marker = array( 'public_marker' => $public_marker, 'private_marker' => $private_marker, 'server' => $server, 'order_date' => $order_date, 'is_marker_disabled' => $is_marker_disabled, 'is_marker_blocked' => $is_marker_blocked, ); 377 switch ($this->insert_marker_in_db($marker)) { case WPVGW_InsertMarkerResults::Inserted : $importMarkersStats->numberOfInsertedMarkers++; break; case WPVGW_InsertMarkerResults::IntegrityError: $updateMarker = array( 'private_marker' => $private_marker, 'order_date' => $order_date ); switch ($this->update_marker_in_db($public_marker, 'public_marker', $updateMarker, array( 'private_marker' => array( null, $private_marker ), 'order_date' => array( null, $order_date ) ))) { case WPVGW_UpdateMarkerResults::Updated: $importMarkersStats->numberOfUpdatedMarkers++; break; case WPVGW_UpdateMarkerResults::UpdateNotNecessary: $importMarkersStats->numberOfDuplicateMarkers++; break; default: $importMarkersStats->numberOfIntegrityErrors++; break; } break; default: WPVGW_Helper::throw_unknown_result_exception(); break; }377 switch ($this->insert_marker_in_db($marker)) { case WPVGW_InsertMarkerResults::Inserted : $importMarkersStats->numberOfInsertedMarkers++; break; case WPVGW_InsertMarkerResults::IntegrityError : $updateMarker = array( 'private_marker' => $private_marker, 'order_date' => $order_date ); switch ($this->update_marker_in_db($public_marker, 'public_marker', $updateMarker, array( 'private_marker' => array( null, $private_marker ), 'order_date' => array( null, $order_date ) ))) { case WPVGW_UpdateMarkerResults::Updated: $importMarkersStats->numberOfUpdatedMarkers++; break; case WPVGW_UpdateMarkerResults::UpdateNotNecessary: $importMarkersStats->numberOfDuplicateMarkers++; break; default: $importMarkersStats->numberOfIntegrityErrors++; break; } break; default: WPVGW_Helper::throw_unknown_result_exception(); break; } 378 378 return $importMarkersStats; 379 379 } -
wp-vgwort/trunk/includes/shortcodes.php
r2504484 r2665116 63 63 switch ($type) { case 'standard-page-count': if ($formatted) { 64 64 return esc_html(number_format_i18n($this->round($standardPageCount, $decimals, $roundHalf), $decimals)); 65 } return $round ? $this->round($standardPageCount, $decimals, $roundHalf) : $standardPageCount; case 'custom-page-count' : if ($formatted) {65 } return $round ? $this->round($standardPageCount, $decimals, $roundHalf) : $standardPageCount; case 'custom-page-count' : if ($formatted) { 66 66 return esc_html(number_format_i18n($this->round($customPageCount, $decimals, $roundHalf), $decimals)); 67 67 } return $round ? $this->round($customPageCount, $decimals, $roundHalf) : $customPageCount; case 'text': if ($formatted) { -
wp-vgwort/trunk/readme.txt
r2665066 r2665116 6 6 Tested up to: 5.9 7 7 Requires PHP: 7.0 8 Stable tag: 3.25. 28 Stable tag: 3.25.3 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 159 159 == Changelog == 160 160 161 = 3.25.3 = 162 * Fehler bez. aufwendiger Operationen behoben. 163 161 164 = 3.25.2 = 162 165 * Fehler bez. Zählmarke (in-)aktiv setzen behoben. … … 627 630 == Upgrade Notice == 628 631 632 = 3.25.3 = 633 Einen Fehler behoben. 634 629 635 = 3.25.2 = 630 636 Einen Fehler behoben. -
wp-vgwort/trunk/wp-vgwort.php
r2583135 r2665116 4 4 * Plugin URI: https://wordpress.org/plugins/wp-vgwort/ 5 5 * Description: Verdienen Sie mit Ihren Beiträgen/Texten Geld durch die Integration von Zählmarken der VG WORT. 6 * Version: 3.25. 26 * Version: 3.25.3 7 7 * Author: Prosodia – Verlag für Musik und Literatur 8 8 * Author URI: https://prosodia.de/ … … 33 33 * The global plugin version. 34 34 */ 35 define( 'WPVGW_VERSION', '3.25. 2' );35 define( 'WPVGW_VERSION', '3.25.3' ); 36 36 37 37 /**
Note: See TracChangeset
for help on using the changeset viewer.