WordPress twenty ten güncelleme sorunu - R10.net
  • 10-11-2019, 19:23:06
    #1
    WordPress Twenty Ten temasını kendime göre geliştiriyorum.
    Bir sürü değişiklik yaptım panelden güncelleme var dedi, dedim hayda..
    sonra tekrar başa sardım ben kodu değiştirince güncelleme sanıyor.
    Bu güncelleme bağlantısını nasıl kesebilirim?

    <?php
    if ( ! isset( $content_width ) ) {
    $content_width = 640;
    }
    add_action( 'after_setup_theme', 'twentyten_setup' );
    if ( ! function_exists( 'twentyten_setup' ) ) :
    function twentyten_setup() {
    add_editor_style();
    add_theme_support( 'editor-styles' );
    add_theme_support( 'wp-block-styles' );
    add_theme_support(
    'editor-color-palette',
    array(
    array(
    'name' => __( 'Blue', 'twentyten' ),
    'slug' => 'blue',
    'color' => '#0066cc',
    ),
    array(
    'name' => __( 'Black', 'twentyten' ),
    'slug' => 'black',
    'color' => '#000',
    ),
    array(
    'name' => __( 'Medium Gray', 'twentyten' ),
    'slug' => 'medium-gray',
    'color' => '#666',
    ),
    array(
    'name' => __( 'Light Gray', 'twentyten' ),
    'slug' => 'light-gray',
    'color' => '#f1f1f1',
    ),
    array(
    'name' => __( 'White', 'twentyten' ),
    'slug' => 'white',
    'color' => '#fff',
    ),
    )
    );
    add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );
    add_theme_support( 'post-thumbnails' );
    add_theme_support( 'automatic-feed-links' );
    load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' );
    register_nav_menus(
    array(
    'primary' => __( 'Primary Navigation', 'twentyten' ),
    )
    );
    add_theme_support(
    'custom-background',
    array(
    'default-color' => 'f1f1f1',
    )
    );
    $custom_header_support = array(
    'default-image' => '%s/images/headers/path.jpg',
    'width' => apply_filters( 'twentyten_header_image_width', 940 ),
    'height' => apply_filters( 'twentyten_header_image_height', 198 ),
    'flex-height' => true,
    'header-text' => false,
    'admin-head-callback' => 'twentyten_admin_header_style',
    );
    add_theme_support( 'custom-header', $custom_header_support );
    if ( ! function_exists( 'get_custom_header' ) ) {
    define( 'HEADER_TEXTCOLOR', '' );
    define( 'NO_HEADER_TEXT', true );
    define( 'HEADER_IMAGE', $custom_header_support['default-image'] );
    define( 'HEADER_IMAGE_WIDTH', $custom_header_support['width'] );
    define( 'HEADER_IMAGE_HEIGHT', $custom_header_support['height'] );
    add_custom_image_header( '', $custom_header_support['admin-head-callback'] );
    add_custom_background();
    }
    set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true );
    register_default_headers(
    array(
    'berries' => array(
    'url' => '%s/images/headers/berries.jpg',
    'thumbnail_url' => '%s/images/headers/berries-thumbnail.jpg',
    'description' => __( 'Berries', 'twentyten' ),
    ),
    'cherryblossom' => array(
    'url' => '%s/images/headers/cherryblossoms.jpg',
    'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg',
    'description' => __( 'Cherry Blossoms', 'twentyten' ),
    ),
    'concave' => array(
    'url' => '%s/images/headers/concave.jpg',
    'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg',
    'description' => __( 'Concave', 'twentyten' ),
    ),
    'fern' => array(
    'url' => '%s/images/headers/fern.jpg',
    'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg',
    'description' => __( 'Fern', 'twentyten' ),
    ),
    'forestfloor' => array(
    'url' => '%s/images/headers/forestfloor.jpg',
    'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg',
    'description' => __( 'Forest Floor', 'twentyten' ),
    ),
    'inkwell' => array(
    'url' => '%s/images/headers/inkwell.jpg',
    'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg',
    'description' => __( 'Inkwell', 'twentyten' ),
    ),
    'path' => array(
    'url' => '%s/images/headers/path.jpg',
    'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg',
    'description' => __( 'Path', 'twentyten' ),
    ),
    'sunset' => array(
    'url' => '%s/images/headers/sunset.jpg',
    'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg',
    'description' => __( 'Sunset', 'twentyten' ),
    ),
    )
    );
    }
    endif;
    if ( ! function_exists( 'twentyten_admin_header_style' ) ) :
    function twentyten_admin_header_style() {
    ?>
    <style type="text/css" id="twentyten-admin-header-css">
    /* Shows the same border as on front end */
    #headimg {
    border-bottom: 1px solid #000;
    border-top: 4px solid #000;
    }
    /* If header-text was supported, you would style the text with these selectors:
    #headimg #name { }
    #headimg #desc { }
    */
    </style>
    <?php
    }
    endif;
    function twentyten_page_menu_args( $args ) {
    if ( ! isset( $args['show_home'] ) ) {
    $args['show_home'] = true;
    }
    return $args;
    }
    add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );
    function twentyten_excerpt_length( $length ) {
    return 40;
    }
    add_filter( 'excerpt_length', 'twentyten_excerpt_length' );
    if ( ! function_exists( 'twentyten_continue_reading_link' ) ) :
    function twentyten_continue_reading_link() {
    return ' <a href="' . get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) . '</a>';
    }
    endif;
    function twentyten_auto_excerpt_more( $more ) {
    if ( ! is_admin() ) {
    return ' &hellip;' . twentyten_continue_reading_link();
    }
    return $more;
    }
    add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );
    function twentyten_custom_excerpt_more( $output ) {
    if ( has_excerpt() && ! is_attachment() && ! is_admin() ) {
    $output .= twentyten_continue_reading_link();
    }
    return $output;
    }
    add_filter( 'get_the_excerpt', 'twentyten_custom_excerpt_more' );
    add_filter( 'use_default_gallery_style', '__return_false' );
    function twentyten_remove_gallery_css( $css ) {
    return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );
    }
    if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) ) {
    add_filter( 'gallery_style', 'twentyten_remove_gallery_css' );
    }
    if ( ! function_exists( 'twentyten_comment' ) ) :
    function twentyten_comment( $comment, $args, $depth ) {
    $GLOBALS['comment'] = $comment;
    switch ( $comment->comment_type ) :
    case '':
    ?>
    <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
    <div id="comment-<?php comment_ID(); ?>">
    <div class="comment-author vcard">
    <?php echo get_avatar( $comment, 40 ); ?>
    <?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
    </div>
    <?php if ( $comment->comment_approved == '0' ) : ?>
    <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
    <br />
    <?php endif; ?>
    <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
    <?php
    printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(), get_comment_time() );
    ?>
    </a>
    <?php
    edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
    ?>
    </div>
    <div class="comment-body"><?php comment_text(); ?></div>
    <div class="reply">
    <?php
    comment_reply_link(
    array_merge(
    $args,
    array(
    'depth' => $depth,
    'max_depth' => $args['max_depth'],
    )
    )
    );
    ?>
    </div>
    </div>
    <?php
    break;
    case 'pingback':
    case 'trackback':
    ?>
    <li class="post pingback">
    <p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); ?></p>
    <?php
    break;
    endswitch;
    }
    endif;
    function twentyten_widgets_init() {
    register_sidebar(
    array(
    'name' => __( 'Primary Widget Area', 'twentyten' ),
    'id' => 'primary-widget-area',
    'description' => __( 'Add widgets here to appear in your sidebar.', 'twentyten' ),
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>',
    )
    );
    register_sidebar(
    array(
    'name' => __( 'Secondary Widget Area', 'twentyten' ),
    'id' => 'secondary-widget-area',
    'description' => __( 'An optional secondary widget area, displays below the primary widget area in your sidebar.', 'twentyten' ),
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>',
    )
    );
    register_sidebar(
    array(
    'name' => __( 'First Footer Widget Area', 'twentyten' ),
    'id' => 'first-footer-widget-area',
    'description' => __( 'An optional widget area for your site footer.', 'twentyten' ),
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>',
    )
    );
    register_sidebar(
    array(
    'name' => __( 'Second Footer Widget Area', 'twentyten' ),
    'id' => 'second-footer-widget-area',
    'description' => __( 'An optional widget area for your site footer.', 'twentyten' ),
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>',
    )
    );
    register_sidebar(
    array(
    'name' => __( 'Third Footer Widget Area', 'twentyten' ),
    'id' => 'third-footer-widget-area',
    'description' => __( 'An optional widget area for your site footer.', 'twentyten' ),
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>',
    )
    );
    register_sidebar(
    array(
    'name' => __( 'Fourth Footer Widget Area', 'twentyten' ),
    'id' => 'fourth-footer-widget-area',
    'description' => __( 'An optional widget area for your site footer.', 'twentyten' ),
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    'after_widget' => '</li>',
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>',
    )
    );
    }
    add_action( 'widgets_init', 'twentyten_widgets_init' );
    function twentyten_remove_recent_comments_style() {
    add_filter( 'show_recent_comments_widget_style', '__return_false' );
    }
    add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' );
    if ( ! function_exists( 'twentyten_posted_on' ) ) :
    function twentyten_posted_on() {
    printf(
    __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
    'meta-prep meta-prep-author',
    sprintf(
    '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
    get_permalink(),
    esc_attr( get_the_time() ),
    get_the_date()
    ),
    sprintf(
    '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
    get_author_posts_url( get_the_author_meta( 'ID' ) ),
    esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
    get_the_author()
    )
    );
    }
    endif;
    if ( ! function_exists( 'twentyten_posted_in' ) ) :
    function twentyten_posted_in() {
    $tag_list = get_the_tag_list( '', ', ' );
    if ( $tag_list && ! is_wp_error( $tag_list ) ) {
    $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
    $posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    } else {
    $posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
    }
    printf(
    $posted_in,
    get_the_category_list( ', ' ),
    $tag_list,
    get_permalink(),
    the_title_attribute( 'echo=0' )
    );
    }
    endif;
    function twentyten_get_gallery_images() {
    $images = array();
    if ( function_exists( 'get_post_galleries' ) ) {
    $galleries = get_post_galleries( get_the_ID(), false );
    if ( isset( $galleries[0]['ids'] ) ) {
    $images = explode( ',', $galleries[0]['ids'] );
    }
    } else {
    $pattern = get_shortcode_regex();
    preg_match( "/$pattern/s", get_the_content(), $match );
    $atts = shortcode_parse_atts( $match[3] );
    if ( isset( $atts['ids'] ) ) {
    $images = explode( ',', $atts['ids'] );
    }
    }
    if ( ! $images ) {
    $images = get_posts(
    array(
    'fields' => 'ids',
    'numberposts' => 999,
    'order' => 'ASC',
    'orderby' => 'menu_order',
    'post_mime_type' => 'image',
    'post_parent' => get_the_ID(),
    'post_type' => 'attachment',
    )
    );
    }
    return $images;
    }
    function twentyten_widget_tag_cloud_args( $args ) {
    $args['largest'] = 22;
    $args['smallest'] = 8;
    $args['unit'] = 'pt';
    $args['format'] = 'list';
    return $args;
    }
    add_filter( 'widget_tag_cloud_args', 'twentyten_widget_tag_cloud_args' );
    function twentyten_scripts_styles() {
    wp_enqueue_style( 'twentyten-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181018' );
    }
    add_action( 'wp_enqueue_scripts', 'twentyten_scripts_styles' );
    function twentyten_block_editor_styles() {
    wp_enqueue_style( 'twentyten-block-editor-style', get_template_directory_uri() . '/editor-blocks.css' );
    }
    add_action( 'enqueue_block_editor_assets', 'twentyten_block_editor_styles' );
    if ( ! function_exists( 'wp_body_open' ) ) :
    function wp_body_open() {
    do_action( 'wp_body_open' );
    }
    endif;
    function disable_emojis() {
    remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
    remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
    remove_action( 'wp_print_styles', 'print_emoji_styles' );
    remove_action( 'admin_print_styles', 'print_emoji_styles' );
    remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
    remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
    remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
    add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );
    add_filter( 'wp_resource_hints', 'disable_emojis_remove_dns_prefetch', 10, 2 );
    }
    add_action( 'init', 'disable_emojis' );
    function disable_emojis_tinymce( $plugins ) {
    if ( is_array( $plugins ) ) {
    return array_diff( $plugins, array( 'wpemoji' ) );
    } else {
    return array();
    }
    }
    function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) {
    if ( 'dns-prefetch' == $relation_type ) {
    $emoji_svg_url = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/' );
    $urls = array_diff( $urls, array( $emoji_svg_url ) );
    }
    return $urls;
    }
    R10 Tarihinin En Kapsamlı Android WebView'i Tanışın! # 100TL
    Zorunlu Deprem Sigortası
  • 10-11-2019, 19:30:00
    #2
    Style.css dosyasının başında aşağıdaki girdileri kendine göre düzenleyip dener misin.

    Theme Name: Your Theme Name 
    Author: Name Author 
    URI: Your URL 
    Description: This theme is... 
    Version: 1.0
  • 10-11-2019, 19:32:06
    #3
    Cooper34 adlı üyeden alıntı
    Style.css dosyasının başında aşağıdaki girdileri kendine göre düzenleyip dener misin.

    Theme Name: Your Theme Name
    Author: Name Author
    URI: Your URL
    Description: This theme is...
    Version: 1.0
    Denedim hala aynı
    R10 Tarihinin En Kapsamlı Android WebView'i Tanışın! # 100TL
    Zorunlu Deprem Sigortası