Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [core]

Core is the conventional name for WordPress as it is distributed, so excluding all plugins and themes (even those by Automattic or WordPress.org itself). In principle, all questions on this site are about the possibilities of core.

0
votes
1answer
24 views

Storing WordPress Media Library Uploaded files onto a separate domain

We are looking forward to offload assets from our website (60GB onto a 8TB/mo accessed website), to a separate webserver that will be there only for serving images from a separate domain. I know that ...
-1
votes
1answer
17 views

explanation for activate_plugin function in wordpress core

This function is in plugin.php file in wordpress core. I read the code and didn't get quietly what does it do. Can anyone give some explanation for this function?
1
vote
3answers
36 views

How do action and filter hooks understand where to look for the core function that we hooked our function to them

I want to know how does WordPress core files handle the relationship between module and core of the WordPress? We all know it uses add_action() and add_filter() to manipulate data according to our ...
0
votes
1answer
44 views

Who updates the wp-admin/core file?

I can see it's a CDN file and I can't access it. My security plugin alerted me that there had been a modification to the wp-admin/core file, but I didn't change anything. I haven't updated to 5.0 yet. ...
0
votes
0answers
39 views

“Conditional query tags do not work before the query is run. Before > then, they always return false. ”

I'm getting the following error Notice: is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging ...
0
votes
0answers
34 views

Wordpress vs. best practices from webhint.io

I've recently scanned my website and some showcase websites with webhint.io* and noticed that they all do have a lot of hints in common. To give a few examples: 'content-type' header charset value ...
0
votes
0answers
10 views

Can I edit mogrify command arguments in WordPress if it uses ImageMagick during upload of images?

Reading through https://www.smashingmagazine.com/2015/06/efficient-image-resizing-with-imagemagick/ and https://wordpress.org/plugins/ricg-responsive-images/ from my understanding, it seems that ...
1
vote
2answers
50 views

How to override default Wordpress core language file

I am experiencing a small problem and I have tried several solutions, but none of them has worked unfortunately. Perhaps somebody has a clue why :-) I am using the Syntax theme from Automattic which ...
0
votes
0answers
22 views

Why does DROP TABLE-ing the `wp_options` reset my user session?

If I do: global $wpdb; $wpdb->query("DELETE FROM wp_options"); Suddenly, I'm logged out. But how come? I thought all sessions are kept locally, surely, a reference to my session must be present ...
5
votes
3answers
244 views

register_post_status - show_in_admin_all_list & show_in_admin_status_list does not affect query

In the register_post_status, I've already disabled show_in_admin_all_list & show_in_admin_status_list for my custom status my_hidden_status However, from the query log the post_status ...
0
votes
2answers
44 views

Why does my hand-written plugin installer fail to find `request_filesystem_credentials`?

I'm trying to write a plugin installer, akin to TGMPA, but just for its core functionality of actually installing the plugin and nothing more. I've identified that Plugin_Upgrader is what I need and ...
0
votes
2answers
29 views

How to wait for Wordpress Core to load when writing OOP?

