mayersdesign
Forum Replies Created
-
@khouya Ah. I had wondered after I posted if you had notices set to display on production. I would advise turning those off (and logging them instead).
@khouya – Out of interest, why can’t you simply wait? This is only a notice after all, plus there’s a simple workaround, that’s probably recommended anyway (adding an author to all pages)
@pixelium – Thanks very much for the feedback. Of course the plugin should fail more gracefully, but it’s nice to have a solution, and I suppose the pages “should” have an author 😉
Exactly the same here after update to 19.2:
PHP Notice: Trying to get property 'display_name' of non-object in /xxx/xxx/xxxxxxxxx.com/httpdocs/wp-content/plugins/wordpress-seo/src/presenters/meta-author-presenter.php on line 40- This reply was modified 3 years, 9 months ago by mayersdesign.
Forum: Plugins
In reply to: add class to –> edit_post_linkBuilding on that last very useful reply, correcting a typo and adding a line that slipped his mind, we get:
//Add class to edit button function custom_edit_post_link($output) { $output = str_replace('class="post-edit-link"', 'class="post-edit-link your-class"', $output); return $output; } add_filter('edit_post_link', 'custom_edit_post_link');