Forum Replies Created

Viewing 15 replies - 61 through 75 (of 380 total)
  • Thread Starter ejm

    (@llizard)

    Excuse me for replying to myself. I just deactivated all plugins and looked at the post section for the editor. Of course, the Gutenberg block editor was the only one installed because the Classic Plugin was disabled. The plus sign for adding blocks was NOT available in editor mode.

    Thread Starter ejm

    (@llizard)

    There have been topics in these forums about this, and sites have been hacked with code that changes capabilities. So, I suggested a plugin that lets you look at what they are set to, and can update them to what they “should” be by default.

    I neglected to mention that I did search the forum but did not find anything in the replies that appeared to address the problem. I must say that it really isn’t making a lot sense to install a plugin to do something that can be easily done within WP already. And of course, I had already checked that the new user has the editor role, as well as checking what users with the editor role can do.

    Still, I installed the User Role Editor plugin. I checked that the editor can create and edit posts. There is no change at all to what I see when logging in as the editor.
    Therefore I have deleted the plugin.

    Summary of Roles […] Editor (slug: ‘editor’) – somebody who can publish and manage posts including the posts of other users. […]
    Since 2.0
    Allows access to Administration Screens options:
    Posts
    Posts > Add New
    Comments
    Comments > Awaiting Moderation

    (https://wordpress.org/support/article/roles-and-capabilities/#editor)

    This is why I came in here to ask why the editor does not have the correct capabilities.

    You probably should do a security scan on your site as well.

    Of course this is a good reminder. However, I have scheduled WordFence scans to be done often. But just to be sure, I just ran a scan now: “No new issues have been found”.

    It pains me to realize that I must now deactivate all the plugins and add them one by one, to see if it’s a plugin conflict. If this is the case, I will report back so that other people running into the same problem might be helped….

    (I apologize for adding a signature to my original post; I did not realize that I was doing something wrong.)

    Thread Starter ejm

    (@llizard)

    Thank you for your reply, Joy. Unfortunately, it does not really address the problem.

    I had already checked to make sure that the editor can upload files. I neglected to stress that it is possible to access the media area in the “editor” role and media can be added and deleted by an “editor”. It appears to be just in the post area that the “add media” buttons are missing, as well as the tabs to switch between visual and text.

    I’m not sure that adding another plugin is the answer. It also seems clear that it is not my theme that is causing this error.

    I deactivated the classic plugin to see if that was what was causing the “add media” button to disappear from the posting area. But no. The “add block” plus sign is faded for the editor role and cannot be clicked (all appears normal for the administrator).

    With the classic plugin activated, looking at the view-source for the posting page, the following coding appears for the “administrator” role. It is entirely missing for the “editor” role.

    <div id="wp-content-wrap" class="wp-core-ui wp-editor-wrap html-active has-dfw"><link rel='stylesheet' id='editor-buttons-css'  href='/wp-includes/css/editor.min.css?ver=b1480859aa94c903cf25cff24d70acc2' type='text/css' media='all' />
    <div id="wp-content-editor-tools" class="wp-editor-tools hide-if-no-js"><div id="wp-content-media-buttons" class="wp-media-buttons"><button type="button" id="insert-media-button" class="button insert-media add_media" data-editor="content"><span class="wp-media-buttons-icon"></span> Add Media</button></div>
    <div class="wp-editor-tabs"><button type="button" id="content-tmce" class="wp-switch-editor switch-tmce" data-wp-editor-id="content">Visual</button>
    <button type="button" id="content-html" class="wp-switch-editor switch-html" data-wp-editor-id="content">Text (HTML)</button>
    </div>
    </div>

    Please note that this problem with the “editor” role being unable to add media to a post occurs if the twenty nineteen theme is chosen, whether the classic plugin is activated or not.

    Here again, is the image with the screenshots of the post editing area (classic plugin activated)
    etherwork [dot] net /blog/scrnshot_editing/

    And here is an image with screenshots showing the block editor:
    etherwork [dot] net /blog/scrnshot_editing_block-editor/

    Thread Starter ejm

    (@llizard)

    Re:

    TwentyTwelve is quite old so I doubt it’ll be updated to conform with the current standards in ThemeCheck to meet the requirements.

    Sigh. It’s not that old. It has only been 7 years since 2012. I do realize that in Computerland, 7 years is eons. But in real life, 7 years is no time at all. Also because TwentyTwelve is an official WP theme put out by WP, I have hopes that it will continue to be supported. It would be nice to hear an official word from someone on the WP development team.

    the warnings mentioned in the test aren’t security related.

    That’s a relief to hear. Thank you for that.

    Thread Starter ejm

    (@llizard)

    Once again, please excuse me for replying to myself. Unfortunately, The Say What plugin did not work for me at all. I haven’t succeeded in changing the string, in spite of finding various methods for finding and replacing the string, including an earlier (2006) post specific to showing a similar string at lorelle.wordpress.com/2006/07/26/your-comment-has-been-moderated-stay-tuned-for-approval/.

    However, as a compromise, I used “before” and “after” on the class “comment-awaiting-moderation” in the CSS to put the following into my theme’s stylesheet.

    
    .comment-awaiting-moderation::before { 
      content: "Please note: ";}
    
    .comment-awaiting-moderation::after { 
      content: " (It may take a little time. But as soon as your comment has been approved, it will be displayed universally.)";}

    So, while there is still no answer to the original question, I’m going to mark this thread as resolved.

    Forum: Plugins
    In reply to: [Say What?] changing
    Thread Starter ejm

    (@llizard)

    Are you saying that these fields can be left empty?

    Yes.

    Might I strongly suggest that you state that in the FAQ?

    Forum: Plugins
    In reply to: [Say What?] changing
    Thread Starter ejm

    (@llizard)

    Thank you for your reply.

    re:

    You read the code that outputs the strings. That will tell you the exact string to use for the “original string”, “text domain” (if required) and content (if required).

    Why does “if required” for text domain and text content not appear prominently in the support documents? Are you saying that these fields can be left empty?

    I know the exact string. I have had no problem altering other strings; it is just this particular string that is giving grief.

    I have read the example codes in the documents. That is not the difficult part. Locating the “text domain” for this particular string is the problem. It does not appear in the coding; the textdomain listed on the parent theme style sheet does not change the string.

    But you are right. This plugin (free or Pro) is not for me. It is not cost-effective to pay such a large amount to alter one string. I have deleted it from my WP. Because I am not willing to pay for Pro, I will refrain from reviewing the plugin.

    Thread Starter ejm

    (@llizard)

    I was mistaken about the location of the string “Your comment is awaiting moderation.” It is in /themes/twentytwelve/functions.php.

    If anyone knows how, or can point to a page outlining how, to change the child functions file so that the string changes, I would be most appreciative.

    (So far, the only suggestion at the Say What forum is that I pay for the Pro version of the plugin.)

    Forum: Plugins
    In reply to: [Say What?] changing
    Thread Starter ejm

    (@llizard)

    Thank you for your reply.

    I am not guessing at the string. I confess that after hours of searching for the answer (including looking hopefully at the page on your site, “replacing-wordpress-strings-context), and after plugging “twentytwelve” into the text domain in your plugin and having the string replacement fail, I got confused about where the string was located. The string is located in “/twentytwelve/functions.php”.

    At this point, I’m not sure that paying $40 (or more, depending on whether those are US or Cdn $) is the appropriate alternative in this case. It’s just one string replacement.

    My question remains: how does one learn what the “text domain” and “text context” are?

    Thread Starter ejm

    (@llizard)

    Re:

    what is better than having someone else figure out how to do it and then using that?

    This is exactly why I have come into the wp forum. I had hoped to locate the fix to put into my theme’s functions.php. I tried one more thing (I have used this method successfully for 3 other strings.) Sadly, this does NOT work to change “your comment is awaiting moderation” string.

    // https://ronangelo.com/change-or-translate-text-on-a-wordpress-theme/
    
    function e2019_change_text4( $change_text4 ) {
    	if ( $change_text4 == 'Your comment is awaiting moderation' )
    	{
    		$change_text4 = 'All comments are moderated. But as soon as your comment has been approved, it will be displayed universally.';
    	}
    	return $change_text4;
     }
    add_filter( 'gettext', 'e2019_change_text4', 20 );
    

    Because I have zero desire to switch themes at any time, for now, it is looking like I will have to resort to modifying the core file, with careful notes to myself so that I will know where I modified it.

    If the Say What plugin really was simple to use, I would use it instead.

    Thank you for your replies, Joy. I will move my queries about the plugin over to Say What forum.

    Thread Starter ejm

    (@llizard)

    Excuse me for replying to myself.

    I installed the Say What plugin to use until I learn how to achieve this without a plugin.

    However, my definition of “easy-to-use” is radically different from Lee Willis’ definition of “easy-to-use”. There is zero support for how to locate “text domain” or “text context” for the string “Your comment is awaiting moderation” that is located in wp-includes/comment-template.php.

    Thread Starter ejm

    (@llizard)

    Thank you for your response, Joy.

    Because this is just a simple cosmetic change to some arbitrary wording in the WP core, , I was hoping to be able to achieve this without a plugin. My experience, over the years with WP, is that many plugins lose their support when their authors disappear.

    Thread Starter ejm

    (@llizard)

    Please excuse me for replying to myself.

    I’m happy to report that after revising my category.php coding by looking at the following
    https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/#category
    as well as checking my php coding at this very handy page at
    https://phpcodechecker.com/

    the category pages are now showing correctly.

    -E

    Thread Starter ejm

    (@llizard)

    I have now moved this over to

    https://wordpress.org/support/topic/some-category-pages-produce-site-is-experiencing-technical-difficulties/

    Because the issue is not yet fixed, I’m reluctant to mark it resolved here.

    Thread Starter ejm

    (@llizard)

    Good idea, t-p. Thank you for your help.

Viewing 15 replies - 61 through 75 (of 380 total)