I want to create a helper redirect function that looks like the following: /** * Just an example of using redirect() */ public function validate_something() { if (1 == 0) { $this->...
0
votes
2answers
236 views

Override has_post_thumbnail function

Is there a way to alter/change core has_post_thumbnail function? I need to check folder on server with images first before code looks for post image attachment. I see lots of filters to change image ...
1
vote
0answers
21 views

How to find out where the data.model is?

I am trying to figure out why the URL of my media library items isn't matching what is in the database, so I went to search where this data comes from. So I opened wp-includes/media-template.php and ...
0
votes
1answer
45 views

Custom Wordpress Core upgrade through wp-cli

I'm trying to do a custom wordpress core upgrade through wp-cli, theres an GUI upgrade hang issue in kubernetes when AWS EFS storage is used. For me wp core upgrade works great. I need somekind of ...
0
votes
0answers
149 views

Wordpress update hangs on AWS EFS

Our wordpress is running on kubernetes, the GUI "1-click" update hangs at Unpacking the update…, i can see the upgrade downloaded and unpacked at wp-content/upgrade directory. Tried various settings ...
0
votes
1answer
53 views

Is it possible to disable html code error auto fixing feature by wordpress 4.9.1?

I'm on Wordpress 4.9.1 and there's this new feature that detects HTML error and auto fixes the errors when updating the page. Is it possible to disable this feature? The error is false positive since ...
-1
votes
2answers
389 views

What is the point of new confirm admin email process?

I just noticed this, in 4.9.1 don't know when it started but not in 3.9. When I went to change my admin email, I saw this: It used to be: Can someone point me to the changelog for this? This seems ...
0
votes
1answer
15 views

getting notifications about updates only in the “core” page

I run a few WP sites and keep track of updates on a daily basis. Normally, I go into the Plugins page and check if there are updates to the installed plugins accordingly. Lately, I've found out that ...
0
votes
1answer
46 views

Location of customizer Menu panel core code

Where can I find the core code for the Menu customizer panel? I want to do something that looks almost exactly like that, so I want to rely on the core code for it (I want to create a panel in which ...
0
votes
0answers
47 views

Got a soft-rejection from themeforest about wp-blog-header.php file

I got a soft rejection from themeforest with this screenshot[ http://envato.d.pr/gntsr8 ]. The fact is that I did not get any notice or error while running theme check plugin.More over I can't ...
0
votes
1answer
40 views

How does WordPress get the upgrade URL?

Can anyone point me to the location in the code where WordPress gets the core update url (eg: https://downloads.wordpress.org/release/en_AU/wordpress-4.8.2.zip)?
0
votes
3answers
39 views

Best way to salvage a very old WP site

I have a client who's in a situation with her website: her ex-husband owns the hosting company and won't let her have FTP or any other server access, she still has dashboard access, she wants to move ...
1
vote
1answer
1k views

Change Password Hint

I want to change the password hint on the password reset screen. Currently, it says "Hint: The password should be at least twelve characters long. To make it stronger, use upper and lower case letters,...
1
vote
1answer
91 views

How to contribute to WordPress Core using Tortoise SVN?

I am expecting step by step guide how to submit patch using Tortoise SVN because it is little bit unclear the documentation for me. For a example, it said, "Open the folder, and find the file you ...
3
votes
2answers
78 views

What CSS minifier does WP core use?

I did not see the minifier among the tools in https://code.trac.wordpress.org/browser/ . Is it in the repo somewhere? Or, what is it? (Note this question has been asked previously on Stack Exchange ...
0
votes
1answer
76 views

Why WordPress Core Functions Not Using function_exists()?

This might be a stupid question. But I thought to ask it here. It is really bad changing core file and I know that there are actions and filters in WordPress. But there are some limitations. So why ...
0
votes
2answers
317 views

Wordpress 4.8 - Can't find variable: wp

After the update to Wordpress 4.8 my widget's textarea has disappeared and my console says: [Error] ReferenceError: Can't find variable: wp Global Code (widgets.php:202) Looking at the file I can ...
0
votes
1answer
682 views

PHP Error When a plugin is active

PHP Fatal error: Uncaught Error: Call to undefined function wp_underscore_audio_template() in /wordpress/core/4.8/wp-includes/widgets/class-wp-widget-media-audio.php:201 Stack trace: #0 /...
1
vote
1answer
63 views

Weird behavior of Dashboard, must be core files

Since a few days, Wordpress behaves strangely. I’m using the latest version of Wordpress (4.7.4). I have something very weird going on in my Dashboard. Not sure when this started. Can’t say for sure ...
0
votes
1answer
77 views

Where does wordpress gets its core and plugin updates

The context: I have a customer for whom I've installed Wordpress in an internal network, behind several layers of the firewall. I need to have this WP installation updated on a regular basis The ...
0
votes
1answer
48 views

In which folder can we find the core wordpress Widgets such as Menu Widget

I am a novice in WordPress theme development. I am trying to build a custom Code menu widget for the footer, which is totally different from the default menu widget provided by the WordPress, but I ...
8
votes
1answer
1k views

What are custom_css and customize_changeset used for?

A fresh wordpress install has the following post types: Post (Post Type: 'post') Page (Post Type: 'page') Attachment (Post Type: 'attachment') Revision (Post Type: 'revision') Navigation Menu (Post ...
0
votes
1answer
110 views

How to resize Wordpress images on upload to specific height and width without cropping it

I need to make Wordpress resize automatically images on upload to fit a particular width and height. (say 300px by 400px) I know the add_image_size() function but it doesn't seems to fit my needs. ...
0
votes
1answer
16 views

Do I need to use jQuery for my template?

I know that jQuery is used as part of the WordPress core, and it comes as standard when creating a jQuery template. I was wondering, however, if it is possible to avoid using jQuery as part of a ...
1
vote
0answers
27 views

Filters/Bulk Actions return wrong URL in admin dashboard

The site that has this bug lives in a subdirectory called /blog/. In the admin dashboard, whenever the user selects a dropdown (bulk actions/all dates/all categories/etc) , it leads to siteurl.com/wp-...
1
vote
2answers
74 views

Changing WordPress core without hacking core

In my situation, WordPress was using the wrong url in sortable column headers, filters and pagination in the admin dashboard. The only solution that worked involved modifying core files, specifically ...
0
votes
1answer
36 views

What is it and from where it is loaded?

I am new at wordpress. I found a hook in theme back-combat.php file which is prevents to load previous version of wordpress for current theme customization. such as add_action('load-customize.php', '...
0
votes
2answers
5k views

WP_Remote_Get Not working

I have a plugin which uses wp_remote_get() and it's not working on my nginx server so I decided to test this. I created a file called test.php and inserted: <?php $response = wp_remote_get( '...
0
votes
2answers
36 views

Is it possible for a plugin to force reading and writing of uploaded images to a database instead of to a filesystem?

I am trying to configure a WordPress site using a server cluster and independent file systems. The problem is keeping the wp_content/uploads folder synchronized across all the server instances. My ...
1
vote
1answer
40 views

Is there a way to schedule automatic WordPress core updates?

Is it possible to take advantage of automatic WordPress core updates but schedule when they occur? I would like to avoid updates happening, say, at 11pm on a Friday, in the event that they cause ...
0
votes
2answers
236 views

Plugins download & install fine, wordpress update fails

I've setup all permissions and directories/files correctly according to Wordpress. Adding plugins/installing/updating works perfectly, but when it comes to updating to 4.7.2, it asks me for FTP ...
0
votes
2answers
398 views

Filter an WordPress Function in (general-template.php)

Sorry if it's a duplicate question, I just want to change a little the WordPress core function get_header() with new function new_get_header(). function new_get_header() { // new header ...
0
votes
0answers
188 views

Page generation is too slow: sanitize_post being called almost 100k

I’m experiencing a great slowdown on my page generation time… a very simple page was taking as much as 4s to be generated. I’ve made a php profile and discovered that the culprit for most of the ...
1
vote
1answer
2k views

PHP notice coming from the WordPress core?

Do you also experience this particular notice? ( Of course one has to turn on the DEBUG mode at the wp-config.php to be able to see this kind of a notice ). > Notice: add_shortcode_param is ...
1
vote
1answer
64 views

How to start a script from cli within wordpress

Hej, I wrote a php script which was meant to be a WP-Cron-cronjob and which uses wordpress specific functions. Due to some restrictions in its runtime enviroment, I'm in need to start this script from ...
5
votes
2answers
67 views

Does anyone have a visual breakdown of core hooks and when they are fired?

The title says it all really. I'd like to get an idea of the chronology of when the actions are fired and filters called for WordPress, preferably visually although I'm thinking of downloading, ...
0
votes
2answers
702 views

How to Dequeue All WordPress Assets

I want to dequeue all styles and scripts that are loaded on the front-end (EG. not the admin panel) by default. I found this function, but am not sure how to utilize it to accomplish my goal. I'm ...
2
votes
2answers
220 views

WordPress classes explained

Are there any books, websites or lectures that explain the built-in WordPress classes? I would really like to learn how WordPress works internally. I've dug up the core files on trac and even went ...
0
votes
1answer
22 views

What do Wordpress auto updates include?

Ok so I know according to Wordpress' own article on this that the core gets security auto updates since 3.7. But my question is does that include all security fixes? I.e. if I have a site that does ...