Respuestas de foro creadas

Viendo 2 respuestas - de la 1 a la 2 (de un total de 2)
  • Iniciador del debate kavi25

    (@kavi25)

    Hola! Muchas gracias por responder!!!
    Si habia actualizado los enlaces permanentes pero igual seguían sin verse las páginas.
    Lo que terminé haciendo fue reemplazar el código de .htaccess. Ahora me queda la duda de tener vulnerabilidad en mi sitio.

    El código de .htaccess inicial era:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    y lo reemplacé por:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Esto afecta de algún modo la seguridad?
    Gracias

    Iniciador del debate kavi25

    (@kavi25)

    En el anterior mensaje sólo me quedó el codigo de single.php.
    Ahora si adjunto el código de content.php al que hago referencia.
    Agradezco todos los comentarios que me puedan ayudar a resolver esto que seguro será de utilidad para otros.
    Muchas gracias!

    <?php
    /**
     * @package Theme
     */
    ?>
    <?php
        global $apbasic_options;
        $apbasic_settings = get_option('apbasic_options',$apbasic_options);
        $blog_layout = $apbasic_settings['blog_post_display_type'];
        $enable_comments_post = $apbasic_settings['enable_comments_post'];
        $blog_readmore_text = $apbasic_settings['blog_readmore_text'];
    
        switch($blog_layout){
            case 'blog_image_large' :
            case 'blog_full_content' :
                $image_size = 'theme-name-blog-large-thumbnail';
                $no_image = 'no-blog-large-image.png';
                break;
    
            case 'blog_image_medium' :
            case 'blog_image_alternate_medium' :
                $image_size = ' theme-name -blog-medium-thumbnail';
                $no_image = 'no-blog-medium-image.png';
                break;
        }
    
        $blog_img = wp_get_attachment_image_src(get_post_thumbnail_id(),$image_size);
        $blog_img_url = $blog_img[0];
    ?>
    <article id="post-<?php the_ID(); ?>" <?php post_class('category-post-list'); ?>>
    	<header class="entry-header">
    		<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
    
    		<?php /* if ( 'post' == get_post_type() ) : ?>
    		<div class="entry-meta">
    			<?php theme_name _posted_on(); ?>
    		</div><!-- .entry-meta -->
    		<?php endif; */ ?>
    	</header><!-- .entry-header -->
    
        <figure class="blog-feature-image">
            <a href="<?php the_permalink(); ?>">
                <?php if(has_post_thumbnail()) : ?>
                    <img src="<?php echo $blog_img_url; ?>" title="<?php the_title_attribute(); ?>" alt="<?php the_title_attribute(); ?>" />
                <?php else : ?>
                    <img src="<?php echo get_template_directory_uri().'/images/'.$no_image; ?>" title="<?php the_title_attribute(); ?>" alt="<?php the_title_attribute(); ?>" />
                <?php endif; ?>
            </a>
        </figure>
    
    	<div class="entry-content">
            <?php if($blog_layout == 'blog_full_content') : ?>
                <?php the_content(); ?>
            <?php else : ?>
                <?php the_excerpt(); ?>
            <?php endif; ?>
    	</div><!-- .entry-content -->
    
    	<footer class="entry-footer clearfix">
            <span class="entry-footer-wrapper">
                <span class="author user-wrapper"><i class="fa fa-user"></i><a href="<?php ?>"><?php echo get_the_author_meta('display_name'); ?></a></span>
                <span class="posted-date user-wrapper"><i class="fa fa-calendar"></i><a href="<?php ?>"><?php echo the_time('F y, j'); ?></a></span>
                <?php if(has_category()) : ?>
                    <span class="category user-wrapper"><i class="fa fa-folder"></i><?php the_category(', '); ?></span>
                <?php endif; ?>
                <?php if(comments_open() && $enable_comments_post == 1) : ?>
                    <span class="comments user-wrapper"><i class="fa fa-comment"></i><?php comments_popup_link(); ?></span>
                <?php endif; ?>
            </span>
            <?php if($blog_layout != 'blog_full_content') : ?>
                <span class="readmore"><a href="<?php the_permalink(); ?>">
                    <?php if(empty($blog_readmore_text)) : ?>
                        <?php _e('Read More...','accesspress-basic'); ?>
                    <?php else : ?>
                        <?php echo esc_attr($blog_readmore_text); ?>
                    <?php endif; ?>
                </a></span>
            <?php endif; ?>
    		<?php // theme_name _entry_footer(); ?>
    	</footer><!-- .entry-footer -->
    </article><!-- #post-## -->

Viendo 2 respuestas - de la 1 a la 2 (de un total de 2)