diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
index d8ee91d7ec..97ae71d278 100644
|
|
|
function add_settings_field( $id, $title, $callback, $page, $section = 'default'
|
| 1750 | 1750 | * Part of the Settings API. Use this in a settings page callback function |
| 1751 | 1751 | * to output all the sections and fields that were added to that $page with |
| 1752 | 1752 | * add_settings_section() and add_settings_field() |
| 1753 | | * |
| | 1753 | * @since 2.7.0 |
| | 1754 | * |
| 1754 | 1755 | * @global array $wp_settings_sections Storage array of all settings sections added to admin pages. |
| 1755 | 1756 | * @global array $wp_settings_fields Storage array of settings fields and info about their pages/sections. |
| 1756 | | * @since 2.7.0 |
| 1757 | 1757 | * |
| 1758 | 1758 | * @param string $page The slug name of the page whose settings sections you want to output. |
| 1759 | 1759 | */ |
| … |
… |
function do_settings_sections( $page ) {
|
| 1800 | 1800 | * a specific section. Should normally be called by do_settings_sections() |
| 1801 | 1801 | * rather than directly. |
| 1802 | 1802 | * |
| 1803 | | * @global array $wp_settings_fields Storage array of settings fields and their pages/sections. |
| 1804 | | * |
| 1805 | 1803 | * @since 2.7.0 |
| | 1804 | * |
| | 1805 | * @global array $wp_settings_fields Storage array of settings fields and their pages/sections. |
| 1806 | 1806 | * |
| 1807 | 1807 | * @param string $page Slug title of the admin page whose settings fields you want to show. |
| 1808 | 1808 | * @param string $section Slug title of the settings section whose fields you want to show. |
diff --git src/wp-includes/ms-settings.php src/wp-includes/ms-settings.php
index fbe0ea2618..20f7d4e706 100644
|
|
|
|
| 5 | 5 | * |
| 6 | 6 | * Allows for some configuration in wp-config.php (see ms-default-constants.php) |
| 7 | 7 | * |
| | 8 | * @since 3.0.0 |
| 8 | 9 | * @package WordPress |
| 9 | 10 | * @subpackage Multisite |
| 10 | | * @since 3.0.0 |
| | 11 | * |
| 11 | 12 | */ |
| 12 | 13 | |
| 13 | 14 | // Don't load directly. |
| … |
… |
if ( ! defined( 'ABSPATH' ) ) {
|
| 21 | 22 | * These may be populated through a custom `sunrise.php`. If not, then this |
| 22 | 23 | * file will attempt to populate them based on the current request. |
| 23 | 24 | * |
| | 25 | * @since 3.0.0 |
| | 26 | * |
| 24 | 27 | * @global WP_Network $current_site The current network. |
| 25 | 28 | * @global object $current_blog The current site. |
| 26 | 29 | * @global string $domain Deprecated. The domain of the site found on load. |
| … |
… |
if ( ! defined( 'ABSPATH' ) ) {
|
| 32 | 35 | * @global bool $public Deprecated. Whether the site found on load is public. |
| 33 | 36 | * Use `get_site()->public` instead. |
| 34 | 37 | * |
| 35 | | * @since 3.0.0 |
| | 38 | * |
| 36 | 39 | */ |
| | 40 | |
| 37 | 41 | global $current_site, $current_blog, $domain, $path, $site_id, $public; |
| 38 | 42 | |
| 39 | 43 | /** WP_Network class */ |
diff --git src/wp-includes/option.php src/wp-includes/option.php
index bb790673f7..66a615258b 100644
|
|
|
function set_transient( $transient, $value, $expiration = 0 ) {
|
| 1629 | 1629 | * The multi-table delete syntax is used to delete the transient record |
| 1630 | 1630 | * from table a, and the corresponding transient_timeout record from table b. |
| 1631 | 1631 | * |
| 1632 | | * @global wpdb $wpdb WordPress database abstraction object. |
| 1633 | | * |
| 1634 | 1632 | * @since 4.9.0 |
| 1635 | | * |
| | 1633 | * |
| | 1634 | * @global wpdb $wpdb WordPress database abstraction object. |
| | 1635 | * |
| 1636 | 1636 | * @param bool $force_db Optional. Force cleanup to run against the database even when an external object cache is used. |
| 1637 | 1637 | */ |
| 1638 | 1638 | function delete_expired_transients( $force_db = false ) { |