Edit File by line
/home/zeestwma/redstone.../wp-inclu...
File: theme.php
'no_found_rows' => true,
[2000] Fix | Delete
'cache_results' => true,
[2001] Fix | Delete
'update_post_meta_cache' => false,
[2002] Fix | Delete
'update_post_term_cache' => false,
[2003] Fix | Delete
'lazy_load_term_meta' => false,
[2004] Fix | Delete
);
[2005] Fix | Delete
[2006] Fix | Delete
$post = null;
[2007] Fix | Delete
if ( get_stylesheet() === $stylesheet ) {
[2008] Fix | Delete
$post_id = get_theme_mod( 'custom_css_post_id' );
[2009] Fix | Delete
[2010] Fix | Delete
if ( $post_id > 0 && get_post( $post_id ) ) {
[2011] Fix | Delete
$post = get_post( $post_id );
[2012] Fix | Delete
}
[2013] Fix | Delete
[2014] Fix | Delete
// `-1` indicates no post exists; no query necessary.
[2015] Fix | Delete
if ( ! $post && -1 !== $post_id ) {
[2016] Fix | Delete
$query = new WP_Query( $custom_css_query_vars );
[2017] Fix | Delete
$post = $query->post;
[2018] Fix | Delete
/*
[2019] Fix | Delete
* Cache the lookup. See wp_update_custom_css_post().
[2020] Fix | Delete
* @todo This should get cleared if a custom_css post is added/removed.
[2021] Fix | Delete
*/
[2022] Fix | Delete
set_theme_mod( 'custom_css_post_id', $post ? $post->ID : -1 );
[2023] Fix | Delete
}
[2024] Fix | Delete
} else {
[2025] Fix | Delete
$query = new WP_Query( $custom_css_query_vars );
[2026] Fix | Delete
$post = $query->post;
[2027] Fix | Delete
}
[2028] Fix | Delete
[2029] Fix | Delete
return $post;
[2030] Fix | Delete
}
[2031] Fix | Delete
[2032] Fix | Delete
/**
[2033] Fix | Delete
* Fetches the saved Custom CSS content for rendering.
[2034] Fix | Delete
*
[2035] Fix | Delete
* @since 4.7.0
[2036] Fix | Delete
*
[2037] Fix | Delete
* @param string $stylesheet Optional. A theme object stylesheet name. Defaults to the active theme.
[2038] Fix | Delete
* @return string The Custom CSS Post content.
[2039] Fix | Delete
*/
[2040] Fix | Delete
function wp_get_custom_css( $stylesheet = '' ) {
[2041] Fix | Delete
$css = '';
[2042] Fix | Delete
[2043] Fix | Delete
if ( empty( $stylesheet ) ) {
[2044] Fix | Delete
$stylesheet = get_stylesheet();
[2045] Fix | Delete
}
[2046] Fix | Delete
[2047] Fix | Delete
$post = wp_get_custom_css_post( $stylesheet );
[2048] Fix | Delete
if ( $post ) {
[2049] Fix | Delete
$css = $post->post_content;
[2050] Fix | Delete
}
[2051] Fix | Delete
[2052] Fix | Delete
/**
[2053] Fix | Delete
* Filters the custom CSS output into the head element.
[2054] Fix | Delete
*
[2055] Fix | Delete
* @since 4.7.0
[2056] Fix | Delete
*
[2057] Fix | Delete
* @param string $css CSS pulled in from the Custom CSS post type.
[2058] Fix | Delete
* @param string $stylesheet The theme stylesheet name.
[2059] Fix | Delete
*/
[2060] Fix | Delete
$css = apply_filters( 'wp_get_custom_css', $css, $stylesheet );
[2061] Fix | Delete
[2062] Fix | Delete
return $css;
[2063] Fix | Delete
}
[2064] Fix | Delete
[2065] Fix | Delete
/**
[2066] Fix | Delete
* Updates the `custom_css` post for a given theme.
[2067] Fix | Delete
*
[2068] Fix | Delete
* Inserts a `custom_css` post when one doesn't yet exist.
[2069] Fix | Delete
*
[2070] Fix | Delete
* @since 4.7.0
[2071] Fix | Delete
*
[2072] Fix | Delete
* @param string $css CSS, stored in `post_content`.
[2073] Fix | Delete
* @param array $args {
[2074] Fix | Delete
* Args.
[2075] Fix | Delete
*
[2076] Fix | Delete
* @type string $preprocessed Optional. Pre-processed CSS, stored in `post_content_filtered`.
[2077] Fix | Delete
* Normally empty string.
[2078] Fix | Delete
* @type string $stylesheet Optional. Stylesheet (child theme) to update.
[2079] Fix | Delete
* Defaults to active theme/stylesheet.
[2080] Fix | Delete
* }
[2081] Fix | Delete
* @return WP_Post|WP_Error Post on success, error on failure.
[2082] Fix | Delete
*/
[2083] Fix | Delete
function wp_update_custom_css_post( $css, $args = array() ) {
[2084] Fix | Delete
$args = wp_parse_args(
[2085] Fix | Delete
$args,
[2086] Fix | Delete
array(
[2087] Fix | Delete
'preprocessed' => '',
[2088] Fix | Delete
'stylesheet' => get_stylesheet(),
[2089] Fix | Delete
)
[2090] Fix | Delete
);
[2091] Fix | Delete
[2092] Fix | Delete
$data = array(
[2093] Fix | Delete
'css' => $css,
[2094] Fix | Delete
'preprocessed' => $args['preprocessed'],
[2095] Fix | Delete
);
[2096] Fix | Delete
[2097] Fix | Delete
/**
[2098] Fix | Delete
* Filters the `css` (`post_content`) and `preprocessed` (`post_content_filtered`) args
[2099] Fix | Delete
* for a `custom_css` post being updated.
[2100] Fix | Delete
*
[2101] Fix | Delete
* This filter can be used by plugin that offer CSS pre-processors, to store the original
[2102] Fix | Delete
* pre-processed CSS in `post_content_filtered` and then store processed CSS in `post_content`.
[2103] Fix | Delete
* When used in this way, the `post_content_filtered` should be supplied as the setting value
[2104] Fix | Delete
* instead of `post_content` via a the `customize_value_custom_css` filter, for example:
[2105] Fix | Delete
*
[2106] Fix | Delete
* <code>
[2107] Fix | Delete
* add_filter( 'customize_value_custom_css', function( $value, $setting ) {
[2108] Fix | Delete
* $post = wp_get_custom_css_post( $setting->stylesheet );
[2109] Fix | Delete
* if ( $post && ! empty( $post->post_content_filtered ) ) {
[2110] Fix | Delete
* $css = $post->post_content_filtered;
[2111] Fix | Delete
* }
[2112] Fix | Delete
* return $css;
[2113] Fix | Delete
* }, 10, 2 );
[2114] Fix | Delete
* </code>
[2115] Fix | Delete
*
[2116] Fix | Delete
* @since 4.7.0
[2117] Fix | Delete
* @param array $data {
[2118] Fix | Delete
* Custom CSS data.
[2119] Fix | Delete
*
[2120] Fix | Delete
* @type string $css CSS stored in `post_content`.
[2121] Fix | Delete
* @type string $preprocessed Pre-processed CSS stored in `post_content_filtered`.
[2122] Fix | Delete
* Normally empty string.
[2123] Fix | Delete
* }
[2124] Fix | Delete
* @param array $args {
[2125] Fix | Delete
* The args passed into `wp_update_custom_css_post()` merged with defaults.
[2126] Fix | Delete
*
[2127] Fix | Delete
* @type string $css The original CSS passed in to be updated.
[2128] Fix | Delete
* @type string $preprocessed The original preprocessed CSS passed in to be updated.
[2129] Fix | Delete
* @type string $stylesheet The stylesheet (theme) being updated.
[2130] Fix | Delete
* }
[2131] Fix | Delete
*/
[2132] Fix | Delete
$data = apply_filters( 'update_custom_css_data', $data, array_merge( $args, compact( 'css' ) ) );
[2133] Fix | Delete
[2134] Fix | Delete
$post_data = array(
[2135] Fix | Delete
'post_title' => $args['stylesheet'],
[2136] Fix | Delete
'post_name' => sanitize_title( $args['stylesheet'] ),
[2137] Fix | Delete
'post_type' => 'custom_css',
[2138] Fix | Delete
'post_status' => 'publish',
[2139] Fix | Delete
'post_content' => $data['css'],
[2140] Fix | Delete
'post_content_filtered' => $data['preprocessed'],
[2141] Fix | Delete
);
[2142] Fix | Delete
[2143] Fix | Delete
// Update post if it already exists, otherwise create a new one.
[2144] Fix | Delete
$post = wp_get_custom_css_post( $args['stylesheet'] );
[2145] Fix | Delete
if ( $post ) {
[2146] Fix | Delete
$post_data['ID'] = $post->ID;
[2147] Fix | Delete
$r = wp_update_post( wp_slash( $post_data ), true );
[2148] Fix | Delete
} else {
[2149] Fix | Delete
$r = wp_insert_post( wp_slash( $post_data ), true );
[2150] Fix | Delete
[2151] Fix | Delete
if ( ! is_wp_error( $r ) ) {
[2152] Fix | Delete
if ( get_stylesheet() === $args['stylesheet'] ) {
[2153] Fix | Delete
set_theme_mod( 'custom_css_post_id', $r );
[2154] Fix | Delete
}
[2155] Fix | Delete
[2156] Fix | Delete
// Trigger creation of a revision. This should be removed once #30854 is resolved.
[2157] Fix | Delete
$revisions = wp_get_latest_revision_id_and_total_count( $r );
[2158] Fix | Delete
if ( ! is_wp_error( $revisions ) && 0 === $revisions['count'] ) {
[2159] Fix | Delete
wp_save_post_revision( $r );
[2160] Fix | Delete
}
[2161] Fix | Delete
}
[2162] Fix | Delete
}
[2163] Fix | Delete
[2164] Fix | Delete
if ( is_wp_error( $r ) ) {
[2165] Fix | Delete
return $r;
[2166] Fix | Delete
}
[2167] Fix | Delete
return get_post( $r );
[2168] Fix | Delete
}
[2169] Fix | Delete
[2170] Fix | Delete
/**
[2171] Fix | Delete
* Adds callback for custom TinyMCE editor stylesheets.
[2172] Fix | Delete
*
[2173] Fix | Delete
* The parameter $stylesheet is the name of the stylesheet, relative to
[2174] Fix | Delete
* the theme root. It also accepts an array of stylesheets.
[2175] Fix | Delete
* It is optional and defaults to 'editor-style.css'.
[2176] Fix | Delete
*
[2177] Fix | Delete
* This function automatically adds another stylesheet with -rtl prefix, e.g. editor-style-rtl.css.
[2178] Fix | Delete
* If that file doesn't exist, it is removed before adding the stylesheet(s) to TinyMCE.
[2179] Fix | Delete
* If an array of stylesheets is passed to add_editor_style(),
[2180] Fix | Delete
* RTL is only added for the first stylesheet.
[2181] Fix | Delete
*
[2182] Fix | Delete
* Since version 3.4 the TinyMCE body has .rtl CSS class.
[2183] Fix | Delete
* It is a better option to use that class and add any RTL styles to the main stylesheet.
[2184] Fix | Delete
*
[2185] Fix | Delete
* @since 3.0.0
[2186] Fix | Delete
*
[2187] Fix | Delete
* @global array $editor_styles
[2188] Fix | Delete
*
[2189] Fix | Delete
* @param array|string $stylesheet Optional. Stylesheet name or array thereof, relative to theme root.
[2190] Fix | Delete
* Defaults to 'editor-style.css'
[2191] Fix | Delete
*/
[2192] Fix | Delete
function add_editor_style( $stylesheet = 'editor-style.css' ) {
[2193] Fix | Delete
global $editor_styles;
[2194] Fix | Delete
[2195] Fix | Delete
add_theme_support( 'editor-style' );
[2196] Fix | Delete
[2197] Fix | Delete
$editor_styles = (array) $editor_styles;
[2198] Fix | Delete
$stylesheet = (array) $stylesheet;
[2199] Fix | Delete
[2200] Fix | Delete
if ( is_rtl() ) {
[2201] Fix | Delete
$rtl_stylesheet = str_replace( '.css', '-rtl.css', $stylesheet[0] );
[2202] Fix | Delete
$stylesheet[] = $rtl_stylesheet;
[2203] Fix | Delete
}
[2204] Fix | Delete
[2205] Fix | Delete
$editor_styles = array_merge( $editor_styles, $stylesheet );
[2206] Fix | Delete
}
[2207] Fix | Delete
[2208] Fix | Delete
/**
[2209] Fix | Delete
* Removes all visual editor stylesheets.
[2210] Fix | Delete
*
[2211] Fix | Delete
* @since 3.1.0
[2212] Fix | Delete
*
[2213] Fix | Delete
* @global array $editor_styles
[2214] Fix | Delete
*
[2215] Fix | Delete
* @return bool True on success, false if there were no stylesheets to remove.
[2216] Fix | Delete
*/
[2217] Fix | Delete
function remove_editor_styles() {
[2218] Fix | Delete
if ( ! current_theme_supports( 'editor-style' ) ) {
[2219] Fix | Delete
return false;
[2220] Fix | Delete
}
[2221] Fix | Delete
_remove_theme_support( 'editor-style' );
[2222] Fix | Delete
if ( is_admin() ) {
[2223] Fix | Delete
$GLOBALS['editor_styles'] = array();
[2224] Fix | Delete
}
[2225] Fix | Delete
return true;
[2226] Fix | Delete
}
[2227] Fix | Delete
[2228] Fix | Delete
/**
[2229] Fix | Delete
* Retrieves any registered editor stylesheet URLs.
[2230] Fix | Delete
*
[2231] Fix | Delete
* @since 4.0.0
[2232] Fix | Delete
*
[2233] Fix | Delete
* @global array $editor_styles Registered editor stylesheets
[2234] Fix | Delete
*
[2235] Fix | Delete
* @return string[] If registered, a list of editor stylesheet URLs.
[2236] Fix | Delete
*/
[2237] Fix | Delete
function get_editor_stylesheets() {
[2238] Fix | Delete
$stylesheets = array();
[2239] Fix | Delete
// Load editor_style.css if the active theme supports it.
[2240] Fix | Delete
if ( ! empty( $GLOBALS['editor_styles'] ) && is_array( $GLOBALS['editor_styles'] ) ) {
[2241] Fix | Delete
$editor_styles = $GLOBALS['editor_styles'];
[2242] Fix | Delete
[2243] Fix | Delete
$editor_styles = array_unique( array_filter( $editor_styles ) );
[2244] Fix | Delete
$style_uri = get_stylesheet_directory_uri();
[2245] Fix | Delete
$style_dir = get_stylesheet_directory();
[2246] Fix | Delete
[2247] Fix | Delete
// Support externally referenced styles (like, say, fonts).
[2248] Fix | Delete
foreach ( $editor_styles as $key => $file ) {
[2249] Fix | Delete
if ( preg_match( '~^(https?:)?//~', $file ) ) {
[2250] Fix | Delete
$stylesheets[] = sanitize_url( $file );
[2251] Fix | Delete
unset( $editor_styles[ $key ] );
[2252] Fix | Delete
}
[2253] Fix | Delete
}
[2254] Fix | Delete
[2255] Fix | Delete
// Look in a parent theme first, that way child theme CSS overrides.
[2256] Fix | Delete
if ( is_child_theme() ) {
[2257] Fix | Delete
$template_uri = get_template_directory_uri();
[2258] Fix | Delete
$template_dir = get_template_directory();
[2259] Fix | Delete
[2260] Fix | Delete
foreach ( $editor_styles as $key => $file ) {
[2261] Fix | Delete
if ( $file && file_exists( "$template_dir/$file" ) ) {
[2262] Fix | Delete
$stylesheets[] = "$template_uri/$file";
[2263] Fix | Delete
}
[2264] Fix | Delete
}
[2265] Fix | Delete
}
[2266] Fix | Delete
[2267] Fix | Delete
foreach ( $editor_styles as $file ) {
[2268] Fix | Delete
if ( $file && file_exists( "$style_dir/$file" ) ) {
[2269] Fix | Delete
$stylesheets[] = "$style_uri/$file";
[2270] Fix | Delete
}
[2271] Fix | Delete
}
[2272] Fix | Delete
}
[2273] Fix | Delete
[2274] Fix | Delete
/**
[2275] Fix | Delete
* Filters the array of URLs of stylesheets applied to the editor.
[2276] Fix | Delete
*
[2277] Fix | Delete
* @since 4.3.0
[2278] Fix | Delete
*
[2279] Fix | Delete
* @param string[] $stylesheets Array of URLs of stylesheets to be applied to the editor.
[2280] Fix | Delete
*/
[2281] Fix | Delete
return apply_filters( 'editor_stylesheets', $stylesheets );
[2282] Fix | Delete
}
[2283] Fix | Delete
[2284] Fix | Delete
/**
[2285] Fix | Delete
* Expands a theme's starter content configuration using core-provided data.
[2286] Fix | Delete
*
[2287] Fix | Delete
* @since 4.7.0
[2288] Fix | Delete
*
[2289] Fix | Delete
* @return array Array of starter content.
[2290] Fix | Delete
*/
[2291] Fix | Delete
function get_theme_starter_content() {
[2292] Fix | Delete
$theme_support = get_theme_support( 'starter-content' );
[2293] Fix | Delete
if ( is_array( $theme_support ) && ! empty( $theme_support[0] ) && is_array( $theme_support[0] ) ) {
[2294] Fix | Delete
$config = $theme_support[0];
[2295] Fix | Delete
} else {
[2296] Fix | Delete
$config = array();
[2297] Fix | Delete
}
[2298] Fix | Delete
[2299] Fix | Delete
$core_content = array(
[2300] Fix | Delete
'widgets' => array(
[2301] Fix | Delete
'text_business_info' => array(
[2302] Fix | Delete
'text',
[2303] Fix | Delete
array(
[2304] Fix | Delete
'title' => _x( 'Find Us', 'Theme starter content' ),
[2305] Fix | Delete
'text' => implode(
[2306] Fix | Delete
'',
[2307] Fix | Delete
array(
[2308] Fix | Delete
'<strong>' . _x( 'Address', 'Theme starter content' ) . "</strong>\n",
[2309] Fix | Delete
_x( '123 Main Street', 'Theme starter content' ) . "\n",
[2310] Fix | Delete
_x( 'New York, NY 10001', 'Theme starter content' ) . "\n\n",
[2311] Fix | Delete
'<strong>' . _x( 'Hours', 'Theme starter content' ) . "</strong>\n",
[2312] Fix | Delete
_x( 'Monday&ndash;Friday: 9:00AM&ndash;5:00PM', 'Theme starter content' ) . "\n",
[2313] Fix | Delete
_x( 'Saturday &amp; Sunday: 11:00AM&ndash;3:00PM', 'Theme starter content' ),
[2314] Fix | Delete
)
[2315] Fix | Delete
),
[2316] Fix | Delete
'filter' => true,
[2317] Fix | Delete
'visual' => true,
[2318] Fix | Delete
),
[2319] Fix | Delete
),
[2320] Fix | Delete
'text_about' => array(
[2321] Fix | Delete
'text',
[2322] Fix | Delete
array(
[2323] Fix | Delete
'title' => _x( 'About This Site', 'Theme starter content' ),
[2324] Fix | Delete
'text' => _x( 'This may be a good place to introduce yourself and your site or include some credits.', 'Theme starter content' ),
[2325] Fix | Delete
'filter' => true,
[2326] Fix | Delete
'visual' => true,
[2327] Fix | Delete
),
[2328] Fix | Delete
),
[2329] Fix | Delete
'archives' => array(
[2330] Fix | Delete
'archives',
[2331] Fix | Delete
array(
[2332] Fix | Delete
'title' => _x( 'Archives', 'Theme starter content' ),
[2333] Fix | Delete
),
[2334] Fix | Delete
),
[2335] Fix | Delete
'calendar' => array(
[2336] Fix | Delete
'calendar',
[2337] Fix | Delete
array(
[2338] Fix | Delete
'title' => _x( 'Calendar', 'Theme starter content' ),
[2339] Fix | Delete
),
[2340] Fix | Delete
),
[2341] Fix | Delete
'categories' => array(
[2342] Fix | Delete
'categories',
[2343] Fix | Delete
array(
[2344] Fix | Delete
'title' => _x( 'Categories', 'Theme starter content' ),
[2345] Fix | Delete
),
[2346] Fix | Delete
),
[2347] Fix | Delete
'meta' => array(
[2348] Fix | Delete
'meta',
[2349] Fix | Delete
array(
[2350] Fix | Delete
'title' => _x( 'Meta', 'Theme starter content' ),
[2351] Fix | Delete
),
[2352] Fix | Delete
),
[2353] Fix | Delete
'recent-comments' => array(
[2354] Fix | Delete
'recent-comments',
[2355] Fix | Delete
array(
[2356] Fix | Delete
'title' => _x( 'Recent Comments', 'Theme starter content' ),
[2357] Fix | Delete
),
[2358] Fix | Delete
),
[2359] Fix | Delete
'recent-posts' => array(
[2360] Fix | Delete
'recent-posts',
[2361] Fix | Delete
array(
[2362] Fix | Delete
'title' => _x( 'Recent Posts', 'Theme starter content' ),
[2363] Fix | Delete
),
[2364] Fix | Delete
),
[2365] Fix | Delete
'search' => array(
[2366] Fix | Delete
'search',
[2367] Fix | Delete
array(
[2368] Fix | Delete
'title' => _x( 'Search', 'Theme starter content' ),
[2369] Fix | Delete
),
[2370] Fix | Delete
),
[2371] Fix | Delete
),
[2372] Fix | Delete
'nav_menus' => array(
[2373] Fix | Delete
'link_home' => array(
[2374] Fix | Delete
'type' => 'custom',
[2375] Fix | Delete
'title' => _x( 'Home', 'Theme starter content' ),
[2376] Fix | Delete
'url' => home_url( '/' ),
[2377] Fix | Delete
),
[2378] Fix | Delete
'page_home' => array( // Deprecated in favor of 'link_home'.
[2379] Fix | Delete
'type' => 'post_type',
[2380] Fix | Delete
'object' => 'page',
[2381] Fix | Delete
'object_id' => '{{home}}',
[2382] Fix | Delete
),
[2383] Fix | Delete
'page_about' => array(
[2384] Fix | Delete
'type' => 'post_type',
[2385] Fix | Delete
'object' => 'page',
[2386] Fix | Delete
'object_id' => '{{about}}',
[2387] Fix | Delete
),
[2388] Fix | Delete
'page_blog' => array(
[2389] Fix | Delete
'type' => 'post_type',
[2390] Fix | Delete
'object' => 'page',
[2391] Fix | Delete
'object_id' => '{{blog}}',
[2392] Fix | Delete
),
[2393] Fix | Delete
'page_news' => array(
[2394] Fix | Delete
'type' => 'post_type',
[2395] Fix | Delete
'object' => 'page',
[2396] Fix | Delete
'object_id' => '{{news}}',
[2397] Fix | Delete
),
[2398] Fix | Delete
'page_contact' => array(
[2399] Fix | Delete
'type' => 'post_type',
[2400] Fix | Delete
'object' => 'page',
[2401] Fix | Delete
'object_id' => '{{contact}}',
[2402] Fix | Delete
),
[2403] Fix | Delete
[2404] Fix | Delete
'link_email' => array(
[2405] Fix | Delete
'title' => _x( 'Email', 'Theme starter content' ),
[2406] Fix | Delete
'url' => 'mailto:wordpress@example.com',
[2407] Fix | Delete
),
[2408] Fix | Delete
'link_facebook' => array(
[2409] Fix | Delete
'title' => _x( 'Facebook', 'Theme starter content' ),
[2410] Fix | Delete
'url' => 'https://www.facebook.com/wordpress',
[2411] Fix | Delete
),
[2412] Fix | Delete
'link_foursquare' => array(
[2413] Fix | Delete
'title' => _x( 'Foursquare', 'Theme starter content' ),
[2414] Fix | Delete
'url' => 'https://foursquare.com/',
[2415] Fix | Delete
),
[2416] Fix | Delete
'link_github' => array(
[2417] Fix | Delete
'title' => _x( 'GitHub', 'Theme starter content' ),
[2418] Fix | Delete
'url' => 'https://github.com/wordpress/',
[2419] Fix | Delete
),
[2420] Fix | Delete
'link_instagram' => array(
[2421] Fix | Delete
'title' => _x( 'Instagram', 'Theme starter content' ),
[2422] Fix | Delete
'url' => 'https://www.instagram.com/explore/tags/wordcamp/',
[2423] Fix | Delete
),
[2424] Fix | Delete
'link_linkedin' => array(
[2425] Fix | Delete
'title' => _x( 'LinkedIn', 'Theme starter content' ),
[2426] Fix | Delete
'url' => 'https://www.linkedin.com/company/1089783',
[2427] Fix | Delete
),
[2428] Fix | Delete
'link_pinterest' => array(
[2429] Fix | Delete
'title' => _x( 'Pinterest', 'Theme starter content' ),
[2430] Fix | Delete
'url' => 'https://www.pinterest.com/',
[2431] Fix | Delete
),
[2432] Fix | Delete
'link_twitter' => array(
[2433] Fix | Delete
'title' => _x( 'Twitter', 'Theme starter content' ),
[2434] Fix | Delete
'url' => 'https://twitter.com/wordpress',
[2435] Fix | Delete
),
[2436] Fix | Delete
'link_yelp' => array(
[2437] Fix | Delete
'title' => _x( 'Yelp', 'Theme starter content' ),
[2438] Fix | Delete
'url' => 'https://www.yelp.com',
[2439] Fix | Delete
),
[2440] Fix | Delete
'link_youtube' => array(
[2441] Fix | Delete
'title' => _x( 'YouTube', 'Theme starter content' ),
[2442] Fix | Delete
'url' => 'https://www.youtube.com/channel/UCdof4Ju7amm1chz1gi1T2ZA',
[2443] Fix | Delete
),
[2444] Fix | Delete
),
[2445] Fix | Delete
'posts' => array(
[2446] Fix | Delete
'home' => array(
[2447] Fix | Delete
'post_type' => 'page',
[2448] Fix | Delete
'post_title' => _x( 'Home', 'Theme starter content' ),
[2449] Fix | Delete
'post_content' => sprintf(
[2450] Fix | Delete
"<!-- wp:paragraph -->\n<p>%s</p>\n<!-- /wp:paragraph -->",
[2451] Fix | Delete
_x( 'Welcome to your site! This is your homepage, which is what most visitors will see when they come to your site for the first time.', 'Theme starter content' )
[2452] Fix | Delete
),
[2453] Fix | Delete
),
[2454] Fix | Delete
'about' => array(
[2455] Fix | Delete
'post_type' => 'page',
[2456] Fix | Delete
'post_title' => _x( 'About', 'Theme starter content' ),
[2457] Fix | Delete
'post_content' => sprintf(
[2458] Fix | Delete
"<!-- wp:paragraph -->\n<p>%s</p>\n<!-- /wp:paragraph -->",
[2459] Fix | Delete
_x( 'You might be an artist who would like to introduce yourself and your work here or maybe you are a business with a mission to describe.', 'Theme starter content' )
[2460] Fix | Delete
),
[2461] Fix | Delete
),
[2462] Fix | Delete
'contact' => array(
[2463] Fix | Delete
'post_type' => 'page',
[2464] Fix | Delete
'post_title' => _x( 'Contact', 'Theme starter content' ),
[2465] Fix | Delete
'post_content' => sprintf(
[2466] Fix | Delete
"<!-- wp:paragraph -->\n<p>%s</p>\n<!-- /wp:paragraph -->",
[2467] Fix | Delete
_x( 'This is a page with some basic contact information, such as an address and phone number. You might also try a plugin to add a contact form.', 'Theme starter content' )
[2468] Fix | Delete
),
[2469] Fix | Delete
),
[2470] Fix | Delete
'blog' => array(
[2471] Fix | Delete
'post_type' => 'page',
[2472] Fix | Delete
'post_title' => _x( 'Blog', 'Theme starter content' ),
[2473] Fix | Delete
),
[2474] Fix | Delete
'news' => array(
[2475] Fix | Delete
'post_type' => 'page',
[2476] Fix | Delete
'post_title' => _x( 'News', 'Theme starter content' ),
[2477] Fix | Delete
),
[2478] Fix | Delete
[2479] Fix | Delete
'homepage-section' => array(
[2480] Fix | Delete
'post_type' => 'page',
[2481] Fix | Delete
'post_title' => _x( 'A homepage section', 'Theme starter content' ),
[2482] Fix | Delete
'post_content' => sprintf(
[2483] Fix | Delete
"<!-- wp:paragraph -->\n<p>%s</p>\n<!-- /wp:paragraph -->",
[2484] Fix | Delete
_x( 'This is an example of a homepage section. Homepage sections can be any page other than the homepage itself, including the page that shows your latest blog posts.', 'Theme starter content' )
[2485] Fix | Delete
),
[2486] Fix | Delete
),
[2487] Fix | Delete
),
[2488] Fix | Delete
);
[2489] Fix | Delete
[2490] Fix | Delete
$content = array();
[2491] Fix | Delete
[2492] Fix | Delete
foreach ( $config as $type => $args ) {
[2493] Fix | Delete
switch ( $type ) {
[2494] Fix | Delete
// Use options and theme_mods as-is.
[2495] Fix | Delete
case 'options':
[2496] Fix | Delete
case 'theme_mods':
[2497] Fix | Delete
$content[ $type ] = $config[ $type ];
[2498] Fix | Delete
break;
[2499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function