Questions tagged [wordpress-4.5.2]

WordPress is a PHP-based, open source content management system for creating websites and blogs. This tag is for programming-specific questions referring to version 4.5.2.

Wordpress 4.5.2

Wordpress 4.5.2 is a security release published in May 2016.

WordPress 4.5.1 and earlier are affected by a SOME vulnerability through Plupload, the third-party library WordPress uses for uploading files. WordPress versions 4.2 through 4.5.1 are vulnerable to reflected XSS using specially crafted URIs through MediaElement.js, the third-party library used for media players. MediaElement.js and Plupload have also released updates fixing these issues.

Resources

16 questions
9
votes
2 answers

WordPress paginate_links - how to use it?

I want to add a numberic pagination to a page with its child pages. This is the pagination I would want to create (from bootstrap):
2
votes
1 answer

Importing XML to Wordpress, permalink changing form the original

I just don´t know what I am doing wrong. I have the latest xampp, also wordpress 4.5.2, and I make an XML file, with all the posts that I need to import, but when I import it the permalink is cutoff the middle part. In the XML file there is the tag…
Alê Moraes
  • 175
  • 9
1
vote
1 answer

Wordpress - how to add more meta box to images?

I know how to add metabox to posts and pages: /** * Add custom meta box to a specific page in the WP admin. * * @ http://themefoundation.com/wordpress-meta-boxes-guide/ * @ http://www.farinspace.com/page-specific-wordpress-meta-box/ */ function…
Run
  • 54,938
  • 169
  • 450
  • 748
1
vote
1 answer

Why do I get null for $locations[$menu_name]?

I have saved my menu name as 'main_nav', and I tried to get all the items in it: $menu_name = 'main_nav'; $locations = get_nav_menu_locations(); var_dump($locations[$menu_name]); // NULL if (($locations = get_nav_menu_locations()) &&…
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
3 answers

Wordpress paginate_links - how to customise its html?

With this WP code below: echo paginate_links(array( 'base' => get_pagenum_link(1) . '%_%', 'format' => '/page/%#%', 'current' => $current_page, 'total' => $total_pages, 'prev_text' => __('«'), 'next_text' =>…
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
1 answer

Wordpress get_permalink bug - does not return clean URLs in admin area?

I have set all my site urls to the custom structure in Permalink Settings: /portfolio/%postname%/ But when I try to get a post clean URL in my admin area at http://mywebsite.com/wp-admin/post.php?post=415&action=edit: // Get post/page ID. $post_id…
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
1 answer

WordPress - get_attached_media what is type name for words documents?

I have words documents attached to a post and I want to fetch them when I am on that post. $docs = get_attached_media('attachment', $post->ID); var_dump($docs); I get nothing. What is the type name for documents then? It is not mentioned in WP site…
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
3 answers

WordPress - add_image_size does not work?

Following this guide, I want to add an additional image size: if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 150, 150, true ); // default Post Thumbnail dimensions…
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
2 answers

WordPress - Why my custom function being called twice?

Why my custom function being called twice in WordPress? For instance i have this function in functions.php: function your_function_name() { if(isset($_POST['your_var'])) { // return $error; echo '

Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
2 answers

WordPress - How to prevent form resubmission?

How can I prevent form resubmission in WordPress? I have a custom page with a form:
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
1 answer

Wordpress get_permalink - always return the first post instead of the parent page?

I have set a custom page 'myblog' as 'Posts page' in 'Reading Settings', but why I always get the first post article of 'myblog' instead of 'myblog' itself? var_dump(get_permalink()); // "http://xxxx.com/myblog/hello-world/" It should…
Run
  • 54,938
  • 169
  • 450
  • 748
0
votes
1 answer

Media Library and Featured Image Issue

I just downloaded a new version of WordPress 4.5.2 and started developing a theme but when I transferred it to the live I cannot upload images on the Post's featured thumbnail same as well on the Media Library. When I try to upload an image on the…
blessedthang
  • 103
  • 2
  • 3
  • 9
0
votes
0 answers

Why do plugins in WordPress dashboard break on live server?

I developed a WordPress site (4.5.2) on my local server using the Brown theme, and everything in the dashboard looked fine. But when I migrated the site to the live server, the plugins in the dashboard looked broken, specifically the Visual Composer…
spring
  • 51
  • 3
0
votes
2 answers

Uncaught Error: Syntax error, unrecognized expression: a[href*=#]:not([href=#])

I have install a fresh wordpress with the DIVI theme. Wordpress Version: 4.5.2 DIVI Theme Version : 2.6.1 I having this error showing console.
user3663143
  • 63
  • 2
  • 9
0
votes
1 answer

inspect element and wordpress menu

In two websites, created with wordpress, and using the same theme, after update wordpress to 4.5.2, the header menu disapeared. But, if i use the "Inspect Element" Option, the header menu is displayed And there is the cuestion: is posible using css…
1
2