Plugin Directory

Changeset 2665116


Ignore:
Timestamp:
01/26/2022 12:28:41 AM (4 years ago)
Author:
raubvogel
Message:

tagging version 3.25.3

Location:
wp-vgwort
Files:
2 added
9 edited
2 copied

Legend:

Unmodified
Added
Removed
  • wp-vgwort/tags/3.25.3/includes/long-task.php

    r2504484 r2665116  
    5252         } else {
    5353             $stats = json_decode(stripslashes($stats), true);
    54              if ($stats === false || $stats === null || !is_array($stats)) {
     54             if ($stats === false || !is_array($stats)) {
    5555                 wp_send_json(static::create_result(false, null, 0, '', array( array( __('Das Status-Objekt konnte nicht gelesen werden.', WPVGW_TEXT_DOMAIN), WPVGW_ErrorType::Error ) )));
    5656             }
     
    5858         }
    5959         $offset = $_POST['wpvgw_task_offset'] ?? null;
    60          if ($offset === null || !is_numeric($offset) || intval($offset) <= -1) {
     60         if (!is_numeric($offset) || intval($offset) <= -1) {
    6161             wp_send_json(static::create_result(false, null, 0, '', array( array( __('Das Offset hat einen ungültigen Wert.', WPVGW_TEXT_DOMAIN), WPVGW_ErrorType::Error ) )));
    6262         }
     
    6969                 $numberOfIterations = call_user_func_array($this->runFunction, array( $offset, &$stats, &$error_messages ));
    7070                 $offset += $numberOfIterations;
    71                  if ($error_messages !== null && is_array($error_messages)) {
     71                 if (is_array($error_messages)) {
    7272                     $hasMoreSteps = false;
    7373                     $messages = $error_messages;
     
    103103         wp_send_json(self::create_result($hasMoreSteps, $stats, $offset, sprintf($this->statusTextTemplate, number_format_i18n($offset)), $messages));
    104104     }
    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())
    106106     {
    107107         if ($stats !== null && !is_subclass_of($stats, WPVGW_LongTaskStats::class, false)) {
  • wp-vgwort/tags/3.25.3/includes/markers-manager.php

    r2504484 r2665116  
    375375         }
    376376         $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; }
    378378         return $importMarkersStats;
    379379     }
  • wp-vgwort/tags/3.25.3/includes/shortcodes.php

    r2504484 r2665116  
    6363         switch ($type) { case 'standard-page-count': if ($formatted) {
    6464             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) {
    6666             return esc_html(number_format_i18n($this->round($customPageCount, $decimals, $roundHalf), $decimals));
    6767         } return $round ? $this->round($customPageCount, $decimals, $roundHalf) : $customPageCount; case 'text': if ($formatted) {
  • wp-vgwort/tags/3.25.3/readme.txt

    r2665066 r2665116  
    66Tested up to: 5.9
    77Requires PHP: 7.0
    8 Stable tag: 3.25.2
     8Stable tag: 3.25.3
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    159159== Changelog ==
    160160
     161= 3.25.3 =
     162* Fehler bez. aufwendiger Operationen behoben.
     163
    161164= 3.25.2 =
    162165* Fehler bez. Zählmarke (in-)aktiv setzen behoben.
     
    627630== Upgrade Notice ==
    628631
     632= 3.25.3 =
     633Einen Fehler behoben.
     634
    629635= 3.25.2 =
    630636Einen Fehler behoben.
  • wp-vgwort/tags/3.25.3/wp-vgwort.php

    r2583135 r2665116  
    44 * Plugin URI: https://wordpress.org/plugins/wp-vgwort/
    55 * Description: Verdienen Sie mit Ihren Beiträgen/Texten Geld durch die Integration von Zählmarken der VG WORT.
    6  * Version: 3.25.2
     6 * Version: 3.25.3
    77 * Author: Prosodia – Verlag für Musik und Literatur
    88 * Author URI: https://prosodia.de/
     
    3333 * The global plugin version.
    3434 */
    35 define( 'WPVGW_VERSION', '3.25.2' );
     35define( 'WPVGW_VERSION', '3.25.3' );
    3636
    3737/**
  • wp-vgwort/trunk/includes/long-task.php

    r2504484 r2665116  
    5252         } else {
    5353             $stats = json_decode(stripslashes($stats), true);
    54              if ($stats === false || $stats === null || !is_array($stats)) {
     54             if ($stats === false || !is_array($stats)) {
    5555                 wp_send_json(static::create_result(false, null, 0, '', array( array( __('Das Status-Objekt konnte nicht gelesen werden.', WPVGW_TEXT_DOMAIN), WPVGW_ErrorType::Error ) )));
    5656             }
     
    5858         }
    5959         $offset = $_POST['wpvgw_task_offset'] ?? null;
    60          if ($offset === null || !is_numeric($offset) || intval($offset) <= -1) {
     60         if (!is_numeric($offset) || intval($offset) <= -1) {
    6161             wp_send_json(static::create_result(false, null, 0, '', array( array( __('Das Offset hat einen ungültigen Wert.', WPVGW_TEXT_DOMAIN), WPVGW_ErrorType::Error ) )));
    6262         }
     
    6969                 $numberOfIterations = call_user_func_array($this->runFunction, array( $offset, &$stats, &$error_messages ));
    7070                 $offset += $numberOfIterations;
    71                  if ($error_messages !== null && is_array($error_messages)) {
     71                 if (is_array($error_messages)) {
    7272                     $hasMoreSteps = false;
    7373                     $messages = $error_messages;
     
    103103         wp_send_json(self::create_result($hasMoreSteps, $stats, $offset, sprintf($this->statusTextTemplate, number_format_i18n($offset)), $messages));
    104104     }
    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())
    106106     {
    107107         if ($stats !== null && !is_subclass_of($stats, WPVGW_LongTaskStats::class, false)) {
  • wp-vgwort/trunk/includes/markers-manager.php

    r2504484 r2665116  
    375375         }
    376376         $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; }
    378378         return $importMarkersStats;
    379379     }
  • wp-vgwort/trunk/includes/shortcodes.php

    r2504484 r2665116  
    6363         switch ($type) { case 'standard-page-count': if ($formatted) {
    6464             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) {
    6666             return esc_html(number_format_i18n($this->round($customPageCount, $decimals, $roundHalf), $decimals));
    6767         } return $round ? $this->round($customPageCount, $decimals, $roundHalf) : $customPageCount; case 'text': if ($formatted) {
  • wp-vgwort/trunk/readme.txt

    r2665066 r2665116  
    66Tested up to: 5.9
    77Requires PHP: 7.0
    8 Stable tag: 3.25.2
     8Stable tag: 3.25.3
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    159159== Changelog ==
    160160
     161= 3.25.3 =
     162* Fehler bez. aufwendiger Operationen behoben.
     163
    161164= 3.25.2 =
    162165* Fehler bez. Zählmarke (in-)aktiv setzen behoben.
     
    627630== Upgrade Notice ==
    628631
     632= 3.25.3 =
     633Einen Fehler behoben.
     634
    629635= 3.25.2 =
    630636Einen Fehler behoben.
  • wp-vgwort/trunk/wp-vgwort.php

    r2583135 r2665116  
    44 * Plugin URI: https://wordpress.org/plugins/wp-vgwort/
    55 * Description: Verdienen Sie mit Ihren Beiträgen/Texten Geld durch die Integration von Zählmarken der VG WORT.
    6  * Version: 3.25.2
     6 * Version: 3.25.3
    77 * Author: Prosodia – Verlag für Musik und Literatur
    88 * Author URI: https://prosodia.de/
     
    3333 * The global plugin version.
    3434 */
    35 define( 'WPVGW_VERSION', '3.25.2' );
     35define( 'WPVGW_VERSION', '3.25.3' );
    3636
    3737/**
Note: See TracChangeset for help on using the changeset viewer.