The [block] command STILL does not actually exist

Aperta Adatta ai principianti
#1,140 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cli
Ambito
cli, documentation

Direzione di ricerca

Inizia dal codice sorgente dell'indice dei comandi e dalla pagina di documentazione di block collegata nel report, verificando come vengono selezionati i comandi disponibili per la versione attiva di WP-CLI. Il lavoro è completato quando la documentazione attiva non presenta più block come comando disponibile, oppure lo contrassegna chiaramente come alpha/beta, e l'indice dei comandi è coerente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug scope:documentation status:unconfirmed

Bug Report

Describe the current, buggy behavior

The block command still enumerated in the online docs despite not being available in the live build of the CLI. I reported this on the 28th of April (see #1002) and was told at the time that the new release was, "around the corner". It has been 4.5 months. The documentation that incorrectly asserts that the block command is available has been live since mid December of 2025 (roughly nine months ago).

Describe how other contributors can replicate this bug

  1. Go to https://developer.wordpress.org/cli/commands/block/
  2. Observe that the page you went to is live
  3. https://developer.wordpress.org/cli/commands/
  4. Observe that it provides a link to that page in the third row of the table enumerating available commands

Describe what you would expect as the correct outcome

I expect the documentation to enumerate the available commands in the currently-live version of the CLI.

Let us know what environment you are running this on

OS:	Linux 4.14.318-241.531.amzn2.x86_64 #1 SMP Tue Jun 27 21:49:00 UTC 2023 x86_64
Shell:	/bin/bash
PHP binary:	/usr/local/bin/php
PHP version:	8.5.6
php.ini used:	/usr/local/etc/php/php.ini
MySQL binary:	/usr/bin/mariadb
MySQL version:	mariadb from 11.8.6-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using  EditLine wrapper
SQL modes:	
WP-CLI root dir:	phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:	phar://wp-cli.phar/vendor
WP_CLI phar path:	phar:///usr/local/bin/wp
WP-CLI packages dir:	
WP-CLI cache dir:	/home/joshualip/.wp-cli/cache
WP-CLI global config:	
WP-CLI project config:	
WP-CLI version:	2.12.0

Provide a possible solution

I would recommend that the documentation be updated to not list alpha/beta commands or, if that is not an option, to at least mark the listed alpha/beta commands as available only in the alpha/beta.

Lingua principale
Gherkin
Stelle
90
Fork
34
Merge medio
3h 19m
PR unite (30g)
18

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wp-cli/wp-cli-bundle

Tutte le issue di wp-cli/wp-cli-bundle

Issue simili

Altre issue su CLI

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.