Changeset 58230 for trunk/src/wp-includes/option.php
- Timestamp:
- 05/29/2024 08:51:04 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r58182 r58230 2660 2660 ), 2661 2661 'type' => 'string', 2662 'label' => __( 'Title' ), 2662 2663 'description' => __( 'Site title.' ), 2663 2664 ) … … 2672 2673 ), 2673 2674 'type' => 'string', 2675 'label' => __( 'Tagline' ), 2674 2676 'description' => __( 'Site tagline.' ), 2675 2677 ) … … 2802 2804 'show_in_rest' => true, 2803 2805 'type' => 'integer', 2806 'label' => __( 'Maximum posts per page' ), 2804 2807 'description' => __( 'Blog pages show at most.' ), 2805 2808 'default' => 10, … … 2813 2816 'show_in_rest' => true, 2814 2817 'type' => 'string', 2818 'label' => __( 'Show on front' ), 2815 2819 'description' => __( 'What to show on the front page' ), 2816 2820 ) … … 2823 2827 'show_in_rest' => true, 2824 2828 'type' => 'integer', 2829 'label' => __( 'Page on front' ), 2825 2830 'description' => __( 'The ID of the page that should be displayed on the front page' ), 2826 2831 ) … … 2861 2866 ), 2862 2867 'type' => 'string', 2868 'label' => __( 'Allow comments on new posts' ), 2863 2869 'description' => __( 'Allow people to submit comments on new posts.' ), 2864 2870 ) … … 2875 2881 * @since 5.5.0 `$new_whitelist_options` was renamed to `$new_allowed_options`. 2876 2882 * Please consider writing more inclusive code. 2883 * @since 6.6.0 Added the `label` argument. 2877 2884 * 2878 2885 * @global array $new_allowed_options … … 2888 2895 * @type string $type The type of data associated with this setting. 2889 2896 * Valid values are 'string', 'boolean', 'integer', 'number', 'array', and 'object'. 2897 * @type string $label A label of the data attached to this setting. 2890 2898 * @type string $description A description of the data attached to this setting. 2891 2899 * @type callable $sanitize_callback A callback function that sanitizes the option's value. … … 2908 2916 'type' => 'string', 2909 2917 'group' => $option_group, 2918 'label' => '', 2910 2919 'description' => '', 2911 2920 'sanitize_callback' => null,
Note: See TracChangeset
for help on using the changeset viewer.