Stack Exchange Network

Stack Exchange network consists of 175 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.

-1
votes
0answers
20 views

Weird problem with “Author role”

When I define a new "Author" on my website the Editor and Page Builder doesn't load fully and functionally Nothing works, no button, its like javascript is deactivated and in the Chrome Console ...
3
votes
1answer
59 views

What is the criteria for pluggable functions?

Why are certain functions pluggable (overrideable) in WordPress core and others not? (I note on the Codex page regarding Pluggable Functions no more are to be added in favour of filter usage.) But ...
0
votes
0answers
29 views

Why do plugins need to be deactivated to update Wordpress?

In the Wordpress update instructions, it is strongly instructed to deactivate all plugins before manually updating Wordpress' core. Why is that necessary ? What are the potential consequences if I ...
0
votes
0answers
19 views

Default style of a button in WordPress Gutenberg

I'm trying to change the default style of a button with the following code: <InnerBlocks template={ [ [ 'core/button', { text: __( 'Add text', 'xf' ), className: 'is-...
0
votes
0answers
17 views

How wordpress core include search.php with $_GET['s']?

I want to include custom_search.php when there is $_GET['my_s']. As you know, if we type on a search field, WordPress core includes search.php file because WP Core get $_GET['s'] as query var. How ...
0
votes
2answers
35 views

Is the root index.php file part of the Core?

The contents of the /index.php is as follows: /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment ...
0
votes
0answers
28 views

Ajax Issue for Add Media (Not All Images Load)

I'm working on a website that has over 300 images, using WordPress 5.1.1 with Classic Editor enabled. In Media Library, I can view all the images since it uses pagination. However, when I click Add ...
0
votes
0answers
21 views

my theme mega menu & fronetend plugin menu restrict

i used MagPlus theme coded by themebubble.com it has got mega menu options on backend menu options. this options are disappear after activated wp user fronted pro plugin. mega menu is not working if ...
0
votes
2answers
27 views

Where can I see all changes for a new WordPress version?

Could someone tell me where I could find detailed information about what has beend changed/improved in a new WordPress major/minor version? Maybe some kind of changelog or something?
2
votes
0answers
180 views

Understanding SHORTINIT with Wordpress 5

What I am trying to achieve I am looking at using Wordpress decoupled, and most tutorials and guides go into detail on using the Rest API. Recently, I discovered the SHORTINIT option to load a very ...
1
vote
1answer
31 views

How to overwrite / extent wordpress function is_email

so wordpress' core isn't really up to date with email allowances of unicode domains. Even simple special characters like the german umlauts (äÄöÖüÜß) aren't allowed in the domain part of the name. So ...
0
votes
1answer
35 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
23 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
37 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
72 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
221 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
39 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
103 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
25 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
349 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
59 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
34 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
383 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
23 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
55 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
1answer
58 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
433 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
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
40 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
2k 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
97 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
81 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
85 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 ...
-1
votes
2answers
398 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
759 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
65 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
78 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
83 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
126 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
18 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
87 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
39 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
6k 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
37 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 ...