Tom J Nowell
Forum Replies Created
-
Noting I’ve searched for a Github repo to make a PR against for this fix but haven’t found anything
Forum: Localhost Installs
In reply to: How to switch a WordPress site from windows to Macthis looks like you want to do a server site migration, except one server is a Windows machine and the other is a Mac and both are physically in front of you instead of in a data centre.
Aside from the place you’re connecting to the steps are all the same, you need to export your database and get a copy of your files, take those to the new machine, and import the database and files. There are thousands of tools to do that and no one single correct method
Forum: Localhost Installs
In reply to: WordPress Docker Image breaks REST api because loopback failsThe docker image you linked to isn’t an official WP docker image, it’s and maintained by Docker themselves without official involvement. You should report to them that they’re missing the loopback, or, update your own docker file to add the domain to the hosts file inside the container
Forum: Plugins
In reply to: [Matador Jobs Lite] “error_description”: “Robot is missing a project number.”Have you filed a support ticket on their website?
https://matadorjobs.com/support/support-request/
If you’re working with the premium version of the plugin rather than the lite plugin I’d take a look at their official premium support route
Note I’m not affiliated with Matador Jobs, I just have “VVV” set up to notify me and your post contained VVV in the URL
- This reply was modified 4 years, 11 months ago by Tom J Nowell.
Forum: Plugins
In reply to: [WPPerformanceTester] PHP WarningsI’ve submitted a pull request with fixes here:
Forum: Fixing WordPress
In reply to: Upgrading Old Site / Help with SQL to WPDB after 3.9?Wyclef, WP code does not use the
mysql
functions at all, if your code has a function that begins with mysql_ or mysqli_ then you’ve used wpdb incorrectly. WPDB uses WPDB and only WPDB, and all the return values are arrays, objects, or primitives.If you look at the docs you’ll see that none of the wpdb methods return a mysql results object, or any mysql objects at all, and none of the examples use mysql functions.
e.g.
$fivesdrafts = $wpdb->get_results( " SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author = 5 " ); foreach ( $fivesdrafts as $fivesdraft ) { echo $fivesdraft->post_title; }
Forum: Plugins
In reply to: [Error Log Monitor] Upgrade Link is BrokenThanks, the latest update does not have this issue ??
Forum: Plugins
In reply to: [Error Log Monitor] Upgrade Link is BrokenCorrect I was an admin and super admin, on the root site of a multisite
Forum: Plugins
In reply to: [Public Post Preview] Public Preview Marker persists after publishI’ve nothing new to report, I don’t think I ever got around to debugging and the fix I posted earlier meant this hasn’t been an issue since. I’d recommend including the check in the next update
Forum: Plugins
In reply to: [Public Post Preview] Public Preview Marker persists after publishThere are other plugins active, but I can’t deactivate on a live site, I can debug in a proper environment locally tomorrow
Forum: Plugins
In reply to: [Public Post Preview] Public Preview Marker persists after publishThe issue dissapears when this modification is made to the function mentioned above:
public static function display_preview_state( $post_states, $post ) { if ( 'publish' === $post->post_status ) { return $post_states; }
But it would seem the root issue is that either
unregister_public_preview_on_status_change
is not being called, or it is but thenregister_public_preview
is called afterwards. Regardless of the cause I think adding the check is a good stepForum: Plugins
In reply to: [Public Post Preview] Public Preview Marker persists after publishTo reproduce:
- Create a draft post and save
- set the post for public preview and save
- publish the post
I believe the culprit is this function:
/** * Adds "Public Preview" to the list of display states used in the Posts list table. * * @since 2.4.0 * * @param array $post_states An array of post display states. * @param WP_Post $post The current post object. * @return Filtered array of post display states. */ public static function display_preview_state( $post_states, $post ) { if ( in_array( $post->ID, self::get_preview_post_ids() ) ) { $post_states['ppp_enabled'] = __( 'Public Preview', 'public-post-preview' ); } return $post_states; }
No check is made to see if the post has already been published
Forum: Reviews
In reply to: [Bulk Entry] No bulk post creation! One by one!I forgot to mention, the code internally has always supported saying “I want 5 draft posts” rather than “I want a draft post”. The most recent update gives that a UI letting you say how many to create
Forum: Reviews
In reply to: [Bulk Entry] No bulk post creation! One by one!Can you elaborate on what you expected? I built the plugin so I could create a large number of posts without constantly publishing and clicking add page and waiting.
Were you expecting instead something that might generate 50 posts all at once? What if there was a Publish All button and it pre-filled the titles with Post 1 Post 2 etc?
Dragondon, there’s a link to the full documentation on the main plugin page, if you’d scrolled down you’d have seen it ( that page is filled in using readme.txt too ).
I will point out though, that adding these directions into the plugin itself takes time, and effort, which costs money. These plugins are free and open source, they don’t earn the developers money. When a company or a freelancer releases plugins, remember that they have paying clients and services that they need to spend time on to put food on the table and pay the bills.
In this case there are premium/professional versions of this plugin, and an entire website ( https://www.projectpanorama.com/ ).