humanmade / humanmade/repeatable-posts

Repeating post is marked as such even though a Repeat post is not created for it (due to be scheduled in the past)

Ouverte
#35 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
PHP
Étoiles
48
Forks
12
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

A Repeat post is created only if date of a Repeating post + it's schedule is in the future.

When you setup a post to be a Repeating post with a schedule such that a Repeat post date happens to be in the past (read example below), the Repeat post is not created. However, the Repeating post is marked as `Repeating`. This is confusing!

**Solution**: an error message should be displayed in such case while trying to save a post with a Repeating schedule. That post won't be saved as `Repeating` post.

Example: main post (that we're wanting to set as a Repeating post) is published on the 10th October and we're setting it to be a `Daily` Repeating post. So a daily repeat post would have been scheduled for the 11th October. However, if present time (when we're saving changes) is anything past the 11th October, say the 12th October - then Repeat post date is in the past and therefore it is not published.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

L’issue ne mentionne aucun fichier ni test. Commencez par suivre le chemin de sauvegarde des Repeating posts et la logique qui calcule la date de la première Repeat post, puis reproduisez l’exemple de planification quotidienne avec la date de répétition déjà passée. C’est terminé lorsque la sauvegarde est refusée avec une erreur et que la publication n’est pas marquée comme Repeating.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
php, wordpress
Domaine
backend, content
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
42/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.