The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
0answers
19 views

Why does the usermeta table contain html entities?

As a plugin developer, I have been storing special characters like ampersand as is in MySQL tables, then converting them to html entities after retrieving them for display. Now I discover that (for ...
2
votes
1answer
30 views

How to listen to color changes on the color picker?

I am trying to run some custom jquery function every time the colorpicker's color change. The colorpicker is include as part of the WP core. I have been looking at the JS code, but I can't figure out ...
5
votes
1answer
72 views

IP address whitelist to update WordPress core and plugins

I'm working on a site based on a host with quite strict firewall rules. It won't allow anything running on the site to contact an external server unless its IP address is explicity whitelisted, and I ...
1
vote
1answer
19 views

Are all hooks/functions tied to Kses meant for sanitization?

I'm currently learning WordPress hooks and am delving into core to see what's happening in there. I noticed there are filters in wp-includes/default-filters.php with PHP comments about Kses. I wasn't ...
0
votes
0answers
42 views

How Can I use WPUF Pro for storing values in one other plugin

First of all i want to say i am a nob in this field of PHP coding. However, I collected some pieces of code that if some professional make some edits, it will be of great help to me. I have a plugin ...
1
vote
0answers
32 views

Does get_the_content_feed strip invalid tags?

My Wordpress 4.2.2 generates post feed with this <content:encoded><![CDATA[ <p> ...some html here... <iframe style="border: 1px solid #CCC; border-width: 1px; margin-bottom: 5px; ...
0
votes
0answers
36 views

Translation in Core , Plugin and Theme Update

I'm curious about translations in update transient for Core , Plugin and Theme updates. I got this from _site_transient_update_core in wp_option table in this why translations array is always empty? ...
0
votes
1answer
61 views

How long do users stay logged in if they DON'T check remember me?

As the title states, I'm wondering how long users stay logged in if they don't check the "Remember Me" option. I've heard that if they DO check it, it keeps them logged in for 14 days. But what if ...
9
votes
1answer
363 views

What's the difference between get_home_path() and ABSPATH?

What's the difference between get_home_path() and ABSPATH? Isn't the point of both to point to the WordPress install root?
0
votes
1answer
20 views

Safely editing core files

I want to edit wp-comments-post.php so that if for example someone tries to post a comment with no content they will get a popup box telling them they cannot post an empty comment instead of the page ...
0
votes
1answer
39 views

Where's the explanation of the TinyMCE's vars in the WP core?

I am modifying my TinyMCE editor for my users, and I'm using the example in the docs as a starting point. function my_format_TinyMCE( $in ) { $in['remove_linebreaks'] = false; ...
0
votes
0answers
86 views

How To/What triggers a Wordpress auto update?

I installed Wordpress 4.0.1 and added this to my wp-config.php (via this link) define( 'WP_AUTO_UPDATE_CORE', true ); I then visited my site (I read somewhere before that the site has to be visited ...
0
votes
1answer
25 views

A thin line between native wordpress bahaviour and 3rd party themes

Bear with me as i try to learn WP. Lets say we have a 3rd party theme were the route of the request is somehow like this. Root theme index.php diverts to a nother php file which decides what page to ...
0
votes
0answers
39 views

changing media.php and comment.php inside wp-includes

I hired an Odesk developer to add some functionality to my theme/plugin. Today he sent me an email telling me which files he modified in my test site I have him working on to achieve the new ...
0
votes
1answer
35 views

Create a Page template selector page

I'm running around with an idea in my head that I would like to make but I don't really know how or where to start. In a custom theme I had to make serveral templates for one of my clients. I ...
0
votes
1answer
42 views

What Generated Classes and IDs That Is Always Used On All Themes?

Just wondering if there is a way to get a complete list of wordpress generated css classes and ids that is always automatically assigned to any themes. I've read here, but it seem not list them ...
0
votes
1answer
88 views

wordpress update will overwrite files changes?

I edit function.php and page.php files for my custom use, everything is fine, but i have query that if wordpress will update then it will overwrite all the files and changes made ??
0
votes
1answer
34 views

how does the rendering works?

i am trying to get a rough idea about how Wordpress renders the final content, built-in and plugin content. Rendering means to me, manipulating direct or indirect(delay via ajax,..) the DOM. To keep ...
0
votes
1answer
66 views

Display Custom Column in CPT Taxonomy

I am trying to add a column to one of my custom post types, but only on the edit taxonomy page. I have a taxonomy registered called "event-categories" for my custom post type "events". I can ...
1
vote
0answers
113 views

Wordpress 4.0 Media Gallery (Same Image) Bug - Does anyone know how to fix this? [closed]

So, we've been working on this site for a long time and have finally started finishing up. As a last cleanup we updated all our plugins and Wordpress to 4.0 and expected awesomeness. However, for ...
5
votes
2answers
386 views

Passing a hardcoded page/post ID into `get_post`

I see people using this to pull in page content on their home pages, remove specific categories from archives etc.. e.g. $post = get_post( 5 ); Someone suggested this was bad practice. Why is it ...
1
vote
0answers
131 views

Hook before & after plugin / core update

I'm working on a maintenance plugin for my website and I want to enable it before plugin/core upgrade starts and disable it after plugin/upgrade ends. Any ideas ? Thanks! :) PS: all I know is I can ...
0
votes
0answers
48 views

Change the functionality of wordpress users module in admin

I want to restrict wordpress admin to view all users in user list. For say, I have created custom roles (company users, employee). A company user type role can have multiple employees. I want ...
1
vote
2answers
104 views

Why use while over if in single wordpress posts?

Why is while() used instead of say if() here: <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'single' ); ?> <?php ...
1
vote
1answer
183 views

Changing a WordPress core function without hacking core

I am looking to change one line within a core function. The function is wp_allow_comment() located within /wp-includes/comment.php function wp_allow_comment($commentdata) { global $wpdb; ...
0
votes
1answer
56 views

Why There Is No “get content by ID” Function

When i need to get content of a post with ID, I'm always using this function : function getContentByID($id) { //http://wordpress.stackexchange.com/questions/9667/get-wordpress-post-content-by-post-id ...
1
vote
1answer
667 views

Conditional tag is_page with a custom post type

Accordingly to the is_page documentation, supplying the slug as an argument WP can tell me whether the current page is the one represented by the slug. Perhaps I am using the wrong slug? However I ...
0
votes
1answer
112 views

How to change value in wp-include/taxonomy.php without exchanging the Wordpress-core

I had the problem that tags of private posts didn't show up in a widget tag-cloud even if the user is logged in. The reason seems to be the value of "post_status" in the function ...
1
vote
1answer
190 views

Extending WP_Widget throws error when Monster Widget used

I wanted to override the output for the core Recent Comments Widget. I extended WP_Widget_Recent_Comments made the changes needed and it displays exactly how I want. However, I have now tested the ...
6
votes
1answer
245 views

Managing WP Core & Plugin Updates for Clients

I'd like to know how you go about managing WP Core & Plugin updates for clients? It's a service my web company would like to start offering but we are unsure of the best solution. Let me provide ...
0
votes
0answers
112 views

Upacking the package… stalls, but installs plugin

I have been searching high and low for the correct solution to my problem. I have found many searches relating to this, but can not find a solution... Here is the Updated Video to see what happens ? ...
0
votes
2answers
123 views

Wordpress and a secondary database?

I have to achieve something on which I don't know how to approach it. Base of the issue: There's a bunch of data in another DB that I have to import into WP which so far wasn't possible due to them ...
0
votes
2answers
643 views

Override default password nag in Wordpress

For some reason my default password nag is playing up on a big multi-user site I've setup. Pretty sure it's got to do with the New User Approve and Gravity Forms User Rego combo that I'm using. ...
1
vote
1answer
137 views

What's the purpose / logic of split_the_query in WP_Query->get_posts

In the get_posts method of WP_Query, there's a section relating to split_the_query The logic of split_the_query is $split_the_query = ( $old_request == $this->request && ...
4
votes
1answer
100 views

Why are double-periods (“..”) invalid in a Wordpress image filename?

ms-files.php contains the following code fragment: $file = rtrim( BLOGUPLOADDIR, '/' ) . '/' . str_replace( '..', '', $_GET[ 'file' ] ); if ( !is_file( $file ) ) { status_header( 404 ); die( ...
5
votes
1answer
492 views

Slow wp_term_relationships query

I'm running a large WP instance (currently has 28,000+ posts in custom types) and have been experiencing some odd slowdowns. Upon analyzing the MySQL slow query log, one of the problem queries is: ...
1
vote
1answer
423 views

Is this plugin being loaded before file.php, subsequently not allowing me to use certain functions?

I'm trying to use get_home_path() in my plugin, however, I get a call to undefined function fatal error (running Wordpress 3.8). I believe this would imply that my plugin is being loaded before ...
0
votes
1answer
30 views

Usage of var keyword in the core

I've noticed many of the classes throughout the core declare member variables with the var keyword YET in the comments (written above the variable) it's declared as being a private access. The PHP ...
0
votes
1answer
158 views

Cannot redeclare wp_update_core()

I think it's right after the WordPress update, we can't access the wp-admin to log in anymore. Fatal error: Cannot redeclare wp_update_core() (previously declared in ...
0
votes
0answers
80 views

Making Site A Use Site B's wp-content Folder

I'm trying to synchronize two WordPress sites and on my way I've faced few challenges. One of the challenges is to either synchronize the wp-content folder of two sites or make one site use the ...
0
votes
1answer
193 views

How to add a forward slash to the end of wordpress home?

I have a wordpress site - domain.com/tickets domain.com redirects to another site - this will be fixed soon but will redirect for a few more months. So when I go into WP settings I put in ...
5
votes
4answers
6k views

“Unexpected error” on update requests

It needs connectivity to wordpress.org and is timing out. I am behind a corporate firewall. I have never had this issue come up before in previous versions. Why does themes.php need access to ...
2
votes
3answers
227 views

How to disable core and plugin updates

Is there any way to disable core and plugin updates? I am modifying a plugin and bit of WordPress Core (I know its a sin to do so), but can't help it.
2
votes
1answer
107 views

What's $GLOBALS['wp_settings']['media']['embeds']?

In wp-admin/options-media.php, there are a few lines that go: <?php if ( isset( $GLOBALS['wp_settings']['media']['embeds'] ) ) : ?> <h3 class="title"><?php _e('Embeds') ...
1
vote
0answers
195 views

How do I set a custom WordPress update repository?

I'm co-authoring a white paper on utilising WordPress as a foundation for a web-app, I would like to change the repository that the core WordPress updates from, the latest additions of automatic ...
4
votes
2answers
242 views

What is a “protected” post status?

I noticed in the register_post_status function in core that there is an arg for 'protected'. The following post statuses: 'future', 'draft', and 'pending' all have this set to true. I'm not talking ...
0
votes
1answer
99 views

Script dependencies for post.js

I have already got the built in meta boxes displaying on the front, but some of them require the accompanying wp-admin/js/post.js to function correctly. I'd rather not rewrite anything here and just ...
1
vote
1answer
734 views

Loading WP core Thickbox through frontend

Looking through some of the top Google results, this question has been answered a number of times, but the answers given don't seem to be working in my WP 3.6 install. One solution given is this: ...
1
vote
2answers
3k views

HowTo: Add Class to Sidebar Widget List-Items

The newest version of Bootstrap (v3.0) adds a new List Group component which has the following structure: <ul class="list-group"> <li class="list-group-item">Cras justo odio</li> ...
0
votes
1answer
541 views

Best way to extends core classes in theme?

I need to add functions to my WP_User objects, to be used like this : <?php // in my templates : $user = new User($id); $user->sendHelloWorldEmail(); // in my functions.php class User extends ...